/* ADI Sanchez v2.3 — Gallery. All 25 photos with their real backgrounds, each in a frosted glass bezel.
   Phone is the base: a 4:5 carousel (Slides) or justified pairs (Grid), both in flow. Tablet (>=700): justified rows
   in flow (widths per filter from page_gallery.py, so every row is one photo height). Desktop (>=1100): the numbered
   three-lane stagger, placed from per-filter positions in cqw of .g-grid (they hold at any width).
   The S4 lightbox (outside .site) is styled by the shared kit; the gallery additions are at the end. */

/* ================= shell ================= */
.site:has(> main.gal) { background: #fff; }
.gal-shell { position: relative; isolation: isolate; overflow: hidden; background: #fff; padding-bottom: 72px; }
.g-aura { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.g-aura i { position: absolute; display: block; border-radius: 50%; aspect-ratio: 1; animation: adiDrift 20s ease-in-out infinite alternate; }
.g-aura .b1 { width: 560px; right: -260px; top: -200px; background: radial-gradient(closest-side, rgba(252, 238, 240, 1), rgba(252, 238, 240, .6) 55%, rgba(252, 238, 240, 0)); }
.g-aura .b2 { width: 420px; right: -160px; top: -120px; background: radial-gradient(closest-side, rgba(255, 92, 108, .16), rgba(255, 92, 108, 0)); animation-duration: 24s; }
/* glows down the page so the glass bezels read as frosted, never a page-wide wash */
.g-aura .b3 { width: 520px; left: -240px; top: 30%; background: radial-gradient(closest-side, rgba(252, 238, 240, .95), rgba(252, 238, 240, 0)); animation-duration: 22s; }
.g-aura .b4 { width: 600px; right: -280px; top: 52%; background: radial-gradient(closest-side, rgba(255, 92, 108, .12), rgba(255, 92, 108, 0)); animation-duration: 26s; }
.g-aura .b5 { width: 560px; left: -220px; top: 76%; background: radial-gradient(closest-side, rgba(200, 16, 46, .09), rgba(200, 16, 46, 0)); animation-duration: 30s; }

.g-h1 { margin-top: 14px; }
.g-h1 em { animation: gAccent .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 80ms); }
@keyframes gAccent { from { filter: blur(4px); } }
.g-line { margin-top: 12px; --d: 320ms; }
.g-tools { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin-top: 18px; }

/* filter chips: the kit chip, white fill + red ring + tick when selected; a quiet count pill inside (the four counts
   add up to All: every photo is in one group). Phone: a 2 x 2 block with the short labels, every option in view
   (UX C2: four options, none hidden behind a scroll). */
.g-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.g-lg, .g-sh-sr { display: none; }
.g-chip { justify-content: center; gap: 6px; padding: 0 12px 0 14px; font-size: 14px; white-space: nowrap; }
.g-chip.on::after { width: 12px; margin-left: 0; }
.g-chip:active { transform: scale(.97); }
.g-chip:not(.on):hover { border-color: rgba(200, 16, 46, .35); }
.g-ct { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface); color: var(--gray); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.g-chip.on .g-ct { background: var(--blush); color: var(--red-deep); }

/* Slides | Grid segmented toggle (phone only) */
.g-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 2px; border-radius: 999px; background: rgba(245, 245, 247, .82); border: 1px solid rgba(29, 29, 31, .08); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9); flex: none; }
.g-seg-b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 92px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: rgba(29, 29, 31, .72); font: 500 14.5px/1 'Poppins', sans-serif; cursor: pointer; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.g-seg-b svg { display: block; }
.g-seg-b .ic-tick { display: none; color: var(--red); }
.g-seg-b.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 2px var(--red), 0 8px 18px rgba(158, 12, 36, .14); }
.g-seg-b.on .ic-tick { display: inline-flex; }
.g-seg-b.on .ic-def { display: none; }
.g-seg-b:active { transform: scale(.97); }

/* ================= the glass bezel (every photo) ================= */
.g-frame, .g-sframe { position: relative; display: block; padding: 6px; border-radius: 28px; background: linear-gradient(155deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .7) 55%, rgba(252, 238, 240, .9)); border: 1px solid rgba(255, 255, 255, .95); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(200, 16, 46, .08), 0 30px 60px -34px rgba(158, 12, 36, .5), 0 12px 26px -20px rgba(158, 12, 36, .3); }
.g-pic, .g-sin { position: relative; display: block; overflow: hidden; border-radius: 22px; background: var(--mist); }
.g-pic { aspect-ratio: var(--par, .8); }
.g-pic img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pop, 50% 20%); transition: transform .7s var(--ease); user-select: none; -webkit-user-drag: none; }
.g-pic img.tb, .g-sin img.tb { height: calc(100% + 4px); }
.g-pic::after, .g-sin::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(29, 29, 31, .06); pointer-events: none; }

/* ================= phone 4:5 carousel (the filtered set) ================= */
/* UX A1 closure: 40px of the next photo always peeks in at rest (the slide is the width less the gutter, gap and peek) */
.g-slides { position: relative; margin-top: 14px; --gap: 12px; --sw: calc(100cqw - var(--gut) - var(--gap) - 40px); }
.g-slides .car-viewport { padding: 4px 0 30px var(--gut); margin-bottom: -26px; }
.g-slide { overflow: visible; background: none; border-radius: 28px; }
.g-slide.is-off { display: none; }
.g-sbtn { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 28px; background: none; cursor: zoom-in; }
.g-sframe { position: absolute; inset: 0; }
.g-sin { width: 100%; height: 100%; }
.g-sin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }
/* landscape photos show whole on a blurred copy of themselves, so nobody in the scene is cut off */
.g-sin .g-blur { filter: blur(22px) saturate(1.15) brightness(.92); transform: scale(1.25); }
.g-sin .g-whole { object-fit: contain; }
.g-slide:not(.on) .g-sframe { opacity: .62; transition: opacity .4s ease; }
.g-slide.on .g-sframe { transition: opacity .4s ease; }
.g-scap { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; font-size: 14px; line-height: 20px; min-height: 38px; }
.g-scap .g-c { display: flex; flex-direction: column; min-width: 0; color: var(--gray); text-align: left; }
.g-scap .g-ct1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the slide's set on a quiet second line, so every slide says where it was taken */
.g-scap .g-ctx { font-size: 12.5px; line-height: 18px; color: var(--gray-blush); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-scount { margin-left: auto; flex: none; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.g-bar { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 10px; }
.g-arrow { width: 48px; height: 48px; background: #fff; border: 1px solid rgba(29, 29, 31, .1); box-shadow: 0 6px 16px rgba(158, 12, 36, .10); color: var(--ink); }
.g-arrow:not([disabled]):hover { border-color: rgba(200, 16, 46, .4); color: var(--red); }
.g-arrow:not([disabled]):active { transform: scale(.97); }
.g-arrow[disabled] { opacity: .4; cursor: default; box-shadow: none; }
.g-dots { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; }
.g-dots i { display: block; flex: none; width: 6px; height: 6px; border-radius: 999px; background: rgba(29, 29, 31, .22); transition: width .3s var(--ease), background-color .3s ease; }
.g-dots i.on { width: 20px; background: var(--red); }
/* more than 12 photos: dots would crowd the arrows, so a quiet progress line shows how far through the set you are
   (the counter above gives the number) */
.g-prog { position: relative; display: block; width: min(150px, 42vw); height: 4px; overflow: hidden; border-radius: 999px; background: rgba(29, 29, 31, .14); }
.g-prog i { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border-radius: inherit; background: var(--red) !important; transform: scaleX(var(--p, 0)); transform-origin: left center; transition: transform .35s var(--ease); }
.g-prog.is-off { display: none; }
/* the chapters under the carousel (each shown when the set holds its photos)
   UX A3: content, not a promo strip — no tint or box; a hairline, the clay icon, the facts, the credit and one action */
.g-note { display: flex; align-items: flex-start; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(29, 29, 31, .1); }
.g-note + .g-note { margin-top: 18px; }
.g-note.is-off { display: none; }
.g-note-b { min-width: 0; }
.g-note-ic { width: 40px; height: 40px; flex: none; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(158, 12, 36, .24)); }
.g-note-t { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.g-note-t span { display: block; font-weight: 400; color: var(--gray-blush); }
.g-note .g-credit { margin-top: 6px; color: var(--gray); }
.g-go { min-height: 48px; margin: 2px 0 -10px; padding: 0; gap: 4px; font-size: 15px; font-weight: 600; color: var(--red-deep); }
.g-go svg { transition: transform .2s var(--ease); }
.g-go:hover svg { transform: translateX(3px); }
.g-go.is-off { display: none; }

/* ================= the grid (phone: justified pairs in flow) ================= */
.g-grid { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; column-gap: 10px; row-gap: 26px; margin-top: 24px; }
.g-space { display: none; }
.is-slides .g-grid { display: none; }
.is-grid .g-slides { display: none; }
.g-item { position: relative; flex: none; display: flex; flex-direction: column; width: var(--pw, 100%); margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: right; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.g-item.is-off { display: none; }
.g-item:hover .g-pic img, .g-item:focus-visible .g-pic img, .g-item.hov .g-pic img { transform: scale(1.03); }
/* UX D4 similarity: every photo (grid tiles and the active slide) carries the same quiet open mark, bottom right,
   away from her face: a line expand icon in a white glass circle. Hover / focus widens it to "View photo" and lifts
   the frame (feedback in 100ms, done in 300). Static captions stay plain text. */
.g-frame { transition: transform .3s var(--ease), box-shadow .3s ease; }
.g-item:hover .g-frame, .g-item.hov .g-frame { transform: translateY(-4px); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(200, 16, 46, .14), 0 40px 70px -34px rgba(158, 12, 36, .58), 0 14px 30px -20px rgba(158, 12, 36, .36); }
.g-item:active .g-frame { transform: translateY(-1px) scale(.985); transition-duration: .1s; }
.g-open { position: absolute; z-index: 2; right: 10px; bottom: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 0; height: 32px; min-width: 32px; padding: 0 8px; border-radius: 999px; background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%); box-shadow: 0 6px 16px -6px rgba(29, 29, 31, .35); color: var(--ink); font: 600 13px/1 'Poppins', sans-serif; white-space: nowrap; pointer-events: none; transition: background-color .2s ease, color .2s ease, gap .3s var(--ease), padding .3s var(--ease); }
.g-open svg { display: block; flex: none; width: 15px; height: 15px; }
.g-open-l { display: inline-block; max-width: 0; overflow: hidden; opacity: 0; transition: max-width .3s var(--ease), opacity .2s ease; }
.g-item:hover .g-open, .g-item:focus-visible .g-open, .g-item.hov .g-open { gap: 6px; padding: 0 12px 0 10px; background: #fff; color: var(--red-deep); }
.g-item:hover .g-open-l, .g-item:focus-visible .g-open-l, .g-item.hov .g-open-l { max-width: 90px; opacity: 1; }
.g-slide:not(.on) .g-open { opacity: 0; }
/* phone pairs are narrow: the mark stays a small circle */
.g-grid .g-open { right: 8px; bottom: 8px; height: 30px; min-width: 30px; padding: 0 7px; }
.g-cap { display: block; margin-top: 10px; padding: 0 4px; font-size: 12.5px; line-height: 1.4; text-align: right; text-wrap: balance; }
.g-cap .g-n { margin-right: 6px; }
.g-n { font-weight: 600; color: var(--red); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.g-c { color: var(--gray); text-align: right; }
.g-item:focus-visible { outline: none; }
.g-item:focus-visible .g-frame { outline: 3px solid var(--red); outline-offset: 3px; }

/* the chapters (On stage, Festival Mass 2026): open headings in the flow of the photos — hairline, clay icon, H2,
   facts and the photo credit (UX A3 banner blindness: never a boxed strip that reads as an advert) */
.g-ch { position: relative; isolation: isolate; flex: none; width: 100%; margin-top: 10px; }
.g-ch.is-off { display: none; }
.g-ch-in { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; row-gap: 12px; align-items: start; padding: 24px 0 0; border-top: 1px solid rgba(29, 29, 31, .12); }
.g-ch-ic { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(158, 12, 36, .26)); }
.g-ch-h { margin-top: 8px; font-size: 22px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.g-ch-d { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 2px; }
.g-ch-d .data { font-size: 14.5px; color: var(--gray-blush); text-wrap: balance; }
.g-credit { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; color: var(--gray); }
.g-cam { display: inline-flex; flex: none; margin-top: 1px; color: var(--red); }
.g-cam svg { width: 15px; height: 15px; }
.g-credit .ph, .g-nw { white-space: nowrap; }

/* motion: desktop fades in on load and rests; phone/tablet frames wipe up from the bottom */
/* fill backwards (not both): once the fade is done the frame is free to lift on hover */
.g-frame, .g-slide { animation: gFade .8s var(--ease) backwards; animation-delay: calc(min(var(--i, 0), 10) * 60ms + 240ms); }
@keyframes gFade { from { opacity: 0; transform: translateY(18px); } }
.device-scroll .g-frame, .device-scroll .g-slide { animation-name: gWipe; animation-duration: .9s; animation-delay: calc(min(var(--i, 0), 3) * 100ms + 200ms); }
@keyframes gWipe { from { clip-path: inset(100% 0 0 0 round 28px); } }
@supports (animation-timeline: view()) {
  .device-scroll .g-item .g-frame { animation: gWipe linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
}

@container site (max-width: 370px) {
  .g-h1 { font-size: 36px; }
  .g-seg-b { min-width: 84px; padding: 0 10px; font-size: 14px; }
  .g-scap { font-size: 13.5px; }
  .g-chip { gap: 5px; padding: 0 10px 0 12px; font-size: 13.5px; }
  .g-chip.on::after { width: 11px; height: 6px; }  /* keeps the tick a tick (never a dropdown chevron) */
  .g-cap { font-size: 12px; }
}

/* ================= film band ================= */
.gal-film { padding: 72px 0 80px; overflow: hidden; }
.film-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; margin-bottom: 28px; }
.ftile { position: relative; isolation: isolate; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); border-radius: 28px; background: radial-gradient(90% 55% at 50% 34%, #24090F, #0B0708 72%); color: #fff; text-align: left; cursor: pointer; box-shadow: 0 40px 90px -46px rgba(200, 16, 46, .6); transition: transform .3s var(--ease); }
.ftile:active { transform: scale(.99); }
.ftile-arc { position: absolute; z-index: 0; left: -40%; right: -40%; top: 39%; height: 130%; border-radius: 50%; border-top: 2px solid rgba(255, 158, 168, .9); background: radial-gradient(50% 22% at 50% 0%, rgba(200, 16, 46, .34), rgba(200, 16, 46, 0)), #0B0708; box-shadow: 0 -30px 120px rgba(200, 16, 46, .5), 0 -3px 22px rgba(255, 92, 108, .55); animation: fBreathe 6s ease-in-out infinite; }
@keyframes fBreathe { 50% { box-shadow: 0 -38px 150px rgba(200, 16, 46, .62), 0 -3px 30px rgba(255, 92, 108, .7); } }
.ftile-specks { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ftile-specks i { position: absolute; left: var(--x); top: calc(var(--y) * .5); width: var(--s); height: var(--s); border-radius: 50%; background: #FCEEF0; opacity: var(--o); box-shadow: 0 0 6px rgba(252, 238, 240, .7); animation: fSpeck var(--t) ease-in-out infinite; animation-delay: var(--d); }
@keyframes fSpeck { 0% { transform: translateY(30px); opacity: 0; } 25%, 75% { opacity: var(--o); } 100% { transform: translateY(-50px); opacity: 0; } }
.ftile-play { position: absolute; z-index: 3; left: 50%; top: 32%; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; }
.ftile-play img { position: absolute; left: -19%; top: -19%; width: 138%; height: 138%; max-width: none; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); transition: transform .35s var(--ease); }
.ftile:hover .ftile-play img, .ftile:focus-visible .ftile-play img { transform: scale(1.06); }
.ftile-play i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255, 92, 108, .6); opacity: .45; transform: scale(1.12); animation: fPulse 2.4s ease-out infinite; }
.ftile-play i + i { animation-delay: 1.2s; }
@keyframes fPulse { from { transform: scale(1); opacity: .6; } to { transform: scale(1.3); opacity: 0; } }
.ftile-label { position: absolute; z-index: 3; left: 0; right: 0; top: calc(32% + 54px); text-align: center; font-size: 13px; font-weight: 500; letter-spacing: .01em; color: rgba(255, 255, 255, .72); }
.ftile-meta { position: absolute; z-index: 3; left: 12px; right: 12px; bottom: 12px; display: flex; flex-flow: row wrap; align-items: center; gap: 2px 0; padding: 16px 18px; border-radius: 22px; background: rgba(255, 255, 255, .08) !important; }
.fm-title { flex: 0 0 100%; font-size: 21px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.fm-dot { flex: none; width: 8px; height: 8px; margin: 2px 10px 0 1px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px rgba(255, 92, 108, .25), 0 0 12px rgba(255, 92, 108, .8); }
.fm-sub { font-size: 16px; font-weight: 500; color: #fff; margin: 2px 0 4px; }
.ftile-meta .data { flex: 0 0 100%; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.fm-nw { white-space: nowrap; }
.film-more { display: flex; flex-direction: column; align-items: stretch; gap: 16px; margin-top: 20px; }
.ghost { display: flex; align-items: center; justify-content: center; height: 120px; padding: 16px; border-radius: 22px; border: 1.5px dashed var(--coral); background: rgba(255, 92, 108, .12); color: #fff; font-size: 13px; font-weight: 600; text-align: center; }
.fb-pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; align-self: center; min-height: 52px; padding: 0 24px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(255, 255, 255, .55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 8px 24px -10px rgba(0, 0, 0, .6); color: #fff; font-size: 17px; font-weight: 600; letter-spacing: -.012em; text-decoration: none; transition: background-color .2s ease, transform .1s ease-out, border-color .2s ease; }
.fb-pill .social-c { width: 40px; height: 40px; }
.fb-pill:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .8); color: #fff; transform: translateY(-1px); }
.fb-pill:active { transform: translateY(1px) scale(.98); }
@media (prefers-reduced-motion: reduce) {
  .ftile-specks { display: none; }
  .ftile-play i { animation: none; opacity: 0; }
  .g-item, .g-ch { transition: none !important; }
  .g-frame { transform: none !important; }
  .g-open, .g-open-l { transition: opacity .2s ease; }
  .g-prog i { transition: none; }
}

/* ================= tablet: justified rows in flow ================= */
@container site (min-width: 700px) {
  .gal-shell { padding-bottom: 100px; }
  .g-seg, .g-slides { display: none !important; }
  .g-tools { display: none; }
  .g-filters { display: flex; flex-wrap: wrap; margin-top: 22px; gap: 8px; }
  .g-lg { display: inline; }
  .g-sh { display: none; }
  .g-chip { gap: 8px; padding: 0 14px 0 16px; font-size: 14.5px; }
  .g-chip.on::after { width: 14px; margin-left: 2px; }
  .g-ct { min-width: 24px; height: 22px; padding: 0 7px; font-size: 12.5px; }
  .g-grid { display: flex !important; column-gap: 16px; row-gap: 36px; margin-top: 40px; }
  .g-item { width: var(--tw); }
  .g-pic { aspect-ratio: var(--tar); }
  .g-pic img { object-position: var(--top); }
  .g-grid .g-open { right: 10px; bottom: 10px; height: 32px; min-width: 32px; padding: 0 8px; }
  .g-cap { margin-top: 12px; font-size: 13px; }
  .g-cap .g-n { margin-right: 7px; }
  /* the chapter: one open row under a hairline (title left, facts right) */
  .g-ch { margin-top: 12px; }
  .g-ch-in { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; align-items: start; padding: 32px 0 0; }
  .g-ch-ic { width: 64px; height: 64px; }
  .g-ch-h { font-size: 24px; }
  .g-ch-d { grid-column: auto; }

  .gal-film { padding: 100px 0 100px; }
  .film-head { margin-bottom: 36px; }
  .ftile { aspect-ratio: 704 / 400; border-radius: 32px; }
  .ftile-arc { left: -24%; right: -24%; top: 72%; height: 150%; }
  .ftile-specks i { top: calc(var(--y) * .8); }
  /* the meta card keeps the top-left corner; the play button sits low on the horizon, its ring clear of the card */
  .ftile-play { top: 64%; width: 88px; height: 88px; margin: -44px 0 0 -44px; }
  .ftile-label { top: calc(64% + 60px); }
  .ftile-meta { left: 28px; top: 28px; right: auto; bottom: auto; width: 252px; padding: 16px 20px; border-radius: 22px; }
  .fm-title { font-size: 22px; margin-bottom: 4px; }
  .ftile-meta .data { font-size: 13.5px; }
  .film-more { flex-direction: row; align-items: center; justify-content: center; gap: 32px; margin-top: 24px; }
  .ghost { width: 300px; height: auto; aspect-ratio: 380 / 214; }
}

/* ================= desktop: the numbered three-lane stagger ================= */
@container site (min-width: 1100px) {
  .gal-shell.first { padding-top: 120px !important; }
  .gal-shell { padding-bottom: 120px; }
  .g-aura .b1 { width: 900px; right: -300px; top: -360px; }
  .g-aura .b2 { width: 640px; right: -180px; top: -200px; }
  .g-aura .b3 { width: 820px; left: -380px; }
  .g-aura .b4 { width: 900px; right: -420px; }
  .g-aura .b5 { width: 860px; left: -380px; }
  .g-wrap { position: relative; }
  /* the title sits over lanes 1-2, beside photo 01 (the reserved block is 300px tall) */
  .g-head { position: absolute; z-index: 2; left: var(--gut); top: 0; width: calc((100% - 2 * var(--gut) - 64px) / 3 * 2 + 32px); padding-top: 28px; }
  .g-line { margin-top: 16px; }
  .g-filters { margin-top: 26px; }
  .g-grid { display: block !important; margin-top: 0; container-type: inline-size; }
  .g-space { display: block; height: var(--dH); }
  .g-item, .g-ch { position: absolute; left: var(--dl); top: var(--dt); width: var(--dw); margin: 0; transition: left .6s var(--ease), top .6s var(--ease), width .6s var(--ease); }
  .g-frame { padding: 8px; border-radius: 32px; }
  .g-pic { aspect-ratio: var(--dar); border-radius: 24px; }
  .g-pic img { object-position: var(--dop); }
  .g-grid .g-open { right: 14px; bottom: 14px; height: 36px; min-width: 36px; padding: 0 9.5px; font-size: 14px; }
  .g-open svg { width: 16px; height: 16px; }
  .g-item:hover .g-open, .g-item:focus-visible .g-open, .g-item.hov .g-open { padding: 0 14px 0 12px; }
  /* one caption line under every frame (14px gap + 20px), so the stagger positions hold */
  .g-cap { display: flex; justify-content: flex-end; align-items: baseline; gap: 8px; height: 20px; margin-top: 14px; padding: 0 6px; font-size: 13px; line-height: 20px; white-space: nowrap; overflow: hidden; }
  .g-cap .g-n { margin-right: 0; }
  .g-c { overflow: hidden; text-overflow: ellipsis; }
  /* a chapter opens its group the way the title opens the page: over lanes 1-2, its first photo beside it */
  .g-ch-in { grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; padding: 32px 0 0; }
  .g-ch-ic { width: 72px; height: 72px; }
  .g-ch-h { font-size: 28px; }
  .g-ch-d .data { font-size: 15px; }

  .gal-film { padding: 120px 0; }
  .film-head { margin-bottom: 44px; }
  .ftile { aspect-ratio: 2 / 1; border-radius: 36px; }
  .ftile-arc { left: -20%; right: -20%; top: 55%; height: 170%; }
  .ftile-specks i { top: var(--y); }
  .ftile-play { top: 48%; width: 104px; height: 104px; margin: -52px 0 0 -52px; }
  .ftile-label { top: calc(48% + 72px); font-size: 14px; }
  .ftile-meta { left: 40px; top: 40px; width: 380px; padding: 26px 28px; border-radius: 24px; }
  .fm-title { font-size: 28px; }
  .fm-sub { font-size: 17px; }
  .ftile-meta .data { font-size: 15px; }
  .film-more { margin-top: 32px; }
  .ghost { width: 380px; height: 214px; }
}

/* ================= S4 lightbox additions (outside .site: media queries) ================= */
.glb-slide.off { display: none; }
.glb-slide .glb-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(28px) saturate(1.3) brightness(.42); transform: scale(1.25); }
.glb-slide:not(.land) .glb-bg { display: none; }
.glb-slide.land img:not(.glb-bg) { position: absolute; inset: 0; object-fit: contain; }
.glb-slide img.tb:not(.glb-bg) { height: calc(100% + 4px); }
.glb-zoom { display: none; }
/* 25 dots would run wider than the viewer: from 13 photos up the counter, arrows, keys and swipe carry it */
.glb-dots:has(> :nth-child(13)) { display: none; }
@media (max-width: 699px) {
  /* more than five 44px dots cannot sit between the arrows on a phone: the counter, arrows and swipe carry it */
  .glb-dots:has(> :nth-child(6)) { display: none; }
  /* UX A1 closure: the slide is 72px narrower than the screen, so 24px of the next (and previous) photo peeks in
     at rest — portraits and landscapes alike */
  .glb { --lbw: calc(100vw - 72px); }
  .glb-slide:not(.on) { opacity: .6; }
  /* landscape photos: the whole scene at 3:2 across the slide (no letterbox card); the neighbours still peek */
  .glb-slide.land.on { overflow: visible; background: none; box-shadow: none; }
  .glb-slide.land.on .glb-bg { display: none; }
  .glb-slide.land.on img:not(.glb-bg) { inset: auto; left: 0; top: 50%; width: 100%; max-width: none; height: auto; aspect-ratio: 3 / 2; transform: translateY(-50%); object-fit: cover; border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
  /* zoomed, the photo takes the full width, so the neighbours step back */
  .glb-track:has(> .glb-slide.zoom) > .glb-slide:not(.on) { opacity: 0; }
  /* Zoom (button or double tap): 2.5x, opened on Adi's face, panned by dragging (the slide scrolls) */
  .glb-slide.land.on.zoom { overflow: auto; flex-basis: 100vw; margin-left: calc((var(--lbw) - 100vw) / 2); border-radius: 0; touch-action: pan-x pan-y; overscroll-behavior: contain; scrollbar-width: none; cursor: grab; }
  .glb-slide.land.on.zoom::-webkit-scrollbar { display: none; }
  .glb-slide.land.on.zoom img:not(.glb-bg) { left: 0; top: 0; width: 250vw; transform: none; border-radius: 0; box-shadow: none; }
  .glb.is-zoom, .glb.is-zoom .glb-stage { touch-action: pan-x pan-y; }
  .glb { touch-action: pinch-zoom; }
  .glb-stage { touch-action: pinch-zoom; }
  .glb-zoom:active { transform: scale(.97); }
  .glb-zoom { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1.5px solid rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; font: 600 14px/1 'Poppins', sans-serif; cursor: pointer; }
  .glb-zoom svg { display: block; }
  .glb-zoom.is-off { display: none; }
  .glb-zoom .z-out, .glb-zoom.on .z-in { display: none; }
  .glb-zoom.on .z-out { display: inline-flex; }
  .glb-zoom.on { background: #fff; border-color: #fff; color: var(--ink); }
  .glb-zoom:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
  .glb-cap .g-lbcr { display: none; }
  /* the caption is plain text (the set it belongs to takes a second, quieter line) */
  .glb-cap { align-items: baseline; max-width: calc(100vw - 40px); padding: 0 8px; line-height: 1.35; }
  .glb-cap .lb-ctx { display: block; color: rgba(255, 255, 255, .62); font-weight: 400; }
  .glb-cap .lb-sep { display: none; }
}
@media (min-width: 1100px) {
  /* desktop: a landscape stage, so the group photos show big; portraits show whole on their blur */
  .glb { --lbw: min(calc(var(--lbh) * 1.5), calc(100vw - 320px)); }
  .glb.ov-abs { --lbh: 620px; --lbw: min(930px, calc(100vw - 320px)); }
  .glb-slide .glb-bg, .glb-slide:not(.land) .glb-bg { display: block; }
  .glb-slide img:not(.glb-bg) { position: absolute; inset: 0; object-fit: contain; object-position: 50% 50% !important; }
}
.glb-cap .lb-ctx { color: rgba(255, 255, 255, .62); font-weight: 400; }

/* ================= UX laws pass (refs/ux-laws.md) — gallery-local versions of shared fixes ================= */
/* D4 similarity: in the viewer only the controls look like controls (×, arrows, dots, zoom); the counter and the
   caption are plain text, not bordered pills */
.glb-count { background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0 6px; color: rgba(255, 255, 255, .86); }
.glb-cap { background: none; border: 0; }
/* the video sheet's "Plays on Facebook" is a fact, not a button */
.modal .mm-chip { min-height: 0; padding: 0; border: 0; background: none !important; box-shadow: none; gap: 6px; color: rgba(255, 255, 255, .78); font-size: 14px; cursor: default; }
.modal .mm-chip svg { width: 16px; height: 16px; }
/* A2 figure-ground: on the full-length desktop board the overlays sit in a 900px band near their trigger; the rest
   of the board dims too (page behind <= ~3:1) */
.glb.ov-abs { box-shadow: 0 0 0 100vmax rgba(11, 7, 8, .8); }
.modal.ov-abs:not(.lightbox) { box-shadow: 0 0 0 100vmax rgba(10, 2, 5, .74); }
/* C6 Von Restorff: one filled red button per screen — in phone / tablet frames the sticky bar's red "Send an enquiry"
   steps aside while the pre-footer's own red "Send an enquiry" is on screen, and comes back once it has scrolled past */
@supports (animation-timeline: view()) and (timeline-scope: --a) {
  .device-scroll .site:has(> main.gal) { timeline-scope: --gpre; }
  /* the pre-footer clips with overflow: clip (not hidden), so it is not a scroll container and the CTA row's view
     timeline tracks the frame's own scroll */
  .device-scroll .site:has(> main.gal) .pre { overflow: clip; }
  .device-scroll .site:has(> main.gal) .pre-copy .btn-row { view-timeline: --gpre block; }
  .device-scroll .site:has(> main.gal) .mbar { animation: adiBarIn linear both, gBarAway linear none; animation-timeline: --adipage, --gpre; animation-range: 0 640px, cover 0% cover 100%; }
  .is-static .device-scroll .site .mbar { animation: none; }
}
@keyframes gBarAway { 0% { opacity: 1; transform: none; visibility: visible; } 14%, 86% { opacity: 0; transform: translateY(110%); visibility: hidden; } 100% { opacity: 1; transform: none; visibility: visible; } }
