/* 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;
}

body.fl718-ws-page .fl718-loc-lb__close:hover svg {
  stroke: #333;
}

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;
}

body.fl718-ws-page .fl718-loc-lb__nav:hover svg {
  stroke: #333;
}

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 BRIDGE — "HORIZON LINE"
   ============================================================ */

body.fl718-ws-page .fl718-loc-after {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(3.5rem, 5vw, 5rem) clamp(1.5rem, 5vw, 4rem) 250px;
}

body.fl718-ws-page .fl718-loc-after__rule {
  display: block;
  width: 100%;
  height: 1px;
  background-color: #ccc6bc;
  margin: 0 0 37px;
}

body.fl718-ws-page .fl718-loc-after__eyebrow {
  display: block;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9a9088;
  margin: 0 0 18px;
}

body.fl718-ws-page .fl718-loc-after__eyebrow--second {
  margin-top: 32px;
}

body.fl718-ws-page .fl718-loc-after__terms {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.fl718-ws-page .fl718-loc-after__term {
  display: flex;
  align-items: baseline;
}

body.fl718-ws-page .fl718-loc-after__link {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7d756c;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: color 0.4s ease, background-size 0.4s ease;
}

body.fl718-ws-page .fl718-loc-after__link:hover {
  color: #3d3530;
  background-size: 100% 1px;
}

body.fl718-ws-page .fl718-loc-after__sep {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 13px;
  color: #ccc6bc;
  padding: 0 18px;
  user-select: none;
  position: relative;
  top: -1px;
}

@media (max-width: 600px) {
  body.fl718-ws-page .fl718-loc-after {
    padding-bottom: 120px;
  }

  body.fl718-ws-page .fl718-loc-after__link {
    font-size: 14px;
    letter-spacing: 0.1em;
  }

  body.fl718-ws-page .fl718-loc-after__sep {
    font-size: 11px;
    padding: 0 12px;
  }

  body.fl718-ws-page .fl718-loc-after__eyebrow {
    font-size: 10px;
    letter-spacing: 0.2em;
  }
}

@media (max-width: 375px) {
  body.fl718-ws-page .fl718-loc-after__terms {
    flex-direction: column;
    gap: 14px;
  }

  body.fl718-ws-page .fl718-loc-after__term[aria-hidden="true"] {
    display: none;
  }
}

/* ============================================================
   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;
  }
}
