:root {
  --theme-bg: #443a68;
  --theme-paper: #ffe5c6;
  --theme-ink: #1c1730;
  --theme-accent: #f7c873;
  --theme-muted: rgba(255, 255, 255, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--theme-bg, #ffffff);
  scroll-behavior: smooth;
}

html.is-opened,
body.is-opened {
  scroll-behavior: auto !important;
}

body.public-invitation {
  background: var(--theme-bg, #ffffff);
  background-attachment: fixed;
  background-image: var(--theme-background-image, none);
  background-size: cover;
  color: var(--theme-paper);
  font-size: var(--font-body-size, 14px);
  font-family: var(--theme-body-font, Inter, system-ui, sans-serif);
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
}

/* Prevent viewport scrolling/overflow while cover modal is active before opening */
body.public-invitation:not(.is-opened) {
  overflow: hidden !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  height: 100dvh !important;
}

body.public-invitation.is-opened {
  position: relative !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100% !important;
  min-height: 100dvh !important;
}

/* Dedicated Global Scope for Premium Themes */
body.public-invitation.template-access-premium {
  position: relative !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  background-attachment: scroll;
}

body.public-invitation.template-access-free {
  background-attachment: scroll;
  background-position: top center;
  background-image: none;
  background-repeat: no-repeat;
  background-size: auto;
  --basic-stage-width: min(428px, 100vw);
  --basic-stage-height: min(926px, 100vh);
  --basic-stage-radius: 0;
  --basic-stage-shadow: 0 18px 48px rgba(27, 1, 45, .16);
}

.template-access-free .invite-content {
  align-items: center;
  background-color: transparent;
  background-image: var(--theme-background-image, none);
  background-position: top center;
  background-repeat: repeat-y;
  background-size: 100% auto;
  gap: var(--basic-section-gap, 18px);
  margin: 0 auto;
  padding: var(--basic-content-padding, 16px);
  width: min(100%, var(--basic-stage-width));
}

.template-access-free .invite-cover {
  background-color: var(--theme-bg);
  background-image:
    linear-gradient(rgba(0, 0, 0, var(--cover-overlay, .14)), rgba(0, 0, 0, var(--cover-overlay, .14))),
    var(--theme-cover-background-image, none);
  background-position: var(--basic-cover-photo-focus, center);
  border-radius: var(--basic-stage-radius);
  box-shadow: var(--basic-stage-shadow);
  color: var(--basic-cover-text-color, var(--theme-paper));
  height: var(--basic-stage-height);
  inset: auto;
  left: 50%;
  max-height: calc(100vh - 24px);
  min-height: var(--basic-stage-height);
  overflow: hidden;
  top: 12px;
  transform: translateX(-50%);
  width: var(--basic-stage-width);
}

.template-access-free .invite-cover::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, .88));
  bottom: 0;
  content: "";
  height: var(--basic-cover-bottom-fade, 70%);
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 1;
}

.template-access-free .invite-cover[data-basic-cover-name-position="top"] {
  justify-content: flex-start;
  padding-top: max(3rem, calc(var(--section-padding, 72px) * .7));
}

.template-access-free .invite-cover[data-basic-cover-name-position="bottom"] {
  justify-content: flex-end;
  padding-bottom: max(3rem, calc(var(--section-padding, 72px) * .7));
}

.template-access-free .invite-cover .template-asset {
  z-index: 2;
}

.template-access-free .auto-section {
  background-color: transparent !important;
  background-image: none !important;
  color: var(--basic-card-text, var(--section-card-text, var(--theme-paper)));
  isolation: isolate;
  margin: 0 auto;
  min-height: auto;
  overflow: hidden;
  padding: var(--basic-card-inner-padding, clamp(1.35rem, 5vw, 2.4rem)) !important;
  text-align: var(--basic-card-align, center);
  width: min(100%, var(--basic-card-width, 390px));
}

.template-access-free .auto-section::before {
  backdrop-filter: blur(var(--basic-card-blur, 0px));
  background: var(--basic-card-bg, var(--section-card-bg, #fff));
  border: var(--basic-card-border-width, 1px) var(--basic-card-border-style, solid) var(--basic-card-border, var(--section-card-border, rgba(255, 255, 255, .5)));
  border-radius: var(--basic-card-radius, var(--section-card-radius, 16px));
  box-shadow: var(--basic-card-shadow, 0 12px 18px rgba(27, 1, 45, .16));
  content: "";
  display: var(--section-card-display, block);
  inset: 0;
  opacity: var(--basic-card-opacity, .96);
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.template-access-free .auto-section>* {
  position: relative;
  z-index: 1;
}

.template-access-free .invite-hero {
  padding-bottom: 1.7rem !important;
  padding-top: 1.7rem !important;
}

.template-access-free .invite-hero .hero-photo {
  display: none;
}

.template-access-free .invite-hero>p,
.template-access-free .invite-hero .section-lead {
  color: var(--basic-card-muted, #6f5b54);
  margin-bottom: .35rem;
  margin-top: 0;
  max-width: 18rem;
}

.template-access-free .hero-date-line {
  font-size: .96rem;
  font-weight: 600;
  margin-bottom: .35rem;
}

.template-access-free .hero-guest-line {
  border-top: 1px solid color-mix(in srgb, var(--basic-card-border, #f2d7d4), transparent 18%);
  display: flex;
  font-size: .84rem;
  justify-content: space-between;
  margin-top: .7rem;
  padding-top: .7rem;
  width: min(100%, 16rem);
}

.template-access-free[data-basic-card-preset="warm-arch"] .auto-section::before {
  box-shadow: 0 14px 26px rgba(107, 67, 18, .14);
}

.template-access-free[data-basic-card-preset="clean-minimal"] .auto-section::before {
  box-shadow: 0 8px 18px rgba(27, 1, 45, .08);
}

.template-access-free .section-kicker,
.template-access-free .auto-section small,
.template-access-free .auto-section p {
  color: var(--basic-card-muted, currentColor);
}

.template-access-free .section-kicker {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: .45rem;
  text-transform: var(--basic-section-kicker-transform, none);
}

.template-access-free .auto-section h2,
.template-access-free .auto-section h3,
.template-access-free .auto-section h4,
.template-access-free .auto-section strong {
  color: var(--basic-card-text, currentColor);
}

.template-access-free .auto-section h2,
.template-access-free .auto-section h3 {
  font-size: var(--basic-section-title-size, clamp(1.8rem, 4vw, calc(var(--font-h2-size, 28px) * 1.6)));
  margin-bottom: .65rem;
}

.template-access-free .auto-section h4 {
  margin-bottom: .45rem;
}

.template-access-free .auto-section p,
.template-access-free .auto-section li,
.template-access-free .auto-section input,
.template-access-free .auto-section textarea,
.template-access-free .auto-section button {
  font-size: var(--basic-section-body-size, var(--font-body-size, 14px));
}

.template-access-free .auto-section a {
  color: var(--basic-card-accent, var(--theme-accent));
}

.template-access-free .countdown div,
.template-access-free .event-card,
.template-access-free .public-couple,
.template-access-free .story-card,
.template-access-free .public-gift-card,
.template-access-free .public-rsvp-guest,
.template-access-free .public-rsvp-choice,
.template-access-free .public-rsvp-summary {
  border-color: color-mix(in srgb, var(--basic-card-border, #f2d7d4), transparent 20%);
}

.template-access-free .countdown {
  gap: .45rem;
  margin-top: .75rem;
  width: min(15.5rem, 100%);
}

.template-access-free .countdown div {
  background: var(--basic-button-color, #f45f60);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(244, 95, 96, .18);
  color: #fff;
  padding: .42rem .2rem;
}

.template-access-free .countdown strong {
  font-size: 1rem;
  font-weight: 800;
}

.template-access-free .countdown span {
  font-size: .64rem;
  font-weight: 700;
}

.template-access-free .auto-section button,
.template-access-free .public-gift-account button,
.template-access-free .public-rsvp-submit,
.template-access-free .public-rsvp-form>button {
  background: var(--basic-button-color, var(--theme-accent));
  color: var(--basic-button-text-color, var(--theme-ink));
}

.template-access-free[data-basic-button-style="pill"] .auto-section button,
.template-access-free[data-basic-button-style="pill"] .public-gift-account button,
.template-access-free[data-basic-button-style="pill"] .public-rsvp-submit,
.template-access-free[data-basic-button-style="pill"] .public-rsvp-form>button {
  border-radius: 999px;
}

.template-access-free[data-basic-button-style="rounded"] .auto-section button,
.template-access-free[data-basic-button-style="rounded"] .public-gift-account button,
.template-access-free[data-basic-button-style="rounded"] .public-rsvp-submit,
.template-access-free[data-basic-button-style="rounded"] .public-rsvp-form>button {
  border-radius: 12px;
}

.template-access-free[data-basic-button-style="square"] .auto-section button,
.template-access-free[data-basic-button-style="square"] .public-gift-account button,
.template-access-free[data-basic-button-style="square"] .public-rsvp-submit,
.template-access-free[data-basic-button-style="square"] .public-rsvp-form>button {
  border-radius: 4px;
}

.template-access-free .hero-photo,
.template-access-free .public-couple__photo,
.template-access-free .public-gallery-grid img,
.template-access-free .story-card img {
  border-color: var(--basic-card-border, rgba(255, 255, 255, .32));
  border-radius: calc(var(--basic-card-radius, 18px) * .75);
}

.template-access-free .public-couple-grid {
  gap: .8rem;
  grid-template-columns: 1fr;
  width: min(100%, 18rem);
}

.template-access-free .public-couple {
  padding: 1rem 1rem 1.15rem;
}

.template-access-free .public-couple__photo {
  height: min(220px, 58vw);
  width: min(11rem, 62vw);
}

.template-access-free .public-couple h4 {
  font-size: clamp(1.35rem, 4vw, 1.65rem);
}

.template-access-free .public-couple p {
  color: var(--basic-card-muted, #6f5b54);
  font-size: .82rem;
  line-height: 1.55;
}

.template-access-free .public-couple-separator {
  color: var(--basic-card-accent, var(--theme-accent));
  font-family: var(--theme-heading-font, Cinzel, serif);
  font-size: 2rem;
  line-height: 1;
  text-align: center;
}

.template-access-free .public-couple__social {
  display: flex;
  justify-content: center;
  margin-top: .8rem;
}

.template-access-free .public-couple__social a {
  align-items: center;
  background: var(--basic-button-color, var(--theme-accent));
  border-radius: 999px;
  color: var(--basic-button-text-color, var(--theme-ink));
  display: inline-flex;
  font-size: .72rem;
  font-weight: 800;
  gap: .45rem;
  padding: .55rem .85rem;
  text-decoration: none;
}

.template-access-free .public-event-list {
  gap: .75rem;
}

.template-access-free .event-card {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 24px rgba(27, 1, 45, .09);
  color: var(--basic-card-text, #333);
  padding: 1.15rem 1rem;
  text-align: center;
}

.template-access-free .event-card h4 {
  font-size: 1.18rem;
}

.template-access-free .event-card strong,
.template-access-free .event-card span,
.template-access-free .event-card p,
.template-access-free .event-card small {
  color: var(--basic-card-text, #333);
}

.template-access-free .public-story-item {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 24px rgba(27, 1, 45, .09);
  gap: .7rem;
  grid-template-columns: 1fr;
  padding: 1rem;
  text-align: center;
}

.template-access-free .public-story-item>span {
  margin: 0 auto;
}

.template-access-free .public-story-photo {
  border-radius: 16px;
  margin-bottom: .75rem;
  overflow: hidden;
}

.template-access-free .public-story-photo img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.template-access-free .public-quote,
.template-access-free .public-wish-form,
.template-access-free .public-wish-item,
.template-access-free .public-rsvp-form,
.template-access-free .public-rsvp-guest,
.template-access-free .public-rsvp-choice,
.template-access-free .public-rsvp-summary span,
.template-access-free .public-gift-card,
.template-access-free .public-gallery-item {
  background: rgba(255, 255, 255, .94);
  color: var(--basic-card-text, #333);
}

.template-access-free .public-gift-grid {
  gap: .75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.template-access-free .gallery-section .public-gallery-grid {
  gap: .55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.template-access-free .gallery-section .public-gallery-item:first-child {
  grid-column: 1 / -1;
}

.template-access-free .gallery-section .public-gallery-item:first-child img {
  aspect-ratio: 4 / 5;
}

.template-access-free .gallery-section .public-gallery-item:not(:first-child) img {
  aspect-ratio: 1 / 1;
}

.template-access-free .public-quote {
  padding: 1.25rem 1rem;
  text-align: center;
}

.template-access-free .public-quote p {
  font-size: 1rem;
  line-height: 1.85;
}

.template-access-free .public-quote cite,
.template-access-free .public-rsvp-form>small,
.template-access-free .public-rsvp-guest small,
.template-access-free .public-wish-form small {
  color: var(--basic-card-muted, #6f5b54);
}

.template-access-free .public-wish-form,
.template-access-free .public-rsvp-form,
.template-access-free .public-wish-item,
.template-access-free .public-rsvp-guest,
.template-access-free .public-rsvp-choice,
.template-access-free .public-rsvp-summary span,
.template-access-free .public-gift-card {
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(27, 1, 45, .08);
}

.template-access-free .public-gift-card {
  padding: 1rem;
}

.template-access-free .public-gift-card__head {
  align-items: flex-start;
}

.template-access-free .public-gift-card__head strong,
.template-access-free .public-gift-card>h4 {
  color: var(--basic-card-text, #333);
}

.template-access-free .public-gift-card>h4 {
  font-size: .92rem;
}

.template-access-free .public-gift-provider {
  border-radius: .9rem;
  height: 2.8rem;
  width: 2.8rem;
}

.template-access-free .public-gift-account {
  background: #fff6f6;
}

.template-access-free .public-gift-account code {
  color: var(--basic-card-text, #333);
}

.template-access-free .public-wish-form input,
.template-access-free .public-wish-form textarea,
.template-access-free .public-rsvp-form input[type="text"],
.template-access-free .public-rsvp-form input[type="number"] {
  border: 1px solid color-mix(in srgb, var(--basic-card-border, #f2d7d4), transparent 12%);
  border-radius: 12px;
}

.template-access-free .public-rsvp-options {
  gap: .6rem;
  grid-template-columns: 1fr;
}

.template-access-free .public-rsvp-choice {
  color: var(--basic-card-text, #333);
}

.template-access-free .public-rsvp-choice.is-not-attending {
  color: var(--basic-card-muted, #6f5b54);
}

.template-access-free .closing-section p {
  background: rgba(255, 255, 255, .96);
  color: var(--basic-card-text, #333);
  box-shadow: 0 10px 24px rgba(27, 1, 45, .08);
}

.template-access-free .public-wish-alert {
  background: #fff5f5;
  border: 1px solid color-mix(in srgb, var(--basic-card-border, #f2d7d4), transparent 8%);
  color: var(--basic-card-text, #333);
}

.template-access-free .public-rsvp-choice.is-not-attending {
  color: var(--basic-card-text, #333);
}

.template-access-free .public-gallery-item figcaption {
  display: none;
}

.template-access-free .public-ig-story-frame {
  background: rgba(255, 255, 255, .96);
  border-color: color-mix(in srgb, var(--basic-card-border, #f2d7d4), transparent 18%);
  box-shadow: 0 12px 26px rgba(27, 1, 45, .08);
}

.template-access-free .public-ig-story-frame strong {
  color: var(--basic-card-text, #333);
  font-size: 1.55rem;
}

.template-access-free .public-ig-story-frame small,
.template-access-free .public-ig-story-frame>span {
  color: var(--basic-card-muted, #6f5b54);
}

.template-access-free .public-ig-story-frame p {
  background: var(--basic-button-color, #f45f60);
  color: var(--basic-button-text-color, #fff);
  min-height: auto;
}

.template-access-free[data-basic-photo-shape="circle"] .hero-photo,
.template-access-free[data-basic-photo-shape="circle"] .public-couple__photo {
  border-radius: 999px;
}

.template-access-free[data-basic-photo-shape="arch"] .hero-photo,
.template-access-free[data-basic-photo-shape="arch"] .public-couple__photo {
  border-radius: 999px 999px calc(var(--basic-card-radius, 18px) * .8) calc(var(--basic-card-radius, 18px) * .8);
}

.free-extra-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 1.5rem;
  width: min(var(--content-width, 768px), 100%);
}

.free-extra-card {
  backdrop-filter: blur(var(--extra-card-blur, 16px));
  border: 1px solid var(--extra-card-border, rgba(255, 255, 255, .5));
  border-radius: var(--extra-card-radius, 16px);
  color: var(--extra-card-text, var(--theme-paper));
  grid-column: span 6;
  overflow: hidden;
  padding: 1.25rem;
  position: relative;
}

.free-extra-card::before {
  background: var(--extra-card-bg, #fff);
  content: "";
  inset: 0;
  opacity: var(--extra-card-opacity, .18);
  pointer-events: none;
  position: absolute;
}

.free-extra-card>* {
  position: relative;
  z-index: 1;
}

.free-extra-card--half {
  grid-column: span 3;
}

.free-extra-card--third {
  grid-column: span 2;
}

.free-extra-card h4 {
  color: inherit;
  font-family: var(--theme-heading-font, Cinzel, serif);
  font-size: 1.2rem;
  margin: 0 0 .5rem;
}

.free-extra-card p {
  color: inherit;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 640px) {
  body.public-invitation.template-access-free {
    background-size: auto;
  }

  .template-access-free .invite-content {
    background-size: 100% auto;
  }

  .free-extra-card--half,
  .free-extra-card--third {
    grid-column: span 6;
  }
}

body.public-invitation:not(.is-opened) {
  overflow: hidden;
}

.spark-field {
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 2;
}

.spark-particle {
  animation-duration: var(--duration, 7s);
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  background: var(--particle-color, var(--theme-accent));
  border-radius: 50%;
  box-shadow: 0 0 var(--particle-glow, 1rem) var(--particle-color, var(--theme-accent));
  height: var(--size, 0.28rem);
  left: var(--left, 50%);
  opacity: var(--particle-opacity, 0.72);
  position: absolute;
  width: var(--size, 0.28rem);
}

.spark-particle--up {
  animation-name: floatSpark;
  top: 110%;
}

.spark-particle--down {
  animation-name: fallSpark;
  top: -10%;
}

.spark-particle--diamond {
  border-radius: 12%;
  transform: rotate(45deg);
}

.spark-particle--star {
  background: var(--particle-color, var(--theme-accent));
  border-radius: 0;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 94%, 50% 72%, 21% 94%, 32% 57%, 2% 35%, 39% 35%);
}

.spark-particle--heart {
  background: var(--particle-color, var(--theme-accent));
  border-radius: 0;
  clip-path: polygon(50% 92%, 8% 50%, 8% 24%, 24% 8%, 43% 8%, 50% 18%, 57% 8%, 76% 8%, 92% 24%, 92% 50%);
}

.spark-particle--image {
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
}

.spark-particle--image img {
  display: block;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  width: 100%;
}

.music-floating-toggle {
  align-items: center;
  background: var(--theme-paper);
  border: 0;
  border-radius: 999px;
  bottom: 2rem;
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.22);
  color: var(--theme-ink);
  cursor: pointer;
  display: inline-flex;
  height: 3rem;
  justify-content: center;
  opacity: 0;
  position: fixed;
  right: 1rem;
  transform: translateY(1rem);
  transition: opacity 400ms ease, transform 400ms ease;
  width: 3rem;
  z-index: 13;
}

.is-opened .music-floating-toggle {
  opacity: 1;
  transform: none;
}

.music-floating-toggle span {
  font-size: 1.35rem;
  line-height: 1;
}

.music-floating-toggle.is-playing span {
  animation: musicPulse 900ms ease-in-out infinite alternate;
}

#youtubeMusicMount {
  height: 1px;
  left: -9999px;
  overflow: hidden;
  position: fixed;
  top: -9999px;
  width: 1px;
}

#youtubeMusicMount iframe {
  height: 1px;
  width: 1px;
}

.invite-cover,
.invite-hero,
.couple-section,
.event-section,
.gallery-section,
.story-section,
.quote-section,
.wishes-section,
.rsvp-section,
.instagram-story-section,
.info-section,
.closing-section {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section-padding, 72px) 1rem;
  position: relative;
  text-align: var(--section-text-align, center);
}

.invite-cover,
.invite-hero {
  min-height: 100vh;
  padding: 2rem 1rem;
}

.couple-section,
.event-section,
.gallery-section,
.story-section,
.quote-section,
.wishes-section,
.rsvp-section,
.instagram-story-section,
.info-section,
.closing-section {
  min-height: auto;
}

.couple-section+.event-section,
.event-section+.gallery-section,
.gallery-section+.story-section,
.story-section+.closing-section,
.story-section+.quote-section,
.quote-section+.closing-section,
.quote-section+.wishes-section,
.wishes-section+.closing-section,
.wishes-section+.rsvp-section,
.rsvp-section+.closing-section,
.rsvp-section+.instagram-story-section,
.instagram-story-section+.closing-section,
.event-section+.story-section,
.couple-section+.gallery-section,
.couple-section+.story-section,
.couple-section+.quote-section,
.event-section+.closing-section,
.event-section+.quote-section,
.event-section+.wishes-section,
.event-section+.rsvp-section,
.gallery-section+.closing-section,
.gallery-section+.quote-section,
.gallery-section+.wishes-section,
.gallery-section+.rsvp-section,
.story-section+.closing-section {
  padding-top: 2.75rem;
}

.invite-cover {
  background:
    linear-gradient(rgba(0, 0, 0, var(--cover-overlay, .14)), rgba(0, 0, 0, var(--cover-overlay, .14))),
    var(--theme-bg);
  background-position: center;
  background-size: cover;
  border: var(--cover-border-width, 6px) solid var(--theme-paper);
  position: fixed;
  inset: var(--cover-inset, 20px);
  z-index: 20;
  transition: transform 900ms ease, opacity 700ms ease, visibility 700ms ease;
}

.is-opened .invite-cover {
  opacity: 0;
  transform: scale(1.06) translateY(-2rem);
  visibility: hidden;
}

.is-opened .template-access-free .invite-cover {
  transform: translateX(-50%) scale(1.04) translateY(-2rem);
}

[data-cover-transition="fade"].is-opened .invite-cover {
  transform: none;
}

[data-cover-transition="slide"].is-opened .invite-cover {
  transform: translateY(-105%);
}

[data-cover-transition="fade"].is-opened .template-access-free .invite-cover {
  transform: translateX(-50%);
}

[data-cover-transition="slide"].is-opened .template-access-free .invite-cover {
  transform: translateX(-50%) translateY(-105%);
}

.hide-builtin-ornaments .ornament {
  display: none;
}

.ornament {
  border: 0.22rem double var(--theme-paper);
  height: 9rem;
  opacity: 0.9;
  position: absolute;
  width: 9rem;
}

.ornament--tl {
  border-bottom-right-radius: 100%;
  border-left: 0;
  border-top: 0;
  left: 0;
  top: 0;
}

.ornament--br {
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 100%;
  bottom: 0;
  right: 0;
}

.cover-card {
  animation: coverRise 900ms ease both;
  max-width: 32rem;
  position: relative;
  z-index: 3;
}

.invite-cover--floral .cover-card {
  animation: none;
}

.template-access-free .cover-card {
  color: var(--basic-cover-text-color, var(--theme-paper));
  max-width: min(var(--basic-cover-content-width, 390px), 90vw);
  padding: var(--basic-cover-content-padding, 0);
  text-shadow: 0 .12rem .65rem rgba(255, 255, 255, .45);
  width: min(var(--basic-cover-content-width, 390px), calc(var(--basic-stage-width) - 48px));
}

.template-access-free .cover-card::before {
  background: var(--basic-cover-content-bg, #fff);
  border-radius: var(--basic-cover-content-radius, 0);
  box-shadow: 0 1rem 2.5rem rgba(27, 1, 45, .14);
  content: "";
  inset: 0;
  opacity: var(--basic-cover-content-opacity, 0);
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.template-access-free[data-basic-cover-layout="soft-card"] .cover-card {
  backdrop-filter: blur(10px);
}

.template-access-free[data-basic-cover-layout="soft-card"] .cover-card::before {
  opacity: max(var(--basic-cover-content-opacity, .72), .38);
}

.template-access-free[data-basic-cover-layout="arch-photo"] .invite-cover {
  border-radius: clamp(10rem, 45vw, 22rem) clamp(10rem, 45vw, 22rem) 0 0;
  overflow: hidden;
}

.template-access-free[data-basic-cover-layout="arch-photo"] .invite-cover::after {
  height: min(var(--basic-cover-bottom-fade, 58%), 72%);
}

.cover-kicker,
.section-kicker {
  display: block;
  font-family: var(--theme-heading-font, Playfair Display, serif);
  font-size: var(--font-caption-size, 1.15rem);
  margin-bottom: 0.75rem;
}

.template-access-free .cover-kicker {
  font-size: var(--basic-cover-kicker-size, var(--font-caption-size, 1.15rem));
}

.template-access-free .cover-kicker--top {
  display: none;
  left: 50%;
  margin: 0;
  max-width: min(var(--basic-cover-content-width, 390px), 90vw);
  position: absolute;
  text-align: center;
  top: clamp(2.5rem, 8vh, 5.5rem);
  transform: translateX(-50%);
  width: 100%;
  z-index: 4;
}

.template-access-free[data-basic-cover-kicker-position="top"] .cover-kicker--top {
  display: block;
}

.template-access-free[data-basic-cover-kicker-position="top"] .cover-kicker--inline,
.template-access-free[data-basic-cover-kicker-position="hidden"] .cover-kicker {
  display: none;
}

.cover-card h1,
.invite-hero h2,
.couple-section h3,
.event-section h3,
.gallery-section h3,
.story-section h3,
.quote-section h3,
.wishes-section h3,
.rsvp-section h3,
.instagram-story-section h3,
.closing-section h3 {
  font-family: var(--theme-heading-font, Cinzel, serif);
  font-size: clamp(2.3rem, 7vw, calc(var(--font-h1-size, 32px) * 2.2));
  line-height: 1.05;
  margin: 0 0 1rem;
}

.template-access-free .cover-card h1 {
  font-size: var(--basic-cover-title-size, clamp(2.3rem, 7vw, calc(var(--font-h1-size, 32px) * 2.2)));
}

.template-access-free .cover-card>p {
  font-size: var(--basic-cover-date-size, var(--font-body-size, 14px));
}

.couple-section h3,
.event-section h3,
.gallery-section h3,
.story-section h3,
.quote-section h3,
.wishes-section h3,
.rsvp-section h3,
.instagram-story-section h3,
.closing-section h3 {
  font-size: clamp(1.8rem, 4vw, calc(var(--font-h2-size, 28px) * 1.6));
}

.open-invitation {
  background: var(--theme-paper);
  border: 0;
  border-radius: 999px;
  color: var(--theme-ink);
  cursor: pointer;
  font-weight: 800;
  margin: 1.5rem 0 1rem;
  padding: 0.9rem 1.5rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.template-access-free .open-invitation {
  background: var(--basic-cover-button-color, var(--theme-paper));
  color: var(--basic-cover-button-text-color, var(--theme-ink));
}

.template-access-free[data-basic-cover-button-width="full"] .open-invitation {
  width: 100%;
}

.cover-guest-line {
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 1.15rem auto 0;
  max-width: min(24rem, 86vw);
  padding-bottom: .65rem;
  width: 100%;
}

.template-access-free[data-basic-cover-guest-position="stacked"] .cover-guest-line {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
}

.template-access-free[data-basic-cover-guest-position="hidden"] .cover-guest-line {
  display: none;
}

.template-access-free .invite-cover::before {
  background: radial-gradient(circle at center bottom, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 38%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.open-invitation:hover {
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.invite-content {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 700ms ease 280ms, transform 700ms ease 280ms;
}

.is-opened .invite-content {
  opacity: 1;
  transform: none;
}

.invite-hero {
  background:
    linear-gradient(rgba(0, 0, 0, calc(var(--hero-overlay, .32) * .7)), rgba(0, 0, 0, var(--hero-overlay, .32))),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.16), transparent 24rem);
}

.section-lead {
  line-height: 1.75;
  margin: 0 auto 0.75rem;
  max-width: 36rem;
}

.hero-photo {
  border: var(--photo-border-width, 4px) solid rgba(255, 255, 255, 0.32);
  height: min(var(--hero-photo-size, 288px), 70vw);
  margin-bottom: 1.6rem;
  overflow: hidden;
  width: min(var(--hero-photo-size, 288px), 70vw);
}

.hero-photo img,
.public-couple__photo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-photo__placeholder,
.public-couple__photo span {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  font-family: var(--theme-heading-font, Cinzel, serif);
  font-size: 2.5rem;
  height: 100%;
  justify-content: center;
}

.countdown {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.5rem;
  width: min(28rem, 100%);
}

.countdown div,
.event-card,
.public-couple,
.closing-section p {
  backdrop-filter: blur(var(--card-blur, 16px));
  background: rgba(255, 255, 255, var(--card-opacity, .14));
  border: 1px solid rgba(255, 255, 255, var(--card-border-opacity, .18));
  border-radius: var(--card-radius, 16px);
  box-shadow: var(--card-shadow, none);
}

.countdown div {
  padding: 0.85rem 0.5rem;
}

.countdown strong,
.countdown span {
  display: block;
}

.public-couple-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 18rem));
  justify-content: center;
  width: min(var(--content-width, 768px), 100%);
}

.public-couple {
  padding: 1.25rem;
}

.public-couple__photo {
  border-radius: var(--card-radius, 16px);
  height: min(var(--couple-photo-size, 240px), 65vw);
  margin: 0 auto 1rem;
  overflow: hidden;
  width: min(var(--couple-photo-size, 240px), 65vw);
}

.public-couple h4 {
  font-family: var(--theme-heading-font, Cinzel, serif);
  font-size: var(--font-h2-size, 1.5rem);
  margin: 0 0 0.5rem;
}

.public-event-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  width: min(var(--content-width, 768px), 100%);
}

.event-card {
  display: grid;
  gap: 0.5rem;
  padding: 1.5rem;
  width: 100%;
}

.event-card h4 {
  font-family: var(--theme-heading-font, Cinzel, serif);
  font-size: var(--font-h2-size, 1.35rem);
  margin: 0.25rem 0 0;
}

.event-card p,
.event-card small {
  margin: 0;
}

.event-card a {
  background: var(--theme-paper);
  border-radius: 999px;
  color: var(--theme-ink);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  justify-self: center;
  margin-top: 0.5rem;
  padding: 0.65rem 1rem;
  text-decoration: none;
}

.public-gallery-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(var(--gallery-columns, 3), minmax(0, 1fr));
  margin-top: 1rem;
  width: min(var(--content-width, 768px), 100%);
}

.public-gallery-item {
  backdrop-filter: blur(var(--card-blur, 16px));
  background: rgba(255, 255, 255, var(--card-opacity, .14));
  border: 1px solid rgba(255, 255, 255, var(--card-border-opacity, .18));
  border-radius: var(--card-radius, 16px);
  box-shadow: var(--card-shadow, none);
  margin: 0;
  overflow: hidden;
  position: relative;
}

.public-gallery-item img {
  aspect-ratio: var(--gallery-ratio, 4/5);
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.public-gallery-item figcaption {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.68));
  bottom: 0;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  left: 0;
  padding: 2.5rem 0.75rem 0.75rem;
  position: absolute;
  right: 0;
}

.public-story-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  width: min(var(--content-width, 768px), 100%);
}

.public-story-item {
  align-items: start;
  backdrop-filter: blur(var(--card-blur, 16px));
  background: rgba(255, 255, 255, var(--card-opacity, .14));
  border: 1px solid rgba(255, 255, 255, var(--card-border-opacity, .18));
  border-radius: var(--card-radius, 16px);
  box-shadow: var(--card-shadow, none);
  display: grid;
  gap: 1rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 1.25rem;
  text-align: left;
}

.public-story-item>span {
  align-items: center;
  background: var(--theme-paper);
  border-radius: 999px;
  color: var(--theme-ink);
  display: inline-flex;
  font-weight: 800;
  height: 2.4rem;
  justify-content: center;
  width: 2.4rem;
}

.public-story-item h4 {
  font-family: var(--theme-heading-font, Cinzel, serif);
  font-size: var(--font-h2-size, 1.25rem);
  margin: 0 0 0.45rem;
}

.public-story-item p {
  line-height: 1.75;
  margin: 0;
}

.public-quote {
  backdrop-filter: blur(var(--card-blur, 16px));
  background: rgba(255, 255, 255, var(--card-opacity, .14));
  border: 1px solid rgba(255, 255, 255, var(--card-border-opacity, .18));
  border-radius: var(--card-radius, 16px);
  box-shadow: var(--card-shadow, none);
  margin: 1rem 0 0;
  max-width: 44rem;
  padding: 1.5rem;
}

.public-quote p {
  font-family: var(--theme-heading-font, Cinzel, serif);
  font-size: clamp(1.35rem, 3vw, var(--font-h2-size, 2rem));
  line-height: 1.65;
  margin: 0;
}

.public-quote cite {
  color: var(--theme-paper);
  display: block;
  font-style: normal;
  font-weight: 800;
  margin-top: 1rem;
  opacity: 0.82;
}

.public-wish-alert,
.public-wish-form,
.public-wish-item {
  backdrop-filter: blur(var(--card-blur, 16px));
  background: rgba(255, 255, 255, var(--card-opacity, .14));
  border: 1px solid rgba(255, 255, 255, var(--card-border-opacity, .18));
  border-radius: var(--card-radius, 16px);
  box-shadow: var(--card-shadow, none);
}

.public-gift-intro {
  margin-inline: auto;
  max-width: 42rem;
  opacity: .82;
}

.public-gift-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 2rem auto 0;
  max-width: var(--content-width, 768px);
  width: 100%;
}

.public-gift-card {
  background: color-mix(in srgb, var(--theme-paper) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--theme-paper) 25%, transparent);
  border-radius: var(--card-radius, 16px);
  box-shadow: var(--card-shadow, none);
  color: var(--theme-paper);
  padding: 1.2rem;
  position: relative;
  text-align: left;
}

.public-gift-card__head {
  align-items: center;
  display: flex;
  gap: .75rem;
  margin-bottom: 1.1rem;
}

.public-gift-provider {
  align-items: center;
  background: color-mix(in srgb, var(--provider-color) 22%, white);
  border-radius: .7rem;
  color: var(--provider-color);
  display: inline-flex;
  flex: 0 0 auto;
  font-family: Inter, sans-serif;
  font-size: .72rem;
  font-weight: 900;
  height: 3.2rem;
  justify-content: center;
  width: 3.2rem;
}

.public-gift-card__head small,
.public-gift-card__head strong,
.public-gift-card>span,
.public-gift-card>h4 {
  display: block;
}

.public-gift-card__head small {
  font-size: .68rem;
  opacity: .7;
  text-transform: uppercase;
}

.public-gift-card__head strong,
.public-gift-card>h4 {
  font-family: var(--theme-heading-font);
}

.public-gift-card>span {
  font-size: .7rem;
  opacity: .7;
  text-transform: uppercase;
}

.public-gift-card>h4 {
  font-size: 1.05rem;
  margin: .2rem 0 .75rem;
}

.public-gift-account {
  align-items: center;
  background: color-mix(in srgb, var(--theme-bg) 65%, transparent);
  border-radius: .7rem;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: .65rem;
}

.public-gift-account code {
  color: var(--theme-paper);
  flex: 1 1 8rem;
  font-family: Inter, sans-serif;
  font-size: .95rem;
  font-weight: 800;
}

.public-gift-account button,
.public-gift-qr {
  background: var(--theme-paper);
  border: 0;
  border-radius: .55rem;
  color: var(--theme-ink);
  font-family: var(--theme-body-font);
  font-size: .72rem;
  font-weight: 800;
  padding: .55rem .7rem;
}

.public-gift-qr {
  align-items: center;
  display: flex;
  gap: .7rem;
  margin-top: .75rem;
  width: 100%;
}

.public-gift-qr img {
  background: #fff;
  border-radius: .4rem;
  height: 4.5rem;
  object-fit: contain;
  padding: .2rem;
  width: 4.5rem;
}

.public-gift-card>p {
  font-size: .76rem;
  margin: .75rem 0 0;
  opacity: .75;
}

.public-gift-toast {
  background: var(--theme-ink);
  border-radius: 999px;
  bottom: 6rem;
  color: var(--theme-paper);
  font-size: .78rem;
  font-weight: 800;
  left: 50%;
  opacity: 0;
  padding: .65rem 1rem;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 1rem);
  transition: .18s ease;
  z-index: 120;
}

.public-gift-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.public-gift-lightbox {
  align-items: center;
  background: rgba(15, 8, 24, .88);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 2rem;
  position: fixed;
  z-index: 130;
}

.public-gift-lightbox.is-open {
  display: flex;
}

.public-gift-lightbox img {
  background: #fff;
  border-radius: 1rem;
  max-height: 78vh;
  max-width: min(30rem, 88vw);
  padding: 1rem;
}

.public-gift-lightbox button {
  background: #fff;
  border: 0;
  border-radius: 50%;
  font-size: 1.5rem;
  height: 2.8rem;
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  width: 2.8rem;
}

.public-wish-alert {
  font-weight: 800;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
}

.public-wish-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem;
  width: min(var(--content-width, 768px), 100%);
}

.public-wish-form input,
.public-wish-form textarea {
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 0.75rem;
  color: var(--theme-ink);
  font: inherit;
  padding: 0.85rem 1rem;
}

.public-wish-form small {
  color: var(--theme-paper);
  font-weight: 800;
}

.public-wish-form button {
  background: var(--theme-paper);
  border: 0;
  border-radius: 999px;
  color: var(--theme-ink);
  cursor: pointer;
  font-weight: 900;
  padding: 0.85rem 1rem;
}

.public-rsvp-form {
  backdrop-filter: blur(var(--card-blur, 16px));
  background: rgba(255, 255, 255, var(--card-opacity, .14));
  border: 1px solid rgba(255, 255, 255, var(--card-border-opacity, .18));
  border-radius: var(--card-radius, 16px);
  box-shadow: var(--card-shadow, none);
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem;
  width: min(var(--content-width, 768px), 100%);
}

.public-rsvp-form input[type="text"],
.public-rsvp-form input[type="number"] {
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 0.75rem;
  color: var(--theme-ink);
  font: inherit;
  padding: 0.85rem 1rem;
}

.public-rsvp-guest {
  background: rgba(255, 255, 255, var(--card-opacity, .14));
  border: 1px solid rgba(255, 255, 255, var(--card-border-opacity, .18));
  border-radius: var(--card-radius, 16px);
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
}

.public-rsvp-guest span {
  font-size: var(--font-caption-size, 0.78rem);
  font-weight: 800;
  opacity: 0.78;
}

.public-rsvp-guest strong {
  font-family: var(--theme-heading-font, Cinzel, serif);
  font-size: var(--font-h2-size, 1.2rem);
}

.public-rsvp-guest small {
  color: var(--theme-paper);
  font-size: var(--font-caption-size, 0.78rem);
  font-weight: 800;
  opacity: 0.9;
}

.public-rsvp-options {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr 1fr;
}

.public-rsvp-choice {
  background: rgba(255, 255, 255, var(--card-opacity, .14));
  border: 1px solid rgba(255, 255, 255, var(--card-border-opacity, .18));
  border-radius: var(--card-radius, 16px);
  color: var(--theme-paper);
  cursor: pointer;
  display: grid;
  font: inherit;
  font-weight: 800;
  gap: 0.15rem;
  padding: 0.8rem;
  text-align: left;
  transition: transform 0.2s ease, background 0.2s ease;
}

.public-rsvp-choice:hover,
.public-rsvp-choice:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  outline: 0;
  transform: translateY(-2px);
}

.public-rsvp-choice span {
  font-family: var(--theme-heading-font, Cinzel, serif);
  font-size: 1rem;
}

.public-rsvp-choice small {
  color: inherit;
  font-size: var(--font-caption-size, 0.78rem);
  font-weight: 700;
  opacity: 0.72;
}

.public-rsvp-choice.is-attending {
  background: rgba(255, 255, 255, 0.18);
}

.public-rsvp-choice.is-not-attending {
  color: rgba(255, 255, 255, 0.82);
}

.public-rsvp-choice.is-current,
.public-rsvp-choice:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.public-rsvp-choice.is-current {
  border-color: var(--theme-paper);
}

.public-rsvp-form>small {
  color: var(--theme-paper);
  font-weight: 800;
}

.public-rsvp-form>button {
  background: var(--theme-paper);
  border: 0;
  border-radius: 999px;
  color: var(--theme-ink);
  cursor: pointer;
  font-weight: 900;
  padding: 0.85rem 1rem;
}

.public-rsvp-modal {
  align-items: center;
  background: rgba(0, 0, 0, 0.58);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  z-index: 80;
}

.public-rsvp-modal.is-open {
  display: flex;
}

.public-rsvp-modal__panel {
  background:
    linear-gradient(rgba(255, 255, 255, var(--card-opacity, .14)), rgba(255, 255, 255, var(--card-opacity, .14))),
    var(--theme-bg);
  border: 1px solid rgba(255, 255, 255, var(--card-border-opacity, .18));
  border-radius: var(--card-radius, 16px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  color: var(--theme-paper);
  max-width: 24rem;
  padding: 1.4rem;
  position: relative;
  text-align: center;
  width: 100%;
}

.public-rsvp-modal__close {
  align-items: center;
  background: rgba(255, 255, 255, var(--card-opacity, .14));
  border: 0;
  border-radius: 999px;
  color: var(--theme-paper);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.4rem;
  height: 2.35rem;
  justify-content: center;
  position: absolute;
  right: 0.85rem;
  top: 0.85rem;
  width: 2.35rem;
}

.public-rsvp-modal__panel h4 {
  color: var(--theme-paper);
  font-family: var(--theme-heading-font, Cinzel, serif);
  font-size: 1.35rem;
  margin: 0.45rem 0 1rem;
}

.public-rsvp-stepper {
  align-items: center;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 3.25rem 1fr 3.25rem;
  margin: 1rem 0;
}

.public-rsvp-stepper button {
  background: var(--theme-paper);
  border: 0;
  border-radius: 999px;
  color: var(--theme-ink);
  cursor: pointer;
  font-size: 1.45rem;
  font-weight: 900;
  height: 3.25rem;
}

.public-rsvp-stepper strong {
  background: rgba(255, 255, 255, var(--card-opacity, .14));
  border: 1px solid rgba(255, 255, 255, var(--card-border-opacity, .18));
  border-radius: var(--card-radius, 16px);
  font-family: var(--theme-heading-font, Cinzel, serif);
  font-size: 2.4rem;
  padding: 0.45rem;
}

.public-rsvp-modal__panel p {
  color: rgba(255, 255, 255, 0.76);
  margin: 0 0 1rem;
}

.public-rsvp-submit {
  background: var(--theme-paper);
  border: 0;
  border-radius: 999px;
  color: var(--theme-ink);
  cursor: pointer;
  font-weight: 900;
  padding: 0.9rem 1.2rem;
  width: 100%;
}

.public-rsvp-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

.public-rsvp-summary span {
  background: rgba(255, 255, 255, var(--card-opacity, .14));
  border: 1px solid rgba(255, 255, 255, var(--card-border-opacity, .18));
  border-radius: 999px;
  font-weight: 800;
  padding: 0.65rem 1rem;
}

.public-ig-story-frame {
  aspect-ratio: 9 / 16;
  backdrop-filter: blur(var(--card-blur, 16px));
  background:
    linear-gradient(rgba(255, 255, 255, var(--card-opacity, .14)), rgba(255, 255, 255, var(--card-opacity, .14))),
    var(--theme-bg);
  border: 1px solid rgba(255, 255, 255, var(--card-border-opacity, .18));
  border-radius: var(--card-radius, 16px);
  box-shadow: var(--card-shadow, none);
  display: flex;
  flex-direction: column;
  justify-content: end;
  margin-top: 1rem;
  max-width: min(22rem, 100%);
  overflow: hidden;
  padding: 1rem;
  position: relative;
  width: 100%;
}

.public-ig-story-photo {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  inset: 1rem 1rem 8.5rem;
  justify-content: center;
  overflow: hidden;
  position: absolute;
}

.public-ig-story-photo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.public-ig-story-photo span {
  color: var(--theme-paper);
  font-weight: 800;
}

.public-ig-story-frame strong,
.public-ig-story-frame small,
.public-ig-story-frame>span,
.public-ig-story-frame p {
  position: relative;
  z-index: 2;
}

.public-ig-story-frame strong {
  color: var(--theme-accent);
  font-family: var(--theme-heading-font, Cinzel, serif);
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  line-height: 1.05;
}

.public-ig-story-frame small {
  display: block;
  font-weight: 800;
  margin-top: 0.25rem;
}

.public-ig-story-frame>span {
  display: block;
  font-size: var(--font-caption-size, 0.78rem);
  font-weight: 800;
  margin-top: 0.25rem;
}

.public-ig-story-frame p {
  background: var(--theme-accent);
  border-radius: 0.7rem;
  color: var(--theme-ink);
  font-weight: 800;
  margin: 0.8rem 0 0;
  min-height: 4rem;
  padding: 0.8rem;
}

.public-wish-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  width: min(var(--content-width, 768px), 100%);
}

.public-wish-item {
  padding: 1rem;
  text-align: left;
}

.public-wish-item strong {
  display: block;
  font-weight: 900;
  margin-bottom: 0.35rem;
}

.public-wish-item p {
  line-height: 1.65;
  margin: 0;
}

.closing-section p {
  line-height: 1.8;
  max-width: 36rem;
  padding: 1.25rem;
}

.public-additional-info,
.info-section p {
  line-height: 1.8;
  max-width: 42rem;
}

.closing-section strong,
.closing-section small {
  display: block;
  margin-top: 0.75rem;
}

.closing-section small {
  font-size: var(--font-caption-size, 0.85rem);
  opacity: 0.85;
}

.auto-section {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity var(--reveal-duration, 700ms) ease, transform var(--reveal-duration, 700ms) ease;
}

[data-reveal="fade"] .auto-section {
  transform: none;
}

[data-reveal="scale"] .auto-section {
  transform: scale(.94);
}

[data-reveal="none"] .auto-section {
  opacity: 1;
  transform: none;
  transition: none;
}

.auto-section.is-visible {
  opacity: 1;
  transform: none;
}

.template-asset {
  animation-duration: var(--asset-duration, 5s);
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  opacity: var(--asset-opacity, 1);
  pointer-events: none;
  position: absolute;
  transform: rotate(var(--asset-rotation, 0deg));
  width: min(var(--asset-width, 160px), 46vw);
  z-index: 1;
}

.template-editable-node {
  margin-left: auto;
  margin-right: auto;
  max-width: min(100%, var(--node-width, 320px));
  opacity: var(--node-opacity, 1);
  position: relative;
  transform: translate(var(--node-x, 0), var(--node-y, 0)) rotate(var(--node-rotation, 0deg));
  transform-origin: center;
  z-index: 4;
}

.template-editable-node--text {
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.template-editable-node--text.is-editor-selected {
  outline: 2px dashed #ff5abf;
  outline-offset: 6px;
}

.template-editable-node--text.is-editor-resize {
  cursor: nwse-resize !important;
}

button.template-editable-node {
  display: block;
}

svg.template-asset {
  height: var(--asset-height, auto);
  overflow: visible;
}

.template-asset.is-mirrored {
  transform: scaleX(-1) rotate(var(--asset-rotation, 0deg));
}

.template-asset--top-left {
  left: 1rem;
  top: 1rem;
}

.template-asset--top-right {
  right: 1rem;
  top: 1rem;
}

.template-asset--bottom-left {
  bottom: 1rem;
  left: 1rem;
}

.template-asset--bottom-right {
  bottom: 1rem;
  right: 1rem;
}

.template-asset--center-top {
  left: 50%;
  top: 1rem;
  transform: translateX(-50%) rotate(var(--asset-rotation, 0deg));
}

.template-asset--center-bottom {
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) rotate(var(--asset-rotation, 0deg));
}

.template-asset--center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(var(--asset-rotation, 0deg));
}

.template-asset--stretch {
  height: calc(100% - 2rem) !important;
  inset: 1rem;
  max-width: none;
  transform: rotate(var(--asset-rotation, 0deg));
  width: calc(100% - 2rem) !important;
}

.template-asset--custom {
  left: calc(50% + var(--asset-x, 0px));
  top: calc(50% + var(--asset-y, 0px));
  transform: translate(-50%, -50%) rotate(var(--asset-rotation, 0deg));
}

.template-asset--float {
  animation-name: templateAssetFloat;
}

.template-asset--fade-in {
  animation-name: templateAssetFade;
  animation-iteration-count: 1;
}

.template-asset--slide-down {
  animation-name: templateAssetSlideDown;
  animation-iteration-count: 1;
}

.template-asset--slide-up {
  animation-name: templateAssetSlideUp;
  animation-iteration-count: 1;
}

.template-asset--pulse {
  animation-name: templateAssetPulse;
}

.template-asset--spin-slow {
  animation-name: templateAssetSpin;
  animation-timing-function: linear;
}

.template-asset--drift {
  animation-name: templateAssetDrift;
}

.template-asset--breathe {
  animation-name: templateAssetBreathe;
}

@keyframes templateAssetDrift {

  0%,
  100% {
    margin-left: -0.45rem;
    margin-top: 0;
  }

  50% {
    margin-left: 0.45rem;
    margin-top: 0.35rem;
  }
}

@keyframes templateAssetBreathe {

  0%,
  100% {
    opacity: calc(var(--asset-opacity, 1) * 0.72);
  }

  50% {
    opacity: var(--asset-opacity, 1);
  }
}

.invite-dock {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  bottom: 1rem;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.2);
  display: flex;
  gap: 0.25rem;
  left: 50%;
  opacity: 0;
  padding: 0.35rem;
  position: fixed;
  transform: translateX(-50%) translateY(1rem);
  transition: opacity 500ms ease, transform 500ms ease;
  z-index: 12;
}

.hide-invite-dock .invite-dock {
  display: none;
}

[data-dock-style="square"] .invite-dock,
[data-dock-style="square"] .invite-dock a {
  border-radius: var(--card-radius, 8px);
}

[data-dock-style="glass"] .invite-dock {
  backdrop-filter: blur(var(--card-blur, 16px));
  background: rgba(255, 255, 255, var(--card-opacity, .14));
  border: 1px solid rgba(255, 255, 255, var(--card-border-opacity, .18));
}

[data-dock-style="glass"] .invite-dock a {
  color: var(--theme-paper);
}

.is-opened .invite-dock {
  opacity: 1;
  transform: translateX(-50%);
}

.is-builder-preview {
  overflow-y: auto;
}

.is-builder-preview .invite-cover {
  border-radius: 0;
  inset: auto;
  min-height: 100vh;
  opacity: 1;
  pointer-events: auto;
  position: relative;
  transform: none;
  visibility: visible;
  z-index: 1;
}

.is-builder-preview.template-access-free .invite-cover {
  height: max(720px, min(926px, calc(100vh - 24px)));
  left: 50%;
  min-height: max(720px, min(926px, calc(100vh - 24px)));
  position: relative;
  top: auto;
  transform: translateX(-50%);
  width: min(428px, calc(100vw - 24px));
}

.is-builder-preview.template-access-free .invite-content {
  width: min(100%, 428px);
}

.is-builder-preview .invite-content {
  opacity: 1;
  transform: none;
}

.is-builder-preview .auto-section {
  opacity: 1;
  transform: none;
}

.is-builder-preview .invite-dock,
.is-builder-preview .music-floating-toggle {
  display: none;
}

.invite-dock a {
  border-radius: 999px;
  color: var(--theme-ink);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
}

.invite-dock a:hover {
  background: var(--theme-bg);
  color: var(--theme-paper);
}

@keyframes coverRise {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
}

@keyframes floatSpark {
  to {
    top: -10%;
    transform: translateX(var(--drift, 2rem));
  }
}

@keyframes fallSpark {
  from {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
  }

  to {
    transform: translate3d(var(--drift, 0), 120vh, 0) rotate(360deg);
  }
}

@keyframes musicPulse {
  to {
    transform: scale(1.12);
  }
}

@keyframes templateAssetFloat {
  50% {
    margin-top: -0.9rem;
  }
}

@keyframes templateAssetFade {
  from {
    opacity: 0;
  }
}

@keyframes templateAssetSlideDown {
  from {
    opacity: 0;
    margin-top: -1.25rem;
  }
}

@keyframes templateAssetSlideUp {
  from {
    opacity: 0;
    margin-top: 1.25rem;
  }
}

@keyframes templateAssetPulse {
  50% {
    filter: drop-shadow(0 0 1.2rem var(--theme-accent));
  }
}

@keyframes templateAssetSpin {
  to {
    rotate: 360deg;
  }
}

body.public-invitation.theme-floral.template-access-free {
  background-color: #FFFFFF;
  background-image: none;
  --basic-stage-shadow: 0 24px 50px rgba(126, 88, 77, .16);
}

.theme-floral .floral-cover-reference {
  --floral-cover-photo: none;
  align-items: stretch;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #333;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  font-family: "Playfair Display", serif;
  overflow: hidden;
  padding: 0;
  text-shadow: none;

  /* Make the cover section go edge-to-edge / full-screen */
  width: 100% !important;
  height: 100% !important;
  min-height: 100vh !important;
  max-height: none !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  border-radius: 0 !important;
}

@media (min-width: 641px) {
  .theme-floral .floral-cover-reference {
    width: 428px !important;
    left: 50% !important;
    right: auto !important;
    margin-left: -214px !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1) !important;
    position: fixed !important;
  }
}

/* Slide up transition when opened */
.is-opened .theme-floral .floral-cover-reference {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-105%) !important;
  transition: transform 900ms ease, opacity 700ms ease, visibility 700ms ease;
}

/* Pseudo-element gradients disabled — replaced with clean mask-image on the photo itself */
.theme-floral .floral-cover-reference::before {
  display: none;
}

.theme-floral .floral-cover-reference::after {
  display: none;
}

/* Couple photo area */
.theme-floral .floral-cover-photo {
  background-image: var(--floral-cover-photo);
  background-position: center top;
  background-size: cover;
  position: relative;
  flex-grow: 1;
  width: 100%;
  margin: 1rem 0;
  z-index: 1;

  /* Smooth opacity mask at the top and bottom to blend with any background color/gradient */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

/* All overlays above the gradients */
.theme-floral .floral-cover-title,
.theme-floral .floral-cover-card {
  position: relative;
  z-index: 4;
}

.theme-floral .floral-cover-ornament {
  position: absolute;
  z-index: 4;
}

/* "The Wedding of" kicker */
.theme-floral .floral-cover-title {
  color: #333;
  font-size: clamp(1.25rem, 6.1vw, 1.7rem);
  font-weight: 500;
  line-height: 1.2;
  padding-top: 2.45rem;
  text-align: center;
  width: 100%;
  flex-shrink: 0;
}

/* Bottom card: names, date, guest, divider, button */
.theme-floral .floral-cover-card {
  animation: none;
  background: transparent;
  border: 0;
  margin-bottom: 1.5rem;
  box-shadow: none;
  color: #333;
  display: grid;
  justify-items: stretch;
  max-width: none;
  padding: 0 1.55rem;
  text-shadow: none;
  width: 100%;
  flex-shrink: 0;
}

.theme-floral .floral-cover-card::before {
  display: none;
}

.theme-floral .floral-cover-card h1 {
  color: #333;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.0rem, 8.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.05;
  margin: 0;
  text-align: center;
  text-transform: none;
}

.theme-floral .floral-cover-card>p {
  color: #333;
  font-family: "Playfair Display", serif;
  font-size: clamp(.9rem, 3.9vw, 1.04rem);
  font-weight: 500;
  letter-spacing: 0;
  margin: .5rem 0 1.95rem;
  text-align: center;
  text-transform: none;
}

/* Guest line: "Kepada :" left, "Full Name" right */
.theme-floral .floral-cover-guest {
  align-items: center;
  border: 0;
  color: #333;
  display: grid;
  font-family: "Playfair Display", serif;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0;
  width: 100%;
}

.theme-floral .floral-cover-guest span,
.theme-floral .floral-cover-guest strong {
  color: #333;
  display: block;
  font-size: clamp(.98rem, 4vw, 1.12rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  width: auto;
}

.theme-floral .floral-cover-guest span {
  text-align: left;
}

.theme-floral .floral-cover-guest strong {
  text-align: right;
}

/* Flower divider between guest line and button */
.theme-floral .floral-cover-divider {
  align-self: center;
  display: block;
  justify-self: center;
  margin-top: .62rem;
  max-width: min(13.5rem, 58vw);
  pointer-events: none;
  width: 100%;
}

/* "Buka Undangan" button */
.theme-floral .floral-cover-card .open-invitation {
  background: #f75d61;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: 0;
  margin: 1.75rem 0 1rem;
  min-width: 0;
  padding: .93rem 1.35rem;
  text-transform: none;
  width: 100%;
}

/* Ornament base styles */
.theme-floral .floral-cover-ornament {
  pointer-events: none;
  user-select: none;
}

/* Top-right ornament: Asset 6 1.png (leaves + berries + flower) */
.theme-floral .floral-cover-ornament--top {
  right: -1.2rem;
  top: -.8rem;
  width: min(10rem, 38vw);
}

/* Left ornament: Asset 12 1.png (large floral bouquet) */
.theme-floral .floral-cover-ornament--left {
  bottom: 13rem;
  left: -2.85rem;
  width: min(11.5rem, 43vw);
}

/* Bottom-right ornament: Asset 44 1.png (small branch) */
.theme-floral .floral-cover-ornament--bottom {
  bottom: -.5rem;
  right: -1.2rem;
  width: min(7rem, 26vw);
}

@media (max-width: 640px) {
  .theme-floral .floral-cover-card {
    margin-bottom: 1rem;
    padding: 0 1.55rem;
  }

  .theme-floral .floral-cover-card h1 {
    font-size: clamp(1.6rem, 7.5vw, 2.1rem);
  }

  .theme-floral .floral-cover-card>p {
    margin: 0.3rem 0 0.8rem;
  }

  .theme-floral .floral-cover-divider {
    margin-top: 0.35rem;
    max-width: min(10rem, 45vw);
  }

  .theme-floral .floral-cover-card .open-invitation {
    margin: 0.75rem 0 0.5rem;
    padding: .75rem 1.25rem;
  }
}

.theme-floral.template-access-free .auto-section {
  color: #5b433c;
  width: min(100%, 396px);
}

.theme-floral.template-access-free .auto-section::before {
  display: none !important;
}

.theme-floral.template-access-free .auto-section h2,
.theme-floral.template-access-free .auto-section h3,
.theme-floral.template-access-free .public-couple h4,
.theme-floral.template-access-free .event-card h4,
.theme-floral.template-access-free .public-story-item h4,
.theme-floral.template-access-free .public-gift-card>h4,
.theme-floral.template-access-free .public-rsvp-guest strong,
.theme-floral.template-access-free .public-ig-story-frame strong {
  color: #6a4c44;
  font-family: "Playfair Display", serif;
  font-weight: 600;
}

.theme-floral.template-access-free .section-kicker {
  color: #b07a73;
  font-family: "Playfair Display", serif;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .26em;
  margin-bottom: .95rem;
  text-transform: uppercase;
}

.theme-floral.template-access-free .countdown div,
.theme-floral.template-access-free .event-card,
.theme-floral.template-access-free .public-couple,
.theme-floral.template-access-free .public-story-item,
.theme-floral.template-access-free .public-quote,
.theme-floral.template-access-free .public-wish-alert,
.theme-floral.template-access-free .public-wish-form,
.theme-floral.template-access-free .public-wish-item,
.theme-floral.template-access-free .public-rsvp-form,
.theme-floral.template-access-free .public-rsvp-guest,
.theme-floral.template-access-free .public-rsvp-choice,
.theme-floral.template-access-free .public-gift-card,
.theme-floral.template-access-free .closing-section p,
.theme-floral.template-access-free .public-ig-story-frame {
  background: rgba(255, 250, 246, .92);
  border: 1px solid rgba(231, 205, 197, .9);
  box-shadow: none;
  color: #5b433c;
}

.theme-floral.template-access-free .public-quote cite,
.theme-floral.template-access-free .public-wish-form small,
.theme-floral.template-access-free .public-rsvp-form>small,
.theme-floral.template-access-free .public-rsvp-guest small {
  color: #8b6e65;
}

.theme-floral.template-access-free .public-gift-provider,
.theme-floral.template-access-free .public-gift-account,
.theme-floral.template-access-free .public-ig-story-frame p {
  background: #f3e3dc;
  color: #7b5b54;
}

.theme-floral.template-access-free .public-gift-account code {
  color: #6a4c44;
}

.theme-floral.template-access-free .public-gift-account button,
.theme-floral.template-access-free .public-gift-qr,
.theme-floral.template-access-free .public-wish-form button,
.theme-floral.template-access-free .public-rsvp-form>button,
.theme-floral.template-access-free .public-rsvp-stepper button,
.theme-floral.template-access-free .public-rsvp-submit,
.theme-floral.template-access-free .event-card a {
  background: #b87982;
  color: #fff8f4;
}

.theme-floral.template-access-free .invite-dock {
  background: rgba(255, 250, 246, .94);
  box-shadow: 0 18px 32px rgba(126, 88, 77, .15);
}

.theme-floral.template-access-free .invite-dock a {
  color: #7a5a53;
}

.theme-floral.template-access-free .invite-dock a:hover {
  background: #b87982;
  color: #fff8f4;
}

@media (max-width: 640px) {
  .public-gift-grid {
    grid-template-columns: 1fr;
  }

  .template-access-free .public-gift-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .invite-cover {
    inset: 0.5rem;
  }

  .template-access-free {
    --basic-stage-width: calc(100vw - 16px);
    --basic-stage-height: calc(100vh - 16px);
  }

  .template-access-free .invite-cover {
    inset: auto;
    top: 8px;
  }

  .couple-section,
  .event-section,
  .gallery-section,
  .story-section,
  .quote-section,
  .wishes-section,
  .rsvp-section,
  .instagram-story-section,
  .info-section,
  .closing-section {
    padding: 3.25rem 1rem;
  }

  .public-couple-grid {
    grid-template-columns: 1fr;
  }

  .public-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Floral Theme Background — matches invitation-bg.png reference */
.theme-floral .invite-content {
  background: #FFFFFF;
  overflow: hidden;
  position: relative;
}

.theme-floral .invite-hero {
  background: transparent;
  color: #5b433c;
  min-height: auto;
}

.theme-floral .invite-hero h2 {
  color: #6a4c44;
  font-family: 'Playfair Display', serif;
}

.theme-floral .invite-hero .cover-kicker {
  color: #b07a73;
}

.theme-floral .invite-hero p,
.theme-floral .invite-hero small {
  color: #5b433c;
}

.theme-floral .hero-guest-line {
  border-top-color: rgba(176, 122, 115, .25);
  color: #5b433c;
}

.theme-floral .auto-section {
  position: relative;
  z-index: 2;
}

.theme-floral .floral-bg-ornament {
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  opacity: 0.92;
}

/* Ornament 1: top-left (Asset 2 11.png) - near hero */
.theme-floral .floral-bg-ornament--1 {
  top: 1%;
  left: -1.5rem;
  width: min(10.5rem, 42vw);
  height: min(15rem, 58vw);
  background-position: left center;
}

/* Ornament 2: top-right (Asset 6 2.png) - near quote / hero bottom */
.theme-floral .floral-bg-ornament--2 {
  top: 8%;
  right: -1.8rem;
  width: min(11rem, 44vw);
  height: min(15.5rem, 60vw);
  background-position: right center;
}

/* Ornament 3: left (Asset 12 2.png) - near mempelai */
.theme-floral .floral-bg-ornament--3 {
  top: 18%;
  left: -2rem;
  width: min(11.5rem, 46vw);
  height: min(16rem, 64vw);
  background-position: left center;
}

/* Ornament 4: right (Asset 10 2.png) - near acara */
.theme-floral .floral-bg-ornament--4 {
  top: 28%;
  right: -2rem;
  width: min(10.5rem, 42vw);
  height: min(15rem, 58vw);
  background-position: right center;
}

/* Ornament 5: left (Asset 2 10.png) - near kisah cinta / galeri */
.theme-floral .floral-bg-ornament--5 {
  top: 40%;
  left: -2rem;
  width: min(10.5rem, 42vw);
  height: min(15rem, 58vw);
  background-position: left center;
}

/* Ornament 6: right (Asset 4 9.png) - near galeri / rsvp */
.theme-floral .floral-bg-ornament--6 {
  top: 52%;
  right: -1.5rem;
  width: min(9.5rem, 38vw);
  height: min(13rem, 50vw);
  background-position: right center;
}

/* Ornament 7: left (Asset 7 1.png) - near rsvp / kado */
.theme-floral .floral-bg-ornament--7 {
  top: 62%;
  left: -1.8rem;
  width: min(9.5rem, 38vw);
  height: min(13.5rem, 52vw);
  background-position: left center;
}

/* Ornament 8: right (Asset 9 1.png) - near kado / ucapan */
.theme-floral .floral-bg-ornament--8 {
  top: 72%;
  right: -2rem;
  width: min(10rem, 40vw);
  height: min(14rem, 54vw);
  background-position: right center;
}

/* Ornament 9: left (Asset 1 11.png) - near ucapan */
.theme-floral .floral-bg-ornament--9 {
  top: 80%;
  left: -1.5rem;
  width: min(9rem, 36vw);
  height: min(13rem, 50vw);
  background-position: left center;
}

/* Ornament 10: right (Asset 5 1.png) - near IG story */
.theme-floral .floral-bg-ornament--10 {
  top: 87%;
  right: -1.5rem;
  width: min(9.5rem, 38vw);
  height: min(13.5rem, 52vw);
  background-position: right center;
}

/* Ornament 11: left (Asset 10 1.png) - near closing */
.theme-floral .floral-bg-ornament--11 {
  top: 93%;
  left: -1.8rem;
  width: min(9rem, 36vw);
  height: min(12.5rem, 48vw);
  background-position: left center;
}

/* Ornament 12: right (Asset 4 10.png) - bottom */
.theme-floral .floral-bg-ornament--12 {
  top: 97%;
  right: -1.2rem;
  width: min(8.5rem, 34vw);
  height: min(12rem, 46vw);
  background-position: right center;
}

/* Combined Wishes and IG Stories Design */
.wishes-ig-combined-container {
  width: 100%;
  padding: 38px 24px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0px 4px 4px rgba(255, 255, 255, 0.25), 0px 5px 10px rgba(0, 0, 0, 0.25);
  border-radius: 24px;
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 38px;
  margin: 2rem auto;
  position: relative;
  z-index: 2;
}

.wishes-ig-section-title {
  text-align: center;
  color: #2C2B2B;
  font-size: 24px;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  margin-bottom: 12px;
}

.wishes-ig-section-desc {
  text-align: center;
  color: #2C2B2B;
  font-size: 11px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  margin-bottom: 12px;
}

.wishes-form-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 284px;
  margin: 0 auto;
}

.wishes-input,
.wishes-textarea {
  width: 100%;
  padding: 12px 16px;
  background: #F3F0F0;
  border-radius: 18px;
  outline: 2px solid #B59F9F;
  outline-offset: -2px;
  border: none;
  color: #2C2B2B;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

.wishes-input::placeholder,
.wishes-textarea::placeholder {
  color: #B59F9F;
}

.wishes-textarea {
  min-height: 88px;
  resize: none;
}

.wishes-submit-btn,
.ig-upload-btn,
.ig-share-btn {
  width: 100%;
  padding: 12px 38px;
  background: #EF6060;
  border-radius: 33px;
  color: white;
  font-size: 14px;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.ig-share-btn {
  padding: 8px 20px;
  font-size: 10.3px;
  border-radius: 24px;
  width: auto;
  margin-top: 8px;
}

.wishes-list-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 284px;
  margin: 0 auto;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

.wishes-list-container::-webkit-scrollbar {
  width: 4px;
}

.wishes-list-container::-webkit-scrollbar-track {
  background: transparent;
}

.wishes-list-container::-webkit-scrollbar-thumb {
  background: #EF6060;
  border-radius: 4px;
}

.wish-item-card {
  width: 100%;
  padding: 10px 16px;
  background: #FCF4F4;
  border-radius: 18px;
  outline: 1px solid #EF6060;
  outline-offset: -1px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wish-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.wish-item-name {
  color: #EF6060;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

.wish-item-date {
  color: #EF6060;
  font-size: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  text-align: right;
}

.wish-item-msg {
  color: #EF6060;
  font-size: 11px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  margin: 0;
}

.public-ig-story-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(5px);
}

.public-ig-story-lightbox:not([aria-hidden="true"]) {
  opacity: 1;
  visibility: visible;
}

.ig-story-lightbox-content {
  position: relative;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
}

.ig-story-lightbox-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

#ig-story-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

/* ==========================================================================
   Theme: Golden Bloom
   ========================================================================== */
.theme-golden-bloom {
  background-color: #FCE5C4;
  background-image: linear-gradient(180deg, #FCF5EB 0%, #FCE5C4 66%, #FCE5C4 100%);
  min-height: 100vh;
}

.theme-golden-bloom.template-access-free .auto-section,
.theme-golden-bloom .auto-section {
  padding: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
  overflow: visible !important;
  width: min(calc(100% - 2rem), 396px) !important;
  margin: 24px auto !important;
}

.theme-golden-bloom.template-access-free .auto-section::before,
.theme-golden-bloom .auto-section::before {
  display: none !important;
  content: none !important;
}

.theme-golden-bloom.template-access-free .invite-hero,
.theme-golden-bloom .invite-hero {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Card shadow - elevated look for Golden Bloom cards (same concept as Floral) */
.theme-golden-bloom [class*="golden-bloom-"][class*="-card"],
.theme-golden-bloom .closing-section > div {
  background: rgba(253, 241, 224, 0.55) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  box-shadow: 0px 4px 6px rgba(255, 255, 255, 0.3) inset,
              0px 6px 12px rgba(0, 0, 0, 0.12),
              0px 20px 40px rgba(0, 0, 0, 0.18) !important;
}

.theme-golden-bloom .invite-cover--golden-bloom {
  background-image: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  border-radius: 0 !important;
}

.theme-golden-bloom .invite-cover--golden-bloom::after {
  display: none !important;
}

/* Ornaments */
.golden-bloom-cover-ornament {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.golden-bloom-cover-ornament--top-left {
  top: 34px;
  left: -35px;
  height: 252px;
}

.golden-bloom-cover-ornament--top-right {
  top: 34px;
  right: -35px;
  height: 252px;
}

.golden-bloom-cover-ornament--bottom-left {
  bottom: 120px;
  left: -28px;
  height: 70px;
}

.golden-bloom-cover-ornament--bottom-right {
  bottom: 120px;
  right: 8px;
  height: 121px;
}

/* Hero Photo Arch */
.golden-bloom-cover-photo {
  position: relative;
  width: 100%;
  max-width: 377px;
  aspect-ratio: 377 / 688;
  background-image: var(--golden-bloom-cover-photo);
  background-size: cover;
  background-position: center;
  border-radius: 180px 180px 40px 40px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 25px;
  /* Space for Kicker above the card */
  background-color: #D9D9D9;
  margin-bottom: -40px;
  /* Overlap with the card below */
}

/* Kicker "The Wedding of" inside the photo, at the bottom */
.golden-bloom-cover-kicker {
  text-align: center;
  color: white;
  font-family: var(--theme-heading-font, 'Ruwudu', serif);
  font-size: 24px;
  font-weight: 700;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4);
}

/* Brown Card */
.cover-card--golden-bloom {
  position: relative;
  background-color: var(--theme-accent, #BE770E);
  border-radius: 18px;
  padding: 16px 20px;
  width: 100%;
  max-width: 325px;
  min-height: 109px;
  z-index: 3;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.golden-bloom-names-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.golden-bloom-names-container span {
  color: white;
  font-family: var(--theme-heading-font, 'Ruwudu', serif);
  font-size: 46px;
  font-weight: 400;
  line-height: 1;
}

.cover-card--golden-bloom p {
  font-family: var(--theme-heading-font, 'Ruwudu', serif);
  font-size: 16px;
  font-weight: 400;
  margin: 0;
}

/* Guest Line */
.golden-bloom-cover-guest {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 60px;
  margin-bottom: 24px;
  z-index: 3;
}

.golden-bloom-cover-guest span {
  color: var(--theme-ink, #6C4409);
  font-family: var(--theme-heading-font, 'Ruwudu', serif);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 4px;
}

.golden-bloom-cover-guest strong {
  color: var(--theme-ink, #6C4409);
  font-family: var(--theme-heading-font, 'Ruwudu', serif);
  font-size: 18px;
  font-weight: 700;
}

/* Button */
.open-invitation--golden-bloom {
  background-color: var(--theme-accent, #BE770E);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 16px 38px;
  font-family: var(--theme-heading-font, 'Ruwudu', serif);
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  z-index: 3;
  width: 100%;
  max-width: 377px;
  margin-top: auto;
  margin-bottom: 24px;
}

/* Hide pinned title card when any popup / modal / lightbox is active */
body.has-modal-open .pinned-title-card,
body.has-modal-open .floral-hero-title-card,
body.has-modal-open .roselle-title-card-wrapper {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}