/* === Tokens === */
:root {
  --bg: #f5efe3;
  --bg-2: #ebe2d0;
  --bg-3: #e0d3ba;
  --ink: #2a2218;
  --ink-2: #4a3f30;
  --ink-3: #7a6b56;
  --ink-mute: #9a8b73;
  --rule: #c9bba0;
  --rule-2: #d8cdb4;
  --accent: #6f4f2b;       /* warm walnut */
  --accent-2: #8e6e4a;
  --gold: #b09061;
  --sage: #6b7a5f;
  --rose: #a76f6a;
  --card: #fbf6ea;
  --shadow: 0 12px 36px -18px rgba(58, 38, 14, 0.32), 0 2px 6px -2px rgba(58, 38, 14, 0.18);
  --shadow-lg: 0 28px 60px -28px rgba(58, 38, 14, 0.45), 0 4px 12px -4px rgba(58, 38, 14, 0.22);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle paper texture via noise */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.34  0 0 0 0 0.20  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

main, header, footer, section { position: relative; z-index: 1; }

/* === Typography === */
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif; font-weight: 500; color: var(--ink); letter-spacing: 0.005em; margin: 0; line-height: 1.12; }
.serif-italic { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; }
.eyebrow {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.lead { font-size: 19px; line-height: 1.7; color: var(--ink-2); }

/* === Layout === */
.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 28px; }

/* === Language switcher === */
.lang-switcher {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 50;
  background: var(--card);
  border: 1px solid var(--rule);
  color: var(--ink-3);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(58,38,14,0.18);
  transition: all 0.2s;
}
.lang-switcher:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* === Hero === */
.hero {
  padding: 56px 0 24px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}
.hero-photo-wrap {
  position: relative;
  padding: 18px 18px 64px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.4deg);
  border: 1px solid rgba(0,0,0,0.04);
}
.hero-photo-wrap img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.96) contrast(1.02);
}
.hero-photo-cap {
  position: absolute;
  bottom: 22px;
  left: 0; right: 0;
  text-align: center;
  font-family: 'Caveat', 'Cormorant Garamond', cursive;
  font-size: 22px;
  color: var(--ink-3);
}
.hero-text { padding-right: 8px; }
.hero-eyebrow { display: flex; align-items: center; gap: 14px; color: var(--ink-3); margin-bottom: 18px; }
.hero-eyebrow .rule { flex: 0 0 36px; height: 1px; background: var(--rule); }
.hero h1 {
  font-size: clamp(58px, 8vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero h1 .small { display: block; font-size: 0.42em; font-style: italic; color: var(--ink-3); margin-top: 14px; letter-spacing: 0; font-weight: 400; }
.hero-dates {
  margin: 26px 0 22px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-dates .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; }
.hero-dates .year { font-style: italic; }
.hero p { color: var(--ink-2); font-size: 18px; max-width: 38ch; }

/* === Verse band === */
.verse-band {
  margin: 80px 0 40px;
  padding: 60px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.verse-band .quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.35;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 auto;
}
.verse-band .cite { display: block; margin-top: 22px; font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-3); }
.verse-band .ornament { font-size: 20px; color: var(--gold); margin-bottom: 18px; letter-spacing: 0.8em; }

/* === Section headings === */
.section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(42px, 5.5vw, 60px);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.section-head h2 em { font-style: italic; color: var(--accent); font-weight: 400;}
.section-head .sub { color: var(--ink-3); font-size: 15px; }

/* === Slideshow === */
.slideshow {
  position: relative;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.04);
  overflow: hidden;
}
.slide-stage {
  position: relative;
  width: 100%;
  height: clamp(420px, 75vh, 900px);
  background: #1a1610;
  overflow: hidden;
}
.slide-stage .slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1.4s ease;
  background: #1a1610;
  pointer-events: none;
}
.slide-stage .slide.active { opacity: 1; pointer-events: auto; }
.slide-stage .slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55);
}
.slide-stage .slide[data-kb="0"].active img { animation: kb-zoom-in  10s ease-in-out forwards; }
.slide-stage .slide[data-kb="1"].active img { animation: kb-zoom-out 10s ease-in-out forwards; }
.slide-stage .slide[data-kb="2"].active img { animation: kb-pan-r    10s ease-in-out forwards; }
.slide-stage .slide[data-kb="3"].active img { animation: kb-pan-l    10s ease-in-out forwards; }
@keyframes kb-zoom-in  { 0% { transform: scale(1.0)  translate(0, 0);       } 100% { transform: scale(1.12) translate(-2%, -1.5%); } }
@keyframes kb-zoom-out { 0% { transform: scale(1.12) translate(2%, 1.5%);   } 100% { transform: scale(1.0)  translate(0, 0);        } }
@keyframes kb-pan-r    { 0% { transform: scale(1.08) translate(-3%, 0);     } 100% { transform: scale(1.08) translate(3%, 0);       } }
@keyframes kb-pan-l    { 0% { transform: scale(1.08) translate(3%, 0);      } 100% { transform: scale(1.08) translate(-3%, 0);      } }

.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.86);
  color: var(--ink);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  z-index: 4;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,0.45);
  transition: background 0.2s, transform 0.2s;
}
.slide-nav:hover { background: #fff; transform: translateY(-50%) scale(1.07); }
.slide-nav.prev { left: 18px; }
.slide-nav.next { right: 18px; }

.slide-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-top: 1px solid var(--rule-2);
}
.slide-meta .count { font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.slide-meta .caption { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 18px; color: var(--ink-2); text-align: center; flex: 1; padding: 0 24px; }
.slide-controls { display: flex; gap: 10px; }
.slide-controls button {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-3);
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.2s;
}
.slide-controls button:hover { color: var(--ink); border-color: var(--ink-3); }
.slide-controls button.is-playing { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* progress dots */
.slide-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px 28px 24px;
  justify-content: center;
}
.slide-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--rule);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}
.slide-dots button:hover { background: var(--ink-mute); }
.slide-dots button.active { background: var(--accent); width: 22px; border-radius: 999px; }

/* thumb strip */
.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 8px;
  margin-top: 26px;
}
.thumbs button {
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  border-radius: 2px;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: outline-color 0.2s, transform 0.2s;
}
.thumbs button img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; filter: saturate(0.92) brightness(0.94); }
.thumbs button:hover img { transform: scale(1.08); filter: saturate(1) brightness(1); }
.thumbs button.active { outline-color: var(--accent); }
.thumbs button.active img { filter: saturate(1) brightness(1); }

/* === Story === */
.story { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.story-grid { display: grid; gap: 64px; }
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.story-block.reverse { grid-template-columns: 1fr 1fr; }
.story-block.reverse .text { order: 2; }
.story-block.reverse .photo { order: 1; }
@media (max-width: 780px) {
  .story-block, .story-block.reverse { grid-template-columns: 1fr; gap: 28px; }
  .story-block.reverse .text { order: 1; }
  .story-block.reverse .photo { order: 2; }
}
.story-block .year { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 56px; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.story-block h3 { font-size: 32px; margin-bottom: 18px; line-height: 1.15; }
.story-block p { color: var(--ink-2); margin: 0 0 14px; }
.story-block .photo {
  background: var(--card);
  padding: 14px 14px 36px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
}
.story-block:nth-child(odd) .photo { transform: rotate(1.2deg); }
.story-block:nth-child(even) .photo { transform: rotate(-1.5deg); }
.story-block .photo img { display: block; width: 100%; height: auto; filter: saturate(0.96) contrast(1.02); }
.story-block .photo .cap {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: var(--ink-3);
}

/* === Family band === */
.family-band {
  margin: 32px 0;
  padding: 56px 0;
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.family-band .eyebrow { margin-bottom: 18px; }
.family-band h3 { font-size: 36px; font-style: italic; color: var(--accent); margin-bottom: 18px; font-weight: 400; }
.family-names {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--ink);
}
.family-names span { position: relative; }
.family-names span:not(:last-child)::after {
  content: '•';
  position: absolute;
  right: -22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 10px;
}

/* === Guestbook === */
.guestbook { background: var(--bg-2); }
.guestbook .container { max-width: 980px; }

.gb-intro {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto 48px;
  color: var(--ink-2);
}
.gb-intro p { margin: 0; }

.gb-form {
  background: var(--card);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
  margin-bottom: 56px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.gb-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 600px) { .gb-form .form-row { grid-template-columns: 1fr; } }
.gb-form label { display: block; font-family: 'Inter', sans-serif; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.gb-form input, .gb-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--rule-2);
  padding: 12px 14px;
  font-family: 'Lora', serif;
  font-size: 16px;
  color: var(--ink);
  resize: vertical;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
}
.gb-form input:focus, .gb-form textarea:focus { border-color: var(--accent); }
.gb-form textarea { min-height: 110px; line-height: 1.55; }
.gb-form .actions { display: flex; justify-content: center; align-items: center; margin-top: 18px; gap: 16px; flex-wrap: wrap; }
.gb-form .lang-toggle { display: flex; gap: 0; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; }
.gb-form .lang-toggle button {
  background: transparent;
  border: none;
  padding: 8px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  cursor: pointer;
}
.gb-form .lang-toggle button.active { background: var(--ink); color: var(--bg); }
.gb-form button[type=submit] {
  background: var(--accent);
  color: #fbf6ea;
  border: none;
  padding: 12px 26px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.2s;
}
.gb-form button[type=submit]:hover { background: var(--ink); }

/* Guestbook cards — two-column grid (multicol strips child positioning) */
.gb-cards {
  column-count: 2;
  column-gap: 28px;
}
@media (max-width: 720px) { .gb-cards { column-count: 1; } }

.gb-card {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin-bottom: 28px;
  padding: 26px 28px 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
  box-sizing: border-box;
}
.gb-card .quote-mark {
  position: absolute;
  top: -8px; left: 18px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  color: var(--gold);
  line-height: 1;
}
.gb-card .body { color: var(--ink-2); font-size: 16.5px; line-height: 1.65; font-family: 'Lora', serif; }
.gb-card .body.spanish { font-style: italic; }
.gb-card .body-translated { color: var(--ink-3); font-size: 14px; line-height: 1.6; font-family: 'Lora', serif; font-style: italic; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule-2); }
.gb-card .meta { display: flex; align-items: baseline; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule-2); gap: 16px; }
.gb-card .who { font-family: 'Cormorant Garamond', serif; font-size: 19px; color: var(--ink); font-weight: 500; }
.gb-card .rel { font-family: 'Inter', sans-serif; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.gb-card .when { font-family: 'Inter', sans-serif; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-mute); flex: 0 0 auto; }

/* === Card edit/delete === */
.gb-card { position: relative; }
.card-actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; opacity: 0; transition: opacity 0.2s; }
.gb-card--owned:hover .card-actions { opacity: 1; }
.card-action-btn { display: flex; align-items: center; justify-content: center; padding: 5px 8px; background: var(--parchment); border: 1px solid var(--rule); border-radius: 4px; cursor: pointer; color: var(--ink-3); font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.03em; transition: color 0.15s, border-color 0.15s; }
.card-action-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.card-action-delete:hover { color: #c0392b; border-color: #c0392b; }
.card-action-confirm { color: #c0392b; border-color: #c0392b; }
.card-edit-form { display: flex; flex-direction: column; gap: 10px; }
.card-edit-input { width: 100%; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 4px; font-family: 'Inter', sans-serif; font-size: 14px; color: var(--ink); background: var(--parchment); box-sizing: border-box; }
.card-edit-textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 4px; font-family: 'Lora', serif; font-size: 14px; color: var(--ink); background: var(--parchment); min-height: 90px; resize: vertical; box-sizing: border-box; }
.card-edit-actions { display: flex; gap: 8px; justify-content: flex-end; }
.card-edit-save { padding: 6px 16px; background: var(--accent); color: #fff; border: none; border-radius: 4px; font-family: 'Inter', sans-serif; font-size: 13px; cursor: pointer; }
.card-edit-save:disabled { opacity: 0.5; cursor: default; }
.card-edit-cancel { padding: 6px 16px; background: transparent; color: var(--ink-3); border: 1px solid var(--rule); border-radius: 4px; font-family: 'Inter', sans-serif; font-size: 13px; cursor: pointer; }

/* === Lightbox === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 6, 0.94);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 100%; max-height: 100%; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6); }
.lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0; line-height: 1;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
  width: 52px; height: 52px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0; line-height: 1;
}
.lightbox-nav.prev { left: 36px; }
.lightbox-nav.next { right: 36px; }
.lightbox-nav:hover, .lightbox-close:hover { background: rgba(255,255,255,0.1); }

/* === Fullscreen Slideshow === */
.fs-slideshow {
  position: fixed;
  inset: 0;
  background: #0e0b07;
  z-index: 200;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
  overflow: hidden;
}
.fs-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.fs-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.fs-slide.active { opacity: 1; }
.fs-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.fs-slide[data-kb="0"].active img { animation: kb-zoom-in  10s ease-in-out forwards; }
.fs-slide[data-kb="1"].active img { animation: kb-zoom-out 10s ease-in-out forwards; }
.fs-slide[data-kb="2"].active img { animation: kb-pan-r    10s ease-in-out forwards; }
.fs-slide[data-kb="3"].active img { animation: kb-pan-l    10s ease-in-out forwards; }
.fs-close {
  position: absolute;
  top: 20px; right: 24px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: background 0.2s, opacity 0.3s;
}
.fs-slideshow:hover .fs-close { opacity: 1; }
.fs-close:hover { background: rgba(255,255,255,0.12); }
.fs-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
  width: 56px; height: 56px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: background 0.2s, opacity 0.3s;
}
.fs-slideshow:hover .fs-nav { opacity: 1; }
.fs-nav:hover { background: rgba(255,255,255,0.12); }
.fs-nav.prev { left: 28px; }
.fs-nav.next { right: 28px; }
.fs-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 80px;
  gap: 24px;
}
.fs-controls {
  opacity: 0;
  transition: opacity 0.3s;
}
.fs-slideshow:hover .fs-controls { opacity: 1; }
.fs-caption {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fs-cap-es {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 20px;
  color: rgba(255,255,255,0.85);
}
.fs-cap-en {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.fs-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}
.fs-count {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.4);
}
.fs-play {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.2s;
}
.fs-play:hover { background: rgba(255,255,255,0.1); }
.fs-play.is-playing { background: rgba(255,255,255,0.12); color: #fff; }
.fs-mute {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: background 0.2s;
}
.fs-mute:hover { background: rgba(255,255,255,0.1); }
.fs-progress {
  height: 3px;
  background: rgba(255,255,255,0.1);
  flex: 0 0 auto;
}
.fs-bar {
  height: 100%;
  width: 0%;
  background: var(--gold);
  animation: fs-progress linear;
}
@keyframes fs-progress {
  from { width: 0%; }
  to { width: 100%; }
}

/* === Mobile === */
@media (max-width: 768px) {
  .container, .container-narrow { padding: 0; }
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: clamp(34px, 9vw, 52px); }

  /* Hero */
  .hero { padding: 52px 0 20px; }
  .hero p { font-size: 16px; max-width: 100%; }
  .hero-dates { font-size: 18px; gap: 12px; margin: 18px 0 16px; }
  .hero-text { padding-right: 0; }

  /* Verse band */
  .verse-band { margin: 40px 0 20px; padding: 40px 20px; }

  /* Story */
  .story-grid { gap: 44px; }
  .story-block .year { font-size: 42px; }
  .story-block h3 { font-size: 26px; margin-bottom: 12px; }

  /* Family band */
  .family-band { padding: 40px 0; }
  .family-band h3 { font-size: 28px; }
  .family-names { font-size: 22px; gap: 24px; }

  /* Slideshow meta */
  .slide-meta { flex-wrap: wrap; gap: 10px; padding: 14px 18px; }
  .slide-meta .caption { flex: 0 0 100%; order: -1; padding: 0; text-align: left; font-size: 16px; }
  .slide-meta .count { font-size: 11px; }
  .slide-controls button { padding: 7px 12px; font-size: 10px; }
  /* Hide arrows on mobile — swipe is used instead */
  .slide-nav, .fs-nav, .lightbox-nav { display: none; }

  /* Fullscreen — always show controls on touch, keep desktop sizes */
  .fs-bottom { padding: 12px 20px; gap: 12px; }
  .fs-nav { opacity: 1; }
  .fs-close { opacity: 1; }
  .fs-controls { opacity: 1; }
  .fs-cap-es { font-size: 16px; }
  .fs-cap-en { font-size: 10px; }

  /* Guestbook */
  .gb-form { padding: 22px 18px; }
  .gb-card { padding: 22px 20px 18px; }
  .gb-card .body { font-size: 15.5px; }
}

@media (max-width: 480px) {
  .container, .container-narrow { padding: 0; }
  .section { padding: 40px 0; }
  .section-head { margin-bottom: 28px; }

  /* Hero */
  .hero { padding: 44px 0 16px; }
  .hero h1 { font-size: clamp(44px, 12vw, 72px); }

  /* Verse band */
  .verse-band { padding: 32px 16px; margin: 28px 0 16px; }

  /* Story */
  .story-block { gap: 20px; }
  .story-block .year { font-size: 36px; }
  .story-block h3 { font-size: 23px; }

  /* Family */
  .family-names { font-size: 18px; gap: 16px; }
  .family-names span:not(:last-child)::after { right: -12px; }

  /* Slideshow */
  .slide-meta { padding: 12px 14px; }
  .thumbs { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 5px; }

  /* Fullscreen */
  .fs-bottom { padding: 10px 14px; flex-wrap: wrap; }
  .fs-cap-es { font-size: 14px; }

  /* Guestbook */
  .gb-form { padding: 16px 14px; margin-bottom: 36px; }
  .gb-card { padding: 18px 16px 16px; }
  .gb-card .quote-mark { font-size: 48px; top: -6px; left: 12px; }
  .gb-card .who { font-size: 17px; }

  /* Lang switcher — smaller on tiny screens */
  .lang-switcher { padding: 7px 12px; font-size: 10px; top: 12px; right: 14px; }
}

/* === Footer === */
.site-foot {
  padding: 60px 0 50px;
  text-align: center;
  border-top: 1px solid var(--rule);
  background: var(--bg);
}
.site-foot .ornament { font-size: 18px; color: var(--gold); letter-spacing: 0.8em; margin-bottom: 16px; }
.site-foot p { color: var(--ink-3); font-size: 14px; margin: 6px 0; }
.site-foot .name { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-style: italic; color: var(--ink); margin-bottom: 6px; }
