/* fl718-taos.css — Taos, New Mexico Location Page  v1.0.0
 *
 * All rules scoped to body.fl718-taos-page.
 * Extracted from taos-index.html prototype.
 * Fonts: IM Fell English, DM Sans (Google Fonts — loaded in functions.php)
 * No ScrollTrigger — IntersectionObserver only.
 * Grid: 2-col editorial layout (portrait-centric collection).
 */

/* ------------------------------------------------------------
   BASE RESET & BODY
   ------------------------------------------------------------ */
body.fl718-taos-page {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background-color: #f4ede6;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ------------------------------------------------------------
   VISUALLY HIDDEN
   ------------------------------------------------------------ */
body.fl718-taos-page .fl718-tn-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;
}

/* ------------------------------------------------------------
   MENU CURTAIN RECALL — thread + glyph
   ------------------------------------------------------------ */
body.fl718-taos-page #fl718-danlann-thread {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(196,139,60,0.6) 30%, rgba(196,139,60,0.85) 50%, rgba(196,139,60,0.6) 70%, transparent 100%);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: height 0.2s ease;
}

body.fl718-taos-page #fl718-danlann-thread.fl718-danlann-thread--breathing {
  animation: fl718TnThreadBreathe 3.8s ease-in-out infinite;
}

@keyframes fl718TnThreadBreathe {
  0%, 100% { opacity: 0.55; }
  50%       { opacity: 0.95; }
}

body.fl718-taos-page #fl718-danlann-hover-zone {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  z-index: 9998;
  display: none;
  cursor: pointer;
}

body.fl718-taos-page #fl718-menu-recall {
  position: fixed;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  font-size: 0.7rem;
  color: rgba(196,139,60,0.75);
  user-select: none;
  line-height: 1;
}

body.fl718-taos-page #fl718-menu-recall:focus-visible {
  outline: 2px solid rgba(196,139,60,0.6);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ------------------------------------------------------------
   HERO SECTION
   ------------------------------------------------------------ */
body.fl718-taos-page .fl718-tn-hero {
  position: relative;
  width: 100%;
  height: calc(100vh + 56px);
  margin-top: -56px;
  overflow: clip;
  background-color: #e6d9cc;
}

body.fl718-taos-page .fl718-tn-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.5) contrast(0.9) saturate(0.7);
  transform: scale(1.022);
  transform-origin: 50% 55%;
}

body.fl718-taos-page .fl718-tn-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

body.fl718-taos-page .fl718-tn-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(12, 6, 2, 0.55) 0%,
    rgba(12, 6, 2, 0.22) 38%,
    transparent 60%
  );
  opacity: 0;
}

body.fl718-taos-page .fl718-tn-hero__text {
  position: absolute;
  top: calc(56px + clamp(1.4rem, 2.6vw, 2.8rem));
  right: 0;
  max-width: clamp(280px, 30vw, 500px);
  padding: 0 clamp(1.5rem, 3.5vw, 3.5rem);
  text-align: right;
}

body.fl718-taos-page .fl718-tn-hero__title {
  font-family: 'IM Fell English', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.7rem, 4.2vw, 5.0rem);
  letter-spacing: -0.01em;
  line-height: 0.98;
  text-transform: none;
  color: rgba(255, 252, 245, 0.92);
  display: block;
  margin: 0 0 0.55em 0;
  opacity: 0;
}

body.fl718-taos-page .fl718-tn-hero__subtitle {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-weight: 300;
  font-size: clamp(0.6rem, 0.85vw, 0.75rem);
  letter-spacing: 0.22em;
  line-height: 1.5;
  font-style: italic;
  color: rgba(255, 248, 232, 0.58);
  display: block;
  margin: 0;
  opacity: 0;
}

/* ------------------------------------------------------------
   GALLERY GRID — 2-col editorial layout
   ------------------------------------------------------------ */
body.fl718-taos-page .fl718-tn-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(2rem, 4vw, 4rem);
  padding-top: 14vh;
  padding-bottom: 12vh;
}

body.fl718-taos-page .fl718-tn-item {
  overflow: clip;
  opacity: 0;
  cursor: pointer;
  position: relative;
  transform-origin: center center;
  margin: 0;
}

body.fl718-taos-page .fl718-tn-item img {
  width: 100%;
  height: auto;
  display: block;
}

body.fl718-taos-page .fl718-tn-grid .fl718-tn-item:nth-child(odd) {
  width: 64%;
  margin-left: auto;
  margin-bottom: 14vh;
}

body.fl718-taos-page .fl718-tn-grid .fl718-tn-item:nth-child(even) {
  width: 64%;
  margin-right: auto;
  margin-bottom: 14vh;
}

body.fl718-taos-page .fl718-tn-grid .fl718-tn-item:last-child {
  margin-bottom: 0;
}

@media (max-width: 480px) {
  body.fl718-taos-page .fl718-tn-grid {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 10vh;
  }
  body.fl718-taos-page .fl718-tn-grid .fl718-tn-item:nth-child(odd),
  body.fl718-taos-page .fl718-tn-grid .fl718-tn-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 8vh;
  }
  body.fl718-taos-page .fl718-tn-grid .fl718-tn-item:last-child {
    margin-bottom: 0;
  }
}

/* ------------------------------------------------------------
   HOVER OVERLAYS — "Dust in the Frame"
   ------------------------------------------------------------ */
body.fl718-taos-page .fl718-tn-item__veil {
  position: absolute;
  inset: 0;
  background: rgba(28, 14, 8, 0.16);
  pointer-events: none;
  z-index: 1;
}

body.fl718-taos-page .fl718-tn-item__grain-screen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='gtn1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.70 0.74' numOctaves='4' seed='23' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23gtn1)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  mix-blend-mode: screen;
  opacity: 0;
  z-index: 2;
}

body.fl718-taos-page .fl718-tn-item__grain-mul {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='gtn2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.60 0.66' numOctaves='3' seed='41' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23gtn2)' opacity='0.8'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 220px 220px;
  mix-blend-mode: multiply;
  opacity: 0;
  z-index: 2;
}

body.fl718-taos-page .fl718-tn-item__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  background: radial-gradient(
    ellipse 90% 90% at 50% 50%,
    transparent 45%,
    rgba(22, 10, 4, 0.12) 70%,
    rgba(18, 7, 2, 0.30) 100%
  );
}

body.fl718-taos-page .fl718-tn-item__vignette--bw {
  background: radial-gradient(
    ellipse 90% 90% at 50% 50%,
    transparent 45%,
    rgba(8, 8, 8, 0.10) 70%,
    rgba(4, 4, 4, 0.28) 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  body.fl718-taos-page .fl718-tn-item__veil,
  body.fl718-taos-page .fl718-tn-item__grain-screen,
  body.fl718-taos-page .fl718-tn-item__grain-mul,
  body.fl718-taos-page .fl718-tn-item__vignette {
    display: none !important;
  }
}

/* ------------------------------------------------------------
   LIGHTBOX — "The Room Dims"

   Replaced "The Dust Field" (Aug 2026), which filled the viewport with
   an feTurbulence grain field at rgba(215,188,156,0.48) plus a second
   amber wash on the blur layer. The grain sat BELOW the stage so it
   never literally tinted the print — but an edge-to-edge amber
   surround drags a neutral photograph toward sepia by simultaneous
   contrast, and this page is portraiture with three B&W analog frames,
   which suffered worst. Now the room goes dark and neutral, and a
   low-opacity radial lamp lights the print from where the clicked tile
   sat. Matches the mobile treatment; desktop keeps :hover, larger
   nav/close targets, and the film badge.
   ------------------------------------------------------------ */
body.fl718-taos-page .fl718-tn-lb-page-dim {
  position: fixed;
  inset: 0;
  z-index: 8000;
  backdrop-filter: blur(0px) brightness(1);
  -webkit-backdrop-filter: blur(0px) brightness(1);
  pointer-events: none;
  background: rgba(10, 9, 8, 0);
}

body.fl718-taos-page .fl718-tn-lb-glow {
  position: fixed;
  inset: 0;
  z-index: 8100;
  pointer-events: none;
  opacity: 0;
  /* Origin set per-open via custom properties. Warmth capped at 0.16:
     light falling on the print, not a colored field filling the
     viewport. Raising these stops rebuilds the problem this treatment
     exists to solve. */
  background: radial-gradient(
    circle at var(--tn-glow-x, 50%) var(--tn-glow-y, 45%),
    rgba(255, 226, 179, 0.16) 0%,
    rgba(255, 226, 179, 0.07) 32%,
    rgba(255, 226, 179, 0) 60%
  );
}

body.fl718-taos-page .fl718-tn-lb-glow--active {
  pointer-events: auto;
  cursor: default;
}

body.fl718-taos-page .fl718-tn-lb-stage {
  position: fixed;
  inset: 0;
  z-index: 8200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
}

body.fl718-taos-page .fl718-tn-lb-stage--active {
  pointer-events: auto;
}

body.fl718-taos-page .fl718-tn-lb-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 120px);
  max-height: calc(100dvh - 160px);
  /* Black drop-shadow, not warm brown — the surround is neutral now
     and a warm shadow would reintroduce the sepia cast at the edge of
     the print, where it reads most. */
  filter: drop-shadow(0 10px 44px rgba(0, 0, 0, 0.6)) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
}

body.fl718-taos-page .fl718-tn-lb-image {
  max-width: 100%;
  max-height: calc(100dvh - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border: 8px solid rgba(244, 240, 234, 0.96);
  box-sizing: border-box;
  will-change: opacity, transform;
}

body.fl718-taos-page .fl718-tn-lb-caption {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: clamp(0.68rem, 0.9vw, 0.8rem);
  font-weight: 300;
  color: rgba(244, 240, 234, 0.55);
  text-align: center;
  margin-top: 1.2rem;
  letter-spacing: 0.14em;
  opacity: 0;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

body.fl718-taos-page .fl718-tn-lb-ui {
  position: fixed;
  inset: 0;
  z-index: 8300;
  pointer-events: none;
}

/* BUG-044: the UI sheet is `inset: 0` at z-index 8300 — above the glow (8100)
   and the stage (8200). Giving the whole sheet `pointer-events: auto` made it
   swallow every click aimed at the layers below, so click-outside-to-close was
   dead. Taos has no single "backdrop" element: the two close-on-click targets
   are the glow (#tnLbGlow, 8100) and the stage background (#tnLbStage, 8200),
   both bound to tnDustCloseFunc in fl718-taos.js. #tnLbPageDim is NOT a click
   target. The sheet stays transparent to pointers; its interactive children
   (.fl718-tn-lb-close, .fl718-tn-lb-nav) already declare `pointer-events: auto`
   on their own rules, and the counter/film-badge are deliberately `none` — they
   are non-interactive text. Scope the rule to the photo, never to the sheet. */
body.fl718-taos-page .fl718-tn-lb-ui--active {
  pointer-events: none;
}

/* Same state-scoping as mobile: the controls are hit-testable only while the
   lightbox is open. Their base rules declare `pointer-events: none`. */
body.fl718-taos-page .fl718-tn-lb-ui--active .fl718-tn-lb-close,
body.fl718-taos-page .fl718-tn-lb-ui--active .fl718-tn-lb-nav {
  pointer-events: auto;
}

body.fl718-taos-page .fl718-tn-lb-close {
  position: absolute;
  top: clamp(1rem, 2vh, 1.75rem);
  right: clamp(1rem, 2vw, 1.75rem);
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: rgba(244, 240, 234, 0.55);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: color 0.2s ease;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  body.fl718-taos-page .fl718-tn-lb-close:hover {
    color: rgba(244, 240, 234, 0.9);
  }
}
@media (hover: none), (pointer: coarse) {
  body.fl718-taos-page .fl718-tn-lb-close:hover,
  body.fl718-taos-page .fl718-tn-lb-close:focus,
  body.fl718-taos-page .fl718-tn-lb-close:active {
    color: rgba(244, 240, 234, 0.55);
  }
  body.fl718-taos-page .fl718-tn-lb-close:focus {
    outline: none;
  }
}

body.fl718-taos-page .fl718-tn-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 80px;
  background: none;
  border: none;
  color: rgba(244, 240, 234, 0.42);
  font-size: 2.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: color 0.2s ease;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  body.fl718-taos-page .fl718-tn-lb-nav:hover {
    color: rgba(244, 240, 234, 0.8);
  }
}
@media (hover: none), (pointer: coarse) {
  body.fl718-taos-page .fl718-tn-lb-nav:hover,
  body.fl718-taos-page .fl718-tn-lb-nav:focus,
  body.fl718-taos-page .fl718-tn-lb-nav:active {
    color: rgba(244, 240, 234, 0.42);
  }
  body.fl718-taos-page .fl718-tn-lb-nav:focus {
    outline: none;
  }
}

body.fl718-taos-page .fl718-tn-lb-nav--prev { left: 0.5rem; }
body.fl718-taos-page .fl718-tn-lb-nav--next { right: 0.5rem; }

body.fl718-taos-page .fl718-tn-lb-counter {
  position: absolute;
  top: clamp(1rem, 2vh, 1.75rem);
  left: clamp(1rem, 2vw, 1.75rem);
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: rgba(244, 240, 234, 0.42);
  opacity: 0;
  pointer-events: none;
}

body.fl718-taos-page .fl718-tn-lb-film-badge {
  position: absolute;
  bottom: clamp(1.2rem, 2.5vh, 2rem);
  right: clamp(1rem, 2vw, 1.75rem);
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 240, 234, 0.42);
  opacity: 0;
  pointer-events: none;
}

body.fl718-taos-page .fl718-tn-lb-close:focus-visible,
body.fl718-taos-page .fl718-tn-lb-nav:focus-visible {
  outline: 2px solid rgba(244, 240, 234, 0.5);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  body.fl718-taos-page .fl718-tn-lb-image-wrap {
    max-width: 100vw;
    max-height: 100svh;
  }
  body.fl718-taos-page .fl718-tn-lb-image {
    max-height: calc(100svh - 140px);
    border-width: 4px;
  }
  body.fl718-taos-page .fl718-tn-lb-nav--prev { left: 0; }
  body.fl718-taos-page .fl718-tn-lb-nav--next { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body.fl718-taos-page .fl718-tn-lb-caption { opacity: 1 !important; }
}

/* ------------------------------------------------------------
   AFTER-CONTENT — now universal (BUG-061, 2026-08-20)
   ------------------------------------------------------------
   The page-private `.fl718-tn-after` block that lived here was
   deleted when this page adopted template-parts/after-content.php.
   The section is styled by css/fl718-after-content.css (including
   the land acknowledgment) and its cards by
   css/fl718-ws-city-system.css, both shared.

   Safe to delete, MEASURED not assumed: fl718-taos-mobile.css also
   scopes to body.fl718-taos-page (not a -mobile-page class), so the
   two files overlap on mobile. Rendering /taos/ at 393px with this
   region stripped changed exactly one thing — __sep, which is
   display:none on mobile either way. Section padding, rule,
   acknowledgment, eyebrow, link and terms were byte-identical.
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   PREFERS-REDUCED-MOTION + NO-JS FALLBACKS
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  body.fl718-taos-page .fl718-tn-item {
    opacity: 1 !important;
    filter: none !important;
    transition: none !important;
  }
  body.fl718-taos-page .fl718-tn-hero__image {
    filter: none !important;
    transform: scale(1) !important;
  }
  body.fl718-taos-page .fl718-tn-hero__gradient,
  body.fl718-taos-page .fl718-tn-hero__title,
  body.fl718-taos-page .fl718-tn-hero__subtitle {
    opacity: 1 !important;
  }
}

body.fl718-taos-page:not(.fl718-js-loaded) .fl718-tn-item {
  opacity: 1;
  filter: none;
}

body.fl718-taos-page:not(.fl718-js-loaded) .fl718-tn-hero__image {
  opacity: 1;
  filter: none;
  transform: scale(1);
}

body.fl718-taos-page:not(.fl718-js-loaded) .fl718-tn-hero__gradient,
body.fl718-taos-page:not(.fl718-js-loaded) .fl718-tn-hero__title,
body.fl718-taos-page:not(.fl718-js-loaded) .fl718-tn-hero__subtitle {
  opacity: 1;
}
