/* ==========================================================================
   Mewan Siriwardana — ForetraitS Photography Archive
   Aesthetic: Warm Alabaster Linen, Eucalyptus Sage & Dusty Blush Clay
   ========================================================================== */

:root,
[data-theme="linen"] {
  --bg: #f7f4ef;
  --bg-elevated: #fdfbf8;
  --bg-soft: #eee8df;
  --surface-glass: rgba(247, 244, 239, 0.78);
  --ink: #24201c;
  --ink-muted: #6c645b;
  --ink-subtle: #978d82;
  --accent-sage: #6f846d;
  --accent-sage-soft: rgba(111, 132, 109, 0.13);
  --accent-rose: #bc8275;
  --accent-rose-soft: rgba(188, 130, 117, 0.14);
  --border: rgba(36, 32, 28, 0.09);
  --border-strong: rgba(36, 32, 28, 0.16);
  --shadow-soft: 0 18px 50px rgba(36, 30, 24, 0.08);
  --shadow-card: 0 12px 34px rgba(36, 30, 24, 0.07);
  --shadow-float: 0 24px 60px rgba(36, 30, 24, 0.14);
  --btn-bg: #24201c;
  --btn-ink: #fdfbf8;
  --btn-hover: #3a342e;
  --orb-rose: rgba(209, 158, 146, 0.22);
  --orb-sage: rgba(145, 168, 141, 0.22);
  color-scheme: light;
}

[data-theme="dusk"] {
  --bg: #151311;
  --bg-elevated: #1d1a17;
  --bg-soft: #26221e;
  --surface-glass: rgba(21, 19, 17, 0.78);
  --ink: #f3efe9;
  --ink-muted: #b0a79c;
  --ink-subtle: #7f766c;
  --accent-sage: #9ab096;
  --accent-sage-soft: rgba(154, 176, 150, 0.15);
  --accent-rose: #d9a194;
  --accent-rose-soft: rgba(217, 161, 148, 0.15);
  --border: rgba(243, 239, 233, 0.1);
  --border-strong: rgba(243, 239, 233, 0.18);
  --shadow-soft: 0 20px 55px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 12px 34px rgba(0, 0, 0, 0.35);
  --shadow-float: 0 26px 65px rgba(0, 0, 0, 0.55);
  --btn-bg: #f3efe9;
  --btn-ink: #171411;
  --btn-hover: #e5ddd2;
  --orb-rose: rgba(201, 140, 126, 0.13);
  --orb-sage: rgba(133, 158, 130, 0.13);
  color-scheme: dark;
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  transition: background-color 0.45s ease, color 0.45s ease;
  overflow-x: clip;
}

section[id] {
  scroll-margin-top: 86px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent-rose);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(1220px, calc(100% - 2.75rem));
  margin-inline: auto;
}

/* Subtle Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-sage), var(--accent-rose));
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 120;
  pointer-events: none;
}

/* Ambient Soft Editorial Orbs */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.85;
  transition: background-color 0.6s ease;
}

.orb-rose {
  width: clamp(320px, 42vw, 620px);
  height: clamp(320px, 42vw, 620px);
  top: -120px;
  right: -100px;
  background: var(--orb-rose);
}

.orb-sage {
  width: clamp(300px, 38vw, 560px);
  height: clamp(300px, 38vw, 560px);
  bottom: 12%;
  left: -140px;
  background: var(--orb-sage);
}

/* ==========================================================================
   Navigation Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding-block: 1.05rem;
  background: transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease,
    padding 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  padding-block: 0.78rem;
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.42rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.nav-link {
  position: relative;
  font-size: 0.87rem;
  font-weight: 400;
  color: var(--ink-muted);
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--accent-rose);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease,
    background-color 0.25s ease;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  color: var(--ink);
  transform: translateY(-1px);
}

[data-theme="linen"] .icon-sun {
  display: none;
}

[data-theme="dusk"] .icon-moon {
  display: none;
}

.theme-icon {
  display: inline-flex;
  align-items: center;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.btn-pill-subtle {
  background: var(--accent-sage-soft);
  color: var(--accent-sage);
  border: 1px solid transparent;
}

.btn-pill-subtle:hover {
  background: var(--accent-sage);
  color: #fdfbf8;
  transform: translateY(-1px);
}

/* Mobile Menu Button & Frosted Drawer */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.menu-toggle:hover {
  border-color: var(--border-strong);
}

.menu-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 16px;
}

.menu-bars span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-bars span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bars span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface-glass);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  animation: cardFadeIn 0.24s ease both;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding-block: 0.75rem 1.35rem;
}

.mobile-nav-link {
  padding: 0.85rem 0.25rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--accent-rose);
  padding-left: 0.35rem;
}

.mobile-nav-ext {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  background: var(--accent-sage-soft);
  color: var(--accent-sage);
  font-size: 0.84rem;
  font-weight: 500;
}

/* ==========================================================================
   Editorial Split Hero
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
  padding-top: clamp(2.2rem, 5vh, 4.2rem);
  padding-bottom: clamp(3.2rem, 7vh, 5.5rem);
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.55rem;
}

.eyebrow-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-rose);
}

.hero-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.9rem, 5.4vw, 4.85rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-rose);
}

.hero-lead {
  margin: 1.55rem 0 2.1rem;
  max-width: 49ch;
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.78;
}

.hero-lead strong {
  font-weight: 500;
  color: var(--ink);
}

.hero-lead em {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.12em;
  color: var(--ink);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.88rem 1.55rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.25s ease, box-shadow 0.28s ease;
}

.btn-primary:hover {
  background: var(--btn-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--ink-muted);
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--ink-subtle);
  background: var(--bg-elevated);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 2.3rem;
  margin: 2.6rem 0 0;
  padding-top: 1.65rem;
  border-top: 1px solid var(--border);
}

.metric {
  display: flex;
  flex-direction: column-reverse;
}

.metric dd {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.78rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
}

.metric dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-top: 0.28rem;
}

/* Editorial Overlapping Collage */
.hero-collage {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
  padding: 1.5rem 0.5rem 3.2rem;
}

.collage-frame {
  position: relative;
  padding: 7px;
  border-radius: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease;
  text-align: left;
}

.collage-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.collage-frame:hover {
  transform: translateY(-6px);
  z-index: 5;
}

.collage-frame:hover img {
  transform: scale(1.04);
}

.collage-main {
  width: 84%;
  aspect-ratio: 4 / 3;
  margin-left: auto;
  z-index: 2;
}

.collage-float-left {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 10 / 9;
  z-index: 3;
}

.collage-float-right {
  position: absolute;
  top: 0;
  right: 6%;
  width: 34%;
  aspect-ratio: 3 / 2;
  z-index: 1;
  opacity: 0.94;
}

.frame-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: rgba(24, 21, 18, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fdfbf8;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.collage-main .frame-tag {
  left: auto;
  right: 16px;
}

/* ==========================================================================
   Poetic Interlude
   ========================================================================== */
.interlude {
  text-align: center;
  padding-block: clamp(2.5rem, 6vh, 4.4rem);
  max-width: 760px;
}

.interlude-rule {
  width: 56px;
  height: 1px;
  background: var(--accent-rose);
  margin: 0 auto 1.75rem;
  opacity: 0.7;
}

.interlude-quote {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.42;
  color: var(--ink);
}

.interlude-sig {
  margin: 1.15rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.1rem;
}

.section-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-sage);
}

.section-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.15rem, 3.8vw, 3.2rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.section-title em {
  font-style: italic;
  color: var(--accent-rose);
}

.section-subtitle {
  margin: 0;
  max-width: 42ch;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Selected Works Gallery
   ========================================================================== */
.gallery-section {
  padding-block: clamp(3rem, 7vh, 5.5rem);
  content-visibility: auto;
  contain-intrinsic-size: 1px 1600px;
}

.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 1.05rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ink-muted);
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.filter-pill:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

.filter-pill.is-active {
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 500;
  box-shadow: 0 6px 18px rgba(36, 30, 24, 0.12);
}

.pill-count {
  font-size: 0.7rem;
  opacity: 0.65;
}

.view-switcher {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: all 0.25s ease;
}

.view-btn.is-active {
  background: var(--bg-elevated);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Editorial Masonry Mode */
.gallery-grid.view-masonry {
  columns: 3 310px;
  column-gap: 1.35rem;
}

.gallery-grid.view-masonry .photo-card {
  break-inside: avoid;
  margin-bottom: 1.35rem;
}

/* Clean Uniform Grid Mode */
.gallery-grid.view-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.gallery-grid.view-grid .photo-media {
  aspect-ratio: 4 / 3 !important;
}

.gallery-grid.view-grid .photo-card {
  margin-bottom: 0;
}

/* Photo Card */
.photo-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease, opacity 0.4s ease;
  animation: cardFadeIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.photo-trigger {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
}

.photo-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(
    110deg,
    var(--bg-soft) 25%,
    var(--bg-elevated) 50%,
    var(--bg-soft) 75%
  );
  background-size: 200% 100%;
  animation: softShimmer 1.8s ease-in-out infinite;
}

.photo-media.is-loaded {
  animation: none;
  background: var(--bg-soft);
}

@keyframes softShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.photo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

.photo-media.is-loaded img {
  opacity: 1;
}

.photo-card:hover .photo-media img {
  transform: scale(1.045);
}

/* Delicate Gradient Hover Veil */
.photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  background: linear-gradient(
    to top,
    rgba(20, 17, 15, 0.78) 0%,
    rgba(20, 17, 15, 0.25) 42%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.photo-card:hover .photo-overlay,
.photo-trigger:focus-visible .photo-overlay {
  opacity: 1;
}

.photo-overlay-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transform: translateY(8px);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-card:hover .photo-overlay-meta,
.photo-trigger:focus-visible .photo-overlay-meta {
  transform: translateY(0);
}

.photo-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.32rem;
  font-weight: 500;
  line-height: 1.15;
  color: #fdfbf8;
}

.photo-location {
  margin: 0.2rem 0 0;
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  color: rgba(253, 251, 248, 0.78);
}

.expand-badge {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(253, 251, 248, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(253, 251, 248, 0.28);
  color: #fdfbf8;
}

/* ==========================================================================
   The Journey — 3 Editorial Story Chapters
   ========================================================================== */
.journey-section {
  padding-block: clamp(4rem, 9vh, 6.5rem);
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--bg-soft) 18%,
    var(--bg-soft) 82%,
    transparent 100%
  );
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}

.chapters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.chapter-card {
  padding: 1.55rem;
  border-radius: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.chapter-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.chapter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.chapter-era {
  color: var(--accent-sage);
  font-weight: 500;
}

.chapter-thumb {
  border-radius: 13px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 1.25rem;
  background: var(--bg-soft);
}

.chapter-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.chapter-card:hover .chapter-thumb img {
  transform: scale(1.04);
}

.chapter-title {
  margin: 0 0 0.65rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.15;
}

.chapter-title em {
  font-style: italic;
  color: var(--accent-rose);
}

.chapter-text {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.72;
}

/* ==========================================================================
   Full Archive Spotlight Banner
   ========================================================================== */
.archive-cta {
  padding-block: clamp(3rem, 7vh, 5rem);
}

.archive-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 2.5rem;
  padding: clamp(2rem, 4.5vw, 3.5rem);
  border-radius: 26px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.archive-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--accent-rose-soft);
  filter: blur(60px);
  pointer-events: none;
}

.archive-title {
  margin: 0 0 0.9rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
}

.archive-title em {
  font-style: italic;
  color: var(--accent-rose);
}

.archive-desc {
  margin: 0 0 1.8rem;
  max-width: 48ch;
  font-size: 0.94rem;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.75;
}

.archive-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.archive-strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.archive-strip img:nth-child(2) {
  transform: translateY(-14px);
}

/* ==========================================================================
   Leave a Note — Editorial Message & Guestbook
   ========================================================================== */
.contact-section {
  padding-block: clamp(2.5rem, 6vh, 4.8rem) clamp(4rem, 9vh, 6.5rem);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-lead {
  margin: 1.15rem 0 2rem;
  max-width: 42ch;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.78;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}

.detail-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.detail-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.detail-value,
.detail-link {
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 400;
}

.detail-link {
  color: var(--accent-sage);
  transition: color 0.2s ease;
}

.detail-link:hover {
  color: var(--accent-rose);
}

.notes-wall {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}

.notes-wall-title {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-rose);
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.saved-note {
  padding: 0.95rem 1.1rem;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  animation: cardFadeIn 0.4s ease both;
}

.saved-note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.saved-note-author {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--ink);
}

.saved-note-tag {
  font-size: 0.68rem;
  padding: 0.18rem 0.58rem;
  border-radius: 999px;
  background: var(--accent-sage-soft);
  color: var(--accent-sage);
}

.saved-note-body {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.6;
}

.saved-note-fav {
  margin: 0.45rem 0 0;
  font-size: 0.74rem;
  color: var(--accent-rose);
  font-style: italic;
}

/* Postcard Form Card */
.contact-card {
  padding: clamp(1.75rem, 3.8vw, 2.75rem);
  border-radius: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.contact-card::after {
  content: "";
  position: absolute;
  bottom: -90px;
  left: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--accent-sage-soft);
  filter: blur(60px);
  pointer-events: none;
}

.note-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.topic-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.topic-pill {
  padding: 0.42rem 0.88rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all 0.22s ease;
}

.topic-pill:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

.topic-pill.is-active {
  background: var(--accent-rose-soft);
  color: var(--accent-rose);
  border-color: rgba(188, 130, 117, 0.35);
  font-weight: 500;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-label {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.field-label .req {
  color: var(--accent-rose);
}

.field-label .opt {
  font-weight: 300;
  color: var(--ink-subtle);
}

.char-count {
  font-size: 0.72rem;
  color: var(--ink-subtle);
}

.note-form input[type="text"],
.note-form input[type="email"],
.note-form select,
.note-form textarea {
  width: 100%;
  padding: 0.78rem 0.98rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.5;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.note-form textarea {
  resize: vertical;
  min-height: 112px;
}

.note-form input::placeholder,
.note-form textarea::placeholder {
  color: var(--ink-subtle);
}

.note-form input:focus,
.note-form select:focus,
.note-form textarea:focus {
  outline: none;
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 3px var(--accent-rose-soft);
  background: var(--bg-elevated);
}

.note-form input:user-invalid,
.note-form textarea:user-invalid {
  border-color: #c96b6b;
}

.form-feedback {
  margin: 0;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  background: rgba(201, 107, 107, 0.12);
  color: #b44b4b;
  font-size: 0.82rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.35rem;
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.form-privacy {
  font-size: 0.76rem;
  color: var(--ink-subtle);
}

/* Confirmation Postcard */
.note-success {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.2rem 1rem;
  animation: cardFadeIn 0.45s ease both;
}

.success-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  display: grid;
  place-items: center;
  background: var(--accent-sage-soft);
  color: var(--accent-sage);
}

.success-title {
  margin: 0 0 0.65rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
}

.success-title em {
  font-style: italic;
  color: var(--accent-rose);
}

.success-text {
  margin: 0 auto 1.75rem;
  max-width: 40ch;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.7;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2.2rem 3rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-note {
  font-size: 0.8rem;
  color: var(--ink-subtle);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.footer-links a:hover {
  color: var(--ink);
}

.back-top {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.78rem;
}

/* ==========================================================================
   Native HTML <dialog> Luxury Lightbox
   ========================================================================== */
dialog.lightbox {
  width: min(1140px, calc(100vw - 2rem));
  max-width: 1140px;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid rgba(253, 251, 248, 0.12);
  border-radius: 24px;
  background: rgba(20, 18, 16, 0.94);
  color: #f6f2ec;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  margin: auto;
  opacity: 0;
  transform: scale(0.97) translateY(8px);
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    overlay 0.28s allow-discrete, display 0.28s allow-discrete;
}

dialog.lightbox[open] {
  opacity: 1;
  transform: scale(1) translateY(0);
}

@starting-style {
  dialog.lightbox[open] {
    opacity: 0;
    transform: scale(0.97) translateY(10px);
  }
}

dialog.lightbox::backdrop {
  background: rgba(14, 12, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lightbox-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: calc(100dvh - 2rem);
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-counter {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: rgba(246, 242, 236, 0.65);
}

.lightbox-top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-ext {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-size: 0.77rem;
  color: rgba(246, 242, 236, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.lightbox-ext:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.lightbox-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #f6f2ec;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(90deg);
}

.lightbox-stage {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  padding: 1rem 0.85rem;
  min-height: 280px;
  overflow: hidden;
}

.lightbox-figure {
  margin: 0;
  display: grid;
  place-items: center;
  height: 100%;
  overflow: hidden;
}

.lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 60dvh;
  transition: opacity 0.22s ease;
}

.lightbox-img-wrap.is-loading {
  opacity: 0.45;
}

.lightbox-img-wrap img {
  max-height: 60dvh;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #f6f2ec;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 0.2s ease, transform 0.2s ease;
  margin-inline: 0.45rem;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.06);
}

.lightbox-caption {
  padding: 1.1rem 1.75rem 1.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.lightbox-meta-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d9a194;
}

.lightbox-title {
  margin: 0.3rem 0 0.35rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  font-weight: 400;
  color: #fdfbf8;
}

.lightbox-story {
  margin: 0 auto;
  max-width: 64ch;
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(246, 242, 236, 0.74);
  line-height: 1.65;
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Design — Tablet & Mobile Zero-Clutter Polish
   ========================================================================== */
html {
  max-width: 100%;
  overflow-x: clip;
}

.hero-copy,
.hero-collage,
.contact-copy,
.contact-card,
.archive-copy,
.archive-strip,
.chapter-card {
  min-width: 0;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.6rem;
  }

  .hero-collage {
    min-height: 400px;
    max-width: 580px;
    margin-inline: auto;
    width: 100%;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .chapters-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .archive-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid.view-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    width: min(1220px, calc(100% - 2rem));
  }

  /* Sleek minimal mobile navbar */
  .site-header {
    padding-block: 0.82rem;
  }

  .main-nav,
  .header-flickr,
  .theme-label {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }

  .brand-name {
    font-size: 1.24rem;
  }

  .brand-sub {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
  }

  /* Airy, balanced mobile Hero */
  .hero {
    padding-top: 1.35rem;
    padding-bottom: 2.4rem;
    gap: 2.1rem;
  }

  .eyebrow-pill {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    padding: 0.36rem 0.8rem;
    margin-bottom: 1.15rem;
  }

  .hero-title {
    font-size: clamp(2.3rem, 9.6vw, 3.1rem);
    line-height: 1.06;
  }

  .hero-lead {
    margin: 1.15rem 0 1.6rem;
    font-size: 0.93rem;
    line-height: 1.72;
  }

  .hero-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.68rem;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding-block: 0.82rem;
  }

  .hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.9rem;
    padding-top: 1.25rem;
  }

  .metric dd {
    font-size: 1.42rem;
  }

  .metric dt {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  /* Zero-clutter 1-over-2 editorial collage on mobile (no awkward overlap!) */
  .hero-collage {
    min-height: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: stretch;
  }

  .collage-frame {
    position: relative;
    inset: auto;
    width: 100%;
    margin: 0;
    padding: 5px;
    border-radius: 15px;
    box-shadow: var(--shadow-card);
  }

  .collage-frame img {
    border-radius: 10px;
  }

  .collage-main {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }

  .collage-float-left,
  .collage-float-right {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    opacity: 1;
  }

  .frame-tag,
  .collage-main .frame-tag {
    left: 11px;
    right: auto;
    bottom: 11px;
    font-size: 0.64rem;
    padding: 0.24rem 0.6rem;
  }

  /* Interlude */
  .interlude {
    padding-block: 2rem 2.6rem;
  }

  .interlude-quote {
    font-size: 1.38rem;
  }

  /* Swipeable single-row Filter Pills (zero messy multi-line wrapping) */
  .gallery-section {
    padding-block: 2.2rem 3.4rem;
  }

  .gallery-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-bottom: 1.4rem;
    padding-bottom: 1rem;
  }

  .filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-inline: -0.25rem;
    padding-inline: 0.25rem;
  }

  .filter-pills::-webkit-scrollbar {
    display: none;
  }

  .filter-pill {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.48rem 0.92rem;
    font-size: 0.8rem;
  }

  .view-switcher {
    align-self: flex-start;
  }

  /* Editorial = spacious 1-col; Gallery = crisp 2-col magazine grid */
  .gallery-grid.view-masonry {
    columns: 1;
  }

  .gallery-grid.view-masonry .photo-card {
    margin-bottom: 1.05rem;
  }

  .gallery-grid.view-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
  }

  .gallery-grid.view-grid .photo-card {
    border-radius: 13px;
  }

  .gallery-grid.view-grid .photo-overlay {
    padding: 0.7rem;
  }

  .gallery-grid.view-grid .photo-title {
    font-size: 0.98rem;
  }

  .gallery-grid.view-grid .photo-location {
    font-size: 0.64rem;
  }

  .gallery-grid.view-grid .expand-badge {
    display: none;
  }

  /* Keep subtle bottom title legible on touch devices */
  .photo-overlay {
    opacity: 1;
    padding: 1rem;
    background: linear-gradient(
      to top,
      rgba(20, 17, 15, 0.7) 0%,
      transparent 48%
    );
  }

  .photo-overlay-meta {
    transform: none;
  }

  /* Chapters & Archive cards */
  .journey-section {
    padding-block: 3rem 3.5rem;
  }

  .chapter-card {
    padding: 1.25rem;
    border-radius: 18px;
  }

  .archive-card {
    padding: 1.55rem;
    border-radius: 20px;
    gap: 1.75rem;
  }

  .archive-strip {
    gap: 0.55rem;
  }

  .archive-strip img:nth-child(2) {
    transform: translateY(-8px);
  }

  /* Leave a Note — iOS-friendly 16px inputs (prevents auto-zoom) */
  .contact-section {
    padding-block: 1.8rem 3.5rem;
  }

  .contact-card {
    padding: 1.4rem;
    border-radius: 20px;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .note-form input[type="text"],
  .note-form input[type="email"],
  .note-form select,
  .note-form textarea {
    font-size: 16px;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  /* Footer */
  .site-footer {
    padding-block: 1.8rem 2.4rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.15rem;
  }

  .footer-links {
    gap: 0.85rem 1.25rem;
  }

  /* Thumb-friendly Mobile Lightbox */
  dialog.lightbox {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
    border-radius: 18px;
  }

  .lightbox-topbar {
    padding: 0.8rem 0.95rem;
  }

  .lightbox-ext span {
    display: none;
  }

  .lightbox-stage {
    grid-template-columns: minmax(0, 1fr);
    padding: 0.5rem 0.65rem;
  }

  .lightbox-img-wrap,
  .lightbox-img-wrap img {
    max-height: 54dvh;
  }

  .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 38px;
    height: 38px;
    margin: 0;
    background: rgba(15, 13, 11, 0.58);
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }

  .lightbox-caption {
    padding: 0.85rem 1rem 1.1rem;
  }

  .lightbox-story {
    font-size: 0.83rem;
  }
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
