/* Extends the existing Classic Still palette and type; the photographs lead. */
.client-gallery-page { --gallery-gap: 24px; }
.client-gallery-page [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gallery-width { width: min(1480px, calc(100% - 112px)); margin-inline: auto; }
.gallery-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 148px; gap: 24px; }
.gallery-wordmark { font: 400 64px/1 var(--serif); letter-spacing: -.035em; white-space: nowrap; }
.gallery-header-note, .gallery-jump { font-size: 12px; }
.gallery-header-note { color: var(--muted); }
.gallery-jump { justify-self: end; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.gallery-jump span { font-size: 20px; transition: transform 180ms ease-out; }
.gallery-jump:hover span { transform: translate(2px, 2px); }
.gallery-film { position: relative; width: min(960px, calc(100% - 112px)); aspect-ratio: 16 / 9; margin: 12px auto 78px; background: #1d2827; overflow: hidden; }
.gallery-film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-shade { position: absolute; inset: 0; background: rgb(10 17 16 / 20%); pointer-events: none; }
.film-title { position: absolute; inset: 0 0 36%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; color: #fff; text-align: center; }
.film-title p { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 20px; }
.film-title h1 { font-size: clamp(44px, 6.8vw, 96px); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.film-title em { font-size: .83em; margin-inline: .1em; }
.collection-toolbar { position: sticky; top: 0; z-index: 5; background: var(--paper); display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0 28px; margin-bottom: 12px; }
.collection-title p { font-size: 12px; color: var(--muted); margin: 0; }
.collection-title p span[aria-hidden] { padding-inline: 6px; }
.collection-count { white-space: nowrap; }
.switch-label { display: inline-block; min-width: 12ch; font-size: 13px; line-height: 1.4; text-align: right; white-space: nowrap; }
.edit-switch { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 0; min-height: 44px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.switch-track { display: block; position: relative; width: 48px; height: 28px; border-radius: 20px; background: #7b816b; transition: background 220ms ease-out; }
.switch-thumb { position: absolute; width: 20px; height: 20px; inset: 4px auto auto 4px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 3px rgb(38 40 33 / 15%); transition: transform 240ms cubic-bezier(.16,1,.3,1); }
.edit-switch[aria-checked="true"] .switch-track { background: var(--ink); }
.edit-switch[aria-checked="true"] .switch-thumb { transform: translateX(20px); }
.client-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px var(--gallery-gap); }
.client-photo { min-width: 0; margin: 0; }
.client-photo-open { display: block; position: relative; width: 100%; aspect-ratio: 3 / 2; padding: 0; border: 0; background: #ecece6; cursor: zoom-in; overflow: hidden; }
.client-photo-open img { position: absolute; max-width: none; width: var(--crop-width,100%); height: var(--crop-height,100%); left: var(--crop-left,0); top: var(--crop-top,0); }
.client-photo-open:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }
.client-photo-open img.edit-overlay { opacity: 0; pointer-events: none; transition: opacity var(--edit-duration,280ms) cubic-bezier(.4,0,.2,1); }
.collection-switch { display: flex; align-items: center; gap: 16px; position: relative; flex-shrink: 0; }
.collection-switch .edit-loading-note { position: absolute; right: 4px; top: calc(100% - 4px); white-space: nowrap; }
.edit-loading-note { font-size: 11px; color: var(--muted); min-height: 18px; }
.edit-switch { padding-inline: 4px; min-width: 56px; }
.edit-switch:active .switch-thumb { scale: .92; }
.switch-thumb { transition: transform 240ms cubic-bezier(.16,1,.3,1), scale 120ms ease-out; }
.edit-switch.is-immediate .switch-thumb, .edit-switch.is-immediate .switch-track { transition: none; }
.photo-edit-error { position: absolute; inset: auto 8px 8px; margin: 0; padding: 8px 12px; background: var(--paper); color: var(--ink); font-size: 11px; line-height: 1.5; z-index: 2; }
.gallery-load-message { margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.client-photo figcaption { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding-top: 4px; }
.photo-number { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); border-radius: 50%; transition: background 160ms ease-out, transform 160ms ease-out; }
.icon-button svg { width: 20px; height: 20px; }
.icon-button:hover, .icon-button[aria-expanded="true"] { background: #e9eae2; }
.icon-button:active { transform: scale(.94); }
.photo-download { margin-right: -10px; }
.photo-menu { position: fixed; inset: auto; margin: 0; width: 274px; max-width: calc(100vw - 24px); padding: 8px; border: 0; border-radius: 12px; background: #fffefa; color: var(--ink); box-shadow: 0 10px 44px rgb(26 31 24 / 18%); overflow: visible; }
.photo-menu:popover-open { animation: menu-arrive 180ms cubic-bezier(.16,1,.3,1); }
.photo-menu>p { margin: 0; padding: 10px 12px 9px; font-size: 11px; color: var(--muted); }
.photo-menu a, .photo-menu button { display: flex; align-items: center; gap: 13px; width: 100%; padding: 12px; min-height: 64px; text-align: left; color: var(--ink); background: transparent; border: 0; border-radius: 6px; font-size: 13px; line-height: 1.5; }
.photo-menu a:hover, .photo-menu button:hover { background: #f0f1e9; }
.photo-menu svg { width: 21px; height: 21px; flex: 0 0 auto; }
.photo-menu small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.photo-menu button { border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; margin-top: 5px; }
.photo-menu button>svg:last-child { margin-left: auto; width: 14px; }
.collection-end { text-align: center; padding: 96px 16px 84px; }
.collection-end p { font: 44px/1.1 var(--serif); margin-bottom: 16px; }
.collection-end>span { display: block; color: var(--muted); font-size: 13px; }
.collection-end a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; font-size: 12px; border-bottom: 1px solid var(--line); }
.gallery-footer { border-top: 1px solid var(--line); display: flex; align-items: center; gap: 30px; padding-block: 40px; }
.gallery-footer .gallery-wordmark { font-size: 37px; }
.gallery-footer p { font-size: 12px; color: var(--muted); margin: 0; }
.gallery-footer>span { margin-left: auto; font-size: 11px; color: var(--muted); }
.gallery-unavailable, .gallery-noscript { padding-block: 24px; }
.gallery-viewer { width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: 24px 32px; color: var(--ink); background: var(--paper); overflow: hidden; }
.gallery-viewer[open] { display: grid; grid-template-columns: 56px minmax(0,1fr) 56px; grid-template-rows: 44px minmax(0,1fr) 60px; gap: 12px; }
.gallery-viewer::backdrop { background: rgb(23 26 21 / 85%); }
.viewer-top { grid-column: 1/-1; display: flex; justify-content: space-between; align-items: center; }
#viewer-counter { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.viewer-figure { grid-column: 2; grid-row: 2; height: 100%; margin: 0; position: relative; }
.viewer-figure img { height: 100%; width: 100%; object-fit: contain; }
.viewer-figure img.edit-overlay { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity var(--edit-duration,280ms) cubic-bezier(.4,0,.2,1); }
.viewer-bottom .edit-loading-note { position: absolute; left: 0; }
.viewer-edit-status { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); width: min(420px,calc(100vw - 48px)); padding: 12px 16px; margin: 0; font-size: 12px; line-height: 1.6; text-align: center; color: var(--ink); background: var(--paper); z-index: 2; }
#viewer-error { z-index: 2; }
#viewer-error { position: absolute; inset: 40% 10% auto; padding: 24px; text-align: center; background: var(--paper); }
.viewer-prev { grid-column: 1; grid-row: 2; align-self: center; }
.viewer-next { grid-column: 3; grid-row: 2; align-self: center; justify-self: end; }
.viewer-bottom { grid-column: 2; grid-row: 3; display: flex; align-items: center; justify-content: center; position: relative; }
.viewer-download { position: absolute; right: 0; }
.print-dialog { width: min(960px, calc(100% - 64px)); max-width: none; max-height: calc(100dvh - 64px); padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow: auto; }
.print-dialog[open] { display: grid; grid-template-columns: .95fr 1fr; animation: menu-arrive 220ms cubic-bezier(.16,1,.3,1); }
.print-dialog::backdrop { background: rgb(23 26 21 / 64%); }
.print-close { position: absolute; right: 14px; top: 14px; z-index: 2; background: var(--paper); }
.print-preview { background: #eaece4; padding: 52px 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.print-preview img { width: 100%; height: auto; max-height: 54dvh; object-fit: contain; box-shadow: 0 8px 26px rgb(31 37 26 / 13%); }
.print-preview p { font-size: 11px; color: var(--muted); margin: 24px 0 0; }
.print-details { padding: 56px 40px 32px; }
.print-kicker { font-size: 11px; color: var(--muted); margin-bottom: 16px; }
.print-details h2 { font-size: 48px; line-height: 1.04; letter-spacing: -.02em; margin-bottom: 20px; }
.print-paper { font-size: 12px; color: var(--muted); line-height: 1.8; margin-bottom: 26px; }
.print-sizes { border: 0; margin: 0; padding: 0; min-width: 0; }
.print-sizes legend { display: flex; justify-content: space-between; width: 100%; font-size: 12px; margin-bottom: 12px; }
.print-sizes legend span { color: var(--muted); font-size: 11px; }
#print-size-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.print-size { display: block; position: relative; cursor: pointer; }
.print-size input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.print-size span { display: flex; align-items: center; justify-content: center; min-height: 45px; border: 1px solid #c6c8bb; font-size: 13px; transition: background 160ms ease-out, color 160ms ease-out; }
.print-size input:checked+span { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.print-size input:focus-visible+span { outline: 2px solid var(--olive); outline-offset: 3px; }
.print-size:hover span { border-color: var(--ink); }
.crop-note { min-height: 38px; font-size: 11px; color: var(--muted); line-height: 1.7; margin: 13px 0 12px; }
.print-total { display: flex; align-items: center; justify-content: space-between; padding-top: 15px; border-top: 1px solid var(--line); margin-bottom: 17px; }
.print-total>span { font-size: 12px; }
.print-total strong { font: 32px/1.2 var(--serif); }
.print-coming-soon { width: 100%; min-height: 50px; background: #e3e5da; color: #505747; font-size: 12px; border: 0; cursor: default; }
.print-disclaimer { font-size: 10px; color: var(--muted); line-height: 1.8; text-align: center; margin: 12px 0 0; }
@keyframes menu-arrive { from { opacity: .5; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes names-arrive { from { opacity: .45; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) { .film-title { animation: names-arrive 900ms cubic-bezier(.16,1,.3,1) both; } }
@media (max-width: 1000px) {
 .gallery-width { width: calc(100% - 64px); }
 .gallery-film { width: calc(100% - 128px); margin-bottom: 54px; }
 .gallery-header { min-height: 126px; }
 .gallery-wordmark { font-size: 55px; }
 .client-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .print-details { padding-inline: 28px; }
 .print-preview { padding-inline: 24px; }
}
@media (max-width: 600px) {
 .client-gallery-page { --gallery-gap: 16px; }
 .gallery-width { width: calc(100% - 40px); }
 .gallery-header { display: flex; justify-content: center; min-height: 108px; }
 .gallery-wordmark { font-size: 49px; }
 .gallery-header-note, .gallery-jump { display: none; }
 .gallery-film { width: calc(100% - 40px); margin: 4px auto 32px; }
 .film-title { padding: 12px; }
 .film-title h1 { font-size: clamp(34px, 9.5vw, 53px); }
 .film-title p { font-size: 9px; margin-bottom: 12px; }
 .collection-toolbar { gap: 16px; padding: 18px 0 22px; margin-bottom: 2px; }
 .collection-title p { font-size: 10px; }
 .collection-title p span[aria-hidden] { display: none; }
 .collection-count { display: block; }
 .switch-label { font-size: 12px; }
 .edit-switch { gap: 8px; }
 .client-photo-grid { grid-template-columns: minmax(0,1fr); gap: 22px; }
 .client-photo-open { aspect-ratio: auto; }
 .client-photo-open img { position: static; width: 100%; height: auto; }
 .client-photo-open img.edit-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
 .collection-switch { gap: 10px; }
 .edit-loading-note { font-size: 10px; max-width: 64px; line-height: 1.5; }
 .collection-switch .edit-loading-note { max-width: none; }
 .collection-end { padding: 64px 10px 54px; }
 .collection-end p { font-size: 39px; }
 .gallery-footer { flex-wrap: wrap; column-gap: 18px; row-gap: 16px; padding-block: 30px; }
 .gallery-footer .gallery-wordmark { font-size: 32px; }
 .gallery-footer p { margin-left: auto; font-size: 10px; }
 .gallery-footer>span { margin: 0; flex-basis: 100%; font-size: 10px; }
 .gallery-viewer { padding: 14px 16px; }
 .gallery-viewer[open] { grid-template-columns: 44px minmax(0,1fr) 44px; grid-template-rows: 44px minmax(0,1fr) 48px 52px; gap: 6px; }
 .viewer-figure { grid-column: 1/-1; }
 .viewer-prev { grid-row: 3; }
 .viewer-next { grid-row: 3; }
 .viewer-bottom { grid-column: 1/-1; grid-row: 4; }

 .print-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
 .print-dialog[open] { grid-template-columns: 1fr; }
 .print-preview { padding: 32px 44px 22px; }
 .print-preview img { max-height: 180px; width: auto; max-width: 100%; }
 .print-preview p { margin-top: 14px; }
 .print-details { padding: 28px 24px; }
 .print-details h2 { font-size: 42px; }
 .print-kicker { margin-bottom: 12px; }
 .print-paper { margin-bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
 .client-gallery-page { scroll-behavior: auto; }
 html:has(.client-gallery-page) { scroll-behavior: auto; }
 .client-gallery-page *, .client-gallery-page *::before, .client-gallery-page *::after { animation: none !important; transition: none !important; }
}
.gallery-access { width: min(100% - 40px,480px); margin: 9vh auto 14vh; }
.gallery-access .access-kicker { font-size: 12px; margin-bottom: 20px; }
.gallery-access h2 { font: 64px/1.03 var(--serif); letter-spacing: -.025em; margin-bottom: 24px; }
.gallery-access p { font-size: 13px; color: var(--muted); line-height: 1.7; max-width: 38ch; }
.gallery-access form { display: grid; gap: 10px; margin-top: 32px; }
.gallery-access label { font-size: 12px; }
.gallery-access input { font: inherit; color: var(--ink); background: transparent; border: 1px solid var(--line); padding: 14px; min-width: 0; }
.gallery-access button { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 14px 18px; background: var(--olive); color: var(--paper); border: 0; cursor: pointer; font: 12px var(--sans); }
.gallery-access button:hover { background: var(--ink); }
.gallery-access button:disabled { opacity: .6; cursor: wait; }
.gallery-access svg { width: 20px; height: 20px; }
#access-message { margin-top: 16px; }
#gallery-lock { border: 0; color: var(--muted); background: transparent; font: 11px var(--sans); min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
@media(max-width:600px) { .gallery-access { margin-top: 7vh; }.gallery-access h2 { font-size: 52px; } }

.access-recovery { display: flex; align-items: center; gap: 24px; margin-top: 24px; }
.access-recovery button { min-width: 130px; }
.access-recovery a { font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; }

.access-recovery .primary-recovery { background: var(--olive); color: var(--paper); padding: 14px 18px; min-height: 50px; }

.sample-introduction { max-width: 64ch; margin: -12px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.8; }
@media (max-width: 600px) { .sample-introduction { margin-top: 0; font-size: 12px; } }
