/* Fonts loaded via <link> in HTML for preconnect performance */

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:      #faf8f5;
  --blush:      #f5e6e8;
  --sage:       #e8e4e0;
  --charcoal:   #2a2a2a;
  --soft-gray:  #8a8a8a;
  --dusty-rose: #c9a9a6;
  --muted-gold: #d4c4a8;
  --overlay-opacity: 0.03;
  --panel-bg: #faf8f5;    /* lightbox inner panel — kept light across themes */
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'Cormorant Garamond', serif;
  overflow-x: hidden;
}

/* ─── Soft Paper Texture Overlay ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23paper)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px;
  opacity: var(--overlay-opacity);
  mix-blend-mode: multiply;
}

/* ─── Veil Layer ─── */
#veil-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  overflow: hidden;
  /* CSS scroll animations disabled - using JavaScript for consistency */
  /* animation: veil-layer-fade linear both; */
  /* animation-timeline: scroll(root); */
  /* animation-range: 30% 55%; */
}

@keyframes veil-layer-fade {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.veil-piece {
  position: absolute;
  mix-blend-mode: normal;
  opacity: 0.5;
  will-change: transform;
  filter: brightness(0.9) contrast(1.1) saturate(0.8);
}

/* Piece 1 — large veil square, starts near center-top */
.veil-piece-1 {
  width: 75vw;
  top: -8%;
  left: -15%;
  transform: rotate(-15deg) scale(1.1);
  /* CSS scroll animations disabled - using JavaScript for consistency */
  /* animation: veil-1-move linear both; */
  /* animation-timeline: scroll(root); */
  /* animation-range: 0% 55%; */
}
@keyframes veil-1-move {
  from { transform: rotate(-15deg) scale(1.1); opacity: 0.9; }
  to   { transform: translate(-120vw, -95vh) rotate(-45deg) scale(0.8); opacity: 0; }
}

/* Piece 2 — second veil scan, chaotic top-right offset */
.veil-piece-2 {
  width: 80vw;
  top: -20%;
  right: -40%;
  transform: rotate(12deg) scale(0.95);
  /* CSS scroll animations disabled - using JavaScript for consistency */
  /* animation: veil-2-move linear both; */
  /* animation-timeline: scroll(root); */
  /* animation-range: 0% 50%; */
}
@keyframes veil-2-move {
  from { transform: rotate(12deg) scale(0.95); opacity: 0.85; }
  to   { transform: translate(110vw, -85vh) rotate(50deg) scale(0.7); opacity: 0; }
}

/* Piece 3 — long edge veil, hangs from top-center, flies upward */
.veil-piece-3 {
  width: 65vw;
  top: -12%;
  left: 5%;
  transform-origin: top center;
  transform: rotate(-8deg) scale(1.05);
  /* CSS scroll animations disabled - using JavaScript for consistency */
  /* animation: veil-3-move linear both; */
  /* animation-timeline: scroll(root); */
  /* animation-range: 5% 60%; */
}
@keyframes veil-3-move {
  from { transform: rotate(-8deg) scale(1.05); opacity: 0.88; }
  to   { transform: translate(-90vw, 110vh) rotate(35deg) scale(0.6); opacity: 0; }
}

/* Piece 4 — gloves, starts near center-right */
.veil-piece-4 {
  width: 60vw;
  top: 5%;
  right: -8%;
  transform-origin: center right;
  transform: rotate(18deg) scale(1.15);
  /* CSS scroll animations disabled - using JavaScript for consistency */
  /* animation: veil-4-move linear both; */
  /* animation-timeline: scroll(root); */
  /* animation-range: 0% 45%; */
}
@keyframes veil-4-move {
  from { transform: rotate(18deg) scale(1.15); opacity: 0.85; }
  to   { transform: translate(95vw, -60vh) rotate(-55deg) scale(0.3); opacity: 0; }
}

/* ─── Scroll Hint ─── */
#scroll-hint {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 101;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--soft-gray);
  opacity: 0.7;
  animation: hint-pulse 3s ease-in-out infinite;
  transition: opacity 0.6s ease;
}
#scroll-hint.hidden { opacity: 0 !important; pointer-events: none; }
@keyframes hint-pulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.9;   transform: translateX(-50%) translateY(8px); }
}

/* ─── Hero Section ─── */
#hero {
  position: relative;
  /* Tall enough that hero stays in view during the veil-clearing scroll */
  min-height: 200vh;
  text-align: center;
}

/* Sticky inner that keeps content centered while parent scrolls */
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

/* Peeking title under the veil */
.hero-peek {
  position: absolute;
  inset: 0;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hero-peek span {
  font-family: 'Noto Serif KR', serif;
  font-weight: 200;
  font-size: clamp(2.5rem, 10vw, 8rem);
  color: var(--dusty-rose);
  opacity: 0.12;
  letter-spacing: 0.15em;
  text-align: center;
  line-height: 1.2;
  padding: 0 1rem;
}

/* The real hero content, revealed after scroll */
.hero-content {
  position: relative;
  z-index: 10;
}

.hero-korean {
  font-family: 'Noto Serif KR', serif;
  font-weight: 300;
  font-size: clamp(0.9rem, 2.5vw, 1.4rem);
  letter-spacing: 0.4em;
  color: var(--soft-gray);
  opacity: 0.7;
  margin-bottom: 1.5rem;
  text-transform: none;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3rem, 12vw, 10rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  font-style: italic;
}

.hero-names {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 3rem;
}

.hero-name-block {
  position: relative; /* anchor for the absolutely-placed sig */
  display: flex;
  align-items: center;
}

.hero-name-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: clamp(0.65rem, 1.8vw, 0.9rem);
  letter-spacing: 0.4em;
  color: var(--charcoal);
  opacity: 0.6;
  text-transform: uppercase;
  position: relative; /* stays above the sig */
  z-index: 1;
}

/* Sig floats below the printed name, out of flow so it doesn't shift layout */
.hero-sig {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.5rem;
  width: 200px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-separator {
  display: block;
  width: 1.5em;
  height: 1px;
  background: var(--dusty-rose);
  margin: 0.45em 1.4em 0;
  opacity: 0.5;
  flex-shrink: 0;
}

.hero-date {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: clamp(0.6rem, 1.2vw, 0.75rem);
  letter-spacing: 0.2em;
  color: var(--soft-gray);
  margin-top: 2rem;
  opacity: 0.7;
}

.rings-accent {
  width: clamp(60px, 12vw, 120px);
  margin: 2.5rem auto 0;
  display: block;
  filter: sepia(0.2) contrast(1.05) brightness(0.95);
  opacity: 0.8;
  border-radius: 2px;
}

/* ─── Section Divider ─── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  margin: 0 auto;
  max-width: 700px;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--dusty-rose), transparent);
  opacity: 0.25;
}
.section-divider span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.55rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--soft-gray);
  opacity: 0.5;
  white-space: nowrap;
}

/* ─── Photo Strip ─── */
#story {
  padding: 6rem 0 3rem;
}

.story-heading {
  text-align: center;
  padding: 0 2rem 3rem;
}
.story-heading h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  letter-spacing: 0.05em;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
  font-style: italic;
}
.story-heading p {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--soft-gray);
  opacity: 0.5;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
}

.photo-strip {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0 2rem 2rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.photo-strip::-webkit-scrollbar { display: none; }
.photo-strip:active { cursor: grabbing; }

.photo-card {
  flex: 0 0 auto;
  position: relative;
}
.photo-card img {
  height: clamp(260px, 45vh, 420px);
  width: auto;
  display: block;
  filter: sepia(0.15) contrast(1.05) brightness(0.98);
  border-radius: 2px;
  transition: filter 0.4s ease;
}
.photo-card img:hover {
  filter: sepia(0.05) contrast(1.02) brightness(1);
}
.photo-caption {
  margin-top: 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--charcoal);
  opacity: 0.4;
  text-transform: uppercase;
}

/* Vignette cards for the scanned items */
.photo-card--scan img {
  opacity: 0.8;
  filter: sepia(0.25) contrast(1.1) brightness(0.92);
}

.photo-card { cursor: pointer; }
.photo-card img { transition: filter 0.3s ease, opacity 0.3s ease; }
.photo-card:hover img {
  /* !important overrides the sepia filters applied by .photo-card--scan */
  filter: sepia(0.05) contrast(1.02) brightness(1.02) !important;
  opacity: 1 !important;
}

/* ─── Lightbox ─── */
/* Visibility is toggled by JS via element.style.display ('flex' = open, 'none' = closed).
   The display:none here is the default before JS runs. */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(42, 42, 42, 0.93);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.5;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  transition: opacity 0.2s;
  z-index: 1;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s;
  padding: 1rem 1.5rem;
  z-index: 1;
  font-family: 'Cormorant Garamond', serif;
  line-height: 1;
}
.lightbox-nav:hover  { opacity: 1; }
.lightbox-nav:disabled { opacity: 0.1; cursor: default; }
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }

.lightbox-inner {
  display: flex;
  gap: 3rem;
  max-width: 980px;
  width: 100%;
  max-height: 85vh;
  background: var(--panel-bg);
  padding: 2.5rem;
}

.lightbox-photo-wrap {
  flex: 0 1 auto;
  max-width: min(42vw, 440px);
  overflow: hidden;
}

#lightbox-img {
  max-height: 68vh;
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  filter: sepia(0.1) contrast(1.05);
}

.lightbox-caption {
  margin-top: 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--soft-gray);
  opacity: 0.6;
}

.lightbox-comments {
  flex: 1 1 0;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lightbox-comments-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
}

.comments-list {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  padding-right: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--dusty-rose) transparent;
}

.comment-item {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(201, 169, 166, 0.2);
}
.comment-item:last-child { border-bottom: none; }

.comment-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dusty-rose);
  margin-bottom: 0.3rem;
}

.comment-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--charcoal);
  line-height: 1.65;
}

.comments-empty {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--soft-gray);
  font-size: 0.9rem;
  opacity: 0.6;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-shrink: 0;
}

.comment-form input,
.comment-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201, 169, 166, 0.4);
  padding: 0.5rem 0.1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: var(--charcoal);
  outline: none;
  resize: none;
  transition: border-color 0.2s;
  width: 100%;
}
.comment-form input::placeholder,
.comment-form textarea::placeholder {
  color: var(--soft-gray);
  opacity: 0.5;
  font-style: italic;
}
.comment-form input:focus,
.comment-form textarea:focus { border-bottom-color: var(--dusty-rose); }
.comment-form textarea { height: 72px; }

.comment-submit {
  align-self: flex-end;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: var(--blush);
  border: 1px solid rgba(201, 169, 166, 0.3);
  color: var(--charcoal);
  padding: 0.6em 1.8em;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  margin-top: 0.25rem;
}
.comment-submit:hover { background: var(--dusty-rose); }
.comment-submit:disabled { opacity: 0.5; cursor: default; }

/* ─── Mobile lightbox ─── */
@media (max-width: 600px) {
  .lightbox { padding: 0; align-items: flex-end; }
  .lightbox-inner {
    flex-direction: column;
    overflow-y: auto;
    max-height: 92vh;
    padding: 1.5rem 1.25rem;
    gap: 1.5rem;
    width: 100%;
  }
  #lightbox-img { max-width: 100%; max-height: 38vh; }
}

/* ─── Footer ─── */
footer {
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.5rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--soft-gray);
  border-top: 1px solid rgba(201, 169, 166, 0.15);
}

.footer-tagline {
  opacity: 0.35;
}

/* ─── Mobile ─── */
@media (max-width: 600px) {
  .veil-piece-1 { width: 120vw; top: -35%; left: -45%; }
  .veil-piece-2 { width: 125vw; top: -30%; right: -50%; }
  .veil-piece-3 { width: 100vw; bottom: -40%; left: -30%; }
  .veil-piece-4 { width: 95vw; top: 40%; right: -35%; }

  .photo-strip { gap: 1rem; padding: 0 1rem 1.5rem; }
}


/* ════════════════════════════════════════════════════════════════════════════
   THEME I — CREAM  (default)
   Lace scan watermark fixed at bottom-right, very faint
   ════════════════════════════════════════════════════════════════════════════ */

[data-theme="cream"] body::before {
  content: '';
  position: fixed;
  bottom: -4vh;
  right: -4vw;
  width: min(55vw, 480px);
  height: min(80vh, 700px);
  background: url('assets/lace-scan.jpg') bottom right / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  filter: invert(1);
  mix-blend-mode: multiply;
}


/* ════════════════════════════════════════════════════════════════════════════
   THEME SWITCHER
   ════════════════════════════════════════════════════════════════════════════ */

/* Single pill button — click to cycle I → II → III → IV → I */
#theme-cycler {
  position: fixed;
  top: 1.75rem;
  right: 1.75rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(128, 128, 128, 0.13);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  border-radius: 3px;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}
#theme-cycler:hover {
  background: rgba(128, 128, 128, 0.22);
}

.pip {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.55rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--soft-gray);
  opacity: 0.3;
  transition: opacity 0.25s, color 0.25s;
  line-height: 1;
}
.pip.active {
  opacity: 1;
  color: var(--charcoal);
  font-weight: 400;
}


/* ════════════════════════════════════════════════════════════════════════════
   THEME II — GREEN  (the announcement card back)
   Palette: sage green background · forest green text · white lace veil
   ════════════════════════════════════════════════════════════════════════════ */

[data-theme="green"] {
  --cream:          #c2d3b0;
  --blush:          #a5be8f;
  --sage:           #b5c7a3;
  --charcoal:       #1e3d22;
  --soft-gray:      #426845;
  --dusty-rose:     #6a9060;
  --muted-gold:     #9ab585;
  --overlay-opacity: 0;
  --panel-bg:       #f4f8f0;
}

/* Tiling botanical background */
[data-theme="green"] body {
  background-image: url('assets/green-bg.jpg');
  background-repeat: repeat;
  background-size: 500px auto;
}

/* Hide the scroll veil — doesn't suit the green design */
[data-theme="green"] #veil-layer {
  opacity: 0 !important;
  pointer-events: none;
}

/* No scatter animation → hero only needs 100vh, not 280vh */
[data-theme="green"] #hero {
  min-height: 100vh;
}

/* ── Four lace border corners ── */
/* TL — body::before */
[data-theme="green"] body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: min(48vw, 475px);
  height: min(60vh, 550px);
  background: url('assets/green-border-tl.png') top left / contain no-repeat;
  opacity: 0.75;
  pointer-events: none;
  z-index: 150;
}

/* BR — body::after (overrides paper-grain overlay; --overlay-opacity is 0 here anyway) */
[data-theme="green"] body::after {
  inset: auto;
  bottom: 0;
  right: 0;
  width: min(48vw, 475px);
  height: min(60vh, 550px);
  background-image: url('assets/green-border-bl.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;
  mix-blend-mode: normal;
  opacity: 0.75;
  z-index: 150;
}

/* TR — html::before */
html[data-theme="green"]::before {
  content: '';
  position: fixed;
  top: 0;
  right: 0;
  width: min(48vw, 475px);
  height: min(60vh, 550px);
  background: url('assets/green-border-tr.png') top right / contain no-repeat;
  opacity: 0.75;
  pointer-events: none;
  z-index: 150;
}

/* BL — html::after */
html[data-theme="green"]::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  width: min(48vw, 475px);
  height: min(60vh, 550px);
  background: url('assets/green-border-br.png') bottom left / contain no-repeat;
  opacity: 0.75;
  pointer-events: none;
  z-index: 150;
}

/* The calligraphic script heading — mirrors "Wedding Announcement" from the card */
[data-theme="green"] .hero-title {
  font-family: 'Pinyon Script', cursive;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(4.5rem, 17vw, 13rem);
  line-height: 1;
  letter-spacing: 0.01em;
}

[data-theme="green"] .hero-korean {
  opacity: 0.55;
}

/* Footer */
[data-theme="green"] .hero-sig {
  opacity: 0.75;
}
[data-theme="green"] footer {
  border-top-color: rgba(30, 61, 34, 0.12);
}
[data-theme="green"] .footer-tagline {
  opacity: 0.4;
}

/* Comment panel inputs */
[data-theme="green"] .comment-form input,
[data-theme="green"] .comment-form textarea {
  border-bottom-color: rgba(30, 61, 34, 0.2);
  color: var(--charcoal);
}
[data-theme="green"] .comment-form input:focus,
[data-theme="green"] .comment-form textarea:focus {
  border-bottom-color: var(--dusty-rose);
}
[data-theme="green"] .comment-item {
  border-bottom-color: rgba(30, 61, 34, 0.1);
}


/* ════════════════════════════════════════════════════════════════════════════
   THEME III — FILM  (the announcement card front / restaurant photos)
   Palette: near-black · warm off-white text · burgundy accent
   ════════════════════════════════════════════════════════════════════════════ */

[data-theme="film"] {
  --cream:          #121010;
  --blush:          #2e1a18;
  --sage:           #1c1412;
  --charcoal:       #e8ddd4;
  --soft-gray:      #8a7c72;
  --dusty-rose:     #8b2020;
  --muted-gold:     #4a3828;
  --overlay-opacity: 0.07;
  --panel-bg:       #1e1816;
}

/* Engagement ring — large, centered, behind the hero title */
[data-theme="film"] body::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  width: min(58vh, 480px);
  aspect-ratio: 1559 / 2160;
  background: url('assets/rings-1.jpg') center / cover no-repeat;
  opacity: 0.11;
  pointer-events: none;
  z-index: 0;
  filter: sepia(0.2) contrast(1.15) brightness(0.85);
}

/* Heavier film grain, screen blend for dark background */
[data-theme="film"] body::after {
  mix-blend-mode: screen;
  background-size: 200px 200px;
}

/* Ensure text inherits the warm off-white correctly */
[data-theme="film"] .hero-korean,
[data-theme="film"] .hero-name-text,
[data-theme="film"] .hero-date {
  color: var(--charcoal);
}
[data-theme="film"] .hero-separator {
  background: var(--dusty-rose);
}

/* Section dividers in burgundy */
[data-theme="film"] .section-divider::before,
[data-theme="film"] .section-divider::after {
  background: linear-gradient(to right, transparent, var(--dusty-rose), transparent);
}

/* Photo strip: richer contrast for dark bg */
[data-theme="film"] .photo-card img {
  filter: sepia(0.25) contrast(1.12) brightness(0.88);
}
[data-theme="film"] .photo-card--scan img {
  filter: sepia(0.35) contrast(1.15) brightness(0.82);
}
[data-theme="film"] .photo-card:hover img {
  filter: sepia(0.1) contrast(1.05) brightness(0.95) !important;
  opacity: 1 !important;
}

/* Cycler on dark background */
[data-theme="film"] #theme-cycler {
  background: rgba(255, 255, 255, 0.07);
}
[data-theme="film"] #theme-cycler:hover {
  background: rgba(255, 255, 255, 0.13);
}

/* Footer */
[data-theme="film"] footer {
  border-top-color: rgba(139, 32, 32, 0.18);
}
[data-theme="film"] .footer-tagline {
  opacity: 0.35;
}
[data-theme="film"] .hero-sig {
  filter: invert(1);
  opacity: 0.65;
}

/* Lightbox panel — dark */
[data-theme="film"] .lightbox-comments-heading { color: var(--charcoal); }
[data-theme="film"] .comment-name             { color: var(--dusty-rose); }
[data-theme="film"] .comment-text             { color: var(--charcoal); }
[data-theme="film"] .comments-empty           { color: var(--soft-gray); }
[data-theme="film"] .comment-form input,
[data-theme="film"] .comment-form textarea {
  border-bottom-color: rgba(139, 32, 32, 0.4);
  color: var(--charcoal);
}
[data-theme="film"] .comment-form input::placeholder,
[data-theme="film"] .comment-form textarea::placeholder {
  color: var(--soft-gray);
}
[data-theme="film"] .comment-form input:focus,
[data-theme="film"] .comment-form textarea:focus {
  border-bottom-color: var(--dusty-rose);
}
[data-theme="film"] .comment-item {
  border-bottom-color: rgba(139, 32, 32, 0.15);
}
[data-theme="film"] .comment-submit {
  background: var(--blush);
  border-color: rgba(139, 32, 32, 0.3);
}
[data-theme="film"] .comment-submit:hover {
  background: var(--dusty-rose);
  color: var(--cream);
}


