/* fl718-ws.css — White Sands desktop styles
   Version: 1.0.0
   Last updated: 2026-05-14
   Body class: fl718-ws-page (added via functions.php body_class filter)
   Prototype source: Photo Pages/Location Pages/White Sands/white-sands-index.html
*/

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

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

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

/* ------------------------------------------------------------
   VISUALLY HIDDEN — accessible text, not visible on screen.
   ------------------------------------------------------------ */
body.fl718-ws-page .fl718-loc-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 SECTION
   ============================================================ */

body.fl718-ws-page .fl718-loc-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: clip;
  background-color: #e6e8e7;
}

body.fl718-ws-page .fl718-loc-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   GALLERY GRID
   ============================================================ */

body.fl718-ws-page .fl718-loc-grid {
  column-count: 3;
  column-gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(clamp(2.5rem, 5vw, 4rem) + 2rem) 25px clamp(4rem, 6vw, 6rem);
}

@media (max-width: 768px) {
  body.fl718-ws-page .fl718-loc-grid {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  body.fl718-ws-page .fl718-loc-grid {
    column-count: 1;
  }
}

/* ------------------------------------------------------------
   GALLERY ITEMS
   ------------------------------------------------------------ */

body.fl718-ws-page .fl718-loc-item {
  break-inside: avoid;
  margin: 0 0 12px 0;
  overflow: clip;
  opacity: 0;
  cursor: pointer;
  position: relative;
}

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

/* ============================================================
   THE BLEACH BLOOM — ws-hover-bloom
   ============================================================ */

body.fl718-ws-page .ws-hover-bloom {
  position: absolute;
  inset: -10%;
  background: radial-gradient(
    circle at center,
    rgba(245, 245, 242, 0.72) 0%,
    rgba(238, 238, 235, 0.38) 35%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 2;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  body.fl718-ws-page .ws-hover-bloom {
    display: none !important;
  }
}

/* ============================================================
   LIGHTBOX — "Overexposed"
   ============================================================ */

body.fl718-ws-page .fl718-loc-lb {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  overscroll-behavior: contain;
}

body.fl718-ws-page .fl718-loc-lb.fl718-loc-lb--open {
  display: flex;
}

body.fl718-ws-page .fl718-loc-lb__radiance {
  position: absolute;
  inset: 0;
  background: #ffffff;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transform-origin: center center;
}

body.fl718-ws-page .fl718-loc-lb__photo-wrap {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: clamp(2.5rem, 6vw, 4.5rem);
}

body.fl718-ws-page .fl718-loc-lb__image {
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  max-height: calc(100dvh - 8rem);
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  filter: brightness(10) blur(4px);
  opacity: 0;
  will-change: filter, opacity;
}

body.fl718-ws-page .fl718-loc-lb__caption {
  position: absolute;
  bottom: clamp(1.25rem, 3vw, 2.2rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #999;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  z-index: 20;
  margin: 0;
}

body.fl718-ws-page .fl718-loc-lb__counter {
  position: absolute;
  top: clamp(1.2rem, 2.5vw, 1.8rem);
  right: clamp(1.2rem, 2.5vw, 1.8rem);
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #ccc;
  opacity: 0;
  z-index: 20;
  pointer-events: none;
}

body.fl718-ws-page .fl718-loc-lb__close {
  position: absolute;
  top: clamp(1rem, 2.5vw, 1.6rem);
  left: clamp(1.2rem, 2.5vw, 1.8rem);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 20;
  opacity: 0;
}

body.fl718-ws-page .fl718-loc-lb__close svg {
  width: 18px;
  height: 18px;
  stroke: #aaa;
  stroke-width: 1.5;
  transition: stroke 0.2s;
}

@media (hover: hover) and (pointer: fine) {
  body.fl718-ws-page .fl718-loc-lb__close:hover svg {
    stroke: #333;
  }
}
@media (hover: none), (pointer: coarse) {
  body.fl718-ws-page .fl718-loc-lb__close:hover svg,
  body.fl718-ws-page .fl718-loc-lb__close:focus svg,
  body.fl718-ws-page .fl718-loc-lb__close:active svg {
    stroke: #aaa;
  }
  body.fl718-ws-page .fl718-loc-lb__close:focus {
    outline: none;
  }
}

body.fl718-ws-page .fl718-loc-lb__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 9100;
  opacity: 0;
}

body.fl718-ws-page .fl718-loc-lb__nav svg {
  width: 20px;
  height: 20px;
  stroke: #bbb;
  stroke-width: 1.5;
  transition: stroke 0.2s;
}

@media (hover: hover) and (pointer: fine) {
  body.fl718-ws-page .fl718-loc-lb__nav:hover svg {
    stroke: #333;
  }
}
@media (hover: none), (pointer: coarse) {
  body.fl718-ws-page .fl718-loc-lb__nav:hover svg,
  body.fl718-ws-page .fl718-loc-lb__nav:focus svg,
  body.fl718-ws-page .fl718-loc-lb__nav:active svg {
    stroke: #bbb;
  }
  body.fl718-ws-page .fl718-loc-lb__nav:focus {
    outline: none;
  }
}

body.fl718-ws-page .fl718-loc-lb__close:focus-visible,
body.fl718-ws-page .fl718-loc-lb__nav:focus-visible {
  outline: 2px solid rgba(80, 60, 40, 0.5);
  outline-offset: 3px;
}

body.fl718-ws-page .fl718-loc-lb__nav--prev { left: 0.5rem; }
body.fl718-ws-page .fl718-loc-lb__nav--next { right: 0.5rem; }

body.fl718-ws-page .fl718-loc-lb__nav[disabled] {
  opacity: 0.15 !important;
  pointer-events: none;
}

@media (max-width: 768px) {
  body.fl718-ws-page .fl718-loc-lb__photo-wrap {
    padding: 1.5rem;
  }

  body.fl718-ws-page .fl718-loc-lb__image {
    max-height: calc(100svh - 6rem);
  }

  body.fl718-ws-page .fl718-loc-lb__nav--prev { left: 0; }
  body.fl718-ws-page .fl718-loc-lb__nav--next { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body.fl718-ws-page .fl718-loc-lb__image {
    filter: brightness(1) blur(0px);
    opacity: 1;
  }
}

/* ============================================================
   AFTER-CONTENT — now universal (BUG-061, 2026-08-20)
   ------------------------------------------------------------
   The page-private `.fl718-loc-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 and its
   cards by css/fl718-ws-city-system.css, both shared.

   NOT retired site-wide: Grand Canyon still uses the
   `fl718-loc-after` namespace on desktop, and page-ws-mobile.php
   still uses it on mobile (styled by fl718-ws-mobile.css, which
   is self-contained under body.fl718-ws-mobile-page).
   ============================================================ */

/* ============================================================
   PREFERS-REDUCED-MOTION + NO-JS FALLBACKS
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  body.fl718-ws-page .fl718-loc-item {
    opacity: 1 !important;
    transition: none !important;
  }

  body.fl718-ws-page .fl718-loc-lb__caption {
    animation: none !important;
    opacity: 1 !important;
  }

  body.fl718-ws-page .fl718-loc-hero__title,
  body.fl718-ws-page .fl718-loc-hero__caption,
  body.fl718-ws-page .fl718-loc-hero__divider,
  body.fl718-ws-page .fl718-loc-hero__gradient-top {
    opacity: 1 !important;
  }

  body.fl718-ws-page .fl718-loc-hero__image {
    filter: none !important;
  }
}

body.fl718-ws-page:not(.fl718-js-loaded) .fl718-loc-item {
  opacity: 1;
}

body.fl718-ws-page:not(.fl718-js-loaded) .fl718-loc-hero__title,
body.fl718-ws-page:not(.fl718-js-loaded) .fl718-loc-hero__caption,
body.fl718-ws-page:not(.fl718-js-loaded) .fl718-loc-hero__divider,
body.fl718-ws-page:not(.fl718-js-loaded) .fl718-loc-hero__gradient-top {
  opacity: 1;
}

/* ============================================================
   HERO OVERLAY — "Stone Cut" (Concept C)
   ============================================================ */

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

body.fl718-ws-page .fl718-loc-hero__gradient-top {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 10, 18, 0.52) 0%,
    rgba(8, 10, 18, 0.20) 28%,
    rgba(8, 10, 18, 0.00) 48%,
    rgba(8, 10, 18, 0.00) 72%,
    rgba(8, 10, 18, 0.24) 100%
  );
  opacity: 0;
}

body.fl718-ws-page .fl718-loc-hero__text {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}

body.fl718-ws-page .fl718-loc-hero__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-style: normal;
  font-size: clamp(3rem, 7.5vw, 10.5rem);
  letter-spacing: 0.12em;
  line-height: 1.0;
  text-transform: lowercase;
  color: rgba(230, 236, 244, 0.88);
  display: block;
  margin: 0 0 clamp(0.5rem, 0.9vw, 1rem) 0;
  opacity: 0;
}

body.fl718-ws-page .fl718-loc-hero__divider {
  display: block;
  width: clamp(40px, 8vw, 110px);
  height: 1px;
  background-color: rgba(200, 210, 220, 0.35);
  margin: 0 auto clamp(0.5rem, 0.8vw, 0.9rem);
  opacity: 0;
}

body.fl718-ws-page .fl718-loc-hero__caption {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(0.82rem, 1.05vw, 1.1rem);
  letter-spacing: 0.18em;
  text-transform: none;
  color: rgba(210, 220, 230, 0.78);
  display: block;
  margin: 0;
  opacity: 0;
}

/* ============================================================
   MENU CURTAIN — thread + recall glyph
   ============================================================ */

body.fl718-ws-page #fl718-danlann-thread {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(185, 158, 98, 0.7);
  opacity: 0;
  z-index: 9999;
  pointer-events: none;
}

body.fl718-ws-page #fl718-danlann-thread.fl718-danlann-thread--breathing {
  animation: fl718-ws-thread-breathe 3s ease-in-out infinite;
}

body.fl718-ws-page #fl718-danlann-hover-zone {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 40px;
  z-index: 10000;
  cursor: pointer;
}

body.fl718-ws-page #fl718-menu-recall {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: rgba(185, 158, 98, 0.85);
  opacity: 0;
  z-index: 10001;
  cursor: pointer;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.05em;
}

body.fl718-ws-page #fl718-menu-recall:hover {
  color: rgba(185, 158, 98, 1);
}

@keyframes fl718-ws-thread-breathe {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1;   }
}

@media (prefers-reduced-motion: reduce) {
  body.fl718-ws-page #fl718-danlann-thread.fl718-danlann-thread--breathing {
    animation: none;
    opacity: 0.7;
  }
}
