/* fl718-nyc-2021-2022-v2.css — NYC 2021-2022 desktop styles
   Version: 1.0.1 (file fl718-nyc-2021-2022-v2.css; registry ver 1.0.1)
   Last updated: 2026-10-26 (audit build, Batch 2, desktop only)
   v1 -> v2 (the unsuffixed fl718-nyc-2021-2022.css stays on the server as the revert path):
     - hero: 3840x2160 cover box on a black start, concept a3b "cast self" text (title, year, two-row byline),
       container-query placement, end state keyed on body.fl718-hero-done / body.fl718-no-gsap / reduced motion
       (the old :not(.fl718-js-loaded) end-state block is gone: it painted the finished photograph first);
     - grid: tiles hidden from the first frame by html.fl718-grid-armed (set by a pre-paint script in the template),
       no base opacity:0; sentinel boxes and the "Counterpoint" touch/seam rules;
     - lightbox rebuilt: solid #0a0908, no counter, 2015-2022-style controls, box sized by script;
     - removed: the dead after-content block (the shared template-parts/after-content.php partial owns it).
   THIS STYLESHEET IS ALSO ENQUEUED, UNGUARDED, ON THE MOBILE TEMPLATE. Every new or changed rule that the
   mobile sheet does not override is scoped with :not(.fl718-nyc-2021-2022-mobile-page) (NYC 2015-2022 precedent). */

    /* ============================================================
       ALL CSS SCOPED TO: body.fl718-nyc-2021-2022-page
       Every rule below uses this body class as its scope prefix.
       Never write an unscoped rule — the site shares one stylesheet
       cascade and unscoped rules bleed into other pages.
       ============================================================ */

    /* ------------------------------------------------------------
       BASE
       ------------------------------------------------------------ */
    body.fl718-nyc-2021-2022-page {
      margin: 0;
      padding: 0;
      /* overflow-x: clip — NOT hidden. hidden creates a new scroll
         container that breaks position:sticky and ScrollTrigger pins
         site-wide. clip clips visually without that side effect.
         Never overflow-x:hidden on body or html on this project. */
      overflow-x: clip;
      background-color: #efeeec;
      color: #211f1c;
      -webkit-font-smoothing: antialiased;
    }

    /* Box-sizing via :where() — zero specificity, never fights another rule */
    :where(body.fl718-nyc-2021-2022-page) *,
    :where(body.fl718-nyc-2021-2022-page) *::before,
    :where(body.fl718-nyc-2021-2022-page) *::after {
      box-sizing: border-box;
    }

    body.fl718-nyc-2021-2022-page img {
      max-width: 100%;
      display: block;
    }

    body.fl718-nyc-2021-2022-page .fl718-ny21-visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }


    /* ============================================================
       HERO — concept a3b (audit 2026-10-25, Seamus-approved), 3840x2160 master.
       The photograph fills a cover box; the starting frame is BLACK and the
       photograph, scrim and every line of text start hidden. NEW YORK CITY,
       the year and the two-row byline are "cast self" text: a CSS copy of each
       line (::after, data-t) driven by --sx / --sy / --sa, so the cast can
       never change layout.
       MATCHED PAIR: every start state below has its end state in the
       reduced-motion block and in the body.fl718-hero-done / body.fl718-no-gsap
       block. The end state is NOT keyed on :not(.fl718-js-loaded) (that painted
       the finished photograph first, then black). JS-disabled visitors get the
       end state from the <noscript><style> in the template. Ship both or neither.

       SCOPING: this stylesheet is ALSO enqueued, unguarded, on the mobile
       template. Every hero rule below that the mobile sheet does not itself
       override is scoped with :not(.fl718-nyc-2021-2022-mobile-page). The
       un-scoped declarations are the ones mobile keeps unchanged.
       ============================================================ */

    /* Dark first-viewport band (desktop template only): whatever paints before
       the hero parses is the hero's own black, never beige. */
    body.fl718-nyc-2021-2022-page:not(.fl718-nyc-2021-2022-mobile-page) {
      background-image: linear-gradient(#000, #000);
      background-repeat: no-repeat;
      background-position: 0 0;
      background-size: 100% 100vh;
    }

    body.fl718-nyc-2021-2022-page .fl718-ny21-hero {
      position: relative;
      width: 100%;
      height: 100vh;
      overflow: clip;
      background-color: #26241f;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    body.fl718-nyc-2021-2022-page:not(.fl718-nyc-2021-2022-mobile-page) .fl718-ny21-hero {
      display: block;
      background-color: #000;
    }
    body.fl718-nyc-2021-2022-page:not(.fl718-nyc-2021-2022-mobile-page) .fl718-ny21-hero picture {
      position: absolute;
      inset: 0;
      display: block;
    }

    body.fl718-nyc-2021-2022-page .fl718-ny21-hero__image {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center center;
      display: block;
      opacity: 0;
      transform-origin: center center;
    }
    body.fl718-nyc-2021-2022-page:not(.fl718-nyc-2021-2022-mobile-page) .fl718-ny21-hero__image {
      position: absolute;
      inset: 0;
      max-width: none;
      object-fit: cover;
      object-position: 50% 50%;
    }

    body.fl718-nyc-2021-2022-page .fl718-ny21-hero__gradient {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 72%;
      background:
        linear-gradient(to bottom, rgba(16, 14, 11, 0.62) 0%, transparent 100%),
        radial-gradient(ellipse at 0% 0%, rgba(18, 16, 13, 0.52) 0%, transparent 66%);
      z-index: 5;
      pointer-events: none;
      opacity: 0;
    }

    /* Title block holds ONLY the byline. Fallback placement (no container
       queries): 73% from the left. */
    body.fl718-nyc-2021-2022-page .fl718-ny21-hero__title-block {
      position: absolute;
      top: 50%;
      left: 73%;
      right: clamp(60px, 11vw, 140px);
      z-index: 10;
      pointer-events: none;
    }

    body.fl718-nyc-2021-2022-page .fl718-ny21-hero__title {
      position: absolute;
      top: clamp(12px, 4vh, 40px);
      left: 44%;
      right: clamp(24px, 5vw, 64px);
      z-index: 10;
      pointer-events: none;
      display: block;
      font-family: 'Oswald', 'Arial Narrow', sans-serif;
      font-size: clamp(40px, 5.4vw, 78px);
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: rgba(244, 242, 236, 0.97);
      line-height: 0.96;
      margin: 0;
      opacity: 0;
      text-shadow: 0 2px 24px rgba(8, 7, 5, 0.58), 0 1px 6px rgba(8, 7, 5, 0.38);
    }

    body.fl718-nyc-2021-2022-page .fl718-ny21-hero__subtitle-block {
      position: absolute;
      top: calc(clamp(12px, 4vh, 40px) + clamp(40px, 5.4vw, 78px) * 0.96 + clamp(10px, 1.6vh, 18px));
      left: 44%;
      right: clamp(24px, 5vw, 64px);
      z-index: 10;
      pointer-events: none;
      display: flex;
      align-items: center;
      gap: 14px;
      opacity: 0;
    }

    body.fl718-nyc-2021-2022-page .fl718-ny21-hero__subtitle-rule {
      display: block;
      width: 1px;
      height: 16px;
      background: rgba(238, 236, 230, 0.24);
      flex-shrink: 0;
    }

    body.fl718-nyc-2021-2022-page .fl718-ny21-hero__year {
      display: block;
      font-family: 'DM Sans', system-ui, sans-serif;
      font-size: clamp(9px, 0.88vw, 12px);
      font-weight: 300;
      font-style: italic;
      letter-spacing: 0.26em;
      color: rgba(238, 236, 230, 0.88);
      text-shadow: 0 1px 3px rgba(8, 7, 5, 0.78), 0 1px 10px rgba(8, 7, 5, 0.70);
    }

    /* The byline carries no opacity of its own on desktop: its lines
       (.fl718-ny21-line__t) are the hidden things. (Mobile's sheet sets its
       own byline opacity.) */
    body.fl718-nyc-2021-2022-page .fl718-ny21-hero__byline {
      margin: 0;
      max-width: 100%;
      font-family: 'Oswald', 'Arial Narrow', sans-serif;
      font-weight: 400;
      font-size: clamp(15px, 1.34vw, 21px);
      line-height: 1.5;
      letter-spacing: 0.01em;
      color: rgba(240, 238, 232, 0.97);
      text-shadow: 0 1px 3px rgba(8, 7, 5, 0.80), 0 1px 14px rgba(8, 7, 5, 0.78);
    }

    /* Resting colours, colour plan 3 (brick to steel) — desktop only. */
    body.fl718-nyc-2021-2022-page:not(.fl718-nyc-2021-2022-mobile-page) .fl718-ny21-hero__year { color: #a9c3cd; }
    body.fl718-nyc-2021-2022-page:not(.fl718-nyc-2021-2022-mobile-page) .fl718-ny21-hero__byline { color: #c3d3da; }

    /* Byline lines (desktop markup only: the mobile template has none of these classes). */
    body.fl718-nyc-2021-2022-page .fl718-ny21-row { display: block; white-space: nowrap; }
    body.fl718-nyc-2021-2022-page .fl718-ny21-line { display: block; white-space: nowrap; position: relative; }
    body.fl718-nyc-2021-2022-page .fl718-ny21-line--seg { display: inline-block; }
    body.fl718-nyc-2021-2022-page .fl718-ny21-line__t { display: inline-block; opacity: 0; }

    /* Cast self: custom properties + ::after copy of the line (data-t). */
    body.fl718-nyc-2021-2022-page:not(.fl718-nyc-2021-2022-mobile-page) .fl718-ny21-line,
    body.fl718-nyc-2021-2022-page:not(.fl718-nyc-2021-2022-mobile-page) .fl718-ny21-hero__title { --sx: 0px; --sy: 0px; --sa: 0; }
    body.fl718-nyc-2021-2022-page:not(.fl718-nyc-2021-2022-mobile-page) .fl718-ny21-line::after,
    body.fl718-nyc-2021-2022-page:not(.fl718-nyc-2021-2022-mobile-page) .fl718-ny21-hero__title::after {
      content: attr(data-t);
      position: absolute;
      left: 0;
      top: 0;
      z-index: -1;
      white-space: nowrap;
      pointer-events: none;
      text-shadow: none;
      color: rgba(59, 27, 12, var(--sa));
      transform: translate(var(--sx), var(--sy));
    }

    /* Placement against THIS photograph: container-query units track the
       photo's cover crop. Fallback (no cqw support): the 73% rule above. */
    @supports (width: 1cqw) {
      body.fl718-nyc-2021-2022-page:not(.fl718-nyc-2021-2022-mobile-page) .fl718-ny21-hero { container-type: size; }
      body.fl718-nyc-2021-2022-page:not(.fl718-nyc-2021-2022-mobile-page) .fl718-ny21-hero__title-block {
        --ps: max(calc(100cqw / 3840), calc(100cqh / 2160));
        left: calc(50cqw + (2970.5 - 1920) * var(--ps));
        right: auto;
        width: 0;
      }
      body.fl718-nyc-2021-2022-page:not(.fl718-nyc-2021-2022-mobile-page) .fl718-ny21-hero__byline {
        width: max-content;
        max-width: none;
        transform: translateX(-50%);
      }
    }

    /* END STATE: used by the JS (class fl718-hero-done) and by no-GSAP.
       Content is never left hidden. */
    body.fl718-nyc-2021-2022-page.fl718-hero-done .fl718-ny21-hero__image,
    body.fl718-nyc-2021-2022-page.fl718-hero-done .fl718-ny21-hero__gradient,
    body.fl718-nyc-2021-2022-page.fl718-hero-done .fl718-ny21-hero__title,
    body.fl718-nyc-2021-2022-page.fl718-hero-done .fl718-ny21-hero__subtitle-block,
    body.fl718-nyc-2021-2022-page.fl718-hero-done .fl718-ny21-line,
    body.fl718-nyc-2021-2022-page.fl718-hero-done .fl718-ny21-line__t,
    body.fl718-nyc-2021-2022-page.fl718-no-gsap .fl718-ny21-hero__image,
    body.fl718-nyc-2021-2022-page.fl718-no-gsap .fl718-ny21-hero__gradient,
    body.fl718-nyc-2021-2022-page.fl718-no-gsap .fl718-ny21-hero__title,
    body.fl718-nyc-2021-2022-page.fl718-no-gsap .fl718-ny21-hero__subtitle-block,
    body.fl718-nyc-2021-2022-page.fl718-no-gsap .fl718-ny21-line,
    body.fl718-nyc-2021-2022-page.fl718-no-gsap .fl718-ny21-line__t {
      opacity: 1;
    }

    /* Reduced motion — hero shows its END STATE immediately (skip the
       animation, KEEP the content). Desktop only: mobile's sheet carries its own. */
    @media (prefers-reduced-motion: reduce) {
      body.fl718-nyc-2021-2022-page:not(.fl718-nyc-2021-2022-mobile-page) .fl718-ny21-hero__image,
      body.fl718-nyc-2021-2022-page:not(.fl718-nyc-2021-2022-mobile-page) .fl718-ny21-hero__gradient,
      body.fl718-nyc-2021-2022-page:not(.fl718-nyc-2021-2022-mobile-page) .fl718-ny21-hero__title,
      body.fl718-nyc-2021-2022-page:not(.fl718-nyc-2021-2022-mobile-page) .fl718-ny21-hero__subtitle-block,
      body.fl718-nyc-2021-2022-page:not(.fl718-nyc-2021-2022-mobile-page) .fl718-ny21-line,
      body.fl718-nyc-2021-2022-page:not(.fl718-nyc-2021-2022-mobile-page) .fl718-ny21-line__t {
        opacity: 1;
      }
    }


    /* ============================================================
       GALLERY GRID — CSS-columns masonry
       CSS columns, NOT CSS Grid. Most frames are landscape (one portrait: the tower) (measured,
       not guessed), which is the masonry family's case.

       3 columns desktop -> 2 at 768px. This is the DESKTOP sheet; a
       mobile template would get its own single-column sheet with no
       width query at all (not built in this desktop scaffold).

       WARNING — column-count fills COLUMN-FIRST. Once a real sequence
       exists (this scaffold ships manifest order, a known placeholder),
       it must be re-checked against RENDERED columns at 3-col, not
       source order — see Monument Valley / White Sands precedent.
       ============================================================ */

    body.fl718-nyc-2021-2022-page .fl718-ny21-grid {
      columns: 3;
      column-gap: 8px;
      padding: 8px;
      padding-top: 14vh;
      padding-bottom: 12vh;
    }

    @media (max-width: 768px) {
      body.fl718-nyc-2021-2022-page .fl718-ny21-grid {
        columns: 2;
        padding-top: 10vh;
      }
    }

    /* ------------------------------------------------------------
       GRID ITEMS
       break-inside: avoid — stops masonry breaking an image mid-column.
       margin: 0 0 8px — <figure> carries a UA margin that escapes a
       :where() reset, so it is zeroed explicitly here.
       No base opacity:0: the tiles are hidden by html.fl718-grid-armed
       (see the Counterpoint rules below), so no class = fail open.
       NO CAPTIONS IN THE GRID. The grid is a pure visual field;
       all metadata lives in the lightbox only.
       ------------------------------------------------------------ */

    body.fl718-nyc-2021-2022-page .fl718-ny21-item {
      break-inside: avoid;
      margin: 0 0 8px 0;
      /* overflow:visible (not clip) — "Perimeter Frame Snap" hover
         (below) casts an outward box-shadow into the grid gutter, which
         a clip would cut off. Safe: the <img> itself is width:100%/
         height:auto/display:block and can never overflow its own box
         regardless of this property. */
      overflow: visible;
      cursor: pointer;
      position: relative;
      display: block;
    }

    body.fl718-nyc-2021-2022-page .fl718-ny21-item:focus {
      outline: none;
    }
    body.fl718-nyc-2021-2022-page .fl718-ny21-item:focus-visible {
      outline: 2px solid rgba(214, 208, 198, 0.9);
      outline-offset: 3px;
    }

    body.fl718-nyc-2021-2022-page .fl718-ny21-item img {
      width: 100%;
      height: auto;
      display: block;
    }

    /* ------------------------------------------------------------
       GRID ENTRANCE — "Counterpoint". Tiles are hidden from the first frame by
       the class a pre-paint script in the template puts on <html> (reduced
       motion never arms; any failure removes it: fail open).
       ------------------------------------------------------------ */
    html.fl718-grid-armed body.fl718-nyc-2021-2022-page .fl718-ny21-item { opacity: 0; }

    /* Invisible sentinel boxes the observer watches instead of the tiles. */
    .fl718-ny21-sentinels { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; visibility: hidden; }
    .fl718-ny21-sentinels i { position: absolute; display: block; }
    body.fl718-nyc-2021-2022-page:not(.fl718-nyc-2021-2022-mobile-page) #fl718-ny21-grid-main { position: relative; }
    /* The old desktop sheet gave the phone close button its hover transition; keep it. */
    body.fl718-nyc-2021-2022-mobile-page .fl718-ny21-lb-close-btn { transition: background .2s ease; }

    /* Entrance touches: overlays only, removed when the tile lands. */
    body.fl718-nyc-2021-2022-page .fl718-ny21-touch { position: absolute; pointer-events: none; }
    body.fl718-nyc-2021-2022-page .fl718-ny21-seam { left: 0; right: 0; height: 2px; background: #c3d3da; z-index: 2; }
    body.fl718-nyc-2021-2022-page .fl718-ny21-seam.is-bottom { bottom: 0; }
    body.fl718-nyc-2021-2022-page .fl718-ny21-seam.is-top { top: 0; }
    @media (prefers-reduced-motion: reduce) {
      body.fl718-nyc-2021-2022-page .fl718-ny21-touch { display: none !important; }
    }

    /* ── HOVER: "Perimeter Frame Snap" — LOCKED 2026-09-22.
       Chosen via a visual-concept-generator pass, two rounds. Round 1
       (Cast Shadow/Gate, Chain-Link Fracture, Signal Cut/Blackout,
       Corner Shadow Wedge) put a shadow/mesh/darkening layer ON TOP of
       the photo's own pixels; Seamus called all three "too much" /
       "blocks the photo" / "darkens into the photo too much" (the
       fourth, Signal Cut, was too subtle to register at all). Round 2
       fixed this by moving the effect OUTSIDE the image entirely.

       MECHANISM: four independent 3px hairlines (one per edge) plus two
       small L-shaped corner brackets snap flush against the photo's own
       four edges from the OUTSIDE of the image box — like a steel sash
       or security-gate track clamping onto a frame that was already
       there. Two diagonal halves close together (top+left from the
       top-left corner, bottom+right from the bottom-right corner, a
       tiny stagger) so the frame reads as hardware engaging from two
       directions, echoing the grid's own "Steel Settle" entrance and
       the site's fire-escape/security-gate material vocabulary. A hard,
       tight cast shadow rides the item's own box-shadow — never a layer
       over the <img> — falling into the grid gutter around the card,
       so it still reads as HARD and SHADOW-ADJACENT per the editorial
       notes ("harder, more shadow-based than LA's warm 'light finds
       it'") without ever obscuring the photograph. Fires on
       focus/blur too.

       .fl718-ny21-item__veil is retired (display:none) — kept only as an
       empty aria-hidden div in each figure's markup so 75 figures don't
       need editing. The edge/corner divs are injected by Script 4 (one
       set per item); GSAP owns their transform/opacity/box-shadow.

       Full narrative: Session 256+ in LOCATION_PAGES_SESSION_LOG.md.
       Prototyped in nyc-2021-2022-concepts/hover-effects/round-2/
       perimeter-frame-snap.html before landing here. ── */
    body.fl718-nyc-2021-2022-page .fl718-ny21-item__veil {
      display: none;
    }

    body.fl718-nyc-2021-2022-page .fl718-ny21-frame-edge {
      position: absolute;
      background: rgba(230, 226, 218, 0.94);
      pointer-events: none;
      z-index: 2;
    }
    body.fl718-nyc-2021-2022-page .fl718-ny21-frame-edge--top {
      top: 0; left: 0; right: 0; height: 3px;
      transform-origin: left top;
    }
    body.fl718-nyc-2021-2022-page .fl718-ny21-frame-edge--bottom {
      bottom: 0; left: 0; right: 0; height: 3px;
      transform-origin: right bottom;
    }
    body.fl718-nyc-2021-2022-page .fl718-ny21-frame-edge--left {
      top: 0; bottom: 0; left: 0; width: 3px;
      transform-origin: left top;
    }
    body.fl718-nyc-2021-2022-page .fl718-ny21-frame-edge--right {
      top: 0; bottom: 0; right: 0; width: 3px;
      transform-origin: right bottom;
    }

    /* Corner brackets — small L-shaped hardware marks, drawn with two
       border strokes on a real div (not ::before, so GSAP can tween it
       directly). Sit exactly at the corner, legs running along the
       existing frame edges, never intruding onto the photo. */
    body.fl718-nyc-2021-2022-page .fl718-ny21-frame-corner {
      position: absolute;
      width: 14px;
      height: 14px;
      pointer-events: none;
      z-index: 3;
      opacity: 0;
    }
    body.fl718-nyc-2021-2022-page .fl718-ny21-frame-corner--tl {
      top: 0; left: 0;
      border-top: 3px solid rgba(230, 226, 218, 0.98);
      border-left: 3px solid rgba(230, 226, 218, 0.98);
    }
    body.fl718-nyc-2021-2022-page .fl718-ny21-frame-corner--br {
      bottom: 0; right: 0;
      border-bottom: 3px solid rgba(230, 226, 218, 0.98);
      border-right: 3px solid rgba(230, 226, 218, 0.98);
    }

    @media (prefers-reduced-motion: reduce) {
      body.fl718-nyc-2021-2022-page .fl718-ny21-frame-edge,
      body.fl718-nyc-2021-2022-page .fl718-ny21-frame-corner {
        display: none !important;
      }
    }


    /* ============================================================
       LIGHTBOX (rebuilt 2026-10-25/26 from the approved desktop prototype)
       Layers:
         9000  .fl718-ny21-lb-dark   — solid #0a0908 backdrop
         9100  .fl718-ny21-lb-stage  — photograph + "Big Gate" hardware
         9200  .fl718-ny21-lb-ui     — close, prev, next (NO counter)

       Only the X and Esc close; clicking empty space does nothing. The
       photograph's box is sized by script from its declared width/height
       (never naturalWidth), so there are no max-width / max-height caps here.
       Controls are NYC 2015-2022's (44px target, 18px icon, transparent, no
       ring); padding:0 because GeneratePress styles every <button>.

       CAPTION CONTRACT: the only thing that produces a caption is data-medium
       (analog / analog-color show the film stock from data-film).

       This stylesheet is also enqueued on the mobile template, whose own sheet
       defines the whole mobile lightbox (lb-close-btn, lb-counter). Rules the
       mobile sheet does not override are scoped away from it.
       ============================================================ */

    body.fl718-nyc-2021-2022-page .fl718-ny21-lb-dark {
      position: fixed;
      inset: 0;
      background: #0a0908;
      z-index: 9000;
      pointer-events: none;
      opacity: 0;
    }

    body.fl718-nyc-2021-2022-page .fl718-ny21-lb-stage {
      position: fixed;
      inset: 0;
      z-index: 9100;
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: none;
      opacity: 0;
    }
    body.fl718-nyc-2021-2022-page:not(.fl718-nyc-2021-2022-mobile-page) .fl718-ny21-lb-stage { visibility: hidden; }

    body.fl718-nyc-2021-2022-page .fl718-ny21-lb-stage--active {
      pointer-events: auto;
    }
    body.fl718-nyc-2021-2022-page:not(.fl718-nyc-2021-2022-mobile-page) .fl718-ny21-lb-stage--active { visibility: visible; }

    /* The backdrop is a SIBLING of the image wrap; a click on it does nothing. */
    body.fl718-nyc-2021-2022-page .fl718-ny21-lb-backdrop {
      position: fixed;
      inset: 0;
      cursor: pointer;
      z-index: 0;
    }
    body.fl718-nyc-2021-2022-page:not(.fl718-nyc-2021-2022-mobile-page) .fl718-ny21-lb-backdrop { cursor: default; }

    body.fl718-nyc-2021-2022-page .fl718-ny21-lb-image-wrap {
      position: relative;
      z-index: 1;
      max-width: min(82vw, 1200px);
      max-height: 88vh;
      box-shadow: 0 12px 70px rgba(4, 3, 2, 0.72);
    }
    body.fl718-nyc-2021-2022-page:not(.fl718-nyc-2021-2022-mobile-page) .fl718-ny21-lb-image-wrap { max-width: none; max-height: none; }

    /* ── LIGHTBOX GESTURE: "Big Gate" — LOCKED 2026-09-23 ──
       Same hardware language as the grid's "Perimeter Frame Snap" hover,
       scaled up (7px hairlines, 34px corners). An arrival / departure gesture
       only, never a held border. Fires on OPEN / CLOSE only; navigating is a
       plain crossfade. Sequencing lives in Script 5. */
    body.fl718-nyc-2021-2022-page .fl718-ny21-lb-gate-edge {
      position: absolute;
      background: rgba(230, 226, 218, 0.98);
      box-shadow: 0 0 18px rgba(230, 226, 218, 0.25);
      pointer-events: none;
      z-index: 3;
    }
    body.fl718-nyc-2021-2022-page .fl718-ny21-lb-gate-edge--top {
      top: 0; left: 0; right: 0; height: 7px; transform-origin: left top;
    }
    body.fl718-nyc-2021-2022-page .fl718-ny21-lb-gate-edge--bottom {
      bottom: 0; left: 0; right: 0; height: 7px; transform-origin: right bottom;
    }
    body.fl718-nyc-2021-2022-page .fl718-ny21-lb-gate-edge--left {
      top: 0; bottom: 0; left: 0; width: 7px; transform-origin: left top;
    }
    body.fl718-nyc-2021-2022-page .fl718-ny21-lb-gate-edge--right {
      top: 0; bottom: 0; right: 0; width: 7px; transform-origin: right bottom;
    }
    body.fl718-nyc-2021-2022-page .fl718-ny21-lb-gate-corner {
      position: absolute;
      width: 34px;
      height: 34px;
      pointer-events: none;
      z-index: 4;
      opacity: 0;
    }
    body.fl718-nyc-2021-2022-page .fl718-ny21-lb-gate-corner--tl {
      top: 0; left: 0;
      border-top: 7px solid rgba(230, 226, 218, 0.98);
      border-left: 7px solid rgba(230, 226, 218, 0.98);
    }
    body.fl718-nyc-2021-2022-page .fl718-ny21-lb-gate-corner--br {
      bottom: 0; right: 0;
      border-bottom: 7px solid rgba(230, 226, 218, 0.98);
      border-right: 7px solid rgba(230, 226, 218, 0.98);
    }
    body.fl718-nyc-2021-2022-page.fl718-no-gsap .fl718-ny21-lb-gate-edge,
    body.fl718-nyc-2021-2022-page.fl718-no-gsap .fl718-ny21-lb-gate-corner {
      display: none;
    }
    @media (prefers-reduced-motion: reduce) {
      body.fl718-nyc-2021-2022-page .fl718-ny21-lb-gate-edge,
      body.fl718-nyc-2021-2022-page .fl718-ny21-lb-gate-corner {
        display: none !important;
      }
    }

    body.fl718-nyc-2021-2022-page .fl718-ny21-lb-image {
      display: block;
      max-width: min(82vw, 1200px);
      max-height: 88vh;
      object-fit: contain;
      opacity: 0;
    }
    body.fl718-nyc-2021-2022-page:not(.fl718-nyc-2021-2022-mobile-page) .fl718-ny21-lb-image {
      max-width: none;
      max-height: none;
      user-select: none;
      -webkit-user-drag: none;
    }

    body.fl718-nyc-2021-2022-page .fl718-ny21-lb-caption {
      position: absolute;
      bottom: -1.8rem;
      left: 0;
      right: 0;
      text-align: center;
      font-family: 'DM Sans', system-ui, sans-serif;
      font-size: 0.68rem;
      font-weight: 300;
      font-style: italic;
      color: rgba(230, 228, 222, 0.55);
      letter-spacing: 0.06em;
      margin: 0;
      opacity: 0;
    }

    body.fl718-nyc-2021-2022-page .fl718-ny21-lb-ui {
      position: fixed;
      inset: 0;
      z-index: 9200;
      pointer-events: none;
      opacity: 0;
    }

    /* The UI sheet never takes pointer-events:auto as a whole — only its
       controls do, and only once the lightbox is open (--active). */
    body.fl718-nyc-2021-2022-page .fl718-ny21-lb-ui--active .fl718-ny21-lb-close,
    body.fl718-nyc-2021-2022-page .fl718-ny21-lb-ui--active .fl718-ny21-lb-nav {
      pointer-events: auto;
    }

    body.fl718-nyc-2021-2022-page .fl718-ny21-lb-close,
    body.fl718-nyc-2021-2022-page .fl718-ny21-lb-nav {
      position: absolute;
      background: transparent;
      border: none;
      border-radius: 50%;
      width: 44px;
      height: 44px;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      pointer-events: none;
      color: rgba(238, 236, 233, 0.36);
      transition: background 0.35s ease, color 0.35s ease;
      box-shadow: none;
    }
    @media (hover: hover) {
      body.fl718-nyc-2021-2022-page .fl718-ny21-lb-close:hover,
      body.fl718-nyc-2021-2022-page .fl718-ny21-lb-nav:hover {
        background: rgba(238, 236, 233, 0.06);
        color: rgba(238, 236, 233, 0.85);
      }
    }
    body.fl718-nyc-2021-2022-page .fl718-ny21-lb-close:focus-visible,
    body.fl718-nyc-2021-2022-page .fl718-ny21-lb-nav:focus-visible {
      outline: 2px solid rgba(244, 242, 238, 0.96);
      outline-offset: 2px;
    }
    body.fl718-nyc-2021-2022-page .fl718-ny21-lb-close svg,
    body.fl718-nyc-2021-2022-page .fl718-ny21-lb-nav svg {
      width: 18px;
      height: 18px;
      stroke: currentColor;
      stroke-width: 1.25;
      fill: none;
    }
    body.fl718-nyc-2021-2022-page .fl718-ny21-lb-close { top: 24px; right: 24px; }
    body.fl718-nyc-2021-2022-page .fl718-ny21-lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
    body.fl718-nyc-2021-2022-page .fl718-ny21-lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

    /* Reduced motion — instant, qualified by the open state; gate never shown. */
    @media (prefers-reduced-motion: reduce) {
      body.fl718-nyc-2021-2022-page .fl718-ny21-lb-stage--active .fl718-ny21-lb-image {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
      }
    }

    /* ============================================================
       REDUCED-MOTION FALLBACKS (grid). The pre-paint class
       html.fl718-grid-armed hides the tiles from the first frame; reduced
       motion never arms (template ARM script), the script un-arms on any
       failure, and the template's <noscript><style> shows them with JS off.
       The mobile sheet carries its own tile and hero fallbacks.
       ============================================================ */
    @media (prefers-reduced-motion: reduce) {
      body.fl718-nyc-2021-2022-page .fl718-ny21-item {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
      }
    }
