/* Each job keeps its own complete photo set, with touch and keyboard controls. */
.inline-arrow { display: inline-block; width: 1em; height: 1em; flex: 0 0 auto; vertical-align: -.15em; }
.work-more { display: flex; justify-content: center; margin-top: 38px; }
.work-more[hidden] { display: none; }
.work-more > .button { justify-content: center; min-width: 240px; max-width: 100%; gap: 24px; }
.project-card .project-topline > span:last-child { white-space: nowrap; }
#project-dialog .dialog-photo { min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.project-photo-stage { position: relative; flex: 1; min-height: 480px; background: #080a0d; }
.project-photo-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.project-card[data-image-fit="whole"] .project-image { height: auto; aspect-ratio: var(--project-image-ratio); }
.project-card[data-image-fit="whole"] .project-image img { object-fit: contain; object-position: center; }
#project-dialog[data-image-fit="whole"] .dialog-photo { align-self: center; height: auto; background: transparent; }
#project-dialog[data-image-fit="whole"] .project-photo-stage { flex: none; min-height: 0; width: 100%; aspect-ratio: var(--project-image-ratio); max-height: none; }
#project-photo-label { position: absolute; top: 16px; left: 16px; max-width: calc(100% - 80px); padding: 7px 10px; color: #fff; background: #080a0de8; font-size: 9px; font-weight: 600; line-height: 1.5; letter-spacing: .8px; text-transform: uppercase; }
.project-photo-controls { position: absolute; bottom: 14px; left: 14px; right: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.project-photo-controls > button { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; color: #fff; background: #080a0de8; border: 1px solid #52667f; font-size: 22px; pointer-events: auto; }
.project-photo-controls > button:hover { background: #0f6fd6; border-color: #74bbff; }
.project-photo-controls > span { padding: 7px 11px; color: #fff; background: #080a0de8; font-size: 11px; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.project-photo-thumbs { display: flex; flex-shrink: 0; gap: 8px; padding: 12px; max-width: 100%; overflow-x: auto; background: #0b0f15; border-top: 1px solid #293440; scrollbar-width: thin; scrollbar-color: #52667f #0b0f15; }
.project-photo-thumbs > button { width: 64px; height: 82px; flex: 0 0 64px; padding: 2px; background: #080a0d; border: 2px solid transparent; }
.project-photo-thumbs > button:hover { border-color: #52667f; }
.project-photo-thumbs > button[aria-current="true"] { border-color: #74bbff; }
.project-photo-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.project-photo-controls[hidden], .project-photo-thumbs[hidden] { display: none; }
#project-dialog .dialog-project-copy { min-width: 0; }
#project-dialog .dialog-project-copy > h2 { overflow-wrap: normal; word-break: normal; }
#project-dialog .project-modal-nav > .text-link { min-height: 44px; }
@media (max-width: 760px) {
  #project-dialog .dialog-photo { height: auto; min-height: 0; }
  .project-photo-stage { flex: none; min-height: 0; width: 100%; aspect-ratio: 4 / 5; max-height: 65svh; }
  .project-photo-thumbs { gap: 7px; padding: 10px; }
  .project-photo-thumbs > button { width: 58px; height: 74px; flex-basis: 58px; }
  #project-dialog .dialog-project-copy > h2 { font-size: clamp(34px, 9vw, 44px); }
}
