/* =========================================
   Luna Wedding Invitation — Ver 2
   Editorial romance: wine, rose and paper
========================================= */
:root {
  --ver2-wine: #321c24;
  --ver2-wine-dark: #120d0f;
  --ver2-rose: #9b6568;
  --ver2-blush: #dac4ae;
  --ver2-paper: #f7f1e8;
  --ver2-ink: #40202a;
  --ver2-gold: #b98751;
  --bg-page: var(--ver2-paper);
  --bg-surface: #fffaf5;
  --bg-muted: #f2ded8;
  --bg-deep: var(--ver2-wine);
  --bg-deep-soft: #713247;
  --color-heading: var(--ver2-wine);
  --color-text: #593842;
  --color-text-muted: #8a6269;
  --color-border: #dfbbb6;
  --color-focus: var(--ver2-rose);
  --color-link: var(--ver2-wine);
  --color-link-hover: var(--ver2-rose);
  --shadow-sm: 0 0.8rem 2rem rgba(83, 31, 50, 0.1);
  --shadow-md: 0 1.4rem 3.5rem rgba(83, 31, 50, 0.17);
  --radius-md: 1.25rem;
  --radius-lg: 1.75rem;
}

body {
  background: var(--ver2-paper);
  letter-spacing: 0.015em;
}

.section-kicker {
  color: var(--ver2-rose);
  font-size: 0.75rem;
  letter-spacing: 0.36em;
}

.section-title {
  letter-spacing: -0.035em;
}

/* Hero — a dark, framed wedding-album cover */
.hero-section {
  min-height: 100svh;
  background: var(--ver2-wine-dark);
  padding: clamp(1rem, 3vw, 2rem);
}

.hero-section::before {
  content: "Ngọc Anh\A &\A HUY TUẤN";
  position: absolute;
  z-index: 3;
  right: 2rem;
  bottom: clamp(9rem, 21vh, 12rem);
  left: 2rem;
  white-space: pre;
  color: #c8a677;
  font-family: var(--font-family-heading);
  font-size: clamp(2.45rem, 9vw, 5.5rem);
  font-weight: var(--font-weight-semibold);
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-align: center;
  text-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.72);
}

.hero-section::after {
  z-index: 2;
  inset: clamp(1rem, 3vw, 2rem);
  background:
    linear-gradient(180deg, rgba(18, 13, 15, 0.18) 0%, rgba(18, 13, 15, 0.08) 35%, rgba(18, 13, 15, 0.82) 100%),
    linear-gradient(90deg, rgba(18, 13, 15, 0.2), transparent 48%, rgba(18, 13, 15, 0.12));
  border: 0.0625rem solid rgba(218, 196, 174, 0.58);
}

.hero-image {
  width: 100%;
  min-height: calc(100svh - clamp(2rem, 6vw, 4rem));
  height: calc(100svh - clamp(2rem, 6vw, 4rem));
  filter: saturate(0.66) contrast(1.08) brightness(0.78);
  object-position: center;
}

.hero-open-button {
  z-index: 3;
  top: auto;
  bottom: clamp(2.2rem, 5vh, 3.25rem);
  left: 50%;
  transform: translateX(-50%);
  border: 0.0625rem solid rgba(218, 196, 174, 0.78);
  border-radius: 999px;
  background: rgba(18, 13, 15, 0.26);
  box-shadow: none;
  padding: 0.95rem 1.55rem;
  color: #f8f0e5;
  font-family: var(--font-family-base);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
}

.hero-open-button::after { display: none; }
.hero-open-button:hover { background: rgba(218, 196, 174, 0.16); }
.hero-open-button:active { transform: translateX(-50%) translateY(0.125rem); }
.hero-open-button.is-opening { transform: translate(-50%, -0.5rem); }

.hero-gesture-hint {
  z-index: 3;
  top: clamp(2rem, 5vh, 3rem);
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(248, 240, 229, 0.82);
  font-size: 0.625rem;
  letter-spacing: 0.28em;
}

html.is-invitation-open .hero-gesture-hint { transform: translate(-50%, -0.5rem); }

/* Couple portraits */
.couple-section {
  padding-top: clamp(5rem, 12vw, 8rem);
  background: linear-gradient(115deg, var(--ver2-paper) 0 56%, #f0d8d2 56% 100%);
}

.couple-section .section-header {
  margin-bottom: 2.25rem;
  text-align: left;
}

.couple-section .section-title { font-size: clamp(2.3rem, 8vw, 4rem); }

.couple-cards { gap: clamp(1rem, 4vw, 3rem); }

.profile-card {
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0;
  text-align: left;
}

.groom-card { padding-top: clamp(2.5rem, 10vw, 6rem); }

.profile-avatar {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 0;
  border-radius: 8rem 8rem 0 0;
  box-shadow: none;
}

.groom-card .profile-avatar { border-radius: 0 0 8rem 8rem; }
.profile-content { gap: 0.15rem; }
.profile-label { color: var(--ver2-rose); letter-spacing: 0.13em; }
.profile-name { color: var(--ver2-wine); font-size: clamp(1.4rem, 5vw, 2.2rem); }

/* Address and map */
.location-section {
  background: var(--ver2-wine);
  padding-block: clamp(2.625rem, 10vw, 7rem);
}

.location-section .section-header { text-align: left; margin-bottom: 2rem; }
.location-section .section-title { color: var(--ver2-paper); font-size: clamp(2rem, 7vw, 3.5rem); }
.location-content { gap: 1.75rem; }
.location-address { padding-left: 1.25rem; border-left: 0.125rem solid var(--ver2-gold); text-align: left; }
.location-text:first-child { color: var(--ver2-gold); letter-spacing: 0.08em; }
.location-text:last-child { color: rgba(255, 250, 245, 0.82); }
.google-map-container { border: 0; border-radius: 0; box-shadow: 1rem 1rem 0 var(--ver2-rose); }
.view-map-button { justify-self: start; border-radius: 0; color: var(--ver2-paper); }

/* Story — quiet reading column */
.love-story-section {
  background: var(--ver2-paper);
  padding-block: clamp(5rem, 13vw, 9rem);
}

.love-story-section .section-header { text-align: left; margin-left: 0; }
.love-story-section .section-title { color: var(--ver2-wine); font-size: clamp(2.25rem, 8vw, 4.25rem); }
.love-story-section .section-kicker { color: var(--ver2-rose); }
.love-story-timeline { gap: 0; padding-left: 0; }
.love-story-timeline::before { display: none; }
.love-story-section .timeline-item { padding: 1.75rem 0 1.75rem 2rem; border-top: 0.0625rem solid #e4c7c1; }
.love-story-section .timeline-item:last-child { border-bottom: 0.0625rem solid #e4c7c1; }
.love-story-section .timeline-content { gap: 0.55rem; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.love-story-section .timeline-item:hover .timeline-content { transform: none; box-shadow: none; }
.love-story-section .timeline-title { color: var(--ver2-wine); font-size: clamp(1.35rem, 5vw, 2rem); }
.love-story-section .timeline-description {
  color: #6d4a52;
  text-align: justify;
  text-justify: inter-word;
}

/* Schedule — numbered ribbon */
.wedding-schedule-section { background: #f0d8d2; }
.wedding-schedule-section .section-header { text-align: left; }
.wedding-schedule-section .section-title { color: var(--ver2-wine); font-size: clamp(2rem, 7vw, 3.5rem); }
.wedding-schedule-section .schedule-timeline { gap: 0; padding-left: 0; }
.wedding-schedule-section .schedule-timeline::before { display: none; }
.wedding-schedule-section .schedule-item { grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 1.15rem 0; border-top: 0.0625rem solid rgba(83, 31, 50, 0.25); }
.wedding-schedule-section .schedule-item:last-child { border-bottom: 0.0625rem solid rgba(83, 31, 50, 0.25); }
.wedding-schedule-section .schedule-item::before { display: none; }
.wedding-schedule-section .timeline-time { align-items: start; }
.wedding-schedule-section .timeline-time time { min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--ver2-wine); font-family: var(--font-family-heading); font-size: 1.3rem; }
.wedding-schedule-section .timeline-content { gap: 0.2rem; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.wedding-schedule-section .timeline-title { color: var(--ver2-wine); font-size: clamp(1.05rem, 4vw, 1.35rem); }
.wedding-schedule-section .timeline-description { color: #78575e; }

/* Gallery — a darker magazine spread */
.gallery-section { background: var(--ver2-wine-dark); padding-block: clamp(4.5rem, 11vw, 8rem); }
.gallery-section .section-header { text-align: left; }
.gallery-section .section-title { color: var(--ver2-paper); font-size: clamp(2.25rem, 8vw, 4rem); }
.gallery-section .section-kicker { color: var(--ver2-blush); }
.masonry-gallery { gap: 0.9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "item1 item2" "item3 item2" "item4 item4"; }
.masonry-gallery > .gallery-item:nth-child(1) .gallery-figure { aspect-ratio: 4 / 5; }
.masonry-gallery > .gallery-item:nth-child(2) .gallery-figure { aspect-ratio: 3 / 4; }
.masonry-gallery > .gallery-item:nth-child(3) .gallery-figure { aspect-ratio: 4 / 3; }
.masonry-gallery > .gallery-item:nth-child(4) .gallery-figure { aspect-ratio: 16 / 8; }
.gallery-item { border-radius: 0; box-shadow: none; }

/* Countdown */
.countdown-section { background: var(--ver2-paper); padding-block: clamp(5rem, 11vw, 8rem); }
.countdown-section::before { width: min(calc(100vw - 5rem), 20rem); aspect-ratio: 1; border: 0.5rem solid var(--ver2-blush); border-radius: 50%; box-shadow: none; }
.countdown-section .section-header { grid-row: 1; margin-bottom: 1.25rem; }
.countdown-section .section-title { color: var(--ver2-wine); font-size: clamp(2rem, 7vw, 3.25rem); letter-spacing: -0.04em; }
.countdown-section .countdown-grid { width: min(100%, 30rem); margin-top: -1.5rem; padding: 1.15rem 0.75rem; border: 0; border-radius: 0; background: var(--ver2-wine); box-shadow: 0.8rem 0.8rem 0 var(--ver2-blush); }
.countdown-section .countdown-value { color: var(--ver2-paper); }
.countdown-section .countdown-label { color: var(--ver2-blush); }

/* RSVP and gift */
.rsvp-section { background: #f0d8d2; }
.rsvp-section .section-header { text-align: left; }
.rsvp-section .section-title { color: var(--ver2-wine); font-size: clamp(2rem, 7vw, 3.5rem); }
.rsvp-form { border-radius: 0 !important; box-shadow: 0.8rem 0.8rem 0 rgba(83, 31, 50, 0.13) !important; }
.submit-button { border-radius: 0 !important; background: var(--ver2-wine) !important; }

.gift-section { background: var(--ver2-paper); }
.gift-section .section-header { text-align: left; }
.gift-section .section-title { color: var(--ver2-wine); font-size: clamp(2rem, 7vw, 3.5rem); }
.gift-section .section-kicker, .gift-section .gift-label, .gift-card .gift-label { color: var(--ver2-rose); }
.gift-intro, .gift-note { margin-left: 0; color: #805a62; text-align: left; }
.gift-cards { border-top: 0.0625rem solid #e0c1bb; border-bottom: 0.0625rem solid #e0c1bb; }
.gift-card + .gift-card { border-left-color: #e0c1bb; }
.gift-person-role { color: var(--ver2-rose); }
.gift-person-name, .gift-value { color: var(--ver2-wine); }
.gift-qr-image { border-color: var(--ver2-blush); border-radius: 50%; box-shadow: none; }
.gift-heart { color: var(--ver2-rose); text-align: left; }

.footer { background: var(--ver2-wine-dark); }

@media (min-width: 48rem) {
  .hero-section::before { bottom: 9.5rem; }
  .hero-section { min-height: 48rem; }
  .hero-image { height: calc(48rem - 4rem); min-height: calc(48rem - 4rem); }
  .location-content { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; }
  .love-story-timeline { width: min(100%, 48rem); margin-left: 0; }
  .wedding-schedule-section .schedule-timeline { width: min(100%, 48rem); margin-left: 0; }
  .masonry-gallery { grid-template-columns: 1fr 1.25fr 0.8fr; grid-template-areas: "item1 item2 item2" "item1 item3 item4"; }
  .masonry-gallery > .gallery-item:nth-child(4) .gallery-figure { aspect-ratio: 4 / 3; }
}

@media (max-width: 30rem) {
  .hero-section { padding: 0.75rem; }
  .hero-section::after { inset: 0.75rem; }
  .hero-section::before { right: 1.5rem; bottom: 7.5rem; left: 1.5rem; font-size: 2.25rem; }
  .hero-image { min-height: calc(100svh - 1.5rem); height: calc(100svh - 1.5rem); }
  .countdown-section::before { width: min(calc(100vw - 5rem), 17rem); }
  .countdown-section .countdown-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .countdown-section .countdown-box { padding-inline: 0; }
  .countdown-section .countdown-value { font-size: 1.25rem; }
  .gift-card { padding-inline: 0.55rem; }
}

/* Ver 2 — luxury album pages below the cover */
.couple-section,
.love-story-section,
.gallery-section,
.countdown-section,
.gift-section {
  padding-block: clamp(3.625rem, 14vw, 7.125rem);
}

.couple-section {
  background: #161012;
}

.couple-section .section-header {
  max-width: 38rem;
  margin-bottom: 2.75rem;
  text-align: center;
}

.couple-section .section-kicker,
.couple-section .profile-label { color: #c8a677; }
.couple-section .section-title { color: #f5eadb; font-size: clamp(2.3rem, 8vw, 4.25rem); }
.couple-cards { max-width: 46rem; gap: clamp(1rem, 4vw, 2.75rem); }
.profile-card { align-items: center; text-align: center; }
.groom-card { padding-top: clamp(3rem, 11vw, 7rem); }
.profile-avatar { border: 0.0625rem solid rgba(200, 166, 119, 0.72); border-radius: 0; padding: 0.45rem; background: #161012; }
.profile-avatar-image { object-position: center; }
.groom-card .profile-avatar { border-radius: 0; }
.profile-name { color: #f5eadb; }

.location-section {
  background: #efe5d6;
  color: #23181b;
}
.location-section .section-header { margin-bottom: 2.25rem; text-align: center; }
.location-section .section-kicker { color: #8b633a; }
.location-section .section-title {
  color: #2a1920;
  font-family: var(--font-family-heading);
  font-size: clamp(2.3rem, 8vw, 4.25rem);
  font-weight: var(--font-weight-semibold);
}
.location-content { max-width: 42rem; gap: 2rem; }
.location-address {
  width: min(100%, 36rem);
  max-width: 36rem;
  margin-inline: auto;
  padding: 1.25rem 1rem;
  border-top: 0.0625rem solid #b99565;
  border-right: 0.0625rem solid #b99565;
  border-bottom: 0.0625rem solid #b99565;
  border-radius: 0.85rem;
  text-align: center;
}
.location-text:first-child {
  color: #50303a;
  font-family: var(--font-family-base);
  font-size: clamp(1rem, 3.8vw, 1.2rem);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
}
.location-section .location-text:last-child {
  color: #503a3f;
  font-size: clamp(0.95rem, 3.4vw, 1.05rem);
  font-weight: var(--font-weight-regular);
}
.google-map-container { border: 0.0625rem solid rgba(81, 52, 48, 0.34); border-radius: 0; box-shadow: none; }
.view-map-button { justify-self: center; border-color: #8b633a; border-radius: 0.85rem; color: #44252c; }

.love-story-section { background: #211419; }
.love-story-section .section-header { max-width: 42rem; margin-bottom: 2.5rem; text-align: center; }
.love-story-section .section-title { color: #f5eadb; font-size: clamp(2.25rem, 8vw, 4.25rem); }
.love-story-section .section-kicker { color: #c8a677; }
.love-story-timeline { width: min(100%, 42rem); }
.love-story-section .timeline-item { position: relative; padding: 2rem 1.5rem 2rem 2rem; border-color: rgba(200, 166, 119, 0.35); }
.love-story-section .timeline-item::before { display: none; }
.love-story-section .timeline-title { color: #c8a677; font-size: clamp(1.35rem, 5vw, 2rem); text-align: left; }
.love-story-section .timeline-title::before { color: inherit; font-family: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; margin-right: 0.35em; }
.love-story-section .timeline-item:nth-child(1) .timeline-title::before { content: "I. "; }
.love-story-section .timeline-item:nth-child(2) .timeline-title::before { content: "II. "; }
.love-story-section .timeline-item:nth-child(3) .timeline-title::before { content: "III. "; }
.love-story-section .timeline-description { color: rgba(245, 234, 219, 0.74); text-align: justify; text-justify: inter-word; text-align-last: left; }

.wedding-schedule-section { background: #322029; }
.wedding-schedule-section .section-header { margin-bottom: 2.75rem; text-align: center; }
.wedding-schedule-section .section-kicker { color: #c8a677; }
.wedding-schedule-section .section-title { color: #f5eadb; font-size: clamp(2.2rem, 8vw, 4rem); }
.wedding-schedule-section .schedule-timeline { width: min(100%, 42rem); }
.wedding-schedule-section .schedule-item { grid-template-columns: 4.75rem minmax(0, 15.25rem); justify-content: center; padding: 1.25rem 0; border-color: rgba(200, 166, 119, 0.36); }
.wedding-schedule-section .timeline-time time { color: #c8a677; font-size: 1.45rem; }
.wedding-schedule-section .timeline-title { color: #f5eadb; }
.wedding-schedule-section .timeline-description { color: rgba(245, 234, 219, 0.68); }

/* One-time text reveal: animate only compositor-friendly properties. */
.text-reveal {
  opacity: 0;
  transition: opacity 6000ms cubic-bezier(0.22, 1, 0.36, 1), transform 6000ms cubic-bezier(0.22, 1, 0.36, 1);
}
.text-reveal.is-text-reveal-running { will-change: opacity, transform; }
.text-reveal.reveal-from-left { transform: translate3d(-1.5rem, 0, 0); }
.text-reveal.reveal-from-right { transform: translate3d(1.5rem, 0, 0); }
.text-reveal.reveal-from-bottom { transform: translate3d(0, 1.25rem, 0); }
.text-reveal.is-text-reveal-visible { opacity: 1; transform: translate3d(0, 0, 0); }

.rsvp-section .section-header { margin-bottom: 1.75rem; }
.rsvp-section .rsvp-form { gap: 0.75rem; padding: 1rem; }
.rsvp-section .attendance-group { gap: 0; }
.rsvp-section .rsvp-form textarea { min-height: 5.5rem; }

@media (prefers-reduced-motion: reduce) {
  .text-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.gallery-section { background: #efe5d6; }
.gallery-section .section-header { margin-bottom: 2.75rem; text-align: center; }
.gallery-section .section-kicker { color: #9b7044; }
.gallery-section .section-title { color: #2a1920; font-size: clamp(2.3rem, 8vw, 4.25rem); }
.masonry-gallery { max-width: 48rem; gap: 0.8rem; }
.gallery-item { padding: 0.35rem; border: 0.0625rem solid rgba(128, 87, 60, 0.42); background: transparent; }
.gallery-image { filter: saturate(0.82) contrast(1.03); }

.countdown-section { background: #161012; }
.countdown-section::before { width: min(calc(100vw - 4.5rem), 20rem); border: 0.0625rem solid rgba(200, 166, 119, 0.72); border-radius: 0; padding: 0.4rem; background-origin: content-box; background-clip: content-box; }
.countdown-section .section-title { color: #f5eadb; letter-spacing: 0.12em; font-size: clamp(1.6rem, 6vw, 2.25rem); }
.countdown-section .countdown-grid { margin-top: -1.75rem; border: 0.0625rem solid rgba(200, 166, 119, 0.72); background: #211419; box-shadow: none; }
.countdown-section .countdown-value { color: #f5eadb; }
.countdown-section .countdown-label { color: #c8a677; }

.rsvp-section { background: #efe5d6; }
.rsvp-section .section-header { margin-bottom: 2.5rem; text-align: center; }
.rsvp-section .section-title { color: #2a1920; font-size: clamp(2.2rem, 8vw, 4rem); }
.rsvp-form { max-width: 38rem; border: 0.0625rem solid rgba(83, 52, 48, 0.35) !important; background: #f9f3ea !important; box-shadow: none !important; }
.submit-button { background: #211419 !important; border-radius: 0 !important; }

.gift-section { background: #211419; }
.gift-section .section-header { margin-bottom: 2.25rem; text-align: center; }
.gift-section .section-kicker, .gift-section .gift-label, .gift-card .gift-label { color: #c8a677; }
.gift-section .section-title { color: #f5eadb; font-size: clamp(2.2rem, 8vw, 4rem); }
.gift-intro, .gift-note { margin-inline: auto; color: rgba(245, 234, 219, 0.72); text-align: center; }
.gift-cards { max-width: 38rem; margin-inline: auto; border-color: rgba(200, 166, 119, 0.42); }
.gift-card + .gift-card { border-left-color: rgba(200, 166, 119, 0.42); }
.gift-person-role { color: #c8a677; }
.gift-person-name, .gift-value { color: #f5eadb; }
.gift-qr-image { border: 0.0625rem solid rgba(200, 166, 119, 0.72); border-radius: 0; box-shadow: none; }

/* Countdown — image-led composition */
.countdown-section {
  width: min(100%, 50rem);
  min-height: clamp(34rem, 88vw, 44rem);
  margin-inline: auto;
  padding: 0;
  display: block;
  background: #211419;
}

.countdown-section::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: auto;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background-image: var(--countdown-image-url);
  background-position: center;
  background-size: cover;
  filter: saturate(0.72) brightness(0.72) contrast(1.05);
  box-shadow: none;
}

.countdown-section .section-header {
  position: absolute;
  top: clamp(2rem, 6vw, 3.75rem);
  left: 0;
  z-index: 1;
  width: 100%;
  left: 50%;
  margin: 0;
  padding: clamp(0.25rem, 0.9vw, 0.45rem) 1rem;
  transform: translateX(-50%);
  border: 0.0625rem solid rgba(200, 166, 119, 0.5);
  border-radius: 0;
  background: rgba(245, 234, 219, 0.62);
  box-shadow: 0 0.75rem 1.75rem rgba(18, 13, 15, 0.16);
}

.countdown-section .section-title {
  color: #321c24;
  font-family: var(--font-family-base);
  font-size: clamp(1.55rem, 5vw, 2.25rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  -webkit-text-stroke: 0.06rem #fffdf8;
  paint-order: stroke fill;
  text-shadow: 0 0.15rem 0.6rem rgba(18, 13, 15, 0.55);
}

.countdown-section .section-kicker {
  margin-bottom: 0.5rem;
  color: #8b633a;
  font-family: var(--font-family-base);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-shadow: none;
}

.countdown-section .countdown-grid {
  position: absolute;
  right: 10%;
  bottom: clamp(2rem, 6vw, 3.75rem);
  left: 10%;
  z-index: 1;
  width: auto;
  margin: 0;
  padding: clamp(0.9rem, 2.4vw, 1.35rem) clamp(0.8rem, 3vw, 1.5rem);
  border: 0.0625rem solid rgba(200, 166, 119, 0.78);
  border-radius: 1.5rem 0 1.5rem 0;
  background: rgba(245, 234, 219, 0.82);
  box-shadow: 0 1rem 2.5rem rgba(18, 13, 15, 0.3);
}

.countdown-section .countdown-value {
  color: #321c24;
  font-size: clamp(1.55rem, 5vw, 2.25rem);
}

.countdown-section .countdown-label {
  color: #8b633a;
  font-size: clamp(0.55rem, 1.5vw, 0.75rem);
}

@media (max-width: 30rem) {
  .countdown-section {
    min-height: 34rem;
  }

  .countdown-section .countdown-grid {
    right: 6%;
    bottom: 1.5rem;
    left: 6%;
    gap: 0.2rem;
    padding: 0.6rem 0.65rem;
  }
}
.gift-heart { color: #c8a677; text-align: center; }

.footer { background: #120d0f; }

/* Gift cards — alternating portrait and QR composition */
.gift-section .gift-content { width: min(100%, 39rem); }
.gift-section .gift-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.75rem, 10vw, 4.75rem);
  margin-top: 0;
  border: 0;
}
.gift-section .gift-row {
  display: grid;
  grid-template-columns: minmax(6.5rem, 0.78fr) minmax(0, 1.55fr);
  align-items: stretch;
  gap: clamp(0.5rem, 3vw, 1.25rem);
}
.gift-section .gift-row--groom { grid-template-columns: minmax(0, 1.55fr) minmax(6.5rem, 0.78fr); }
.gift-section .gift-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.9rem;
  align-items: center;
  align-self: stretch;
  gap: 0.85rem;
  min-width: 0;
  height: 100%;
  min-height: 0;
  padding: 1rem 1rem 1rem 1.25rem;
  border: 0.0625rem solid rgba(200, 166, 119, 0.84);
  border-radius: 2rem 0 2rem 0;
  background: rgba(255, 250, 240, 0.06);
  box-shadow: 0 0.9rem 1.8rem rgba(0, 0, 0, 0.16);
}
.gift-section .gift-row--groom .gift-card { grid-template-columns: 5.9rem minmax(0, 1fr); padding-inline: 1rem 1.25rem; }
.gift-section .gift-card + .gift-card { border-left: 0.0625rem solid rgba(200, 166, 119, 0.3); }
.gift-section .gift-portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0.45rem;
  border: 0.0625rem solid rgba(200, 166, 119, 0.84);
  border-radius: 4.5rem 4.5rem 0 0;
  overflow: hidden;
}
.gift-section .gift-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4rem 4rem 0 0;
  object-fit: cover;
}
.gift-section .gift-person-details { min-width: 0; text-align: left; }
.gift-section .gift-person-role { margin-bottom: 0.3rem; font-size: 0.74rem; letter-spacing: 0.13em; }
.gift-section .gift-person-name { margin: 0; font-size: clamp(1.2rem, 4.7vw, 1.75rem); line-height: 1.15; }
.gift-section .gift-bank-details { display: block; width: auto; margin-top: 0.5rem; }
.gift-section .gift-value { color: rgba(245, 234, 219, 0.78); font-size: 0.76rem; line-height: 1.55; }
.gift-section .gift-qr-button { width: 5.9rem; flex: none; }
.gift-section .gift-qr-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0.32rem;
  border: 0.0625rem solid rgba(245, 234, 219, 0.78);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
@media (min-width: 42rem) {
  .gift-section .gift-row { grid-template-columns: 10rem minmax(0, 1fr); gap: 1.5rem; }
  .gift-section .gift-row--groom { grid-template-columns: minmax(0, 1fr) 10rem; }
  .gift-section .gift-card { grid-template-columns: minmax(0, 1fr) 7.25rem; padding: 1.25rem 1.4rem; }
  .gift-section .gift-row--groom .gift-card { grid-template-columns: 7.25rem minmax(0, 1fr); }
  .gift-section .gift-qr-button { width: 7.25rem; }
  .gift-section .gift-value { font-size: 0.875rem; }
}

@media (min-width: 48rem) {
  .love-story-timeline { width: min(100%, 46rem); }
  .masonry-gallery { max-width: 58rem; }
}

@media (min-width: 64rem) {
  .love-story-timeline {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 0;
  }

  .love-story-section .timeline-item,
  .love-story-section .timeline-item:nth-child(odd),
  .love-story-section .timeline-item:nth-child(even) {
    grid-column: 1;
    padding-right: 1.5rem;
    padding-left: 2rem;
  }

}
