/* ── Intro overlay — frontend styles ─────────────────────────────────────── */

/* Prevent scroll and keep page content slightly above natural position
   while the overlay is active. The overlay is injected before .wp-site-blocks
   in the DOM (via wp_body_open), so transforming .wp-site-blocks here does NOT
   affect the position:fixed overlay. */
html.intro-active {
  overflow: hidden;
}

html.intro-active .wp-site-blocks {
  opacity: 0;
  transform: translateY(-40px);
}

/* ── Overlay container ───────────────────────────────────────────────────── */
#wrsvp-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #ff8c00;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Exit: slide overlay to bottom */
@keyframes intro-to-bottom {
  to {
    transform: translateY(100%);
  }
}

#wrsvp-intro-overlay.intro-exit {
  animation: intro-to-bottom 0.6s cubic-bezier(0.55, 0, 1, 0.45) both;
}

/* ── Inner layout ────────────────────────────────────────────────────────── */
.intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  padding: 2rem;
  max-width: 520px;
  width: 100%;
}

/* ── Image slideshow ─────────────────────────────────────────────────────── */
.intro-slideshow {
  position: relative;
  width: 400px;
  height: 400px;
  max-width: min(80vw, 60vh);
  max-height: min(80vw, 60vh);
  flex-shrink: 0;
  overflow: hidden;
}

.intro-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.intro-slide.active {
  opacity: 1;
}

/* ── Text ────────────────────────────────────────────────────────────────── */
.intro-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.intro-line-1,
.intro-line-3 {
  margin: 0;
  font-size: 1rem;
  color: #111827;
  text-transform: uppercase;
}

.intro-line-2 {
  margin: 0;
  font-family: "Prospectus Pro L", Georgia, serif;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
  color: #111827;
}

/* ── Button ──────────────────────────────────────────────────────────────── */
.intro-btn {
  padding: 0.875rem 2.5rem;
  background: #111827;
  color: #ff8c00;
  font-family: "Cal Sans", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.intro-btn:hover {
  background: #1f2937;
  transform: translateY(-2px);
}

.intro-btn:active {
  background: #374151;
  transform: translateY(0);
}
