/* Latar parallax Tema 1: diam di viewport, section bergerak di atasnya. */
.parallax-fixed-bg {
  position: fixed;
  /* Dikunci dari bawah agar toolbar browser HP tidak meninggalkan celah. */
  top: auto;
  right: 0;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  height: var(--parallax-stable-height, 100lvh);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  background: #f3efe2;
  transform: translateZ(0);
}

.parallax-fixed-bg-inner {
  position: absolute;
  inset: 0;
  width: min(100%, 393px);
  height: 100%;
  margin-inline: auto;
  overflow: hidden;
}

.parallax-fixed-bg-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

/* Cover, video, dan pembuka tetap menutup latar. Efek dimulai di info mempelai. */
#video-opening-section,
#section-2-pembuka {
  position: relative;
  z-index: 1;
}

.parallax-section {
  position: relative;
  z-index: 1;
  /* Lapisan transparan mengisi seluruh layar, termasuk area desktop di sisi desain. */
  background-color: rgb(from var(--parallax-background-color) r g b / var(--parallax-background-opacity)) !important;
  -webkit-backdrop-filter: blur(var(--parallax-background-blur));
  backdrop-filter: blur(var(--parallax-background-blur));
}

.parallax-content {
  position: relative;
  z-index: 2;
  background-color: transparent !important;
}

/* Lapisan krem section info mempelai tetap tembus pandang. */
.section-3-wrapper.parallax-content {
  background-color: transparent !important;
}

/* Panel-panel berwarna tetap punya karakter aslinya, dengan transparansi halus. */
.section-4-wrapper.parallax-content {
  background-color: transparent !important;
}

.section-4-wrapper.parallax-content .s4-card-tasykuran,
.section-4-wrapper.parallax-content .s4-card-resepsi {
  opacity: 0.88;
}

.section-4-wrapper.parallax-content .s4-bg-2 {
  opacity: 0.78;
}

.section-7-wrapper.parallax-content {
  background-color: transparent !important;
}

@media (min-width: 394px) {
  .parallax-fixed-bg-inner {
    box-shadow: 0 0 42px rgba(63, 43, 20, 0.12);
  }

  /* Perlebar elemen emas asli Info Acara, bukan membuat background baru. */
  .section-4-wrapper.parallax-content {
    overflow: visible;
  }

  .section-4-wrapper.parallax-content .s4-bg-1 {
    left: 50%;
    width: 100vw;
    transform: translateX(-50%) rotate(var(--s4-bg1-rotate));
  }

  /* Perlebar elemen merah asli Tanda Kasih ke seluruh browser desktop. */
  .section-7-wrapper.parallax-content {
    overflow: visible;
  }

  .section-7-wrapper.parallax-content .s7-spacer-rectangle {
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .parallax-fixed-bg {
    transform: none;
  }
}
