/* ==========================================================
   Mary Jane — base
   ========================================================== */
:root {
  --gold: #d9c9a3;
  --gold-light: #efe6d0;
  --ink: #1c1a17;
  --white: #ffffff;
  --blue: #7f93c9;
  --blue-deep: #39456f;
  --font-script: 'Great Vibes', cursive;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;
  --max-w: 480px;
}

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

html,
body {
  height: 100%;
  font-family: var(--font-sans);
  background: #ffffff;
  color: var(--ink);
}

body.no-scroll {
  overflow: hidden;
  height: 100vh;
  height: 100svh;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

/* ==========================================================
   Cover
   ========================================================== */
.cover {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  height: 100vh;
  height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
}

.cover__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* The zoom animation lives on this wrapper — never on the object-fit:cover
   img itself. Animating `transform` directly on an object-fit image is a
   known trigger for a repeating/tiled render glitch in some Android
   WebViews (e.g. the WhatsApp in-app browser), since the browser can
   mis-tile the compositing layer while it's being rescaled. Keeping the
   img static and transforming its wrapper instead avoids that entirely. */
.cover__photo-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: scale(1.08);
  animation: photoZoom 8s ease-out forwards;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.cover__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

@keyframes photoZoom {
  from {
    transform: scale(1.15);
  }

  to {
    transform: scale(1.02);
  }
}

.cover__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10, 10, 15, 0.75) 0%,
      rgba(20, 18, 28, 0.35) 22%,
      rgba(20, 18, 28, 0.25) 55%,
      rgba(8, 7, 12, 0.55) 78%,
      rgba(6, 5, 9, 0.92) 100%);
}

.cover__ornament {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 90px;
  border: 1px solid rgba(217, 201, 163, 0.55);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1.2s ease forwards;
  animation-delay: 0.4s;
}

.cover__ornament--top {
  top: 14px;
  border-bottom: none;
}

.cover__ornament--bottom {
  bottom: 14px;
  border-top: none;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.cover__content {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 48px 28px 36px;
}

.cover__top {
  margin-top: 8px;
}

.cover__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-light);
}

.cover__names {
  font-family: var(--font-script);
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 400;
  color: var(--white);
  margin-top: 6px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.cover__date {
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 3px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cover__date-line {
  width: 24px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.cover__bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cover__to-label {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--gold-light);
  font-weight: 500;
}

.cover__guest {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 4px;
  color: var(--white);
}

.cover__note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 10px;
  max-width: 280px;
  line-height: 1.4;
}

.cover__btn {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 1px;
  font-weight: 500;
  cursor: pointer;
  transition: background .35s ease, color .35s ease, transform .2s ease, box-shadow .35s ease;
  animation: pulseGlow 2.6s ease-in-out infinite;
}

.cover__btn-icon {
  width: 18px;
  height: 18px;
}

.cover__btn:hover {
  background: var(--white);
  color: var(--ink);
  transform: translateY(-2px);
}

.cover__btn:active {
  transform: translateY(0) scale(0.97);
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
}

/* ==========================================================
   Cover exit transition
   ========================================================== */
.cover.is-closing {
  animation: coverExit 0.9s cubic-bezier(.5, 0, .4, 1) forwards;
  pointer-events: none;
}

@keyframes coverExit {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.06) translateY(-2%);
  }
}

/* ==========================================================
   Main content
   ========================================================== */
.main-content {
  max-width: var(--max-w);
  margin: 0 auto;
  background: #141210;
  min-height: 100vh;
}

/* ==========================================================
   Scroll reveal (shared)
   ========================================================== */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(.22, .9, .32, 1), transform 0.9s cubic-bezier(.22, .9, .32, 1);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}

[data-reveal][data-anim="up"] {
  transform: translateY(38px);
}

[data-reveal][data-anim="scale"] {
  transform: translateY(20px) scale(0.92);
}

[data-reveal][data-anim="left"] {
  transform: translateX(-40px);
}

[data-reveal][data-anim="right"] {
  transform: translateX(40px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* ==========================================================
   Save the date section
   ========================================================== */
.save-date {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.save-date__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Parallax (see script.js initParallax) transforms this wrapper on scroll —
   never the object-fit:cover img directly. Animating transform on an
   object-fit image is a known trigger for a repeating/tiled render glitch
   in some Android WebViews (e.g. the WhatsApp in-app browser), since the
   browser can mis-tile the compositing layer while it's being rescaled.
   Keeping the img static and transforming its wrapper instead avoids
   that entirely. */
.save-date__photo-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.save-date__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.save-date__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(70, 77, 108, 0.28) 0%,
      rgba(70, 77, 108, 0.42) 38%,
      rgba(63, 69, 101, 0.7) 72%,
      rgba(58, 64, 100, 0.94) 100%);
}

.save-date__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 48px 28px 40px;
}

.save-date__top {
  margin-top: 8px;
}

.save-date__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.save-date__names {
  font-family: var(--font-script);
  font-size: 3.2rem;
  font-weight: 400;
  color: var(--white);
  margin-top: 4px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.save-date__date-badge {
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.save-date__bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.save-date__countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.countdown__item {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 3px solid var(--gold);
  border-radius: 14px;
  padding: 12px 4px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.countdown__num {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
}

.countdown__label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.85);
}

.save-date__btn {
  margin-top: 26px;
  position: relative;
  padding: 12px 30px;
  border-radius: 999px;
  border: 1.5px solid var(--white);
  background: transparent;
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 1px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .35s ease, color .35s ease, transform .2s ease;
}

.save-date__btn span {
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.save-date__btn:hover {
  background: var(--white);
  color: #4f5780;
  transform: translateY(-2px);
}

.save-date__btn:hover span {
  border-color: #4f5780;
}

.save-date__btn:active {
  transform: translateY(0) scale(0.97);
}

/* ==========================================================
   Ayat (verse)
   ========================================================== */
.ayat {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  background: #ffffff;
  padding: 56px 34px;
  min-height: 35vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ayat__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--blue);
}

.ayat__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.ayat__text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.ayat__source {
  margin-top: 22px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

/* ==========================================================
   Profile card (The Bride / The Groom)
   ========================================================== */
.profile {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  background: linear-gradient(181deg, var(--blue) 0%, rgb(255 255 255), rgb(255 255 255));
  padding: 64px 20px 56px;
}

.profile__panel {
  position: relative;
  z-index: 2;
  width: 100%;
  background: #eaf2ff;
  border-radius: 28px;
  padding: 40px 26px 36px;
  box-shadow: 0 20px 40px rgba(60, 80, 140, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile__intro {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #2d3556;
}

.profile__divider-row {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.profile__divider-line {
  width: 56px;
  height: 1px;
  background: rgba(45, 53, 86, 0.4);
}

.profile__ornament {
  font-size: 1.05rem;
  color: #3a4568;
  line-height: 1;
}

.profile__connector {
  margin-top: 36px;
  font-family: var(--font-script);
  font-size: 2.8rem;
  line-height: 1;
  color: var(--blue);
}

.profile__title {
  margin-top: 20px;
  font-family: var(--font-serif);
  font-variant: small-caps;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 1px;
  color: #20264a;
}

.profile__photo-frame {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 3 / 4;
  margin-top: 26px;
  overflow: hidden;
  background: #fff;
  border-radius: 50% 50% 16px 16px / 140px 140px 16px 16px;
  box-shadow:
    10px 12px 0 0 rgba(127, 147, 201, 0.55),
    0 20px 40px rgba(40, 55, 110, 0.2);
}

.profile__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.profile__script {
  margin-top: 26px;
  font-family: var(--font-script);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--blue);
}

.profile__name {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.35rem;
  color: #3a4568;
}

.profile__divider {
  width: 70px;
  height: 1px;
  margin-top: 18px;
  background: rgba(58, 69, 104, 0.35);
}

.profile__desc {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.6;
  color: #4c567d;
}

.profile__social {
  margin-top: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease, background .25s ease;
}

.profile__social:hover {
  background: #5f74b0;
  transform: translateY(-2px) scale(1.06);
}

/* ==========================================================
   Wedding day (Akad & Resepsi)
   ========================================================== */
.event {
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--blue);
  overflow: hidden;
}

.event__header {
  padding: 40px 24px 22px;
  text-align: center;
}

.event__header h2 {
  font-family: var(--font-serif);
  font-variant: small-caps;
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.event__panel {
  background: #ffffff;
  margin: 0 18px 24px;
  border-radius: 50% 50% 24px 24px / 210px 210px 24px 24px;
  padding: 64px 26px 48px;
}

.event__block+.event__block {
  margin-top: 56px;
}

.event__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.event__icon {
  color: var(--blue);
}

.event__title {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-variant: small-caps;
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 1px;
  color: var(--blue);
}

.event__date,
.event__time,
.event__place {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  color: #2b2b2f;
}

.event__address {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #2b2b2f;
  max-width: 300px;
}

.event__btn {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 999px;
  background: var(--blue-deep);
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  transition: background .25s ease, transform .2s ease;
}

.event__btn:hover {
  background: #2c3557;
  transform: translateY(-2px);
}

.event__btn:active {
  transform: translateY(0) scale(0.97);
}

.event__map {
  margin-top: 20px;
  width: 100%;
  max-width: 300px;
  border-radius: 16px;
  overflow: hidden;
}

.event__map iframe {
  width: 100%;
  height: 180px;
  border: 0;
  display: block;
}

/* ==========================================================
   Gallery
   ========================================================== */
.gallery {
  max-width: var(--max-w);
  margin: 0 auto;
  background: linear-gradient(180deg, var(--blue) 0%, #c7d2ea 32%, #ffffff 62%, #ffffff 100%);
  padding-bottom: 6px;
}

.gallery__header {
  padding: 40px 24px 26px;
  text-align: center;
}

.gallery__header h2 {
  font-family: var(--font-serif);
  font-variant: small-caps;
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.gallery__grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Each row gets its own column count (1-4) and orientation, set by the
   admin's per-row layout picker (gallery.blade.php partial) via the
   --row-cols custom property and each item's inline aspect-ratio. */
.gallery__row {
  display: grid;
  grid-template-columns: repeat(var(--row-cols, 3), 1fr);
  gap: 0;
}

.gallery__item {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e7ebf5;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.gallery__item:hover img {
  transform: scale(1.06);
}

/* ==========================================================
   Love Story (timeline)
   ========================================================== */
.story {
  max-width: var(--max-w);
  margin: 0 auto;
  background: #F4F8FF;
}

.story__header {
  position: relative;
  text-align: center;
  padding: 48px 24px 36px;
}

.story__title-echo {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-variant: small-caps;
  font-weight: 700;
  font-size: 2.7rem;
  letter-spacing: 2px;
  color: rgba(127, 147, 201, 0.18);
  white-space: nowrap;
  z-index: 0;
}

.story__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-variant: small-caps;
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 1px;
  color: #2c3357;
}

.story__timeline {
  --line-right: 24px;
  --item-right-pad: 54px;
  position: relative;
  padding: 4px var(--item-right-pad) 8px 28px;
}

.story__track {
  position: absolute;
  top: 6px;
  right: var(--line-right);
  bottom: 6px;
  width: 2px;
  background: rgba(127, 147, 201, 0.22);
  border-radius: 2px;
}

.story__track-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--blue);
  border-radius: 2px;
}

.story__item {
  position: relative;
  padding-bottom: 52px;
}

.story__item:last-child {
  padding-bottom: 0;
}

.story__marker {
  position: absolute;
  top: 0;
  right: calc(-1 * (var(--item-right-pad) - var(--line-right) + 16px));
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(127, 147, 201, 0.4);
  color: #9aa8d0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .4s ease, border-color .4s ease, color .4s ease;
}

.story__marker.is-filled {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

.story__card {
  background: #ffffff;
  border-radius: 20px;
  padding: 14px 16px 22px;
  box-shadow: 0 18px 36px rgba(60, 80, 140, 0.2);
}

.story__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
}

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

.story__item-title {
  margin-top: 18px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #6b74a0;
}

.story__item-text {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  line-height: 1.55;
  color: #3a3f52;
}

/* The "kisah" field is free-form HTML typed by the admin (e.g. a heading
   like "Awal Pertemuan" followed by the story paragraph), rendered as-is —
   so any heading/bold text they add inside it gets the same script
   treatment as the rest of this template's headings. */
.story__item-text h1,
.story__item-text h2,
.story__item-text h3,
.story__item-text h4,
.story__item-text h5,
.story__item-text h6,
.story__item-text strong,
.story__item-text b {
  display: block;
  margin: 0 0 6px;
  font-family: var(--font-script);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.1;
  color: #5f74b0;
}

.story__item-text p {
  margin: 0;
}

.story__item-text p+p {
  margin-top: 10px;
}

/* ==========================================================
   Wedding Gift
   ========================================================== */
.gift {
  max-width: var(--max-w);
  margin: 0 auto;
  background: #f5f8ff;
  padding: 56px 28px 64px;
}

.gift__header {
  text-align: center;
}

.gift__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e4ecfb;
  color: var(--blue);
}

.gift__header h2 {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-variant: small-caps;
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 1px;
  color: #2c3357;
}

.gift__intro {
  margin: 12px auto 0;
  max-width: 320px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #4c567d;
  text-align: center;
}

.gift__cards {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gift__card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 22px;
  text-align: center;
  box-shadow: 0 16px 32px rgba(60, 80, 140, 0.14);
}

.gift__logo {
  display: block;
  margin: 0 auto;
  max-width: 120px;
  max-height: 32px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.gift__number {
  margin-top: 14px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 1px;
  color: #2c3357;
}

.gift__owner {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.92rem;
  color: #5a6486;
}

.gift__copy-btn {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background .25s ease, transform .2s ease;
}

.gift__copy-btn:hover {
  background: #5f74b0;
  transform: translateY(-2px);
}

.gift__copy-btn:active {
  transform: translateY(0) scale(0.97);
}

.gift__copy-btn.is-copied {
  background: #4caf7d;
}

/* ==========================================================
   RSVP
   ========================================================== */
.rsvp {
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--blue);
  padding: 56px 28px 64px;
}

.rsvp__header {
  text-align: center;
}

.rsvp__header h2 {
  font-family: var(--font-serif);
  font-variant: small-caps;
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 1px;
  color: #ffffff;
}

.rsvp__intro {
  margin: 12px auto 0;
  max-width: 320px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #ffffff;
  text-align: center;
}

.rsvp__form {
  margin-top: 32px;
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 16px 32px rgba(60, 80, 140, 0.14);
}

.rsvp__field {
  display: flex;
  flex-direction: column;
}

.rsvp__field label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #6b74a0;
  margin-bottom: 8px;
}

.rsvp__field input[type="text"],
.rsvp__field textarea {
  width: 100%;
  border: 1.5px solid rgba(127, 147, 201, 0.35);
  border-radius: 12px;
  padding: 11px 14px;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: #2c3357;
  background: #fbfcff;
  resize: none;
  transition: border-color .25s ease;
}

.rsvp__field input[type="text"]:focus,
.rsvp__field textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.rsvp__field input::placeholder,
.rsvp__field textarea::placeholder {
  color: #a7add0;
}

.rsvp__radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rsvp__radio {
  position: relative;
  cursor: pointer;
}

.rsvp__radio input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.rsvp__radio span {
  display: block;
  text-align: center;
  padding: 10px 6px;
  border-radius: 999px;
  border: 1.5px solid rgba(127, 147, 201, 0.4);
  color: #5a6486;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.rsvp__radio input:checked+span {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

.rsvp__radio input:focus-visible+span {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.rsvp__submit {
  margin-top: 4px;
  padding: 13px 0;
  border: none;
  border-radius: 999px;
  background: var(--blue-deep);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background .25s ease, transform .2s ease;
}

.rsvp__submit:hover {
  background: #2c3557;
  transform: translateY(-2px);
}

.rsvp__submit:active {
  transform: translateY(0) scale(0.98);
}

.rsvp__submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.rsvp__messages {
  margin-top: 20px;
  background: #ffffff;
  border-radius: 20px;
  padding: 22px 22px 8px;
  box-shadow: 0 16px 32px rgba(60, 80, 140, 0.14);
}

.rsvp__messages-title {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #6b74a0;
  margin: 0 0 14px;
}

.rsvp__messages-title span {
  font-weight: 500;
  color: #a7add0;
}

/* Capped at half the viewport height and scrollable — chat bubbles pile up
   fast and would otherwise push the rest of the page far down. */
.rsvp__messages-list {
  max-height: 50vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 14px;
}

.rsvp__messages-empty {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: #a7add0;
  text-align: center;
  padding: 10px 0 16px;
}

.rsvp__message {
  background: #fbfcff;
  border: 1.5px solid rgba(127, 147, 201, 0.2);
  border-radius: 14px;
  padding: 12px 14px;
}

.rsvp__message-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.rsvp__message-name {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-deep);
}

.rsvp__message-acara {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--blue);
  background: rgba(127, 147, 201, 0.14);
  border-radius: 999px;
  padding: 3px 9px;
}

.rsvp__message-text {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.55;
  color: #2c3357;
  white-space: pre-line;
  word-break: break-word;
}

.rsvp__message-time {
  display: block;
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: #a7add0;
}

/* ==========================================================
   Turut Mengundang
   ========================================================== */
.invited {
  max-width: var(--max-w);
  margin: 0 auto;
  background: #f5f8ff;
  padding: 48px 28px 56px;
  text-align: center;
}

.invited__header h2 {
  font-family: var(--font-serif);
  font-variant: small-caps;
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 1px;
  color: #2c3357;
}

.invited__list {
  margin-top: 24px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: #4c567d;
}

/* ==========================================================
   Thank You (closing section — matches the cover's background)
   ========================================================== */
.thanks {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.thanks__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* See .cover__photo-wrap — the zoom animation lives on this wrapper, never
   on the object-fit:cover img itself, to avoid a repeating/tiled render
   glitch some Android WebViews produce when transform-animating an
   object-fit image directly. */
.thanks__photo-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: scale(1.08);
  animation: photoZoom 8s ease-out forwards;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.thanks__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.thanks__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10, 10, 15, 0.75) 0%,
      rgba(20, 18, 28, 0.35) 22%,
      rgba(20, 18, 28, 0.25) 55%,
      rgba(8, 7, 12, 0.55) 78%,
      rgba(6, 5, 9, 0.92) 100%);
}

.thanks__ornament {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 90px;
  border: 1px solid rgba(217, 201, 163, 0.55);
  pointer-events: none;
  z-index: 2;
}

.thanks__ornament--top {
  top: 14px;
  border-bottom: none;
}

.thanks__ornament--bottom {
  bottom: 14px;
  border-top: none;
}

.thanks__content {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 32px;
}

.thanks__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-light);
}

.thanks__title {
  margin-top: 10px;
  font-family: var(--font-script);
  font-size: 3.6rem;
  line-height: 1.1;
  font-weight: 400;
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.thanks__names {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
}

.thanks__message {
  margin-top: 22px;
  max-width: 300px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

/* ==========================================================
   Music toggle (sticky)
   ========================================================== */
.music-toggle {
  position: fixed;
  bottom: 20px;
  left: max(20px, calc((100vw - var(--max-w)) / 2 + 20px));
  z-index: 50;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: #5f74b0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(40, 55, 110, 0.28);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease;
}

.music-toggle[hidden] {
  display: none;
}

.music-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(40, 55, 110, 0.34);
}

.music-toggle:active {
  transform: translateY(0) scale(0.95);
}

.music-toggle__icon {
  position: absolute;
}

.music-toggle__icon--play {
  transform: translateX(1px);
}

.music-toggle__icon--pause {
  display: none;
}

.music-toggle.is-playing .music-toggle__icon--play {
  display: none;
}

.music-toggle.is-playing .music-toggle__icon--pause {
  display: block;
}

/* ==========================================================
   Back to top
   ========================================================== */
#btn-back-to-top {
  position: fixed;
  right: max(20px, calc((100vw - var(--max-w)) / 2 + 20px));
  bottom: 20px;
  z-index: 50;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(40, 55, 110, 0.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}

#btn-back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ==========================================================
   Gallery lightbox
   ========================================================== */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 5, 9, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.gallery-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox-img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
}

.gallery-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox-prev {
  left: 12px;
}

.gallery-lightbox-next {
  right: 12px;
}
