/* ==========================================================================
   TEMPLATE M30: TEMPLATE240809KMS (OLIVE GREEN & BURGUNDY FLORAL ROMANCE)
   ========================================================================== */

/* Design Tokens & Palette */
:root,
[data-palette="template240809kms"] {
  --olive-primary: #6B7A5C;
  --olive-dark: #4A563D;
  --olive-card: #979265;
  --olive-card-dark: #827D54;
  --olive-tint: #ECEBE4;
  --cream-bg: #FFFFFF;
  --paper-bg: #F8F7F2;
  --text-primary: #222222;
  --text-muted: #666666;
  --text-light: #FFFFFF;
  --burgundy: #7C2A3A;
  
  --font-serif: 'Lora', Georgia, serif;
  --font-script: 'Pinyon Script', cursive;
  --font-calligraphy: 'Ephesis', cursive;
  --font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.08);
  --shadow-polaroid: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
  background-color: #EFEFEF;
}

body.template-m24 {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: #FFFFFF;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Constrained Stage (WebCake 420px mobile design) */
.page-stage {
  max-width: 420px;
  margin: 0 auto;
  background-color: #FFFFFF;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
  min-height: 100vh;
  overflow: hidden;
}

/* Typography Utility */
.font-mono {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* ==========================================================================
   AMBIENT FALLING PETALS / LEAVES
   ========================================================================== */
.ambient-leaves-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

.falling-leaf {
  position: absolute;
  top: -40px;
  pointer-events: none;
  animation: fallDown linear infinite;
  opacity: 0.7;
}

@keyframes fallDown {
  0% {
    transform: translateY(0) rotate(0deg) translateX(0);
    opacity: 0.8;
  }
  50% {
    transform: translateY(50vh) rotate(180deg) translateX(25px);
    opacity: 0.9;
  }
  100% {
    transform: translateY(105vh) rotate(360deg) translateX(-20px);
    opacity: 0;
  }
}

/* ==========================================================================
   FLOATING AUDIO WIDGET
   ========================================================================== */
.floating-audio-widget {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 99;
}

.btn-audio-spin {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--olive-primary);
  color: var(--olive-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.btn-audio-spin:hover {
  transform: scale(1.08);
}

.btn-audio-spin.is-playing .disc-vinyl {
  display: flex;
  animation: spinVinyl 4s linear infinite;
}

.btn-audio-spin.is-paused .disc-vinyl {
  display: none;
}

.btn-audio-spin.is-paused .disc-muted {
  display: flex !important;
  color: #999999;
}

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

/* ==========================================================================
   SECTION 0: INTERACTIVE ENVELOPE COVER
   ========================================================================== */
.section-envelope {
  position: relative;
  width: 100%;
  min-height: 720px;
  padding: 40px 10px 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #FFFFFF;
  overflow: visible;
}

.envelope-outer-wrap {
  position: relative;
  width: 380px;
  height: 600px;
  margin-top: 20px;
}

/* Hanging Floral Decors */
.decor-cluster {
  position: absolute;
  z-index: 25;
  pointer-events: none;
}

.decor-cluster.cluster-top {
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  z-index: 5;
}

.decor-cluster.cluster-left {
  top: 140px;
  left: -20px;
  width: 90px;
  display: flex;
  flex-direction: column;
}

.decor-cluster.cluster-right {
  top: 190px;
  right: -25px;
  width: 100px;
}

.decor-cluster.cluster-bottom-left {
  bottom: 0px;
  left: -15px;
  width: 95px;
  z-index: 28;
}

.decor-cluster.cluster-bottom-right {
  bottom: -5px;
  right: -10px;
  width: 60px;
  z-index: 28;
}

.decor-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.12));
}

.decor-amaranthus {
  width: 45px;
  margin-bottom: -15px;
}

.decor-calla {
  width: 65px;
  transform: rotate(-10deg);
}

.decor-dahlia {
  width: 75px;
  transform: rotate(15deg);
}

.decor-hydrangea {
  width: 65px;
  margin-top: -15px;
}

.decor-rose-tiny {
  width: 40px;
  margin-top: -20px;
  margin-left: 15px;
}

/* Envelope Body & Pocket */
.envelope-body-frame {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 377px;
  height: 433px;
  z-index: 10;
}

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

.envelope-pocket-frame {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 377px;
  height: 239px;
  z-index: 26;
  pointer-events: none;
}

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

.pocket-monogram {
  position: absolute;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 27;
  text-align: center;
  white-space: nowrap;
}

.monogram-text {
  font-family: var(--font-script);
  font-size: 26px;
  color: #FFFFFF;
  letter-spacing: 1px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Emerging Contents inside envelope */
.envelope-contents {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 15;
}

/* Polaroid Cards */
.polaroid-card {
  position: absolute;
  background: #F8F7F2;
  padding: 8px 8px 24px 8px;
  box-shadow: var(--shadow-polaroid);
  border-radius: 2px;
  transition: transform 0.4s ease;
}

.polaroid-photo-frame {
  overflow: hidden;
  background: #EEE;
}

.polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.polaroid-card.polaroid-left {
  top: 80px;
  left: 20px;
  width: 165px;
  height: 240px;
  transform: rotate(-6deg);
  z-index: 16;
}

.polaroid-card.polaroid-left .polaroid-photo-frame {
  width: 100%;
  height: 195px;
}

.polaroid-card.polaroid-right {
  top: 40px;
  right: 15px;
  width: 175px;
  height: 255px;
  transform: rotate(5deg);
  z-index: 17;
}

.polaroid-card.polaroid-right .polaroid-photo-frame {
  width: 100%;
  height: 210px;
}

/* Save Our Date Ticket Card */
.envelope-ticket {
  position: absolute;
  top: 240px;
  left: 35px;
  width: 300px;
  height: 160px;
  transform: rotate(-3deg);
  z-index: 20;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.envelope-ticket:hover {
  transform: rotate(-1deg) scale(1.02);
}

.ticket-inner-card {
  position: relative;
  width: 100%;
  height: 100%;
}

.ticket-bg-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.ticket-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 10px 15px;
}

.ticket-stub-col {
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stub-couple-names {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-serif);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #333333;
}

.ticket-main-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-left: 15px;
}

.ticket-title {
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #222222;
  font-weight: 500;
}

.ticket-date {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #111111;
  margin: 4px 0;
}

.ticket-script {
  font-family: var(--font-script);
  font-size: 20px;
  color: #333333;
  margin-top: 2px;
}

/* Scroll unroll hint */
.envelope-scroll-hint {
  margin-top: -10px;
  z-index: 30;
}

.btn-scroll-unroll {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  color: var(--olive-primary);
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 600;
  padding: 8px 16px;
  transition: transform 0.2s ease;
}

.btn-scroll-unroll:hover {
  transform: translateY(3px);
}

.hint-arrow {
  font-size: 16px;
  animation: bounceHint 1.8s infinite;
  margin-top: 4px;
}

@keyframes bounceHint {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

/* ==========================================================================
   SECTION 1: CALENDAR & "MOMENTS" POLAROID (OLIVE BACKGROUND)
   ========================================================================== */
.section-calendar {
  background-color: var(--olive-card);
  color: var(--text-light);
  padding: 30px 20px;
  position: relative;
  z-index: 5;
}

.calendar-layout-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

/* Left: Polaroid Moments */
.cal-polaroid-wrap {
  width: 150px;
  flex-shrink: 0;
}

.cal-polaroid-card {
  background: #FFFFFF;
  padding: 6px 6px 14px 6px;
  border-radius: 2px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.cal-photo-box {
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: #F0F0F0;
}

.cal-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cal-polaroid-caption {
  font-family: var(--font-script);
  font-size: 20px;
  color: #333333;
  margin-top: 6px;
  line-height: 1;
}

/* Right: Month Calendar */
.cal-table-wrap {
  flex: 1;
}

.cal-month-title {
  font-family: var(--font-script);
  font-size: 24px;
  text-align: center;
  color: #FFFFFF;
  margin-bottom: 12px;
  font-weight: normal;
}

.cal-weekdays-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.cal-day-cell {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-family: var(--font-serif);
  position: relative;
}

.cal-day-cell.is-blank {
  visibility: hidden;
}

.day-num {
  position: relative;
  z-index: 2;
}

/* Pulsing White Heart on Wedding Day */
.heart-badge-marker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  animation: pulseHeart 1.6s ease-in-out infinite;
}

.svg-heart-badge {
  position: absolute;
  width: 26px;
  height: 26px;
  fill: #FFFFFF;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.badge-num {
  position: relative;
  z-index: 2;
  color: var(--olive-card-dark);
  font-size: 11px;
  font-weight: 700;
}

@keyframes pulseHeart {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   SECTION 2: INVITATION LEAD & INTERTWINED NAMES
   ========================================================================== */
.section-names {
  background: #FFFFFF;
  padding: 40px 20px 20px 20px;
  text-align: center;
}

.names-lead-box {
  margin-bottom: 25px;
}

.names-lead-line {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #333333;
  line-height: 1.8;
}

.names-display-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px 0 35px 0;
}

.name-groom, .name-bride {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #1A1A1A;
  z-index: 2;
}

.names-amp-wrap {
  margin: -10px 0;
  z-index: 1;
}

.script-amp {
  font-family: var(--font-script);
  font-size: 60px;
  color: rgba(151, 146, 101, 0.5);
  line-height: 1;
  display: block;
}

/* Overlapping couple photos */
.names-photos-cluster {
  position: relative;
  width: 320px;
  height: 230px;
  margin: 10px auto 20px auto;
}

.cluster-card {
  position: absolute;
  width: 160px;
  height: 210px;
  background: #FFFFFF;
  padding: 6px;
  border-radius: 2px;
  box-shadow: var(--shadow-polaroid);
}

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

.cluster-card.card-left {
  top: 10px;
  left: 20px;
  transform: rotate(-6deg);
  z-index: 2;
}

.cluster-card.card-right {
  top: 0;
  right: 20px;
  transform: rotate(4deg);
  z-index: 3;
}

.cluster-flower-accent {
  position: absolute;
  top: -25px;
  right: 0px;
  width: 90px;
  z-index: 4;
  pointer-events: none;
}

.cluster-flower-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* ==========================================================================
   SECTION 3: PARENTS & CEREMONY CARDS
   ========================================================================== */
.section-ceremony {
  background: #FFFFFF;
  padding: 20px 20px 30px 20px;
}

.parents-info-row {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin-bottom: 30px;
}

.parents-col {
  flex: 1;
  padding: 0 10px;
}

.parents-header {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--olive-primary);
  margin-bottom: 10px;
  font-weight: 600;
}

.parent-line {
  font-family: var(--font-serif);
  font-size: 13px;
  color: #333333;
  margin-bottom: 4px;
}

.parent-addr {
  font-size: 11px;
  color: #777777;
  margin-top: 6px;
  line-height: 1.4;
}

/* Olive Event Cards */
.events-cards-wrap {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.event-olive-card {
  background-color: var(--olive-card);
  color: #FFFFFF;
  border-radius: 6px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(107, 122, 92, 0.25);
  position: relative;
}

.event-title {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}

.event-time-clock {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.event-white-divider {
  width: 140px;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
  margin: 16px auto;
}

.event-date-large {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
}

.event-lunar-date {
  font-family: var(--font-serif);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.event-pin-icon {
  margin: 16px auto 8px auto;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-place-name {
  font-family: var(--font-script);
  font-size: 28px;
  color: #FFFFFF;
  margin-bottom: 6px;
  line-height: 1.2;
}

.event-address-text {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto 20px auto;
}

.btn-event-map {
  display: inline-block;
  padding: 8px 30px;
  border: 1px solid #FFFFFF;
  border-radius: 9999px;
  color: #FFFFFF;
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-event-map:hover {
  background: #FFFFFF;
  color: var(--olive-card);
}

.pulse-btn {
  animation: pulseButton 2s infinite ease-in-out;
}

@keyframes pulseButton {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ==========================================================================
   SECTION 4: WEDDING ALBUM (2-COLUMN GRID)
   ========================================================================== */
.section-album {
  background: #FFFFFF;
  padding: 30px 20px;
}

.section-script-title {
  font-family: var(--font-script);
  font-size: 34px;
  text-align: center;
  color: #222222;
  margin-bottom: 25px;
  font-weight: normal;
}

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

.album-cell {
  cursor: pointer;
  overflow: hidden;
  border-radius: 2px;
}

.album-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--olive-card);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.4s ease;
}

.album-cell:hover .album-frame {
  transform: scale(1.03);
}

.album-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   SECTION 5: RSVP & WISHES FORM
   ========================================================================== */
.section-rsvp {
  background: #FFFFFF;
  padding: 30px 20px;
  text-align: center;
}

.rsvp-intro-box {
  margin-bottom: 25px;
}

.rsvp-intro-text {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #333333;
  line-height: 1.8;
  max-width: 360px;
  margin: 0 auto;
}

.rsvp-pill-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 360px;
  margin: 0 auto;
}

.pill-input {
  width: 100%;
  height: 44px;
  padding: 0 20px;
  border: 1px solid #333333;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: #222222;
  outline: none;
  background: transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pill-input:focus {
  border-color: var(--olive-primary);
  box-shadow: 0 0 0 2px rgba(107, 122, 92, 0.2);
}

.pill-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23333' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  cursor: pointer;
}

.btn-rsvp-submit {
  width: 100%;
  height: 44px;
  background: #000000;
  color: #FFFFFF;
  border: none;
  border-radius: 9999px;
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  margin-top: 6px;
}

.btn-rsvp-submit:hover {
  background: #222222;
  transform: translateY(-2px);
}

.btn-rsvp-submit:active {
  transform: translateY(2px);
}

/* ==========================================================================
   SECTION 6: WEDDING GIFT & BANKING CARD
   ========================================================================== */
.section-gifts {
  background: #FFFFFF;
  padding: 20px 20px 40px 20px;
}

.gifts-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 380px;
  margin: 0 auto;
}

.gift-olive-card {
  background-color: var(--olive-card);
  border-radius: 8px;
  padding: 20px;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(107, 122, 92, 0.25);
}

.gift-card-flex {
  display: flex;
  align-items: center;
  gap: 18px;
}

.gift-qr-col {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  background: #FFFFFF;
  padding: 6px;
  border-radius: 4px;
}

.gift-qr-code {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gift-info-col {
  flex: 1;
}

.gift-owner-name {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

.gift-divider-line {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  margin: 8px 0;
}

.gift-bank-name {
  font-family: var(--font-serif);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gift-account-number {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin: 4px 0 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-copy-acc {
  background: rgba(255, 255, 255, 0.25);
  border: none;
  color: #FFFFFF;
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.btn-copy-acc:hover {
  background: rgba(255, 255, 255, 0.4);
}

.gift-card-caption {
  font-family: var(--font-serif);
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

/* ==========================================================================
   SECTION 7: THANK YOU FULL-PHOTO CARD
   ========================================================================== */
.section-thanks {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thanks-photo-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.thanks-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thanks-overlay-card {
  position: relative;
  z-index: 2;
  width: 100%;
  background: rgba(151, 146, 101, 0.78);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: 30px 24px;
  text-align: center;
  color: #FFFFFF;
}

.thanks-script-title {
  font-family: var(--font-script);
  font-size: 38px;
  font-weight: normal;
  margin-bottom: 12px;
  line-height: 1.2;
}

.thanks-body-text {
  font-family: var(--font-serif);
  font-size: 13px;
  font-style: italic;
  line-height: 1.8;
  max-width: 360px;
  margin: 0 auto;
}

/* ==========================================================================
   SECTION 8: FOOTER
   ========================================================================== */
.section-footer {
  background-color: var(--olive-card);
  color: #FFFFFF;
  padding: 24px 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-couple-sig {
  font-family: var(--font-script);
  font-size: 28px;
  color: #FFFFFF;
  letter-spacing: 1px;
}

.footer-powered {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
}

.catalog-link {
  color: #FFFFFF;
  text-decoration: underline;
  font-weight: 600;
}

/* ==========================================================================
   MODAL 1: LIGHTBOX
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox-modal.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 28px;
  cursor: pointer;
}

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

.btn-lightbox-prev:hover,
.btn-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.35);
}

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

.lightbox-photo-wrap {
  position: relative;
  max-width: 100%;
  max-height: 80vh;
}

.lightbox-img {
  max-width: 85vw;
  max-height: 75vh;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.lightbox-indexer {
  color: #FFFFFF;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
  letter-spacing: 1px;
}

/* Toast Notification */
.toast-notify {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(30, 30, 30, 0.95);
  color: #FFFFFF;
  padding: 10px 22px;
  border-radius: 9999px;
  font-size: 12px;
  font-family: var(--font-sans);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.toast-notify.is-shown {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   SCROLL REVEAL & ENTRANCE ANIMATIONS
   ========================================================================== */
.anim-fade-up,
.anim-fade-in,
.anim-fade-left,
.anim-fade-right,
.anim-slide-up,
.anim-slide-left,
.anim-zoom-in {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.anim-fade-up { transform: translateY(35px); }
.anim-fade-in { transform: none; }
.anim-fade-left { transform: translateX(35px); }
.anim-fade-right { transform: translateX(-35px); }
.anim-slide-up { transform: translateY(60px); }
.anim-slide-left { transform: translateX(-40px); }
.anim-zoom-in { transform: scale(0.88); }

/* Triggered State */
.anim-fade-up.is-visible,
.anim-fade-in.is-visible,
.anim-fade-left.is-visible,
.anim-fade-right.is-visible,
.anim-slide-up.is-visible,
.anim-slide-left.is-visible,
.anim-zoom-in.is-visible {
  opacity: 1;
  transform: none;
}

/* Keep tilted cards rotation on polaroids */
.polaroid-card.polaroid-left.is-visible {
  transform: rotate(-6deg);
}

.polaroid-card.polaroid-right.is-visible {
  transform: rotate(5deg);
}

.envelope-ticket.is-visible {
  transform: rotate(-3deg);
}

.cluster-card.card-left.is-visible {
  transform: rotate(-6deg);
}

.cluster-card.card-right.is-visible {
  transform: rotate(4deg);
}

/* Stagger Delays */
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="250"] { transition-delay: 0.25s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }
