/* fl718-nyc-2015-2022.css — NYC 2015-2022 desktop styles
   Version: 1.0.4 (file fl718-nyc-2015-2022-v5.css)
   Last updated: 2026-10-23 (cleanup: the old lightbox block is gone)
   v4 -> v5: the old fl718-ny2b-lb-* lightbox rules, the 3px whole-grid blur while
   lb-open, lb-nav/lb-counter/lb-caption are removed (168 lines). The mobile template
   (mobile-v4.css) defines every lb-* class it uses itself. v4 stays on the server as
   the revert path. Plan: Developer/fixes/nyc-2015-2022-css-v5-plan.md.
   v3 -> v4: black CSS-first hero start with its end state keyed on
   .fl718-no-gsap (NOT :not(.fl718-js-loaded), which painted the finished
   photograph first); hero text = concept E (condensation title, rangefinder
   year + three byline phrases); lightbox concept G ("lbg" classes, below).
   (This stylesheet is also enqueued, unguarded, on the mobile template.)
   Extracted from nyc-2015-2022-index.html prototype (Seamus-approved).
   After-content section removed — superseded site-wide by the shared
   template-parts/after-content.php partial + fl718-after-content.css
   (BUG-061). */


    /* ============================================================
       ALL CSS SCOPED TO: body.fl718-nyc-2015-2022-page
       Every rule below uses this body class as its scope prefix.
       Never write an unscoped rule.
       ============================================================ */

    /* ------------------------------------------------------------
       BASE
       ------------------------------------------------------------ */
    body.fl718-nyc-2015-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. Never overflow-x:hidden on body or html. */
      overflow-x: clip;
      background-color: #eeece9;
      color: #201f1d;
      -webkit-font-smoothing: antialiased;
    }

    :where(body.fl718-nyc-2015-2022-page) *,
    :where(body.fl718-nyc-2015-2022-page) *::before,
    :where(body.fl718-nyc-2015-2022-page) *::after {
      box-sizing: border-box;
    }

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

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


    body.fl718-nyc-2015-2022-page .fl718-ny2b-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 E (audit 2026-10-20): the title condenses out of steam,
       the year and the three byline phrases come together like a rangefinder
       image. The photograph's own focus rack, motes and scrim are unchanged.
       object-fit:cover, bottom-anchored text block (this photo has no open
       wall space).
       MATCHED PAIR: every start state below (image, scrim, title, year,
       byline phrases, rule) has its end state in the reduced-motion block and
       in the .fl718-no-gsap block. The end state is NOT keyed on
       :not(.fl718-js-loaded): that painted the finished photograph first,
       then black, then the entrance. JS-disabled visitors get the end state
       from the <noscript><style> in the template. Ship both or neither.
       ============================================================ */

    body.fl718-nyc-2015-2022-page .fl718-ny2b-hero {
      position: relative;
      width: 100%;
      height: 100vh;
      overflow: clip;
      background-color: #000;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    body.fl718-nyc-2015-2022-page .fl718-ny2b-hero picture {
      position: absolute;
      inset: 0;
      display: block;
      width: 100%;
      height: 100%;
    }

    body.fl718-nyc-2015-2022-page .fl718-ny2b-hero__image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 38%;
      display: block;
      opacity: 0;
      filter: blur(14px) saturate(0.7) brightness(1.06);
      transform: scale(1.06);
      transform-origin: center center;
    }

    body.fl718-nyc-2015-2022-page .fl718-ny2b-hero__motes {
      position: absolute;
      inset: 0;
      z-index: 4;
      pointer-events: none;
      overflow: hidden;
    }
    body.fl718-nyc-2015-2022-page .fl718-ny2b-mote {
      position: absolute;
      border-radius: 50%;
      background: rgba(230, 232, 230, 0.5);
      filter: blur(6px);
      opacity: 0;
      will-change: transform, opacity;
    }

    body.fl718-nyc-2015-2022-page .fl718-ny2b-hero__gradient {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 46%;
      background: linear-gradient(to top, rgba(14, 13, 12, 0.72) 0%, transparent 100%);
      z-index: 5;
      pointer-events: none;
      opacity: 0;
    }

    body.fl718-nyc-2015-2022-page .fl718-ny2b-hero__text-block {
      position: absolute;
      left: clamp(24px, 5vw, 64px);
      right: clamp(24px, 5vw, 64px);
      bottom: clamp(40px, 7vh, 88px);
      z-index: 10;
      pointer-events: none;
    }

    body.fl718-nyc-2015-2022-page .fl718-ny2b-hero__title {
      display: block;
      margin: 0 0 10px;
      font-family: 'Inter', system-ui, sans-serif;
      font-weight: 900;
      font-size: clamp(36px, 5.2vw, 72px);
      letter-spacing: -0.01em;
      line-height: 1.0;
      white-space: nowrap;
      color: rgba(244, 243, 240, 1);
      text-shadow: 0 2px 20px rgba(6, 5, 5, 0.6), 0 1px 6px rgba(6, 5, 5, 0.4);
      opacity: 0;
    }
    /* The title is split into letters by JS (splitKerned); each starts hidden. */
    body.fl718-nyc-2015-2022-page .fl718-ny2b-ch {
      display: inline-block;
      white-space: pre;
      /* top-aligned, so splitting the title into letters does not change its
         line box (a 1px taller title shifted the year and byline once, CLS 0.0008) */
      vertical-align: top;
    }
    /* One pale wisp drifts through the text block while the title condenses. */
    body.fl718-nyc-2015-2022-page .fl718-ny2b-wisp {
      position: absolute;
      left: -4%;
      top: -60px;
      width: min(52vw, 760px);
      height: 240px;
      border-radius: 50%;
      pointer-events: none;
      opacity: 0;
      z-index: 2;
      background: radial-gradient(closest-side, rgba(214, 222, 228, 0.5), rgba(214, 222, 228, 0));
    }

    body.fl718-nyc-2015-2022-page .fl718-ny2b-hero__subtitle-row {
      display: flex;
      align-items: center;
      gap: 14px;
      margin: 0 0 8px;
      opacity: 0; /* opacity, not only transparent text: a web-font swap under transparent text still counts as layout shift */
    }

    body.fl718-nyc-2015-2022-page .fl718-ny2b-hero__rule {
      display: block;
      width: 28px;
      height: 1px;
      background: rgba(110, 130, 145, 0.7); /* the hero's own cool accent */
      flex-shrink: 0;
      transform-origin: left center;
      transform: scaleX(0);
    }

    /* Year + byline phrases: two misregistered soft images racked together.
       --g (ghost offset), --gb (ghost blur), --ga (ghost alpha), --fa (face
       alpha) are animated by JS; pure text-shadow, so the lines stay unsplit. */
    body.fl718-nyc-2015-2022-page .fl718-ny2b-hero__year,
    body.fl718-nyc-2015-2022-page .fl718-ny2b-hero__byline span {
      --g: 0em; --gb: 0px; --ga: 0; --fa: 0;
      transform: translateX(calc(var(--g) * -1));
    }
    body.fl718-nyc-2015-2022-page .fl718-ny2b-hero__year {
      display: block;
      font-family: 'DM Sans', system-ui, sans-serif;
      font-weight: 500;
      font-size: clamp(11px, 1vw, 14px);
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: rgba(157, 178, 194, var(--fa)); /* #9db2c2, from the photo's own cool cast */
      text-shadow: calc(var(--g) * 2) 0 var(--gb) rgba(214, 226, 236, var(--ga));
    }
    body.fl718-nyc-2015-2022-page .fl718-ny2b-hero__byline {
      margin: 0;
      max-width: 100%;
      white-space: nowrap;
      font-family: 'Inter', system-ui, sans-serif;
      font-weight: 400;
      font-size: clamp(15px, 1.3vw, 19px);
      line-height: 1.5;
      text-shadow: none;
      opacity: 0; /* shown by JS once fonts are ready (see the subtitle row) */
    }
    body.fl718-nyc-2015-2022-page .fl718-ny2b-hero__byline span {
      display: inline-block;
      vertical-align: top; /* keeps the byline's line box the paragraph's own when the web font swaps in */
      color: rgba(216, 201, 188, calc(0.96 * var(--fa))); /* #d8c9bc */
      text-shadow: calc(var(--g) * 2) 0 var(--gb) rgba(214, 226, 236, var(--ga)),
                   0 1px 3px rgba(6, 5, 5, calc(0.7 * var(--fa))),
                   0 1px 12px rgba(6, 5, 5, calc(0.6 * var(--fa)));
    }

    /* END STATE — reduced motion, and a visitor whose GSAP never loaded. */
    @media (prefers-reduced-motion: reduce) {
      body.fl718-nyc-2015-2022-page .fl718-ny2b-hero__image { opacity: 1; filter: none; transform: none; }
      body.fl718-nyc-2015-2022-page .fl718-ny2b-hero__gradient { opacity: 1; }
      body.fl718-nyc-2015-2022-page .fl718-ny2b-hero__motes { display: none; }
      body.fl718-nyc-2015-2022-page .fl718-ny2b-hero__title,
      body.fl718-nyc-2015-2022-page .fl718-ny2b-hero__subtitle-row,
      body.fl718-nyc-2015-2022-page .fl718-ny2b-hero__byline { opacity: 1; }
      body.fl718-nyc-2015-2022-page .fl718-ny2b-hero__rule { transform: none; }
      body.fl718-nyc-2015-2022-page .fl718-ny2b-hero__year,
      body.fl718-nyc-2015-2022-page .fl718-ny2b-hero__byline span { --fa: 1; --ga: 0; --g: 0em; --gb: 0px; }
    }
    body.fl718-nyc-2015-2022-page.fl718-no-gsap .fl718-ny2b-hero__image { opacity: 1; filter: none; transform: none; }
    body.fl718-nyc-2015-2022-page.fl718-no-gsap .fl718-ny2b-hero__gradient { opacity: 1; }
    body.fl718-nyc-2015-2022-page.fl718-no-gsap .fl718-ny2b-hero__motes { display: none; }
    body.fl718-nyc-2015-2022-page.fl718-no-gsap .fl718-ny2b-hero__title,
    body.fl718-nyc-2015-2022-page.fl718-no-gsap .fl718-ny2b-hero__subtitle-row,
    body.fl718-nyc-2015-2022-page.fl718-no-gsap .fl718-ny2b-hero__byline { opacity: 1; }
    body.fl718-nyc-2015-2022-page.fl718-no-gsap .fl718-ny2b-hero__rule { transform: none; }
    body.fl718-nyc-2015-2022-page.fl718-no-gsap .fl718-ny2b-hero__year,
    body.fl718-nyc-2015-2022-page.fl718-no-gsap .fl718-ny2b-hero__byline span { --fa: 1; --ga: 0; --g: 0em; --gb: 0px; }

    /* ============================================================
       GALLERY GRID — CSS-columns masonry, "Soft Focus" entrance
       All 76 frames landscape (measured) -> masonry family, same as
       Bucket A. 3 columns desktop -> 2 at 768px.
       ============================================================ */

    body.fl718-nyc-2015-2022-page .fl718-ny2b-grid {
      columns: 3;
      column-gap: 8px;
      padding: 8px;
      padding-top: 14vh;
      padding-bottom: 12vh;
      /* overflow: clip — the grid item's own pre-reveal transform:
         scale(1.04) start state (below) contributes to document
         scrollWidth even with overflow-x:clip on body, because the
         overflow originates from a scaled descendant, not body's own
         box. Same mechanism as the mobile grid's own fix (BUG found
         2026-09-29, see Web_Animation_Reference.md), applied here
         pre-emptively rather than waiting to reproduce it on desktop. */
      overflow: clip;
    }

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

    body.fl718-nyc-2015-2022-page .fl718-ny2b-item {
      break-inside: avoid;
      margin: 0 0 8px 0;
      overflow: visible;
      cursor: pointer;
      position: relative;
      display: block;
      opacity: 0;
      /* "Soft Focus" entrance start state — blurred + slightly scaled,
         GSAP sharpens/settles it. Paired with the reduced-motion
         fallback below: ship both or neither. */
      filter: blur(10px);
      transform: scale(1.04);
    }

    body.fl718-nyc-2015-2022-page .fl718-ny2b-item:focus {
      outline: none;
    }
    body.fl718-nyc-2015-2022-page .fl718-ny2b-item:focus-visible {
      outline: 2px solid rgba(110, 130, 145, 0.9);
      outline-offset: 3px;
    }

    body.fl718-nyc-2015-2022-page .fl718-ny2b-item img {
      width: 100%;
      height: auto;
      display: block;
      /* Hover "focus-pull" (see below) animates filter/transform on the
         IMG itself, not a layer over it — GSAP-driven, this transition
         is a safety net only for any non-GSAP state changes. */
      transition: none;
    }

    /* ── HOVER: soft focus-pull, first pass, not yet built/tested ─────
       Slight scale + a subtle sharpen/contrast bump on hover/focus,
       echoing the page's focus/depth idea a third time as a quiet
       micro-interaction — deliberately NOT Bucket A's hardware-coded
       "Perimeter Frame Snap" (this set has no chain-link/fire-escape
       material vocabulary to draw hardware from). GSAP owns the tween
       in Script 4; this CSS only sets up the transform-origin and a
       thin accent ring using the hero's own cool accent colour. ── */
    body.fl718-nyc-2015-2022-page .fl718-ny2b-item {
      transform-origin: center center;
    }

    body.fl718-nyc-2015-2022-page .fl718-ny2b-item__accent-ring {
      position: absolute;
      inset: 0;
      border: 1px solid rgba(110, 130, 145, 0);
      pointer-events: none;
      z-index: 2;
    }

    /* Reduced motion for the grid — show items at rest, no blur/scale. */
    @media (prefers-reduced-motion: reduce) {
      body.fl718-nyc-2015-2022-page .fl718-ny2b-item {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
      }
    }

    /* No-JS fallback for the GRID tiles only — if JS never runs, content must
       still be visible. (Kept on the old key because the mobile template
       shares this rule until Batch 3; the HERO end state is the
       .fl718-no-gsap block above plus the template's <noscript> block.) */
    body.fl718-nyc-2015-2022-page:not(.fl718-js-loaded) .fl718-ny2b-item {
      opacity: 1 !important;
      filter: none !important;
      transform: none !important;
    }


    /* ============================================================
       LIGHTBOX G — "The World Falls Out of Focus" (audit 2026-10-20)
       fl718-ny2b-lbg-* ONLY (the old lb-* rules were removed in v5).
       Layer 1 (9000) dark | Layer 2 (9100) stage, JS-built photo layers |
       Layer 3 (9200) UI. Quiet default: solid near-black, glyph-only
       controls, NO counter. Controls take pointer-events only while the
       lightbox is open (state-scoping contract).
       ============================================================ */
    body.fl718-nyc-2015-2022-page .fl718-ny2b-lbg-dark { position: fixed; inset: 0; background: #0a0908; opacity: 0; z-index: 9000; pointer-events: none; }
    body.fl718-nyc-2015-2022-page .fl718-ny2b-lbg-stage { position: fixed; inset: 0; z-index: 9100; overflow: clip; visibility: hidden; pointer-events: none; }
    body.fl718-nyc-2015-2022-page .fl718-ny2b-lbg-stage.fl718-ny2b-lbg-stage--active { visibility: visible; pointer-events: auto; }
    body.fl718-nyc-2015-2022-page .fl718-ny2b-lbg-layer { position: absolute; left: 50%; top: 50%; opacity: 0; pointer-events: none; transform-origin: 50% 50%; }
    body.fl718-nyc-2015-2022-page .fl718-ny2b-lbg-layer img { display: block; width: 100%; height: 100%; max-width: none; pointer-events: none; user-select: none; -webkit-user-drag: none; }
    body.fl718-nyc-2015-2022-page .fl718-ny2b-lbg-ui { position: fixed; inset: 0; z-index: 9200; opacity: 0; pointer-events: none; }
    body.fl718-nyc-2015-2022-page .fl718-ny2b-lbg-close,
    body.fl718-nyc-2015-2022-page .fl718-ny2b-lbg-nav {
      position: fixed;
      background: transparent;
      border: none;
      border-radius: 50%;
      width: 44px;
      height: 44px;
      padding: 0; /* GeneratePress gives every <button> padding:10px 20px */
      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;
    }
    body.fl718-nyc-2015-2022-page .fl718-ny2b-lbg-ui--active .fl718-ny2b-lbg-close,
    body.fl718-nyc-2015-2022-page .fl718-ny2b-lbg-ui--active .fl718-ny2b-lbg-nav { pointer-events: auto; }
    @media (hover: hover) {
      body.fl718-nyc-2015-2022-page .fl718-ny2b-lbg-close:hover,
      body.fl718-nyc-2015-2022-page .fl718-ny2b-lbg-nav:hover { background: rgba(238, 236, 233, 0.06); color: rgba(238, 236, 233, 0.85); }
    }
    body.fl718-nyc-2015-2022-page .fl718-ny2b-lbg-close:focus-visible,
    body.fl718-nyc-2015-2022-page .fl718-ny2b-lbg-nav:focus-visible { outline: 2px solid rgba(244, 242, 238, 0.96); outline-offset: 2px; }
    body.fl718-nyc-2015-2022-page .fl718-ny2b-lbg-close svg,
    body.fl718-nyc-2015-2022-page .fl718-ny2b-lbg-nav svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.25; fill: none; }
    body.fl718-nyc-2015-2022-page .fl718-ny2b-lbg-close { top: 24px; right: 24px; }
    body.fl718-nyc-2015-2022-page .fl718-ny2b-lbg-prev { left: 24px; top: 50%; transform: translateY(-50%); }
    body.fl718-nyc-2015-2022-page .fl718-ny2b-lbg-next { right: 24px; top: 50%; transform: translateY(-50%); }
