/* Slide buka — cegah scrollbar saat animasi (konten dipotong, scroll aktif setelah selesai) */
.ivita-phone.ivita-open-animating {
  isolation: isolate;
  background: #12181f;
}

.ivita-open-animating,
.invitation-container.ivita-open-animating {
  overflow: hidden !important;
}

html.ivita-open-animating,
html.ivita-open-animating body {
  overflow: hidden !important;
  height: 100%;
  max-height: 100dvh;
}

.ivita-phone.ivita-open-animating #invitation-content {
  visibility: visible !important;
  overflow: hidden !important;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.ivita-phone.ivita-open-animating #invitation-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Jangan biarkan transition/anim anak memicu transitionend prematur pada wrapper */
.ivita-open-animating #invitation-content .ivita-anim,
.ivita-open-animating #invitation-content .ivita-anim-sequence > *,
.ivita-open-animating #invitation-content .ivita-anim-stagger > * {
  animation: none !important;
  transition: none !important;
}

.ivita-open-animating #invitation-content.show {
  transition: none !important;
}

/* Invitation content - hidden by default, will slide up when shown */
#invitation-content {
  visibility: hidden;
  opacity: 0;
  transform: translateY(50px);
  will-change: opacity, transform;
}

/* Smooth slide up animation */
#invitation-content.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.separator{
  align-content: center !important;
  place-items: center;
}

/* Prevent scrolling before invitation is opened */
.invitation-container.invitation-closed {
  overflow: hidden;
  max-height: 100vh;
  max-height: 100dvh;
}

html:has(.invitation-container.invitation-closed),
html:has(.invitation-container.invitation-closed) body {
  overflow: hidden;
  height: 100%;
}
/* Untuk semua browser */
html {
  overflow: auto;
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE & Edge lama */
}

#sticky{
  position: sticky !important;
  top: 0 !important;
}

/* Chrome, Safari, Edge baru */
body::-webkit-scrollbar {
  display: none !important;
}
/* Bride/Groom Ordering Styles - Global for all templates */



/* Positioning based on data-person and data-position attributes */
/* Order: 1 (first person), 2 (separator), 3 (second person) */
[data-person="groom"][data-position="first"] {
  order: 1;
}

[data-person="bride"][data-position="first"] {
  order: 1;
}

[data-person="groom"][data-position="second"] {
  order: 3;
}

[data-person="bride"][data-position="second"] {
  order: 3;
}

/* Separator always in the middle */
.bride-n-groom-section.separator {
  order: 2;
}

/* Hide empty sections */
.bride-n-groom-section.grrom-section:empty {
  display: none;
}

.bride-n-groom-section h1 {
  margin-bottom: 10px;
}

.text-block-8 {
  flex-shrink: 0;
  margin: 0 10px;
}

.header-popup{
  background-size: cover !important;
  background-position: center !important;
}





/* animation */
	
.zoomanimation{animation: zoomLoop 1.5s
  linear 0s infinite
  }
  
  .ninja{transform-origin: center;
      display: inline-block;
  }
  
  
  @keyframes zoomLoop {
    0% {
      transform: scale(1, 1);
    }
    50% {
      transform: scale(1.1, 1.1);
    }
    100% {
      transform: scale(1, 1);
    }
  }