/* ==========================================================================
   Template M20: Xanh Olive Hiện Đại (Phong cách ZenLove 222 Pre)
   Tone: Moss & Dark Olive Green (#434b36, #515a40), Ivory Cream (#f8f9f6), Gold (#d4af37)
   Typography: Playfair Display / Cormorant Garamond, Alex Brush, Montserrat
   ========================================================================== */

/* Design Tokens & CSS Reset */
:root,
[data-palette="olive"] {
  --m20-primary: #434b36;
  --m20-primary-dark: #323928;
  --m20-primary-light: #5f6b4d;
  --m20-card-bg: #515a40;
  --m20-card-bg-subtle: #4a533b;
  --m20-bg-body: #eff1ec;
  --m20-bg-paper: #f9faf7;
  --m20-text-dark: #2c3324;
  --m20-text-muted: #5e6656;
  --m20-text-light: #ffffff;
  --m20-gold: #d4af37;
  --m20-gold-light: #f3de8a;
  --m20-border-gold: rgba(212, 175, 55, 0.4);
  --m20-radius-card: 20px;
  --m20-radius-btn: 30px;
  --m20-shadow-card: 0 14px 34px rgba(44, 51, 36, 0.12);
  --m20-shadow-deep: 0 20px 45px rgba(28, 35, 22, 0.25);

  --font-script: 'Alex Brush', cursive;
  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-serif-sub: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.template-m20 {
  background-color: var(--m20-bg-body);
  color: var(--m20-text-dark);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Central Mobile Wrapper */
.invitation-main {
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--m20-bg-paper);
  box-shadow: 0 0 45px rgba(35, 42, 28, 0.16);
  position: relative;
  overflow: hidden;
  padding-bottom: 90px;
}

/* ==========================================================================
   1. Floating Audio Player
   ========================================================================== */
.audio-control {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000;
}

.music-disc-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--m20-gold);
  background: rgba(44, 51, 36, 0.85);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, background 0.25s ease;
}

.music-disc-btn:hover {
  transform: scale(1.08);
  background: rgba(44, 51, 36, 0.95);
}

.disc-vinyl {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, #252822 35%, #181a16 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.disc-grooves {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.3);
}

.disc-center-dot {
  color: var(--m20-gold-light);
  font-size: 14px;
}

.music-disc-btn.is-playing .disc-vinyl {
  animation: spinDisc 4s linear infinite;
}

@keyframes spinDisc {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========================================================
   ENVELOPE SCROLL LOCK STATE
   ======================================================== */
html.envelope-locked,
body.envelope-locked {
  overflow: hidden !important;
  height: 100% !important;
  max-height: 100vh !important;
  touch-action: none;
}

body.envelope-locked .invitation-main {
  opacity: 0;
  visibility: hidden;
  max-height: 100vh;
  overflow: hidden;
  pointer-events: none;
}

body.envelope-locked .floating-actions-dock,
body.envelope-locked .audio-control {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ==========================================================================
   2. Envelope Opening Screen (Phong bì đứng nắp nhọn)
   ========================================================================== */
.envelope-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, #edf0eb 0%, #d8ded3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

.envelope-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.envelope-outer-wrapper {
  position: relative;
  width: 90vw;
  max-width: 380px;
  height: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Corner Flowers around Envelope */
.envelope-flower-top-right {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 170px;
  z-index: 10;
  pointer-events: none;
  transform: rotate(15deg);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.18));
}

.envelope-flower-bottom-left {
  position: absolute;
  bottom: 10px;
  left: -40px;
  width: 160px;
  z-index: 30;
  pointer-events: none;
  transform: rotate(-25deg);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.18));
}

.flower-deco-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Scalloped Lace Tag */
.envelope-scallop-tag {
  position: absolute;
  bottom: 30px;
  right: -25px;
  width: 160px;
  height: 200px;
  z-index: 25;
  filter: drop-shadow(0 12px 22px rgba(44, 51, 36, 0.25));
  pointer-events: none;
}

.scallop-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scallop-tag-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tag-names {
  font-family: var(--font-script);
  font-size: 26px;
  line-height: 1.15;
  color: #1f251a;
  text-shadow: 0 1px 1px rgba(255,255,255,0.7);
}

/* Pocket Envelope Structure */
.pocket-envelope {
  position: relative;
  width: 290px;
  height: 380px;
  background: #3e4832;
  box-shadow: var(--m20-shadow-deep);
  border-radius: 8px 8px 14px 14px;
  perspective: 1200px;
}

/* Peeking Polaroid Photo inside */
.envelope-peeking-photo {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 290px;
  z-index: 5;
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.polaroid-frame {
  width: 100%;
  height: 100%;
  background: #ffffff;
  padding: 10px 10px 32px 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

.peeking-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

/* Envelope Bottom Body / Pocket Front */
.envelope-body-pocket {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 250px;
  background: linear-gradient(180deg, #465138 0%, #3a432e 100%);
  border-radius: 0 0 14px 14px;
  z-index: 15;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
}

.pocket-inner-shadow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, transparent 100%);
}

/* Envelope Top Flap (Triangular Folding) */
.envelope-top-flap {
  position: absolute;
  top: 130px;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 20;
  transform-origin: top center;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flap-triangle {
  width: 0;
  height: 0;
  border-left: 145px solid transparent;
  border-right: 145px solid transparent;
  border-top: 110px solid #4a563b;
  position: absolute;
  top: 0;
  left: 0;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));
}

/* Wax Seal Button */
.wax-seal-wrapper {
  position: absolute;
  top: 75px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 68px;
  cursor: pointer;
  z-index: 30;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.wax-seal-wrapper:hover {
  transform: translateX(-50%) scale(1.1);
}

.wax-seal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35));
}

.seal-glow-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  animation: sealPulse 2.4s infinite ease-in-out;
  pointer-events: none;
}

@keyframes sealPulse {
  0% { transform: scale(0.95); opacity: 0.3; }
  50% { transform: scale(1.18); opacity: 0.9; }
  100% { transform: scale(0.95); opacity: 0.3; }
}

/* Open Prompt Button */
.envelope-prompt-box {
  margin-top: 32px;
  z-index: 40;
}

.open-envelope-btn {
  background: linear-gradient(135deg, #4a553c 0%, #353e2a 100%);
  color: var(--m20-gold-light);
  border: 1.5px solid var(--m20-gold);
  border-radius: 30px;
  padding: 12px 34px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-shadow: 0 10px 25px rgba(35, 42, 28, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.open-envelope-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 30px rgba(35, 42, 28, 0.4);
}

.open-text {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
}

.open-sub {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--m20-gold);
}

/* Opening Animations */
.envelope-screen.is-opening .envelope-top-flap {
  transform: rotateX(180deg);
}

.envelope-screen.is-opening .wax-seal-wrapper {
  transform: translateX(-50%) scale(0.4);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.envelope-screen.is-opening .envelope-peeking-photo {
  transform: translateX(-50%) translateY(-140px);
}

.envelope-screen.is-opening .envelope-prompt-box {
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* ==========================================================================
   3. Section Hero & Countdown
   ========================================================================== */
.section-hero-countdown {
  padding: 40px 20px 24px;
  text-align: center;
  background: var(--m20-bg-paper);
}

.hero-top-eyebrow {
  margin-bottom: 20px;
}

.eyebrow-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--m20-primary);
  text-transform: uppercase;
}

/* Countdown Cubes */
.countdown-cubes-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 34px;
}

.count-cube {
  background: var(--m20-card-bg);
  color: #ffffff;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(44, 51, 36, 0.2);
}

.count-cube .num {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.count-cube .lbl {
  font-size: 12px;
  font-weight: 400;
  margin-top: 4px;
  opacity: 0.9;
}

/* Overlapping Photos Composition */
.hero-photos-composition {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 380px;
  margin: 0 auto 28px;
}

.photo-frame {
  position: absolute;
  background: #ffffff;
  padding: 8px 8px 24px 8px;
  box-shadow: var(--m20-shadow-card);
  border-radius: 6px;
}

.frame-left {
  top: 0;
  left: 10px;
  width: 58%;
  height: 320px;
  z-index: 2;
  transform: rotate(-2deg);
}

.frame-right {
  top: 45px;
  right: 10px;
  width: 58%;
  height: 320px;
  z-index: 3;
  transform: rotate(2deg);
}

.frame-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.composition-flower-cluster {
  position: absolute;
  top: 130px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  z-index: 5;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.22));
  pointer-events: none;
}

.comp-flower-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Couple Titles */
.hero-couple-titles {
  display: flex;
  justify-content: space-around;
  margin: 16px 0 24px;
}

.couple-name-col {
  text-align: center;
}

.script-role {
  font-family: var(--font-script);
  font-size: 28px;
  color: var(--m20-text-muted);
  line-height: 1;
}

.caps-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--m20-primary-dark);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Romantic Quote */
.hero-quote-box {
  padding: 0 16px;
  margin-bottom: 32px;
}

.quote-passage {
  font-family: var(--font-serif-sub);
  font-size: 16px;
  line-height: 1.8;
  color: var(--m20-text-dark);
  text-align: justify;
}

/* Just Married Feature Banner */
.feature-banner-frame {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  margin-top: 24px;
}

.feature-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-text-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(20, 24, 16, 0.75) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 24px;
  color: #ffffff;
}

.script-just {
  font-family: var(--font-script);
  font-size: 42px;
  line-height: 0.8;
  color: var(--m20-gold-light);
}

.caps-married {
  font-family: var(--font-serif);
  font-size: 32px;
  letter-spacing: 6px;
  font-weight: 700;
}

/* ==========================================================================
   4. Section Invitation & Families
   ========================================================================== */
.section-invitation-details {
  padding: 36px 20px;
  text-align: center;
  background: var(--m20-bg-paper);
}

.invitation-allcaps-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 1.5px;
  color: var(--m20-primary-dark);
  margin-bottom: 30px;
}

.families-grid-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.family-column {
  flex: 1;
  text-align: center;
}

.side-heading {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--m20-primary);
  margin-bottom: 12px;
}

.parent-entry {
  font-size: 14px;
  line-height: 1.6;
  color: var(--m20-text-dark);
}

.p-name {
  font-weight: 600;
}

.side-address-text {
  font-size: 13px;
  color: var(--m20-text-muted);
  margin-top: 6px;
}

/* Calligraphy Signoff */
.calligraphy-couple-sign {
  margin-top: 10px;
}

.sign-groom,
.sign-bride {
  font-family: var(--font-script);
  font-size: 44px;
  line-height: 1.1;
  color: var(--m20-primary-dark);
}

.sign-amp {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  color: var(--m20-gold);
  display: block;
  margin: -4px 0;
}

/* ==========================================================================
   5. Event Cards
   ========================================================================== */
.section-events-cards {
  padding: 20px 20px 36px;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.olive-event-card {
  background: var(--m20-card-bg);
  color: #ffffff;
  border-radius: var(--m20-radius-card);
  padding: 34px 22px;
  text-align: center;
  box-shadow: var(--m20-shadow-deep);
  position: relative;
  overflow: hidden;
}

.olive-event-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--m20-gold), transparent);
}

.event-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 6px;
  color: #ffffff;
}

.event-time-line {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
}

.event-date-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 12px 0 8px;
}

.date-rule {
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.event-date-number {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
}

.event-lunar-date {
  font-size: 13px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.event-venue-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--m20-gold-light);
  margin-bottom: 4px;
}

.event-address-detail {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin-bottom: 24px;
}

.event-btn-wrap {
  margin-top: 8px;
}

.olive-outline-btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: var(--m20-radius-btn);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  transition: all 0.25s ease;
}

.olive-outline-btn:hover {
  background: #ffffff;
  color: var(--m20-card-bg);
  border-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ==========================================================================
   6. Section Our Love (3 Vertical Strips)
   ========================================================================== */
.section-our-love {
  padding: 30px 20px 36px;
  text-align: center;
  background: var(--m20-bg-paper);
}

.serif-section-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--m20-primary-dark);
  margin-bottom: 24px;
}

.photo-triplet-strips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.strip-col {
  height: 230px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(44, 51, 36, 0.15);
}

.strip-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.strip-col:hover .strip-photo {
  transform: scale(1.06);
}

.love-story-quote {
  padding: 0 10px;
}

.love-story-quote p {
  font-family: var(--font-serif-sub);
  font-size: 15px;
  line-height: 1.8;
  color: var(--m20-text-dark);
  text-align: justify;
}

/* ==========================================================================
   7. Section Calendar with Connector
   ========================================================================== */
.section-calendar-block {
  padding: 10px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.calendar-top-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: -22px;
  z-index: 10;
}

.vertical-string-line {
  width: 2px;
  height: 38px;
  background: linear-gradient(180deg, var(--m20-primary) 0%, var(--m20-gold) 100%);
}

.connector-wax-seal {
  width: 52px;
  height: 52px;
  margin-top: -4px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3));
}

.connector-seal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.calendar-card-olive {
  position: relative;
  width: 100%;
  background: var(--m20-card-bg);
  color: #ffffff;
  border-radius: var(--m20-radius-card);
  padding: 38px 20px 28px;
  text-align: center;
  box-shadow: var(--m20-shadow-deep);
  overflow: visible;
}

/* Corner Flowers on Calendar */
.cal-flower-top-left {
  position: absolute;
  top: -25px;
  left: -25px;
  width: 110px;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25));
}

.cal-flower-bottom-right {
  position: absolute;
  bottom: -25px;
  right: -25px;
  width: 110px;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25));
}

.cal-flower-img {
  width: 100%;
  height: auto;
  display: block;
}

.cal-card-headline {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.cal-script-month {
  font-family: var(--font-script);
  font-size: 40px;
  color: var(--m20-gold-light);
  line-height: 1;
  margin-bottom: 18px;
}

.cal-table-grid {
  margin-bottom: 16px;
}

.cal-weekdays-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.cal-month-days {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cal-week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-day-cell {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  position: relative;
}

.cal-day-cell.is-wedding-day {
  color: #ffffff;
  font-weight: 700;
}

.cal-day-cell.is-wedding-day::before {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  background: #c93b3b;
  border-radius: 50%;
  z-index: 1;
}

.cal-day-cell.is-wedding-day .day-number {
  position: relative;
  z-index: 2;
}

.heart-marker {
  position: absolute;
  top: -8px;
  right: -4px;
  font-size: 12px;
  z-index: 3;
}

.cal-lunar-highlight {
  font-size: 12px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 10px;
}

/* ==========================================================================
   8. Section Album of Love
   ========================================================================== */
.section-album-gallery {
  padding: 30px 20px 40px;
  text-align: center;
  background: var(--m20-bg-paper);
}

.script-album-title {
  font-family: var(--font-script);
  font-size: 46px;
  color: var(--m20-primary-dark);
  line-height: 1.1;
  margin-bottom: 24px;
}

.album-photos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.album-item-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(44, 51, 36, 0.12);
  cursor: pointer;
}

.album-grid-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.album-item-card:hover .album-grid-photo {
  transform: scale(1.05);
}

.album-hover-mask {
  position: absolute;
  inset: 0;
  background: rgba(44, 51, 36, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.album-item-card:hover .album-hover-mask {
  opacity: 1;
}

.zoom-glass-icon {
  font-size: 22px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* ==========================================================================
   9. Section RSVP
   ========================================================================== */
.section-rsvp-card {
  padding: 20px 20px 40px;
  text-align: center;
}

.rsvp-intro-words {
  font-family: var(--font-serif-sub);
  font-size: 15px;
  line-height: 1.7;
  color: var(--m20-text-dark);
  margin-bottom: 24px;
  padding: 0 10px;
}

.rsvp-form-container {
  background: #ffffff;
  border-radius: var(--m20-radius-card);
  padding: 32px 24px;
  box-shadow: var(--m20-shadow-card);
  text-align: left;
}

.rsvp-form-headline {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  color: var(--m20-primary-dark);
  margin-bottom: 24px;
}

.m20-form-group {
  margin-bottom: 20px;
}

.m20-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--m20-text-dark);
  margin-bottom: 8px;
}

.m20-form-group input[type="text"],
.m20-form-group select,
.m20-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d5dad0;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--m20-text-dark);
  background: #fcfdfa;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.m20-form-group input[type="text"]:focus,
.m20-form-group select:focus,
.m20-form-group textarea:focus {
  border-color: var(--m20-primary);
  box-shadow: 0 0 0 3px rgba(67, 75, 54, 0.15);
}

.m20-radios {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--m20-text-dark);
}

.radio-choice input[type="radio"] {
  display: none;
}

.radio-disc {
  width: 20px;
  height: 20px;
  border: 2px solid #8e9982;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  transition: all 0.2s ease;
}

.radio-choice input[type="radio"]:checked + .radio-disc {
  border-color: var(--m20-primary);
  background: var(--m20-primary);
}

.radio-choice input[type="radio"]:checked + .radio-disc::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.rsvp-submit-button {
  width: 100%;
  padding: 14px;
  background: var(--m20-primary);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(67, 75, 54, 0.3);
  transition: all 0.25s ease;
}

.rsvp-submit-button:hover {
  background: var(--m20-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(67, 75, 54, 0.4);
}

.rsvp-status-msg {
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
}

.rsvp-status-msg.success {
  background: #e8f5e9;
  color: #2e7d32;
}

.rsvp-status-msg.error {
  background: #ffebee;
  color: #c62828;
}

/* ==========================================================================
   10. Section Thank You Footer & Shop Link
   ========================================================================== */
.section-thank-you {
  margin-top: 20px;
}

.thank-you-photo-frame {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}

.thank-you-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thank-you-content-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,24,16,0.3) 0%, rgba(20,24,16,0.85) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 30px 24px;
  text-align: center;
  color: #ffffff;
}

.script-thank-title {
  font-family: var(--font-script);
  font-size: 54px;
  color: var(--m20-gold-light);
  line-height: 1;
  margin-bottom: 12px;
}

.thank-you-text-passage {
  font-family: var(--font-serif-sub);
  font-size: 15px;
  line-height: 1.7;
  max-width: 380px;
}

.shop-credit-block {
  padding: 24px 16px;
  text-align: center;
  background: #252a1e;
}

.shop-site-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s ease;
}

.shop-site-link:hover {
  color: #ffffff;
}

.shop-highlight {
  color: var(--m20-gold);
  font-weight: 700;
}

/* ==========================================================================
   11. Floating Actions Dock & Toasts
   ========================================================================== */
.floating-actions-dock {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 32px);
  max-width: 440px;
}

.dock-container {
  background: rgba(44, 51, 36, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 35px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.dock-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dock-pill-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.dock-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.dock-circle-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.08);
}

.heart-badge-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #e53935;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Flying Hearts on Tap */
.flying-heart {
  position: fixed;
  font-size: 24px;
  pointer-events: none;
  z-index: 99999;
  animation: floatUp 1.6s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes floatUp {
  0% { transform: translate(0, 0) scale(0.6); opacity: 1; }
  100% { transform: translate(var(--tx), -220px) scale(1.5); opacity: 0; }
}

/* Wishes Toast Stack */
.wishes-toast-stack {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 420px;
  z-index: 999;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
}

.wish-toast-item {
  background: rgba(244, 219, 216, 0.95);
  backdrop-filter: blur(8px);
  color: #4a2d29;
  border: 1px solid rgba(229, 115, 115, 0.3);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  display: inline-block;
  align-self: center;
  max-width: 90%;
  animation: slideToastIn 0.4s ease, fadeToastOut 0.5s ease 4.5s forwards;
}

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

@keyframes fadeToastOut {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(-10px); }
}

/* ==========================================================================
   12. Modals (Gifts, Wishes, Lightbox)
   ========================================================================== */
.m20-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 16, 0.7);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.m20-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.m20-modal-box {
  background: #ffffff;
  border-radius: var(--m20-radius-card);
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px 24px;
  position: relative;
  box-shadow: var(--m20-shadow-deep);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.m20-modal-backdrop.is-open .m20-modal-box {
  transform: scale(1);
}

.modal-close-x {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--m20-text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-header-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: var(--m20-primary-dark);
  margin-bottom: 6px;
}

.modal-header-sub {
  font-size: 13px;
  color: var(--m20-text-muted);
  text-align: center;
  margin-bottom: 24px;
}

.gift-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gift-account-item {
  background: #f7f9f5;
  border: 1px solid #dbe2d6;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}

.qr-code-box {
  margin-bottom: 14px;
}

.qr-code-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.qr-caption {
  display: block;
  font-size: 11px;
  color: var(--m20-text-muted);
  margin-top: 6px;
}

.account-details-box {
  text-align: left;
  font-size: 14px;
  line-height: 1.8;
  color: var(--m20-text-dark);
}

.copy-stk-btn {
  background: var(--m20-primary);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.copy-stk-btn:hover {
  background: var(--m20-primary-dark);
}

/* Lightbox */
.m20-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.m20-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content-wrap {
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.lightbox-close-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 38px;
  cursor: pointer;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav-btn.prev-btn { left: 16px; }
.lightbox-nav-btn.next-btn { right: 16px; }

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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