:root {
  /* colors */
  --bg-emerald-dark: #002d1f;
  --emerald-overlay: rgba(0, 0, 0, 0.22);
  --emerald-border: #014421;
  --emerald-hover: #015e3c;
  --emerald-accent: #00975c;
  --white: #fff;
  --gray-light: #e4e4e4;
  /* fonts */
  --font-body: "Spectral", serif;
  --font-heading: "Cinzel Decorative", cursive;
  --font-nav: "Cinzel Decorative", cursive;
  /* sizing */
  --card-radius: 20px;
  --photo-size: 96px;
  --btn-radius: 28px;
  /* transitions */
  --t-fast: 0.18s;
  --t-med: 0.7s;
  --ease: ease;
  --ease-med: ease;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg-emerald-dark);
  font-family: var(--font-body);
  color: var(--white);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* video background */
.background-video,
.video-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.background-video video,
.video-bg video {
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: opacity var(--t-med) var(--ease-med);
  background: var(--bg-emerald-dark);
}

/* overlay */
.video-overlay {
  position: fixed;
  inset: 0;
  background: var(--emerald-overlay);
  z-index: 1;
  pointer-events: none;
}

/* base card styling */
.card {
  background: var(--white);
  color: #222;
  border-radius: var(--card-radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  border: 2px solid var(--emerald-border);
  font-family: var(--font-heading);
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--t-fast) var(--ease-med),
    color var(--t-fast) var(--ease-med),
    transform var(--t-fast) var(--ease-med),
    opacity var(--t-med) var(--ease-med);
}

/* buttons share the same structure as cards but use the
   site background color for their fill */
.main-btn {
  display: inline-block;
  padding: 1.1rem 3.2rem;
  font-size: 1.6rem;
  background: var(--bg-emerald-dark);
  color: var(--white);
  border-radius: var(--btn-radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  border: 2px solid var(--emerald-border);
  font-family: var(--font-heading);
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--t-fast) var(--ease-med),
    color var(--t-fast) var(--ease-med),
    transform var(--t-fast) var(--ease-med),
    opacity var(--t-med) var(--ease-med);
}

.main-btn:hover {
  background: var(--emerald-hover);
  color: var(--white);
}

@media (max-width: 600px) {
  .main-btn {
    font-size: 1.3rem;
    padding: 1rem 3rem;
  }
}

.text-page-buttons {
  text-align: center;
  margin: 1.5rem 0;
}

/* fade utility */
.fade-out {
  opacity: 0 !important;
  pointer-events: none;
}

body.allow-scroll {
  overflow-y: auto;
}


/* 1. Site‑wide Navigation */
.main-nav {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 16px 0 32px;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
}
.main-nav li {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  margin: 0.5rem 0;
}
.main-nav a {
  color: var(--white);
  font-family: var(--font-nav);
  font-size: 1.1rem; /* Slightly larger for improved legibility */
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 16px;
  text-decoration: none;
  transition:
    background var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--white);
  color: var(--emerald-border);
  font-family: var(--font-nav);
  font-weight: 600;
  font-style: normal;
  /* bonus: make it stand out even more */
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 2. Gallery Grid (page‑agnostic) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 6rem auto 2rem;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--card-radius);
  cursor: pointer;
  transition:
    transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}

.gallery-grid img:hover,
.gallery-grid img:focus {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ── Sticky Header ── */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  padding: 0.25rem 0;
}

.site-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  text-align: center;
  margin-bottom: 0.25rem;
  text-decoration: none;
}

/* prevent content from sliding under the header */
body {
  /* adjust this if your header height changes */
  padding-top: 5rem;
}

/* keep using your .main-nav rules, but scoped inside .site-header */
.site-header .main-nav a {
  color: var(--white);
}
.site-header .main-nav a:hover,
.site-header .main-nav a:focus {
  background: var(--white);
  color: var(--emerald-border);
}
.site-header .main-nav {
  margin: 0;
}
.site-header .main-nav li {
  margin: 0;
}

/* ── Coming Soon Banner (global) ── */
.coming-soon-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 10%);
  z-index: 999;
  background: var(--white);
  color: var(--emerald-border);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 1rem 2rem;
  border: 2px solid var(--emerald-border);
  border-radius: var(--card-radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}
/* Reuse the “content‑container” white card from Home/Events */
.content-container {
  background: var(--white);
  color: #222;
  max-width: 800px;
  margin: 2rem auto 4rem;
  padding: 2rem 1.5rem;
  border-radius: var(--card-radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  font-family: var(--font-body);
}

/* Page title */
.content-container h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--emerald-border);
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Section headings */
.content-container h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--emerald-border);
  text-align: center;
  margin: 2rem 0 1rem;
}

/* Paragraph text */
.content-container p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Links */
.content-container a:not(.main-btn) {
  color: var(--emerald-accent);
  text-decoration: underline;
}
.content-container a:not(.main-btn):hover {
  color: var(--emerald-border);
}

/* Standard section formatting used across pages */
.info-section h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--emerald-border);
  text-align: center;
  margin: 2rem 0 1rem;
}
.info-section ol {
  margin: 0 0 1rem 1.4rem;
}
.info-section li {
  margin-bottom: 0.6rem;
}
.info-section .note {
  font-style: italic;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Generic responsive iframe wrapper */
.iframe-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}
.iframe-container iframe,
.iframe-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 600px) {
  .coming-soon-banner {
    font-size: 1.2rem;
    padding: 0.8rem 1.6rem;
  }

  .content-container h1 {
    font-size: 2rem;
  }

  .content-container h2 {
    font-size: 1.4rem;
  }

  /* Shared mobile spacing for content containers */
  .content-container {
    margin: 1rem;
    padding: 1.5rem 1rem;
  }

  /* Shrink sticky navigation and keep items on a single line */
  .site-header {
    padding: 0.25rem 0;
  }
  .site-header .main-nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  .site-header .main-nav li {
    flex: 0 0 auto;
    margin: 0;
  }
  .site-header .main-nav a {
    font-size: 1.1rem; /* match default nav size */
    padding: 0.25rem 0.5rem;
  }
  /* Visual cue that nav can scroll */
  .site-header .main-nav {
    position: relative;
  }
  .site-header .main-nav::before,
  .site-header .main-nav::after {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1.6rem;
    height: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    font-size: 1rem;
    color: var(--white);
    background: var(--emerald-border);
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition:
      background var(--t-fast) var(--ease-med),
      color var(--t-fast) var(--ease-med);
  }
  .site-header .main-nav::before {
    content: "‹";
    left: 0.25rem;
  }
  .site-header .main-nav::after {
    content: "›";
    right: 0.25rem;
  }
  .site-header .main-nav.show-left::before {
    background: var(--white);
    color: var(--emerald-border);
  }
  .site-header .main-nav.show-right::after {
    background: var(--white);
    color: var(--emerald-border);
  }
}

/* 3. Utility Classes */
.hidden {
  display: none;
}
.fadeable {
  transition: opacity var(--t-med) var(--ease);
}

/* Prevent background scroll when overlays are open */
.no-scroll,
.no-scroll html {
  overflow: hidden;
  height: 100vh;
}

/* Clickable cover for iframe maps */
.map-trigger {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

/* Fullscreen PDF overlay */
.pdf-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  padding: 1rem;
  z-index: 2000;
}
.pdf-overlay.hidden {
  display: none;
}
.pdf-overlay .pdf-content {
  position: relative;
  max-width: 90%;
  width: 90%;
}
.pdf-overlay iframe,
.pdf-overlay img {
  border: 0;
  border-radius: var(--card-radius);
}

.pdf-overlay iframe {
  width: 100%;
  height: 80vh;
}

.pdf-overlay img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
}
.pdf-overlay .close {
  position: absolute;
  top: -2rem;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

/* (Leave all page‑specific rules to their own CSS files) */


/* Flip clock countdown styles */
.flip-clock {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
}

.flip-digit {
  position: relative;
  width: 40px;
  height: 60px;
  background: var(--white);
  border-radius: 6px;
  border: 2px solid var(--emerald-border);
  color: var(--emerald-border);
  font-family: var(--font-heading);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.separator {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  line-height: 60px;
  color: var(--emerald-border);
}

.flip-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.digit-row {
  display: flex;
}

.flip-label {
  margin-top: 4px;
  color: var(--emerald-border);
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}

/* Size modifiers */
.flip-clock.flip-small .flip-digit {
  width: 32px;
  height: 48px;
  font-size: 1.6rem;
}

.flip-clock.flip-small .separator {
  font-size: 1.8rem;
  line-height: 48px;
}

.flip-clock.flip-small .flip-label {
  font-size: 0.85rem;
}

.flip-clock.flip-large .flip-digit {
  width: 60px;
  height: 90px;
  font-size: 3rem;
}

.flip-clock.flip-large .separator {
  font-size: 3.2rem;
  line-height: 90px;
}

.flip-clock.flip-large .flip-label {
  font-size: 1rem;
}


/* ======================================================
   A. INTRO‑PAGE RULES (only on index.html)
   ====================================================== */

/* Scroll‑lock only when <body class="no-scroll"> */
.no-scroll,
.no-scroll html {
  overflow: hidden;
  height: 100vh;
}

/* Video background & fallback */
.background-video {
  position: fixed;
  inset: 0;
  background: url("assets/video-fallback.jpg") center/cover no-repeat;
  overflow: hidden;
  z-index: 0;
}
.background-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--t-med) var(--ease-med);
}

/* Dim overlay */
.video-overlay {
  position: fixed;
  inset: 0;
  background: var(--emerald-overlay);
  z-index: 1;
  pointer-events: none;
}

/* Fade‑out helper */
.fade-out {
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease-med);
}

/* Intro card container */
.intro-card-container {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease-med);
  pointer-events: none;
}
.intro-card-container.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Card component inside intro */
.card {
  background: var(--white);
  color: #222;
  border-radius: var(--card-radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  border: 1.5px solid var(--gray-light);
  padding: 3rem 2.5rem 2.5rem;
  max-width: 460px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    box-shadow 0.23s,
    border 0.2s,
    transform 0.16s,
    opacity var(--t-med) var(--ease-med);
}
.card:hover,
.card:focus {
  box-shadow: 0 12px 48px rgba(1, 68, 33, 0.18);
  border: 2px solid var(--emerald-border);
  transform: translateY(-2px) scale(1.02);
}

/* Photo & text in intro card */
.circle-photo {
  width: var(--photo-size);
  height: var(--photo-size);
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: 0 2px 10px rgba(1, 68, 33, 0.07);
  margin-bottom: 1rem;
}
.wedding-names {
  font-family: var(--font-heading);
  font-size: 2.7rem;
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: 0.07em;
  color: var(--emerald-border);
  text-align: center;
}
.wedding-date {
  font-size: 1.18rem;
  color: var(--emerald-accent);
  margin-bottom: 2.3rem;
  letter-spacing: 0.04em;
  text-align: center;
}

/* Responsive tweaks for intro */
@media (max-width: 600px) {
  .card {
    padding: 1.4rem 0.5rem;
    max-width: 98%;
  }
  .circle-photo {
    width: 68px;
    height: 68px;
  }
  .wedding-names {
    font-size: 2rem;
  }
  .wedding-date {
    font-size: 1rem;
  }
  /* Ensure countdown fits within the intro card */
  #countdown.flip-clock {
    gap: 2px;
  }
  #countdown.flip-clock.flip-small .flip-digit {
    width: 20px;
    height: 30px;
    font-size: 1.2rem;
  }
  #countdown.flip-clock.flip-small .separator {
    font-size: 1.4rem;
    line-height: 30px;
  }
  #countdown.flip-clock.flip-small .flip-label {
    font-size: 0.7rem;
  }
}


/* Home page (home.html) */

/* Page wrapper */
.main-welcome {
  background: var(--bg-emerald-dark);
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 60px;
  animation: fadeIn var(--t-med) var(--ease);
}
.flip-label {
  color: white;
}
.separator {
  color: white;
}

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

/* Responsive tweaks */
@media (max-width: 600px) {
  .hero-img {
    width: 120px;
    height: 120px;
  }
  .big-rsvp-btn {
    font-size: 1rem;
    padding: 0.7rem 2rem;
  }
}
/* Adjust spacing for subheading */
.content-container h1 + h2 {
  margin-top: 0.5rem;
}

.home-update-box {
  background: #fff;
  color: #333;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  margin: 0 auto 30px auto;
  text-align: center;
  font-size: 1.25rem;
}

/* signature graphic above the update text */
.signature {
  display: block;
  max-width: 200px; /* adjust as needed */
  width: 100%; /* scales down on mobile */
  height: auto;
  margin: 0 auto 1rem; /* center and space below */
}

/* Ensure countdown fits on small screens */
@media (max-width: 600px) {
  #countdown.flip-clock {
    gap: 2px;
  }
  #countdown.flip-clock.flip-large .flip-digit {
    width: 19px;
    height: 29px;
    font-size: 1.1rem;
  }
  #countdown.flip-clock.flip-large .separator {
    font-size: 1.1rem;
    line-height: 29px;
  }
  #countdown.flip-clock.flip-large .flip-label {
    font-size: 0.6rem;
  }
}


/* Events page — page-specific overrides */

/* Page title uses global styles */

/* Event list layout */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

/* Individual event card */
.event-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
}

/* Icon above details */
.event-card .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-bottom: 0.3rem;
}

/* Icon images or inline SVGs fill the box */
.event-card .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Event details */
.event-card .title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin: 0 0 0.3rem;
  color: var(--emerald-border);
}
.event-card .date,
.event-card .time {
  font-weight: 600;
  color: var(--emerald-accent);
  font-size: 1.1rem;
}
.event-card .date {
  margin-bottom: 0.2rem;
}
.event-card .time {
  margin-bottom: 0.5rem;
}
.event-card .description {
  margin: 0;
  line-height: 1.5;
}

/* Map section */
.map-section {
  margin-top: 3rem;
}
/* Map heading uses global styles */
.map-section .description {
  text-align: center;
  margin-top: 1rem;
}

/* Container for static map images */
.iframe-container.img-only {
  padding-bottom: 0; /* allow natural height for images */
}

/* Ensure map images keep their aspect ratio */
.iframe-container.img-only img {
  position: static;
  width: 100%;
  height: auto;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .event-card {
    gap: 0.8rem;
  }
  .event-card .icon {
    width: 32px;
    height: 32px;
  }
  .event-card .title {
    font-size: 1.2rem;
  }
  .map-section .description {
    font-size: 1rem;
  }
}


/* Gallery page (gallery.html) */

.gallery-page {
  padding: 2rem 1rem;
  min-height: 100vh;
  background: var(--bg-emerald-dark);
}

/* Lightbox styles */

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  padding: 1rem;
  z-index: 2000;
}

.lightbox.hidden {
  display: none;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
}

.lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--card-radius);
}

.lightbox-content button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  border: none;
  font-size: 2rem;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}

.lightbox-content .prev {
  left: -3rem;
}
.lightbox-content .next {
  right: -3rem;
}
.lightbox-content .close {
  top: -3rem;
  right: 0;
  transform: none;
}

.lightbox-dots {
  text-align: center;
  margin-top: 1rem;
}

.lightbox-dots .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #888;
  margin: 0 4px;
  cursor: pointer;
}

.lightbox-dots .dot.active {
  background: var(--white);
}


/* Attire page — page-specific styles */

/* Section headings use global styles */

.attire-flex {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.attire-image {
  width: 300px;
  max-width: 100%;
  border-radius: 8px;
}

.attire-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.attire-section h3 {
  font-size: 1.2rem;
  color: var(--emerald-accent);
  margin-bottom: 0.5rem;
}

.attire-section ul {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.6;
}

.donts {
  background: var(--white);
  border: 3px solid var(--emerald-accent);
  color: inherit;
  padding: 2rem 1.5rem;
  margin-top: 2rem;
  border-radius: var(--card-radius);
}

.donts h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  text-align: center;
  margin: 0 0 1rem;
}

.donts ul {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
}

.donts li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
}

.donts li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--emerald-accent);
  font-weight: bold;
  font-size: 1.4rem;
  line-height: 1;
}

.color-palette {
  text-align: center;
  margin: 2rem 0;
}

.palette-group {
  margin-top: 1.5rem;
}

.palette-group h3 {
  font-size: 1.2rem;
  color: var(--emerald-accent);
  margin-bottom: 0.5rem;
}

.palette-note {
  margin-top: 0.5rem;
}

.palette {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.color-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--white);
}

.color-circle.black {
  background: #000;
}
.color-circle.gray {
  background: #A9A9A9;
}
.color-circle.brown {
  background: #8b4513;
}
.color-circle.tan {
  background: #d2b48c;
}
.color-circle.gold {
  background: #D29F51;
}

@media (max-width: 600px) {
  .attire-flex {
    flex-direction: column;
  }
}


/* FAQs page — page-specific styles */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Headings use global styles */

.faq-item p {
  margin: 0;
  line-height: 1.6;
}


/* Registry page — page-specific styles */

/* Center text in the intro paragraph */
.content-container p {
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.registry-icon {
  display: block;
  margin: 0 auto 1.5rem;
  width: 80px;
  height: auto;
}


/* ======================================================
   D. STORY‑PAGE RULES (only on our-story.html)
   ====================================================== */
#flipbook.preload {
  display: none;
}
/* kill any leftover page transitions */
#flipbook .page {
  transition: none !important;
}

.story-heading {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: bold;
  color: white;
  text-align: center;
  margin-bottom: 1rem;
}

.story-description {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: white;
  text-align: center;
  margin: 0 auto 1rem auto;
  max-width: 600px;
  line-height: 1.6;
}

#flipbook {
  margin: 0 auto;
  height: calc(80vw * 0.66) !important;
  max-height: 500px !important; /* optional cap */
  width: 90vw; /* 2 × 90 vw */
  max-width: 1200px; /* optional hard cap */
  min-width: 320px;
  display: flex;
}

/* each leaf/page styling */
#flipbook .page {
  flex: 0 0 50%;
  min-width: 0;
  background: var(--white);
  border: 2px solid var(--emerald-border);
  border-radius: var(--card-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* TEXT pages */
.text-page {
  padding: 1.5rem;
}
.text-page .text-content {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--emerald-border);
  line-height: 1.5;
  overflow-y: auto;
  max-height: 90%;
  max-width: 100%;
  text-align: center;
  width: auto;
  height: auto;
}

/* Story page — additional layout rules */

/* Stack heading + text in a column on text spreads */
#flipbook .page.text-page {
  flex-direction: column;
  text-align: center; /* center both children */
  padding: 1.5rem; /* keep your existing padding */
}

/* ensure the text block stays full‑width under the heading */
#flipbook .page.text-page .text-content {
  width: 100%;
  /* you can keep your existing centering/flex inside here, or switch to block */
  display: block;
}

/* IMAGE pages */
.image-page {
  padding: 0.5rem;
}
.image-page .comic-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: var(--emerald-dark);
}

/* responsive shrink on small screens */
@media (max-width: 700px) {
  #flipbook {
    width: 95vw;
    max-width: 100vw;
    flex-direction: column; /* show one page at a time */
    height: auto;
  }
  #flipbook .page {
    flex: 0 0 100%;
    border-radius: var(--card-radius);
    margin-bottom: 0;
  }
  .text-page {
    padding: 1rem;
  }
  .image-page {
    padding: 0.5rem;
  }
  .text-page .text-content {
    font-size: 0.9rem;
  }
}

/* Center the story-page wrapper and give room for nav */
.story-page {
  display: flex;
  flex-direction: column;
  align-items: center; /* center children horizontally */
  justify-content: flex-start;
  padding: 30px 1rem 2rem;
  min-height: calc(100vh - 100px);
  background: var(--bg-emerald-dark);
}
/* TEXT pages (left side) get left-only rounding */
#flipbook .text-page {
  border-radius: var(--card-radius) 0 0 var(--card-radius);
}

/* IMAGE pages (right side) get right-only rounding */
#flipbook .image-page {
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
}
/* heading inside each text-page spread */
.text-page-heading {
  font-family: var(--font-heading);
  font-size: 1.7rem; /* Slightly larger for better readability */
  color: var(--emerald-border);
  text-align: center;
  margin: 0 1rem 1rem; /* small gutter below */
  line-height: 1.2;
}

/* ── Flip controls styling ── */
.flip-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.flip-controls .main-btn {
  padding: 0.8rem 2rem;
  font-size: 1.2rem;
}

#flipbook {
  margin: 0 auto !important; /* force horizontal centering */
}

/* ── Mobile orientation notice ── */
.orientation-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 1rem;
}
.orientation-overlay.hidden {
  display: none;
}
.orientation-content {
  background: var(--white);
  color: var(--emerald-border);
  border-radius: var(--card-radius);
  max-width: 400px;
  width: 90%;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}
.orientation-content p {
  margin-bottom: 1rem;
  font-family: var(--font-body);
}


/* RSVP page — page-specific styles */

/* Page title uses global styles */
.content-container p {
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Responsive iframe wrapper */
.iframe-container {
  padding-bottom: 75%; /* 4:3 aspect ratio */
}

/* Mobile tweak */
@media (max-width: 600px) {
  .iframe-container {
    padding-bottom: 100%; /* square on narrow screens */
  }
}


/* Wedding Party page — page-specific styles */

/* White card container */
.content-container {
  max-width: 960px;
}
/* Page title uses global styles */

/* Grid of party cards */
.party-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.party-card {
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding: 1rem;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

@media (max-width: 600px) {
  .party-grid {
    grid-template-columns: 1fr;
  }
}
.party-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.party-card img {
  width: 100%;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
}
.party-card h2 {
  margin: 0.5rem 0 0.2rem;
  font-size: 1.2rem;
  font-family: var(--font-heading);
  color: var(--emerald-border);
}
.party-card .role {
  margin: 0;
  font-size: 1rem;
  color: var(--emerald-accent);
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  /* ensure the overlay appears above the sticky header */
  z-index: 1100;
}
.modal-overlay.hidden {
  display: none;
}

/* Modal content */
.modal-content {
  background: var(--white);
  border-radius: var(--card-radius);
  max-width: 500px;
  width: 90%;
  padding: 1.5rem;
  position: relative;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}
.modal-content img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--card-radius);
  margin-bottom: 1rem;
}
.modal-content h2 {
  margin: 0.5rem 0;
  font-family: var(--font-heading);
  color: var(--emerald-border);
}
.modal-content .role {
  color: var(--emerald-accent);
  margin-bottom: 1rem;
}
.modal-content p {
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #777;
  cursor: pointer;
}
.modal-close:hover {
  color: #444;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .party-card {
    padding: 0.75rem;
  }
  .party-card h2 {
    font-size: 1rem;
  }
  .modal-content {
    padding: 1rem;
  }
  .modal-content img {
    max-height: 200px;
  }
}


/* Responsive map/embed */
.iframe-container {
  padding-bottom: 56.25%; /* 16:9 ratio */
  margin-top: 1rem;
}
