/*
 * Wedding intro text. The original Moooi fonts have no Vietnamese glyphs,
 * so this uses Cormorant Garamond and Montserrat (Google Fonts).
 */
:root {
  --wd-ivory: #f5efe6;
  --wd-gold: #c9a45c;
  --wd-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --wd-sans: 'Montserrat', Helvetica, Arial, sans-serif;
}

._1Mg1he {
  color: var(--wd-ivory);
}

._2s_BLA.wd-label {
  font-family: var(--wd-sans);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 2.4em;
}

._3tDUiH.wd-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: none;
  margin: 0 0 0.45em;
  font-family: var(--wd-serif);
  font-size: clamp(44px, 8vw, 128px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.wd-amp {
  margin: 0.08em 0 0.12em;
  font-size: 0.7em;
  font-style: italic;
  font-weight: 300;
  color: var(--wd-gold);
  text-transform: none;
}

._2rqll5.wd-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 2em;
}

.wd-date {
  font-style: normal;
  font-family: var(--wd-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.3em;
}

.wd-venue {
  font-family: var(--wd-serif);
  font-size: 24px;
  font-style: italic;
  font-weight: 300;
}

/* The scene shown right after "Mở thiệp". The Moooi stylesheet paints this
   backdrop black and its text white; the wedding paper carries the intro into
   the page it hands over to, so the text turns dark to stay readable on it. */
#main ._1NrZGL {
  background: var(--color-bg) url('../wedding/paper-white.webp') repeat;
}
#main .S50GZk { color: var(--color-text); }
/* Thin paper-coloured outline (1px in eight directions, then a soft halo) so
   the text stays legible when a dark leaf drifts behind it. */
#main .S50GZk span,
#main .S50GZk h2 {
  text-shadow:
    -1px -1px 0 #f3f2f2, 0 -1px 0 #f3f2f2, 1px -1px 0 #f3f2f2,
    -1px 0 0 #f3f2f2, 1px 0 0 #f3f2f2,
    -1px 1px 0 #f3f2f2, 0 1px 0 #f3f2f2, 1px 1px 0 #f3f2f2,
    0 0 3px rgba(243, 242, 242, 0.9);
}

/* The Moooi fonts lack Vietnamese glyphs, so this uses the intro's faces. */
._2RL_Dv.wd-scene-label {
  font-family: var(--wd-sans);
  font-size: clamp(11px, 1vw, 14px);
  letter-spacing: 0.24em;
  color: var(--color-accent-700);
}
._2XYTeQ.wd-scene-title {
  font-family: var(--wd-serif);
  font-size: clamp(32px, 6vw, 96px);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: center;
  text-wrap: balance;
}

._2Any3Y ._3POFJQ .eYUDqF {
  font-family: var(--wd-sans);
  letter-spacing: 0.08em;
}

/* ==========================================================================
   Wedding page (#wedding), shown after the intro. Layout mirrors the design
   in website-wedding-design/. Tokens and components come from classical.css.
   Every rule is prefixed with #wedding so it outranks the scoped base styles.
   ========================================================================== */
#wedding.wd-page {
  --wd-header-h: 56px;
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  /* No fade of its own: the intro scene's dark overlay lifts off this page,
     then the spent scene dissolves off it (see .wd-handoff). */
  opacity: 0;
  background: var(--color-bg) url('../wedding/paper-cream.webp') repeat;
}
#wedding.wd-page.is-open { opacity: 1; }

/* The intro scene during the hand-over: stacked above this page and no longer
   clickable, so it can dissolve off it. Its opacity is animated by the intro's
   own timeline (assets/js/tokyo-transition.js), not by a CSS transition. */
#main.wd-handoff { position: relative; z-index: 1001; pointer-events: none; }
#wedding.wd-page[hidden],
#wedding [hidden] { display: none !important; }
#wedding a { color: var(--color-accent-700); }
#wedding a:hover { color: var(--color-accent-800); text-decoration: underline; }

/* -- flourishes ----------------------------------------------------------- */
#wedding .wd-flourish { position: absolute; z-index: 0; pointer-events: none; will-change: translate; }
#wedding .wd-sway {
  display: block;
  transform-origin: 50% 100%;
  animation: wdSway var(--sway) ease-in-out infinite var(--delay);
}
#wedding .wd-draw {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  animation: wdDraw var(--dur) ease forwards var(--delay);
  animation-play-state: paused;
}
#wedding .wd-bloom {
  opacity: 0;
  animation: wdBloom var(--dur) ease forwards var(--delay);
  animation-play-state: paused;
}
#wedding .is-in .wd-draw,
#wedding .is-in .wd-bloom { animation-play-state: running; }

@keyframes wdSway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes wdDraw { to { stroke-dashoffset: 0; } }
@keyframes wdBloom { to { opacity: 1; } }
@keyframes wdFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes wdHint { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes wdFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(4deg); } }

/* -- reveal --------------------------------------------------------------- */
#wedding .wd-block {
  position: relative;
  overflow: hidden; /* flourishes bleed to the section edge, never past the page */
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
#wedding .wd-block.is-in { opacity: 1; transform: none; }

/* -- shared type / bands -------------------------------------------------- */
#wedding .wd-kicker { color: var(--color-accent-700); }
#wedding .wd-title { font-weight: 400; margin: var(--space-1) 0 var(--space-3); }
#wedding .wd-title-gap { margin-bottom: var(--space-4); }
#wedding .wd-title-tight { margin-bottom: var(--space-1); }
#wedding .wd-title-flush { margin-bottom: 0; }
#wedding .wd-rule { width: 40px; margin: 0 auto var(--space-6); }
#wedding .wd-rule-4 { margin-bottom: var(--space-4); }
#wedding .wd-muted-small { font-size: 13px; color: color-mix(in srgb, var(--color-text) 60%, transparent); }
#wedding .wd-paper { background: var(--color-bg) url('../wedding/paper-white.webp') repeat; }
#wedding .wd-surface { background: var(--color-surface); }
#wedding .wd-band { padding: var(--space-8) var(--space-4); }
#wedding .wd-narrow { margin: 0 auto; width: 100%; }
#wedding .wd-narrow-600 { max-width: 600px; text-align: center; }
#wedding .wd-narrow-560 { max-width: 560px; }
#wedding .wd-narrow-960 { max-width: 960px; text-align: center; }
#wedding .wd-narrow-640 { max-width: 640px; text-align: center; }
#wedding .wd-narrow-420 { max-width: 420px; }
#wedding .wd-head { text-align: center; margin-bottom: var(--space-6); }
#wedding .wd-head .wd-rule { margin: var(--space-3) auto 0; }
#wedding .wd-head-rsvp { margin-bottom: var(--space-4); }

/* -- sticky header -------------------------------------------------------- */
#wedding .wd-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--wd-header-h);
  margin-bottom: calc(var(--wd-header-h) * -1); /* overlays the cover instead of pushing it down */
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid transparent;
  color: #f5efe6;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
#wedding .wd-header.is-solid {
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--color-divider);
  color: var(--color-text);
}
#wedding .wd-brand {
  padding: var(--space-2) var(--space-3);
  border: 0;
  background: none;
  color: inherit;
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: text-shadow 0.4s ease;
}
#wedding .wd-header.is-solid .wd-brand { text-shadow: none; }
#wedding .wd-brand-amp { font-style: italic; text-transform: none; color: var(--color-accent-400); }
#wedding .wd-header.is-solid .wd-brand-amp { color: var(--color-accent-600); }
#wedding section { scroll-margin-top: var(--wd-header-h); }

/* -- cover ---------------------------------------------------------------- */
#wedding .wd-cover {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-8) var(--space-4) 11vh;
  overflow: hidden;
  background: var(--color-neutral-900);
  color: #f5efe6;
}
#wedding .wd-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#wedding .wd-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.4) 35%, rgba(0, 0, 0, 0.05) 62%, rgba(0, 0, 0, 0.1) 88%, rgba(0, 0, 0, 0.4));
}
#wedding .wd-cover-text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}
#wedding .wd-cover-label {
  font-size: 13px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}
#wedding .wd-cover-title {
  margin: 0;
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6), 0 0 6px rgba(0, 0, 0, 0.45);
}
#wedding .wd-cover-msg {
  max-width: 24em;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.2vw, 26px);
  font-style: italic;
  line-height: 1.35;
  text-wrap: balance;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7);
}
#wedding .wd-cover-date {
  font-size: 15px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}
#wedding .wd-cover-scroll {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  translate: -50% 0;
  padding: var(--space-2) var(--space-3);
  border: 0;
  background: none;
  font: italic 12px var(--font-body);
  color: rgba(245, 239, 230, 0.8);
  cursor: pointer;
  animation: wdHint 2.4s ease-in-out infinite;
}
#wedding .wd-cover-text > * { opacity: 0; }
#wedding .wd-cover.is-in .wd-cover-text > * { animation: wdFadeUp 0.9s ease forwards; }
#wedding .wd-cover.is-in .wd-cover-text > :nth-child(2) { animation-delay: 0.2s; }
#wedding .wd-cover.is-in .wd-cover-text > :nth-child(3) { animation-delay: 0.45s; }
#wedding .wd-cover.is-in .wd-cover-text > :nth-child(4) { animation-delay: 0.7s; }

/* -- countdown ------------------------------------------------------------ */
#wedding .wd-countdown {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
  background: var(--color-bg) url('../wedding/paper-white.webp') repeat;
}
#wedding .wd-countdown .wd-narrow { max-width: 560px; text-align: center; }
#wedding .wd-countdown-grid { display: flex; justify-content: center; flex-wrap: wrap; }
#wedding .wd-cd-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 72px;
  padding: 0 var(--space-3);
  border-right: 1px solid var(--color-divider);
}
#wedding .wd-cd-cell:last-child { border-right: 0; }
#wedding .wd-cd-num {
  font-family: var(--font-heading);
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1;
  color: var(--color-accent-700);
  font-variant-numeric: tabular-nums;
}
#wedding .wd-cd-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; }
#wedding .wd-countdown-done { font-family: var(--font-heading); font-size: 22px; color: var(--color-accent-700); }

/* -- divider + petals ----------------------------------------------------- */
#wedding .wd-divider {
  position: relative;
  min-height: 16vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-4);
}
#wedding .wd-divider-line { width: min(160px, 30vw); height: 1px; background: var(--color-divider); }
#wedding .wd-sprout { display: block; transform: scale(0.6); }
#wedding .wd-sprout-flip { transform: scale(0.6) scaleX(-1); }
#wedding .wd-petals {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding: 0 var(--space-4) var(--space-6);
}
#wedding .wd-petal {
  margin-top: var(--mt);
  opacity: 0;
  transform: translateY(24px) scale(0.6);
  transition: opacity 0.7s ease calc(var(--i) * 0.12s), transform 0.7s ease calc(var(--i) * 0.12s);
}
#wedding .wd-petals.is-in .wd-petal {
  opacity: 1;
  transform: none;
  animation: wdFloat calc(3.5s + var(--i) * 0.3s) ease-in-out infinite calc(0.7s + var(--i) * 0.15s);
}

/* -- landing sections ----------------------------------------------------- */
#wedding .wd-story { font-size: 15px; line-height: 1.7; text-align: justify; opacity: 0.85; }
#wedding .wd-schedule { display: flex; flex-direction: column; }
#wedding .wd-schedule-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  align-items: baseline;
  font-size: 15px;
  border-bottom: 1px solid var(--color-divider);
}
#wedding .wd-schedule-row:last-child { border-bottom: 0; }
#wedding .wd-schedule-time { font-family: var(--font-heading); font-size: 16px; color: var(--color-accent-700); }
/* -- gallery carousel ----------------------------------------------------- */
/* A looping carousel with the active photo centred and full size and its
   neighbours at 70%, after the "user-items-list" carousel on thewaytobloom.com.
   Photos are not links; tapping one beside the centre brings it to the centre,
   and tapping the centred one opens it in the lightbox (see the gallery code
   in wedding.js). */
#wedding .wd-carousel { --slide-w: clamp(210px, 64vw, 400px); --slide-gap: 20px; }
#wedding .wd-carousel-track {
  position: relative;
  height: calc(var(--slide-w) * 4 / 3);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
#wedding .wd-carousel .wd-slide {
  --rel: 0;
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--slide-w);
  height: 100%;
  margin: 0 0 0 calc(var(--slide-w) / -2);
  opacity: 0;
  pointer-events: none;
  cursor: default;
  transform: translateX(calc(var(--rel) * (var(--slide-w) + var(--slide-gap)))) scale(0.7);
  transition: transform 0.8s ease, opacity 0.8s ease;
}
#wedding .wd-carousel .wd-slide[data-rel="0"] { opacity: 1; transform: none; pointer-events: auto; cursor: zoom-in; }
#wedding .wd-carousel .wd-slide[data-rel="-1"],
#wedding .wd-carousel .wd-slide[data-rel="1"] { opacity: 1; pointer-events: auto; cursor: pointer; }
#wedding .wd-carousel .wd-slide[data-rel="-2"],
#wedding .wd-carousel .wd-slide[data-rel="2"] { opacity: 0.55; }
#wedding .wd-carousel-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
#wedding .wd-carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--color-accent-700);
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#wedding .wd-carousel-btn:hover { background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
#wedding .wd-carousel-btn:active { background: color-mix(in srgb, var(--color-accent) 22%, transparent); }
#wedding .wd-photo {
  position: relative;
  overflow: hidden;
  background: color-mix(in srgb, var(--color-text) 5%, var(--color-bg));
}
#wedding .wd-photo::before {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-style: italic;
  color: color-mix(in srgb, var(--color-text) 45%, transparent);
}
#wedding .wd-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#wedding .wd-loc-venue { font-size: 15px; margin-top: var(--space-2); }
#wedding .wd-loc-address { margin-bottom: var(--space-4); }
#wedding .wd-map {
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg);
}
#wedding .wd-map iframe { display: block; border: 0; }
#wedding .wd-map-link { margin-top: var(--space-3); }
/* -- RSVP reply card ------------------------------------------------------ */
/* Printed-stationery treatment: a double hairline frame around a monogram and
   underlined fields, per the design system's "draw with rules and underlines,
   keep large fills off the page". */
#wedding .wd-reply {
  padding: 7px;
  border: 1px solid var(--color-divider);
  background: color-mix(in srgb, var(--color-bg) 65%, transparent);
}
#wedding .wd-reply-inner {
  padding: var(--space-8) var(--space-6);
  border: 1px solid color-mix(in srgb, var(--color-accent) 40%, transparent);
}
#wedding .wd-reply-mono {
  font-family: var(--font-heading);
  font-size: 26px;
  letter-spacing: 0.22em;
  text-align: center;
  line-height: 1;
}
#wedding .wd-reply-amp {
  font-style: italic;
  letter-spacing: 0;
  color: var(--color-accent);
}
#wedding .wd-reply-orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: var(--space-3) 0 var(--space-8);
  color: var(--color-accent);
}
#wedding .wd-reply-orn span {
  width: 56px;
  height: 1px;
  background: var(--color-divider);
}

/* -- fields --------------------------------------------------------------- */
#wedding .wd-field {
  margin: 0 0 var(--space-8);
  padding: 0;
  border: 0;
}
#wedding .wd-field > label,
#wedding .wd-field > legend {
  display: block;
  padding: 0;
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
}
#wedding .wd-optional {
  font-style: italic;
  letter-spacing: 0.06em;
  text-transform: none;
}
#wedding .wd-field input,
#wedding .wd-field textarea {
  display: block;
  width: 100%;
  padding: 2px 0 8px;
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.45;
  color: var(--color-text);
  caret-color: var(--color-accent);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-divider);
  border-radius: 0;
  transition: border-color 0.3s ease;
}
#wedding .wd-field textarea { resize: none; }
#wedding .wd-field input:hover,
#wedding .wd-field textarea:hover { border-bottom-color: color-mix(in srgb, var(--color-text) 40%, transparent); }
#wedding .wd-field input:focus,
#wedding .wd-field textarea:focus { border-bottom-color: var(--color-accent); }

/* -- attendance choice ---------------------------------------------------- */
#wedding .wd-choices {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-8);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-divider);
}
#wedding .wd-choice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 17px;
  cursor: pointer;
}
#wedding .wd-choice input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}
#wedding .wd-mark {
  width: 13px;
  height: 13px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--color-divider);
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
#wedding .wd-choice:hover .wd-mark { border-color: var(--color-accent); }
#wedding .wd-choice input:checked + .wd-mark {
  border-color: var(--color-accent);
  background: var(--color-accent);
  box-shadow: inset 0 0 0 2.5px var(--color-bg);
}
#wedding .wd-choice input:focus-visible + .wd-mark {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* -- submit --------------------------------------------------------------- */
#wedding .wd-reply-send {
  display: block;
  width: 100%;
  margin: var(--space-4) 0 0;
  padding: var(--space-6) var(--space-3) 0;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-accent-700);
  background: none;
  border: 0;
  border-top: 1px solid var(--color-divider);
  cursor: pointer;
  transition: color 0.3s ease;
}
#wedding .wd-reply-send:hover { color: var(--color-accent-800); }
#wedding .wd-reply-send:disabled { opacity: 0.5; cursor: default; }
#wedding .wd-reply-error {
  margin: var(--space-3) 0 0;
  font-size: 13px;
  font-style: italic;
  text-align: center;
  color: #9b3b2f;
}

/* -- thank-you ------------------------------------------------------------ */
#wedding .wd-reply-thanks { text-align: center; padding: var(--space-4) 0 var(--space-2); }
#wedding .wd-thanks-title {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: var(--space-2);
}
#wedding .wd-thanks-body {
  margin: 0;
  font-size: 14px;
  font-style: italic;
  color: color-mix(in srgb, var(--color-text) 65%, transparent);
}
#wedding .wd-footer {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: var(--space-8) var(--space-4);
  border-top: 1px solid var(--color-divider);
}
#wedding .wd-footer-names { font-family: var(--font-heading); font-size: 20px; }
#wedding .wd-footer-note {
  font-size: 12px;
  font-style: italic;
  margin-top: var(--space-1);
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}

/* -- gallery lightbox ----------------------------------------------------- */
#wedding .wd-lightbox {
  /* The page's reset zeroes the margin and position the UA gives a modal
     dialog, so the centring is spelled out here. */
  position: fixed;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  max-width: 100vw;
  max-height: 100vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
#wedding .wd-lightbox::backdrop { background: rgb(20 16 12 / 0.88); }
#wedding .wd-lightbox img {
  display: block;
  max-width: 94vw;
  max-height: 90vh;
  object-fit: contain;
  cursor: zoom-out;
}
#wedding .wd-lightbox-close {
  position: fixed;
  top: 12px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

/* -- music button --------------------------------------------------------- */
#wedding .wd-music {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-accent);
  background: var(--color-bg);
  color: var(--color-accent-700);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow 0.4s ease;
}
#wedding .wd-music.is-playing {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent) 18%, transparent), var(--shadow-sm);
}

@media (prefers-reduced-motion: reduce) {
  #wedding.wd-page { scroll-behavior: auto; }
  #wedding .wd-header,
  #wedding .wd-brand { transition: none; }
  #wedding .wd-sway,
  #wedding .wd-cover-scroll,
  #wedding .wd-petals.is-in .wd-petal { animation: none; }
  #wedding .wd-draw { animation: none; stroke-dashoffset: 0; }
  #wedding .wd-bloom { animation: none; opacity: 1; }
  #wedding .wd-block,
  #wedding .wd-petal { transition: none; opacity: 1; transform: none; }
  #wedding .wd-carousel .wd-slide { transition: none; }
  #wedding .wd-cover-text > * { opacity: 1; animation: none; }
}
