/* Local polish for Classic Elegance. */
html,body{min-height:100%;overflow-x:hidden;}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;}
body *{box-sizing:border-box;}
#app,.min-h-screen,.h-screen{min-height:100svh!important;}
.invite-opened .fixed.inset-0.z-50{opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:opacity .45s ease,visibility .45s ease;}
button,a{touch-action:manipulation;}
img,video{max-width:100%;}
video{object-fit:cover;}
section,main,article,div{max-width:100%;}
.whitespace-nowrap{white-space:normal!important;}
.tracking-\[0\.4em\],.tracking-\[0\.35em\],.tracking-\[0\.3em\]{letter-spacing:.14em!important;}
.text-9xl,.text-8xl,.text-7xl{font-size:clamp(2.65rem,13vw,5.75rem)!important;line-height:.98!important;}
.text-6xl{font-size:clamp(2.2rem,10.5vw,4.6rem)!important;line-height:1!important;}
.text-5xl{font-size:clamp(1.9rem,8.5vw,3.55rem)!important;line-height:1.05!important;}
.text-4xl{font-size:clamp(1.55rem,7vw,2.9rem)!important;line-height:1.1!important;}
.text-3xl{font-size:clamp(1.28rem,5.6vw,2.25rem)!important;line-height:1.15!important;}
@media (max-width:520px){
  .container,.mx-auto{width:100%!important;max-width:100%!important;}
  [class*="px-12"],[class*="px-10"],[class*="px-8"]{padding-left:1.15rem!important;padding-right:1.15rem!important;}
  [class*="py-20"],[class*="py-24"],[class*="py-32"]{padding-top:3.3rem!important;padding-bottom:3.3rem!important;}
  [class*="gap-12"],[class*="gap-16"]{gap:1.6rem!important;}
  h1,h2,h3,p,span,div{overflow-wrap:anywhere;}
}

/* Static runtime fixes: keep the copied template scrollable and make the intro tap-driven. */
html, body {
  width: 100% !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: auto !important;
}
body {
  position: static !important;
}
[data-invitation-viewport] {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 100svh !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  overscroll-behavior: auto !important;
}
[data-invitation-viewport] > div,
[data-invitation-viewport] main,
[data-invitation-viewport] section {
  max-width: 100% !important;
}
.fixed.inset-0.z-50,
.static-intro-overlay {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition: opacity .55s ease, visibility .55s ease !important;
}
.fixed.inset-0.z-50 video,
.static-intro-overlay video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}
.invite-opened .fixed.inset-0.z-50,
html.invite-opened .static-intro-overlay {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.invitation-skip-control,
.invitation-language-floating,
footer button[aria-label="Dil seçimi"] {
  display: none !important;
}
[role="button"][aria-label="Videoyu oynat"],
[role="button"][aria-label="Açmak için dokunun"] {
  cursor: pointer !important;
}
[class*="tracking-"] {
  letter-spacing: min(.14em, 2.6px) !important;
}
h1, h2, h3, p, a, button, span {
  overflow-wrap: anywhere;
  word-break: normal;
}
@media (max-width: 520px) {
  [class*="text-"][class*="7xl"], [class*="text-"][class*="8xl"], [class*="text-"][class*="9xl"] {
    font-size: clamp(2.45rem, 11vw, 4.4rem) !important;
  }
  [class*="text-"][class*="6xl"] {
    font-size: clamp(2rem, 9vw, 3.6rem) !important;
  }
  [class*="text-"][class*="5xl"] {
    font-size: clamp(1.75rem, 7.8vw, 3rem) !important;
  }
  [class*="text-"][class*="4xl"] {
    font-size: clamp(1.45rem, 6.3vw, 2.45rem) !important;
  }
  [class*="tracking-"] {
    letter-spacing: min(.1em, 1.8px) !important;
  }
  .w-screen,
  [class*="w-screen"] {
    width: 100% !important;
  }
  [class*="mr-[calc"], [class*="ml-[calc"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .fixed.top-0.right-0.left-0.z-60 {
    display: none !important;
  }
}


.generated-intro-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  width: 100vw !important;
  height: 100svh !important;
  min-height: 100svh !important;
  background: inherit;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}
.generated-intro-overlay video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}
.static-intro-hit {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  cursor: pointer !important;
}
.static-intro-overlay {
  z-index: 9999 !important;
}
.static-intro-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20,34,46,.02) 0%, rgba(20,34,46,.05) 50%, rgba(20,34,46,.34) 100%);
}
.static-intro-overlay::after {
  content: "Davetiyeyi açmak için dokunun";
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: max(2.4rem, calc(env(safe-area-inset-bottom) + 2rem));
  transform: translateX(-50%);
  width: min(84vw, 22rem);
  padding: .95rem 1.1rem;
  border: 1px solid rgba(47,65,86,.34);
  border-radius: 999px;
  color: #2F4156;
  background: rgba(245,239,235,.66);
  box-shadow: 0 12px 34px rgba(47,65,86,.18);
  backdrop-filter: blur(8px);
  font-family: "Noto Serif", serif;
  font-size: .82rem;
  letter-spacing: .12em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(255,255,255,.7);
}
.static-intro-overlay .static-intro-hit,
.static-intro-overlay [role="button"] {
  z-index: 5 !important;
}

html:not(.invite-opened) .static-intro-overlay {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
html:not(.invite-opened) .static-intro-overlay video {
  visibility: visible !important;
  opacity: 1 !important;
}

[data-invitation-theme-slug="classic-elegance"] > .fixed.top-0.right-0.left-0.z-60 {
  display: none !important;
}

.classic-elegance-video-hero {
  position: relative;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: 5.5rem 1.35rem 4.25rem;
  color: #2F4156;
  background: #F5EFEB;
}
.classic-elegance-video-hero__media,
.classic-elegance-video-hero__media img,
.classic-elegance-video-hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.classic-elegance-video-hero__media img {
  object-fit: cover;
  object-position: center center;
  filter: saturate(.98) contrast(1.03);
}
.classic-elegance-video-hero__media video {
  object-fit: cover;
  object-position: center center;
  filter: saturate(.98) contrast(1.03);
  opacity: 1;
  transition: opacity .55s ease;
}
.classic-elegance-video-hero.is-ready .classic-elegance-video-hero__media video,
.classic-elegance-video-hero:not(.is-seeking) .classic-elegance-video-hero__media video {
  opacity: 1;
}
.classic-elegance-video-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(245, 239, 235, .04) 0%, rgba(245, 239, 235, .16) 50%, rgba(47, 65, 86, .08) 100%),
    radial-gradient(circle at 50% 44%, rgba(255,255,255,.42), rgba(255,255,255,0) 45%);
}
.classic-elegance-video-hero__content {
  position: relative;
  z-index: 5;
  width: min(100%, 38rem);
  text-align: center;
  text-shadow: 0 1px 18px rgba(255,255,255,.58);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s ease .15s, transform .9s cubic-bezier(.22,1,.36,1) .15s;
}
html.invite-opened .classic-elegance-video-hero__content,
.classic-elegance-video-hero.is-preview .classic-elegance-video-hero__content {
  opacity: 1;
  transform: none;
}
.classic-elegance-video-hero__kicker {
  margin: 0 0 1rem;
  font-family: "Noto Serif", serif;
  font-size: clamp(.78rem, 2.3vw, .95rem);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.classic-elegance-video-hero__names {
  margin: 0;
  font-family: "Noto Serif", serif;
  font-size: clamp(3.35rem, 17vw, 7.6rem);
  font-weight: 400;
  line-height: .95;
}
.classic-elegance-video-hero__date {
  margin: 1.1rem 0 0;
  font-family: "Noto Serif", serif;
  font-size: clamp(1.12rem, 4vw, 1.55rem);
  letter-spacing: .06em;
}
.classic-elegance-video-hero__place {
  margin: .55rem auto 0;
  max-width: 22rem;
  font-size: clamp(.95rem, 3.4vw, 1.15rem);
  line-height: 1.45;
}
.classic-elegance-video-hero__scroll {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: max(1.35rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  gap: .45rem;
  justify-items: center;
  font-size: .82rem;
  letter-spacing: .08em;
  color: rgba(47, 65, 86, .84);
}
.classic-elegance-video-hero__scroll::after {
  content: "";
  width: .8rem;
  height: .8rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}
.classic-elegance-video-hero + div {
  margin-top: 0 !important;
}
.classic-elegance-video-hero + div > .min-h-dvh,
[data-invitation-theme-slug="classic-elegance"] .min-h-dvh {
  padding-top: 0 !important;
}
[data-invitation-theme-slug="classic-elegance"] img[src*="Wedding_Venue_Illustration"] {
  display: none !important;
}
@media (max-width: 520px) {
  .classic-elegance-video-hero {
    min-height: 100svh;
    padding-inline: 1rem;
  }
  .classic-elegance-video-hero__names {
    font-size: clamp(3.2rem, 18vw, 4.55rem);
  }
}
