/* styles.css for Wedding Invitation page */

@import url("https://fonts.googleapis.com/css2?family=Battambang:wght@400;700&family=Noto+Sans+Khmer:wght@400;600&family=Noto+Serif+Khmer:wght@400;600&family=Koulen&family=Moul&family=Bokor&display=swap");

html,
body {
  height: auto;
  width: 100%;
  font-family: "Siemreap", sans-serif;
  font-weight: 400;
  font-style: normal;
  background-image: url("/background.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  overflow-y: auto;
  overflow-x: hidden;
  /* prevents horizontal scroll */
  scrollbar-width: none;
  content: "";
  position: fixed;
  inset: 0;

  /* Firefox */
}

#scroll-top-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: 100%;
  pointer-events: none;
}

body.no-scroll {
  position: fixed;
  overflow: hidden;
  width: 100%;
}

body::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

#page-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  /* justify-content: center; vertically center all content */
  align-items: center;
  /* horizontally center */
  min-height: 100vh;
  /* full viewport height */
  z-index: 1;
  padding: 20px 0;
}

#center-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

#center-image {
  width: 400px;
  /* increase size */
  max-width: 100%;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter:
    drop-shadow(0 2px 4px rgb(255, 255, 255)) drop-shadow(0 0 10px rgba(255, 196, 70, 0.63));
}

#center-image:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 20px rgba(255, 192, 203, 0.8));
}

#bottom-section {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-bottom: 20px;
  position: relative;
  /* required for absolute positioning */
}

#invitation-text {
  font-family: "Siemreap", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1rem;
  text-align: center;
  color: #fce8c6;
  /* soft gold-beige */
  opacity: 0.85;
  text-shadow: 0 0 1px #000,
    /* fine black outline */
    0 0 4px rgba(0, 0, 0, 0.3);
  /* soft glow for depth */
}

@keyframes fadeInZoom {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

#guest-name {
  padding: 10px;
  font-size: 2rem;
  border-radius: 5px;
  border: none;
  width: 100%;
  background-color: transparent;
  text-align: center;
  outline: none;
  font-family: "Moul", "Koulen", sans-serif;
  font-size: 2rem;
  color: #ffd700;
  /* vivid gold */
  text-shadow: 0 0 1px #000,
    /* fine black outline */
    0 0 4px rgba(0, 0, 0, 0.3);
  /* soft glow for depth */
  text-align: center;
  animation: fadeInZoom 1.5s ease-out;
}

#open-button:hover {
  transform: scale(1.1);
  transition: all 1s ease;
}

@media (max-width: 600px) {
  #center-image {
    max-width: 200px;
    width: 70%;
  }

  #bottom-section {
    max-width: 90%;
  }
}

/* Invitation page styles merged below */

html.invitation-page,
body.invitation-page {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Siemreap", sans-serif;
  font-weight: 400;
  font-style: normal;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  /* Keeps background fixed during scroll */
  background-position: center center;
  color: white;
  overflow-y: auto;
  /* Enables vertical scrolling */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* Align content to top */
  text-align: center;
}

#invitation-container {
  border-radius: 15px;
  padding: 40px 30px;
  max-width: 500px;
  user-select: none;
  font-family: "Siemreap", sans-serif;
  color: #000000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* aligns content toward top, not middle */
  align-items: center;
  text-align: center;
  margin: 24px auto 0 auto;
  /* centers container horizontally, with 100px top margin */
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#invitation-container h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  /* removes bold */
  /* color: rgb(255, 0, 136); */
  color: #db9b0f;
  font-family: "Moul", serif;
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 0 #decc86, 2px 2px 2px #fdffed, 0 0 6px #f2e4e8;
  /* text-shadow: 1px 1px 0 #fff8dc; */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-text-stroke: 0.2px #b3b3b3;
}

#invitation-container h5 {
  font-size: 1.5rem;
  margin: 0.5rem 0 1.5rem 0;
  font-weight: 600;
  color: #000000;
  line-height: 1.3;
}

#invitation-container .names {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1rem 0 2rem 0;
  color: #000000;
  line-height: 1.4;
}

#invitation-container .details {
  font-size: 1.2rem;
  font-family: "Battambang", system-ui;
  font-weight: 500;
  line-height: 1.5;
  color: #000000;
  text-shadow: 0 0 4px rgb(255, 255, 255);
  /* soft glow */
}

#invitation-container .highlight {
  font-weight: 700;
  color: #a05252;
}

#invitation-container h1,
#invitation-container p,
#invitation-container img {
  margin: 0;
  padding: 0;
}

.grid-pair {
  display: grid;
  font-size: 1rem;
  font-family: "Koulen", serif;
  color: #000000;
  text-shadow: 0 0 4px rgb(255, 255, 255);
  /* soft glow */
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
}

.nametag {
  font-family: "Koulen", serif;
  color: #000000;
  font-size: 1rem;
  font-weight: 400;
  text-shadow: 0 0 4px rgb(255, 255, 255);
  /* soft glow */
}

.couple {
  font-size: 1.4rem;
  color: #db9b0f;
  font-weight: 400;
  font-family: "Moul", serif;
  text-align: center;
  text-shadow: 1px 1px 0 #fff8dc;
}

.grid-pair span:nth-child(odd) {
  text-align: left;
}

.grid-pair span:nth-child(even) {
  text-align: right;
}

.name-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.name-row {
  display: flex;
  font-family: "Bokor", "Battambang", serif;
  justify-content: center;
  gap: 4rem;
  /* Adjust spacing between columns */
  font-size: 20px;
  color: #000000;
  text-align: center;
}

.name-row span {
  min-width: 140px;
  /* Ensures consistent column width */
  text-align: center;
}

.invitation-message {
  font-family: "Siemreap", sans-serif;
  color: #000000;
  text-shadow: 0 0 4px rgb(255, 255, 255);
  /* soft glow */
  font-size: 16px;
}

.names {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0;
  padding: 0;
}

#center-image {
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  display: block;
}

.name-grid {
  margin: 0;
  padding: 0;
}

#map-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.362);
  /* ✅ transparent background */
  color: #db9b0f;
  text-decoration: none;
  width: 100%;
  max-width: 120px;
  margin: 20px auto 0 auto;
  border: 2px solid #db9b0f;
  /* Optional: add border for visibility */
  transition: background-color 0.3s ease;
}

#map-button:hover {
  background-color: rgba(255, 255, 255, 0.848);
  /* subtle hover effect */
}

.map-icon {
  width: 24px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  flex-shrink: 0;
}



@media (max-width: 600px) {
  #center-image {
    max-width: 180px;
    width: 70%;
  }
}

@media (min-width: 1024px) {
  #center-image {
    max-width: 220px;
    width: 40%;
  }
}

.gallery {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
  font-family: "Siemreap", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.gallery h3 {
  text-align: center;
  font-family: "Moul", serif;
  font-size: 1.9rem;
  font-weight: 400;
  margin-bottom: 0;
  color: #db9b0f;
  text-shadow: 1px 1px 0 #decc86, 2px 2px 2px #fdffed, 0 0 6px #f2e4e8;
}

.gallery-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  align-items: stretch;
  /* ✅ ensures equal height alignment */
}

.gallery-row.flipped {
  flex-direction: row-reverse;
}

/* =========================
   FULLSCREEN GALLERY NAV
========================= */

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
  z-index: 10000;
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.gallery-prev {
  left: 20px;
}

.gallery-next {
  right: 20px;
}

.gallery-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 34px;
  color: #fff;
  cursor: pointer;
  z-index: 10001;
}

@media (max-width: 600px) {
  .gallery-nav {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }
}

/* =========================
   FULLSCREEN GALLERY ENHANCEMENTS
========================= */

/* Smooth slide animation */
.fullscreen-image {
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.slide-left {
  transform: translateX(-40px);
  opacity: 0;
}

.slide-right {
  transform: translateX(40px);
  opacity: 0;
}

/* Photo counter */
.gallery-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1rem;
  font-family: "Battambang", sans-serif;
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 14px;
  border-radius: 999px;
  user-select: none;
}

/* Improve touch behavior */
.fullscreen-overlay {
  touch-action: pan-y;
}

.portrait {
  width: 45%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.landscape-stack {
  width: 55%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}

.landscape {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.fullscreen-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

#click-hand {
  position: absolute;
  right: calc(50% - 70px);
  /* much closer to center */
  top: calc(100% - 80px);
  /* slightly lower */
  width: 76px;
  pointer-events: none;
  opacity: 0.9;
  animation: floatUpDown 2s ease-in-out infinite;
}

@keyframes floatUpDown {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0);
  }
}

.magic-burst {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 160px;
  height: 160px;
  margin-left: -80px;
  margin-top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 215, 0, 0.5) 40%,
      rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  z-index: 999;
  pointer-events: none;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

/* Fade transition classes */
.fade-out {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade-in {
  opacity: 1;
  transition: opacity 0.6s ease;
}

#page-container,
#invitation-container {
  opacity: 1;
}

@keyframes shimmerTrail {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

#invitation-container {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

#invitation-container.fade-in {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease;
}

#page-container.fade-out {
  opacity: 0;
  transition: opacity 0.6s ease;
}

#invitation-container {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
}

#invitation-container.fade-in {
  opacity: 1;
  visibility: visible;
}

.magic-burst {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 160px;
  height: 160px;
  margin-left: -80px;
  margin-top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 215, 0, 0.5) 40%,
      rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  z-index: 999;
  pointer-events: none;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

.fullscreen-overlay {
  transition: background-color 0.4s ease;
}

#page-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: visible;
  z-index: 3;
}

.gallery img {
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.gallery img.visible {
  opacity: 1;
}

.gallery-row {
  contain: layout paint;
  /* ✅ isolates rendering */
}

#countdown-section {
  padding: 2rem;
  border-radius: 20px;
  width: 80%;
  max-width: 420px;
  text-align: center;
  margin: 2.5rem auto;

  background-color: rgba(255, 255, 255, 0.25);
  border: 2px solid #db9b0f;
  box-shadow: 0 0 12px rgba(219, 155, 15, 0.25);
}

#countdown-section span {
  display: block;
  font-size: 1rem;
  color: #db9b0f;
  font-family: "koulen", sans-serif;
}

#countdown-days {
  font-size: 5rem;
  font-family: "Moul", serif;
  color: #db9b0f;
  margin: 0.5rem 0;
  line-height: 1;
}

.underline-span {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid #db9b0f;
}

/* ===== Location Section ===== */
#iscreen-location {
  text-align: center;
  margin: 2.5rem auto;
  width: 100%;
  max-width: 960px;
  /* same width as gallery */
}

/* Title with underline */
.location-title {
  font-family: "Moul", serif;
  font-weight: 400;
  text-align: center;
  font-size: 1.9rem;
  color: #db9b0f;
  margin: 2.8rem 0 1.6rem;
  text-shadow: 1px 1px 0 #decc86, 2px 2px 2px #fdffed, 0 0 6px #f2e4e8;
}

.location-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  margin: 6px auto 0;
  background-color: #db9b0f;
  border-radius: 2px;
}

/* ===== Map Container ===== */
.map-frame {
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
  position: relative;
}

/* Map iframe */
.map-frame iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

/* ===== Dark Mode Overlay ===== */
.map-frame.dark-map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ===== Open Map Button ===== */
.open-map-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #db9b0f;
  border: 2px solid #db9b0f;
  border-radius: 8px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.85);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.open-map-btn:hover {
  background: white;
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .map-frame iframe {
    height: 240px;
  }
}

#floating-contact {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Dim when scrolled */
body.scrolled #floating-contact {
  opacity: 0.6;
  transform: scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* ✅ Hover should ALWAYS restore to normal */
body.scrolled #floating-contact:hover {
  opacity: 1;
  transform: scale(1);
}

/* ✅ Force normal when user interacts */
#floating-contact.active {
  opacity: 1 !important;
  transform: scale(1) !important;
}

.float-label {
  font-size: 0.9rem;
  color: #db9b0f;
  background-color: rgb(255, 255, 255);
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
  white-space: nowrap;

  margin: 20px auto 0 auto;
  border: 2px solid #db9b0f;
}

.float-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

/* ✅ Force phone-menu icons to emoji size */
.phone-menu img.phone-icon {
  width: 14px !important;   /* emoji-sized */
  height: 14px !important;
  border-radius: 50%;

  object-fit: cover;
  box-shadow: none;
}

.float-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.float-btn:hover {
  transform: scale(1.1);
}

#floating-contact {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000; /* ABOVE overlays */
}

.phone-btn {
  position: relative;
  overflow: visible;
}

/* FORCE menu above everything */
.phone-menu {
  position: absolute;
  bottom: 70px;        /* ⬅ open upward (mobile safe) */
  right: 0;
  min-width: 180px;
  align-items: start;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);

  display: none;
  flex-direction: column;
  gap: 8px;

  z-index: 20000;      /* ✅ KEY LINE */
}

/* Grey hover for phone number rows */
.phone-menu a {
  display: flex;
  align-items: center;
  border-radius: 6px;

  transition: background-color 0.15s ease;
}

/* Hover / tap feedback */
.phone-menu a:hover {
  background-color: rgba(0, 0, 0, 0.08); /* soft grey */
}

/* Visible state */
.phone-btn.active .phone-menu {
  display: flex;
}

.phone-menu a {
  font-family: "Battambang", sans-serif;
  font-size: 0.95rem;
  color: #333;
  text-decoration: none;
}


.fullscreen-overlay {
  cursor: zoom-out;
}

.fullscreen-image {
  cursor: default;
}

@keyframes fall {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) translateX(30px) rotate(360deg);
    opacity: 0;
  }
}

body.scrolled #floating-contact {
  opacity: 0.6;            /* reduce visibility */
  transform: scale(0.9);   /* subtle shrink */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* =========================
   FULL HEIGHT STAGE
   (controls LEFT + MIDDLE)
========================= */

.agenda-stage {
  width: 100%;
  max-width: 960px;
  margin: 1.6rem auto;          /* ⬅ reduced from 2.5rem */
  padding: 1rem 1rem;           /* ⬅ reduced from 1.5rem */

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

  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.25);
  border: 2px solid #db9b0f;
  box-shadow: 0 0 12px rgba(219, 155, 15, 0.25);
}

/* =========================
   AGENDA CONTAINER
========================= */

.agenda-timeline {
  width: 100%;
  font-family: "Siemreap", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #3a2a00;
  text-shadow: 0 0 4px rgb(255, 255, 255);
}

/* =========================
   AGENDA TITLES
========================= */

.agenda-title {
  font-family: "Moul", serif;
  font-weight: 400;
  text-align: center;
  font-size: 1.9rem;
  color: #db9b0f;
  margin: 1.6rem 0 1rem;
  text-shadow: 1px 1px 0 #decc86, 2px 2px 2px #fdffed, 0 0 6px #f2e4e8;
}

/* =========================
   TIMELINE (CENTERED COLUMN)
========================= */

.timeline {
  max-width: 560px;
  /* readable column */
  margin: 0 auto 1.5rem;
  /* ✅ horizontally centered */
}

@media (max-width: 600px) {
  .agenda-stage {
    margin: 1.2rem auto;
    padding: 0.9rem 0.75rem;

    box-sizing: border-box; /* ✅ THIS FIXES IT */
  }

  .agenda-title {
    margin: 1.2rem 0 0.8rem;
  }
}

/* =========================
   EVENT ROW
   (ICON CENTERED ✅)
========================= */

.event {
  display: flex;
  align-items: center;
  /* ✅ KEY FIX */
  margin-bottom: 26px;
}

/* =========================
   TIME
========================= */

.time {
  width: 72px;
  text-align: right;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  color: #3a2a00;
  text-shadow: 0 0 4px rgb(255, 255, 255);
  flex-shrink: 0;
}

/* =========================
   CONNECTOR LINE
========================= */

.connector {
  width: 2px;
  height: 30px;
  margin: 0 14px;
  background: linear-gradient(to bottom,
      transparent,
      #db9b0f,
      transparent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* =========================
   ICON (PNG)
========================= */

.icon {
  width: 46px;
  height: 46px;
  margin-right: 16px;

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  /* ✅ no distortion */
  flex-shrink: 0;
}

/* =========================
   TEXT (LEFT ALIGNED)
========================= */

.event p {
  margin: 0;
  text-align: left;
  font-size: 1.1rem;
  color: #6a4b00;
  line-height: 1.7;
}

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

@media (max-width: 600px) {

  .timeline {
    max-width: 100%;
    padding: 0 12px;
  }

  .time {
    width: 58px;
    font-size: 1rem;
  }

  .icon {
    width: 38px;
    height: 38px;
    margin-right: 14px;
  }

  .event {
    margin-bottom: 22px;
  }

  .event p {
    font-size: 1rem;
    line-height: 1.65;
  }
}

/* =========================
   ICON FILES (PNG)
========================= */

.icon01 {
  background-image: url("/icons/icon01.png");
}

.icon02 {
  background-image: url("/icons/icon02.png");
}

.icon03 {
  background-image: url("/icons/icon03.png");
}

.icon04 {
  background-image: url("/icons/icon04.png");
}

.icon05 {
  background-image: url("/icons/icon05.png");
}

.icon06 {
  background-image: url("/icons/icon06.png");
}

.icon07 {
  background-image: url("/icons/icon07.png");
}

.icon08 {
  background-image: url("/icons/icon08.png");
}

.icon09 {
  background-image: url("/icons/icon09.png");
}

body.lock-scroll {
  overflow: hidden;
  height: 100vh;
}

body.invitation-page #page-container {
  display: block;
  /* ✅ stop flex centering */
  height: auto;
  /* ✅ allow natural height */
  min-height: 100vh;
}

body.invitation-page #invitation-container {
  margin-top: 0;
  /* ✅ ensure starts at top */
}