:root {
  --blue-50: #F7FAFC;
  --blue-100: #EDF5FA;
  --blue-200: #D8E8F2;
  --blue-300: #BDD7E7;
  --blue-400: #8EB9D1;
  --blue-500: #6598B7;
  --blue-600: #477B9D;
  --blue-700: #315E7B;
  --blue-800: #244B66;
  --navy: #163247;

  --white: #FFFFFF;
  --cream: #FCFCFA;

  --text-primary: #1D3545;
  --text-secondary: #687B87;

  --shadow:
    0 30px 70px rgba(24, 58, 80, 0.18);
}


/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family:
    "Segoe UI",
    Arial,
    sans-serif;

  background:
    radial-gradient(
      circle at top,
      #EAF4FA 0%,
      #F7FAFC 42%,
      #FFFFFF 100%
    );

  color: var(--text-primary);
}


/* =========================
   APP
========================= */

.invitation-app {
  min-height: 100vh;
}


/* =========================
   OPENING SCREEN
========================= */

.welcome-screen {
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 24px;
}

.welcome-content {
  width: 100%;
  max-width: 430px;

  min-height: 650px;

  padding: 48px 34px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;

  background:
    linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.96),
      rgba(239, 247, 252, 0.9)
    );

  border:
    1px solid rgba(101, 152, 183, 0.22);

  border-radius: 28px;

  box-shadow: var(--shadow);

  position: relative;
  overflow: hidden;
}

.welcome-content::before {
  content: "";

  position: absolute;

  width: 260px;
  height: 260px;

  border-radius: 50%;

  background:
    rgba(142, 185, 209, 0.15);

  top: -100px;
  right: -100px;
}

.welcome-content::after {
  content: "✦";

  position: absolute;

  bottom: 35px;
  right: 45px;

  color: var(--blue-300);

  font-size: 28px;
}

.eyebrow,
.section-label {
  font-size: 11px;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 3px;

  color: var(--blue-600);
}

.welcome-content h1 {
  margin-top: 18px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-weight: 400;

  font-size: clamp(42px, 10vw, 58px);

  line-height: 1;

  color: var(--navy);
}

.subtitle {
  max-width: 290px;

  margin-top: 20px;
  margin-bottom: 34px;

  font-size: 15px;

  line-height: 1.7;

  color: var(--text-secondary);
}

.open-btn {
  padding: 15px 31px;

  border: none;
  border-radius: 50px;

  background: var(--blue-800);

  color: white;

  font-size: 14px;
  font-weight: 600;

  letter-spacing: 0.4px;

  cursor: pointer;

  box-shadow:
    0 10px 26px rgba(36, 75, 102, 0.22);

  transition: 0.25s ease;
}

.open-btn:hover {
  transform: translateY(-2px);

  background: var(--navy);
}


/* =========================
   MAGAZINE AREA
========================= */

.magazine-section {
  min-height: 100vh;

  display: none;

  justify-content: center;
  align-items: center;

  padding: 24px 14px;

  overflow: hidden;
}

.magazine-section.active {
  display: flex;
}

.magazine-wrapper {
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 22px;
}

.magazine-book {
  width: 390px;
  height: 570px;
}


/* =========================
   GENERAL PAGE
========================= */

.page {
  background: var(--cream);

  overflow: hidden;

  box-shadow:
    inset 0 0 0 1px rgba(38, 78, 105, 0.08);
}

.page-number {
  font-family:
    Georgia,
    serif;

  color: var(--blue-300);

  font-size: 12px;

  margin-bottom: 25px;
}

.placeholder-photo {
  background:
    linear-gradient(
      145deg,
      var(--blue-200),
      var(--blue-400)
    );

  color: rgba(255, 255, 255, 0.9);

  display: flex;

  align-items: center;
  justify-content: center;

  text-align: center;

  font-size: 12px;

  letter-spacing: 1px;
}


/* =========================
   COVER
========================= */

.cover-page {
  position: relative;

  background: var(--blue-800);

  color: white;
}

.photo-bg {
  position: absolute;

  inset: 0;
}

.cover-photo {
  background-image: url("assets/images/amara-cover.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cover-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 55%,
    rgba(255, 255, 255, 0.10) 68%,
    rgba(255, 255, 255, 0.45) 84%,
    rgba(255, 255, 255, 0.78) 100%
  );

  pointer-events: none;
}

.cover-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.cover-title {
  position: absolute;
  top: 34px;
  left: 0;
  right: 0;
  padding: 0 20px;
}

/* AMARA — EDITORIAL SERIF */
.cover-title h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  
   /* Responsive instead of fixed 90px */
  font-size: clamp(52px, 15vw, 90px);

  font-weight: 600;
  line-height: 0.9;
  letter-spacing: clamp(1px, 0.5vw, 3px);
  text-align: center;
  color: #173A52;
}

/* IS TURNING SEVEN — THIN SIGNATURE */
.cover-script {
  position: relative;
  width: fit-content;

  /* Give AMARA a little breathing room */
  margin: 2px 5px 0 auto;

  font-family: "La Belle Aurore", cursive;

  /* Responsive instead of fixed 35px */
  font-size: clamp(20px, 5.5vw, 35px);

  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.5px;
  color: #2e4550;
  white-space: nowrap;
}

/* =========================
   PAGE 2 — PHOTO
========================= */

.page2-photo {
  position: relative;

  margin-left: 0 !important;
  margin-right: 0 !important;
  border-radius: 0 !important;
  
  width: 100%;
  margin: 0;
  padding: 0;

  border-radius: 0;

  background-image: url("assets/images/page2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  overflow: hidden;
}

/* STRONGER WHITE GRADIENT AT BOTTOM */
.page2-photo::after {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;

  width: 100%;
  height: 38%;

  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(255, 255, 255, 0.25) 40%,
    rgba(255, 255, 255, 0.55) 62%,
    rgba(255, 255, 255, 0.82) 80%,
    rgba(255, 255, 255, 0.96) 92%,
    #ffffff 100%
  );

  pointer-events: none;
}

.editorial-page {
  height: 100%;

  display: grid;

  grid-template-rows:
    57% 43%;
}

.editorial-copy {
  padding:
    17px 30px 30px;
}

.editorial-copy p {
    font-size: 16px;
}

.editorial-copy h2 {
  margin: 11px 0;

  font-family:
    Georgia,
    serif;

  font-weight: 400;

  font-size: 26px;

  line-height: 1.12;

  color: var(--navy);
}

.editorial-copy h2 span {
  display: block;

  color: var(--blue-600);

  font-style: italic;
}

.editorial-copy > p:last-child {
  font-size: 12px;

  line-height: 1.65;

  color: var(--text-secondary);
}

/* =========================
   PAGE 2 — PASTEL BACKGROUND
========================= */

.page-two .editorial-page {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

/* Soft blue + white + pink glow */
.page-two .editorial-page::after {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  width: 100%;
  height: 42%;

  background:
    radial-gradient(
      circle at bottom left,
      rgba(166, 211, 239, 0.55) 0%,
      rgba(166, 211, 239, 0.22) 24%,
      transparent 52%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(247, 183, 215, 0.52) 0%,
      rgba(247, 183, 215, 0.20) 25%,
      transparent 52%
    ),
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.12) 35%,
      rgba(255, 255, 255, 0.30) 100%
    );

  pointer-events: none;
  z-index: 0;
}

/* Keep photo and text above the gradient */
.page-two .editorial-page > * {
  position: relative;
  z-index: 1;
}

/* =========================
   PAGE 3 — FULL PHOTO
========================= */

.message-photo-page {
  position: relative;
  overflow: hidden;
}

.page3-photo {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  background-image: url("assets/images/page3.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* =========================
   PAGE 3 — STORY TEXT
========================= */

.page3-story {
  position: absolute;
  top: 32px;
  left: 28px;
  width: 78%;
  z-index: 3;
  color: #363434;
}

/* AND WITH EVERY YEAR */
.page3-story h2 {   
  font-family: "Cormorant Garamond", serif; 
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 3px;
}

/* SECOND + THIRD LINE */
.page3-story p {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  font-weight: 605;

  letter-spacing: 1.7px;
}

/* MAGICAL */
.page3-story > span {
  display: block;

  font-family: "La Belle Aurore", cursive;
  font-size: 35px;
  font-weight: 400;

  line-height: 1;
  letter-spacing: 5px;
}


/* =========================
   PAGE 4 — FULL PHOTO
========================= */

.message-photo4-page {
  position: relative;
  overflow: hidden;
}

.page4-photo {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  background-image: url("assets/images/page4.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* =========================
   PAGE 5 — COTILLION PHOTO
========================= */

.page5-photo {
  position: relative;

  background-image: url("assets/images/page5.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  overflow: hidden;
}

/* PHOTO → WHITE SEAMLESS FADE */
.page5-photo::after {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;

  width: 100%;
  height: 48%;

  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 18%,
    rgba(255, 255, 255, 0.18) 35%,
    rgba(255, 255, 255, 0.42) 55%,
    rgba(255, 255, 255, 0.70) 72%,
    rgba(255, 255, 255, 0.90) 88%,
    #ffffff 100%
  );

  pointer-events: none;
}

/* =========================
   PAGE 5 — PASTEL BOTTOM GLOW
========================= */

.page-five .cotillion-page {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

/* BLUE + WHITE + PINK GRADIENT */
.page-five .cotillion-page::after {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  width: 100%;
  height: 40%;

  background:
    radial-gradient(
      circle at bottom left,
      rgba(166, 211, 239, 0.48) 0%,
      rgba(166, 211, 239, 0.18) 25%,
      transparent 52%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(247, 183, 215, 0.46) 0%,
      rgba(247, 183, 215, 0.17) 25%,
      transparent 52%
    ),
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.10) 35%,
      rgba(255, 255, 255, 0.25) 100%
    );

  pointer-events: none;
  z-index: 0;
}

/* KEEP ALL CONTENT ABOVE THE GRADIENT */
.page-five .cotillion-page > * {
  position: relative;
  z-index: 1;
}

/* =========================
   PAGE 6 — FULL BACKGROUND PHOTO
========================= */

.page-six {
  position: relative;
  overflow: hidden;
}

.page-six .list-page {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;

  background-image: url("assets/images/page6.jpg");
  background-size: 115% auto;
  background-position: center -45px;
  background-repeat: no-repeat;
}

/* Remove the old separate photo block visually */
.page-six .page6-photo {
  display: none;
}

/* =========================
   PAGE 6 — CLEAN WHITE FADE
========================= */

.page-six .list-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  z-index: 2;

  padding: 65px 28px 28px;

  background: linear-gradient(
  to bottom,

  /* PHOTO STILL VISIBLE */
  rgba(255, 255, 255, 0) 0%,
  rgba(255, 255, 255, 0.08) 8%,
  rgba(255, 255, 255, 0.22) 16%,

  /* SOFT WHITE TRANSITION */
  rgba(255, 255, 255, 0.48) 24%,
  rgba(255, 255, 255, 0.75) 31%,
  rgba(255, 255, 255, 0.94) 38%,

  /* CLEAN WHITE — MORE COVERAGE AT BOTTOM */
  #ffffff 44%,
  #ffffff 100%
);
}


/* =========================
   EVENT PAGE
========================= */

.event-page {
  height: 100%;

  padding: 25px;

  display: grid;

  grid-template-rows:
    43% 57%;

  gap: 21px;
}

.event-photo {
  border-radius: 120px 120px 14px 14px;
}

.event-details h2 {
  margin:
    8px 0 20px;

  font-family:
    Georgia,
    serif;

  font-size: 30px;

  font-weight: 400;

  color: var(--navy);
}

.event-item {
  padding:
    10px 0;

  border-bottom:
    1px solid var(--blue-200);

  display: grid;

  grid-template-columns:
    75px 1fr;

  gap: 10px;
}

.event-item span {
  font-size: 10px;

  text-transform: uppercase;

  letter-spacing: 1px;

  color: var(--blue-600);
}

.event-item strong {
  font-size: 12px;

  font-weight: 600;
}


/* =========================
   TRADITIONS PAGE
========================= */

.list-page {
  height: 100%;

  display: grid;

  grid-template-rows:
    39% 61%;
}

.list-content {
  
  padding:
    28px;
}

.page-six .section-label,
.page-six .list-content h2 {
  text-align: center;
}

.list-content h2 {
  margin:
    8px 0 16px;

  font-family:
    Georgia,
    serif;

  font-weight: 500;
  color: var(--navy);
  line-height: 1;
  letter-spacing: 2px;
  
}

.page-six .tradition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.page-six .tradition-card {
  position: relative;

  height: 68px;
  padding: 10px 15px;

  background: var(--blue-100);
  border-radius: 5px;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;

  gap: 8px;
}

.page-six .tradition-card span {
  display: block;
  margin-bottom: 4px;

  font-family: Georgia, serif;
  color: var(--blue-500);
  font-size: 11px;
}

.page-six .tradition-icon {
  position: static;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.page-six .tradition-card strong {
  margin: 0;
  line-height: 1;

  font-size: 12px;
  text-align: center;
  color: var(--blue-800);
}

/* =========================
   PAGE 6 — CARD ADJUSTMENT ONLY
========================= */

/* Add a little space above the cards */
.page-six .tradition-grid {
  margin-top: 8px;
}

/* Slightly reduce card height */
.page-six .tradition-card {
  min-height: 0 !important;
  height: 58px !important;
  padding: 11px 15px !important;
  box-sizing: border-box;
}

/* Slightly tighten number spacing inside card */
.page-six .tradition-card span {
  margin-bottom: 6px !important;
}

/* =========================
   PAGE 7 — SEVEN LITTLE TREASURES
========================= */

.page-seven {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.page-seven .split-page {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
}


/* =========================
   TOP CONTENT
========================= */

.page-seven .split-copy {
  position: relative;
  z-index: 3;

  padding: 48px 36px 0;
}

.page-seven .split-copy .section-label {
  margin: 0 0 14px;

  color: var(--blue-500);

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 4px;
  text-transform: uppercase;
}

.page-seven .split-copy h2 {
  margin: 0 0 28px;

  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1;

  color: var(--navy);
}


/* =========================
   TREASURE LIST
========================= */

.page-seven .treasure-list {
  position: relative;
  z-index: 3;
}

.page-seven .treasure-row {
  display: flex;
  align-items: center;

  gap: 18px;

  min-height: 54px;

  padding: 8px 4px;

  border-top: 1px solid rgba(113, 176, 214, 0.28);

  background: transparent;
}

.page-seven .treasure-row:last-child {
  border-bottom: none;
}

.page-seven .treasure-icon {
  width: 24px;
  height: 24px;

  flex-shrink: 0;

  fill: none;
  stroke: #79afd0;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-seven .treasure-line {
  display: flex;
  align-items: center;

  gap: 12px;

  width: 100%;
}

.page-seven .treasure-line strong {
  flex-shrink: 0;

  font-size: 12px;
  font-weight: 700;

  color: var(--blue-800);
}

.page-seven .treasure-line small {
  font-size: 10.5px;
  line-height: 1.35;

  color: var(--blue-500);
}


/* =========================
   FULL PHOTO AT THE BOTTOM
========================= */

.page-seven .page7-photo {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  width: 100%;
  height: 90%;

  margin: 0;
  border-radius: 0;

  background-image: url("assets/images/page7.jpg");
  background-size: cover;

  /* move image framing upward */
  background-position: center 42%;

  background-repeat: no-repeat;

  overflow: hidden;
  z-index: 1;
}


/* =========================
   WHITE GRADIENT ABOVE PHOTO
========================= */

.page-seven .page7-photo::before {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,

    #ffffff 0%,
    rgba(255, 255, 255, 0.98) 8%,
    rgba(255, 255, 255, 0.94) 16%,
    rgba(255, 255, 255, 0.82) 26%,
    rgba(255, 255, 255, 0.62) 36%,
    rgba(255, 255, 255, 0.38) 46%,
    rgba(255, 255, 255, 0.16) 56%,
    rgba(255, 255, 255, 0) 68%
  );

  z-index: 2;

  pointer-events: none;
}

/* =========================
   PAGE 7 --- SEVEN LITTLE TREASURES
========================= */

.page-seven .split-page {
  height: 100%;

  display: grid;

  grid-template-rows:
    53% 47%;
}

.page-seven .split-copy {
  position: relative;
  z-index: 3;

  /* move all content slightly upward */
  padding: 32px 36px 0;
}

.page-seven .split-copy h2 {
  margin:
    0 0 15px;

  font-family:
    Georgia,
    serif;

  font-weight: 400;

  font-size: 30px;

  color: var(--navy);
}

.page-seven .simple-list > div {
  display: flex;

  align-items: center;

  gap: 15px;

  border-top:
    1px solid var(--blue-200);

  padding:
    12px 0;
}

.page-seven .simple-list span {
  color: var(--blue-400);

  font-family:
    Georgia,
    serif;

  font-size: 11px;
}

.page-seven .simple-list strong {
  font-size: 13px;
}

/* =========================
   PAGE 8 — FULL PHOTO
========================= */

.page-eight {
  position: relative;
  overflow: hidden;
}

.page-eight .page8-photo {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  background-image: url("assets/images/page8.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}


/* =========================
   MESSAGE SPREAD
========================= */

.message-photo-page {
  position: relative;
}

.full-photo {
  position: absolute;

  inset: 0;
}

.photo-caption {
  position: absolute;

  bottom: 20px;
  left: 30px;

  padding: 20px;

  color: white;

}

.photo-caption p {
  font-size: 10px;

  letter-spacing: 2px;

  text-transform: uppercase;
}

.photo-caption h2 {
  margin-top: 3px;

  font-family:
    Georgia,
    serif;

  font-size: 34px;

  font-weight: 400;
}

.message-page {
  height: 100%;

  padding: 48px 38px;

  display: flex;
  flex-direction: column;

  justify-content: center;
}

.quote-mark {
  margin-bottom: -10px;

  font-family:
    Georgia,
    serif;

  font-size: 80px;

  line-height: 0.8;

  color: var(--blue-200);
}

.message-page blockquote {
  margin-top: 20px;

  font-family:
    Georgia,
    serif;

  font-size: 20px;

  line-height: 1.55;

  color: var(--blue-800);
}

.message-signature {
  margin-top: 30px;

  color: var(--text-secondary);

  font-size: 12px;
}

.message-signature strong {
  color: var(--blue-700);

  font-family:
    Georgia,
    serif;

  font-size: 18px;
}

/* =========================
   PAGE 9 — SOFT PASTEL GRADIENT
========================= */

.page-nine {
  position: relative;
  overflow: hidden;

  background:
    /* LEFT — PINK */
    radial-gradient(
      circle at 0% 25%,
      rgba(247, 183, 215, 0.48) 0%,
      rgba(247, 183, 215, 0.22) 28%,
      transparent 52%
    ),

    /* LEFT — BLUE */
    radial-gradient(
      circle at 0% 75%,
      rgba(166, 211, 239, 0.48) 0%,
      rgba(166, 211, 239, 0.22) 28%,
      transparent 52%
    ),

    /* RIGHT — BLUE */
    radial-gradient(
      circle at 100% 25%,
      rgba(166, 211, 239, 0.48) 0%,
      rgba(166, 211, 239, 0.22) 28%,
      transparent 52%
    ),

    /* RIGHT — PINK */
    radial-gradient(
      circle at 100% 75%,
      rgba(247, 183, 215, 0.48) 0%,
      rgba(247, 183, 215, 0.22) 28%,
      transparent 52%
    ),

    #ffffff;
}

.page-nine .message-page {
  position: relative;
  z-index: 1;
  background: transparent;
}


/* =========================
   AGE TIMELINE
========================= */

.timeline-page {
  height: 100%;

  padding:
    35px 28px;
}

.timeline-page h2 {
  margin:
    10px 0 24px;

  font-family:
    Georgia,
    serif;

  font-size: 29px;

  font-weight: 400;

  color: var(--navy);
}

.timeline-grid {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 15px;
}

.timeline-grid.three {
  margin-top: 32px;
}

.age-photo > div {
  height: 160px;

  border-radius: 7px;
}

.age-photo p {
  padding-top: 6px;

  font-family:
    Georgia,
    serif;

  font-size: 14px;

  color: var(--blue-700);
}

.featured-age {
  grid-column:
    1 / -1;
}

.featured-age > div {
  height: 170px;
}

.continuation {
  padding-top: 50px;
}

.timeline-ending {
  margin-top: 25px !important;

  font-size: 21px !important;

  font-style: italic;
}


/* =========================
   GALLERY
========================= */

.gallery-page {
  position: relative;

  height: 100%;

  padding: 22px;
}

.gallery-large {
  width: 70%;
  height: 62%;

  border-radius: 8px;
}

.gallery-small {
  position: absolute;

  right: 22px;
  top: 45%;

  width: 47%;
  height: 32%;

  border:
    6px solid white;

  border-radius: 6px;
}

.gallery-copy {
  position: absolute;

  left: 28px;
  bottom: 30px;
}

.gallery-copy span {
  font-size: 9px;

  text-transform: uppercase;

  letter-spacing: 2px;

  color: var(--blue-600);
}

.gallery-copy h2 {
  margin-top: 7px;

  font-family:
    Georgia,
    serif;

  font-size: 25px;

  font-weight: 400;

  color: var(--navy);
}

.gallery-reverse
.gallery-large {
  margin-left: auto;
}

.gallery-reverse
.gallery-small {
  left: 22px;
  right: auto;
}


/* =========================
   DRESS CODE
========================= */

.dress-page {
  height: 100%;

  padding:
    55px 34px;

  text-align: center;
}

.dress-page h2 {
  margin:
    12px 0;

  font-family:
    Georgia,
    serif;

  font-size: 39px;

  font-weight: 400;

  color: var(--navy);
}

.dress-intro {
  max-width: 280px;

  margin:
    0 auto 35px;

  font-size: 12px;

  line-height: 1.7;

  color: var(--text-secondary);
}

.dress-colors {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 25px;

  margin-bottom: 35px;
}

.dress-colors > div {
  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 8px;
}

.color-circle {
  width: 55px;
  height: 55px;

  display: block;

  border-radius: 50%;

  box-shadow:
    0 5px 15px rgba(30, 62, 84, 0.1);
}

.powder {
  background: #D9EAF4;
}

.sky {
  background: #9CC7DF;
}

.navy-circle {
  background: #244B66;
}

.white-circle {
  background: white;

  border:
    1px solid #D7E2E8;
}

.dress-colors p {
  font-size: 10px;

  color: var(--text-secondary);
}

.dress-note {
  padding: 16px;

  background: var(--blue-100);

  border-radius: 8px;

  font-size: 11px;
}


/* =========================
   BACK COVER
========================= */

.back-cover {
  position: relative;

  background: var(--navy);

  color: white;
}

.back-photo {
  position: absolute;

  inset: 0;
}

.back-overlay {
  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      rgba(20, 49, 68, 0.34),
      rgba(20, 49, 68, 0.85)
    );
}

.back-content {
  position: absolute;

  inset: 0;

  padding: 40px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align: center;
}

.back-content > p {
  font-size: 11px;

  letter-spacing: 1.3px;

  margin-bottom: 15px;
}

.back-content h2 {
  font-family:
    Georgia,
    serif;

  font-size: 43px;

  font-weight: 400;
}

.tiny-star {
  margin: 26px 0;

  font-size: 18px;
}

.back-content > span {
  font-size: 10px;

  text-transform: uppercase;

  letter-spacing: 3px;
}


/* =========================
   CONTROLS
========================= */

.magazine-controls {
  display: flex;

  align-items: center;

  gap: 22px;

  padding:
    9px 15px;

  background:
    rgba(255, 255, 255, 0.82);

  border:
    1px solid var(--blue-200);

  border-radius: 50px;

  backdrop-filter: blur(10px);

  box-shadow:
    0 7px 22px rgba(29, 65, 89, 0.08);
}

.magazine-controls button {
  width: 38px;
  height: 38px;

  border: none;
  border-radius: 50%;

  background: var(--blue-800);

  color: white;

  cursor: pointer;

  font-size: 17px;
}

.magazine-controls p {
  min-width: 52px;

  text-align: center;

  font-size: 11px;

  color: var(--text-secondary);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 600px) {

  .magazine-section {
    padding:
      16px 6px;
  }

  .magazine-book {
    width: 340px;
    height: 510px;
  }

  .welcome-content {
    min-height: 600px;
  }

}


/* =========================
   CLICKABLE EXISTING CARDS
========================= */

.clickable-card {
  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.clickable-card:hover {
  transform: translateY(-2px);

  box-shadow:
    0 8px 18px rgba(36, 75, 102, 0.10);
}

.clickable-card:active {
  transform: scale(0.98);
}


/* =========================
   PAGE 5 LIST LAYOUT
========================= */

.simple-list-row {
  display: flex;

  align-items: center;

  gap: 15px;

  border-top:
    1px solid var(--blue-200);

  padding:
    12px 0;
}

.simple-list-row span {
  color: var(--blue-400);

  font-family:
    Georgia,
    serif;

  font-size: 11px;
}

.simple-list-row strong {
  font-size: 13px;
}


/* =========================
   POPUP MODAL
========================= */

.list-modal {
  position: fixed;

  inset: 0;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 20px;

  z-index: 9999;
}

.list-modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;

  inset: 0;

  background:
    rgba(13, 35, 49, 0.58);

  backdrop-filter: blur(5px);
}

.modal-card {
  position: relative;

  width: min(90%, 380px);

  max-height: 80vh;

  overflow-y: auto;

  padding:
    38px 30px 32px;

  background:
    linear-gradient(
      160deg,
      #FFFFFF,
      #F3F8FB
    );

  border:
    1px solid rgba(127, 170, 200, 0.25);

  border-radius: 22px;

  box-shadow:
    0 30px 70px rgba(15, 43, 61, 0.25);

  z-index: 1;
}

.modal-close {
  position: absolute;

  top: 14px;
  right: 16px;

  width: 34px;
  height: 34px;

  border: none;

  border-radius: 50%;

  background:
    var(--blue-100);

  color:
    var(--blue-800);

  font-size: 24px;

  line-height: 1;

  cursor: pointer;
}

.modal-label {
  margin-bottom: 8px;

  color:
    var(--blue-500);

  font-size: 9px;

  font-weight: 700;

  letter-spacing: 2px;

  text-transform: uppercase;
}

.modal-card h2 {
  margin-bottom: 22px;

  font-family:
    Georgia,
    serif;

  font-size: 30px;

  font-weight: 400;

  color:
    var(--navy);
}

.modal-list {
  display: flex;

  flex-direction: column;

  gap: 4px;
}

.modal-list-item {
  display: grid;

  grid-template-columns:
    28px 1fr;

  gap: 10px;

  align-items: center;

  padding:
    11px 0;

  border-bottom:
    1px solid var(--blue-200);
}

.modal-list-item span {
  font-family:
    Georgia,
    serif;

  font-size: 11px;

  color:
    var(--blue-400);
}

.modal-list-item p {
  font-size: 13px;

  color:
    var(--text-primary);
}

/* =========================
   PAGE 5 — COTILLION DANCE
========================= */

.cotillion-divider,
.cotillion-headings,
.cotillion-columns {
  width: 100%;
  max-width: 320px;
}

.cotillion-page {
  height: 100%;

  display: grid;

  grid-template-rows:
    36% 64%;

  background:
    var(--cream);
}


/* =========================
   FULL-WIDTH PHOTO
========================= */

.cotillion-photo {
  width: 100%;
  height: 100%;
}


/* =========================
   CONTENT AREA
========================= */

.cotillion-content {
  padding:
    20px 28px 22px;

  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
}


/* =========================
   TITLE
========================= */

.cotillion-content .section-label {
  margin-bottom: 5px;
}


.cotillion-content h2 {
  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 28px;

  font-weight: 400;

  color:
    var(--navy);

  line-height: 1.1;
}


/* =========================
   DECORATIVE DIVIDER
========================= */

.cotillion-divider {
  margin:
    13px auto 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  width: 100%;
  max-width: 320px;
}

.cotillion-divider span {
  height: 1px;

  flex: 1;

  background:
    var(--blue-300);
}


.cotillion-divider b {
  color:
    var(--blue-500);

  font-size: 10px;

  font-weight: 400;
}


/* =========================
   GIRLS / BOYS HEADERS
========================= */

.cotillion-headings {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  margin-bottom: 7px;
}


.cotillion-headings h3 {
  font-size: 10px;

  text-transform: uppercase;

  letter-spacing: 2px;

  color:
    var(--blue-600);

  font-weight: 700;
}


/* =========================
   TWO COLUMN LAYOUT
========================= */

.cotillion-columns {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  position: relative;
}


/* CENTER VERTICAL LINE */

.cotillion-columns::after {
  content: "";

  position: absolute;

  top: 0;
  bottom: 0;

  left: 50%;

  width: 1px;

  background:
    var(--blue-300);
}


/* =========================
   INDIVIDUAL COLUMN
========================= */

.cotillion-column {
  display: flex;

  flex-direction: column;

  gap: 4px;
}


.girls-column {
  padding-right: 15px;
}


.boys-column {
  padding-left: 15px;
}


/* =========================
   EACH NAME
========================= */

.cotillion-name {
  min-height: 25px;

  display: grid;

  grid-template-columns:
    23px 1fr;

  gap: 6px;

  align-items: center;

  text-align: left;
}


.cotillion-name span {
  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 10px;

  color:
    var(--blue-500);
}


.cotillion-name p {
  font-size: 10px;

  line-height: 1.25;

  color:
    var(--text-primary);

  overflow-wrap: anywhere;
}

.tradition-grid {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 10px;
}


.tradition-card {
  min-height: 90px;

  padding:
    14px;

  border-radius:
    12px;

  background:
    var(--blue-100);

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  position: relative;

  overflow: hidden;
}

/* =========================
   TRADITION CARD ICONS
   ICONS ONLY
========================= */

.tradition-icon {
  position: absolute;

  top: 14px;
  right: 14px;

  width: 27px;
  height: 27px;

  fill: none;

  stroke:
    var(--blue-500);

  stroke-width:
    1.4;

  stroke-linecap:
    round;

  stroke-linejoin:
    round;

  opacity:
    0.75;

  pointer-events:
    none;
}

/* =========================
   PAGE 7 — TREASURE NOTES
   KEEP ORIGINAL LAYOUT
========================= */

.treasure-info {
  display: flex;
  flex-direction: column;

  gap: 3px;
}

.treasure-info small {
  font-size: 8px;

  line-height: 1.35;

  font-weight: 600;

  letter-spacing: 0.5px;

  color: var(--blue-500);
}

/* =========================
   PAGE 7 — LITTLE TREASURES
   ICON + INLINE MESSAGE
========================= */


/* ICON REPLACES NUMBER */

.treasure-row .treasure-icon {
  width: 22px;
  height: 22px;

  flex-shrink: 0;

  fill: none;

  stroke: var(--blue-500);

  stroke-width: 1.4;

  stroke-linecap: round;
  stroke-linejoin: round;

  opacity: 0.85;

  pointer-events: none;
}


/* TITLE + MESSAGE ON SAME LINE */

.treasure-line {
  min-width: 0;

  display: flex;

  align-items: center;

  gap: 8px;

  flex: 1;
}


.treasure-line strong {
  flex-shrink: 0;
}


/* LITTLE MESSAGE */

.treasure-line small {
  font-size: 10px;

  line-height: 1.25;

  font-weight: 500;

  letter-spacing: 0.2px;

  color: var(--blue-500);
}



@media (max-width: 600px) {

  .cotillion-page {
    grid-template-rows:
      32% 68%;
  }

  .cotillion-content {
    padding:
      15px 22px 18px;
  }

  .cotillion-divider {
    margin:
      9px auto 7px !important;
  }

  .cotillion-column {
    gap: 2px;
  }

  .cotillion-name {
    min-height: 23px;
  }

}


