/* Elegant & Romantic theme - Burgundy #800020 */
:root {
  --burgundy: #800020;
  --muted: #f6eef0;
  --accent: #a03040;
  --text: #2b2b2b;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0,0,0,0.08);
}

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

body {
  position: relative;
  overflow-x: hidden;
  font-family: 'Playfair Display', serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--muted), #fff);
  line-height: 1.6;
  opacity: 0;
  animation: pageFadeIn 0.9s ease forwards;
}

/* smooth fade */
@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.header h2 {
	font-size: 1.3rem;
    letter-spacing: 2px;
	height: 10vh;
}

.header {
  height: 110vh;
  position: relative;
  background:
    linear-gradient(rgba(128, 0, 32, 0.5), rgba(0, 0, 0, 0.4)),
    url('./assets/wedding-bg.jpg') center center / cover no-repeat;
  color: #fff;
  padding: 6rem 1rem 4rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 80vh;
  background-attachment: scroll;
  background-color: var(--muted); /* fallback */
  margin-bottom: -35px;
}

@keyframes headerZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.20);
  }
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(128, 0, 32, 0.5), rgba(0, 0, 0, 0.4)),
    url('./assets/wedding-bg.jpg') center center / cover no-repeat;
  z-index: 0;
  animation: headerZoom 15s ease-in-out infinite alternate;
}

.header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(255, 255, 255, 1) 90%
  );
  z-index: 1;
}

.header .container {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

/* Name Animation */
#headerName {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.5s ease forwards;
}

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

@media (max-width: 768px) {
  .header {
    min-height: 60vh;
    padding: 4rem 1rem 2rem;
  }

  /* Control background zoom on mobile */
  .header::before {
    transform: scale(1); /* no extra zoom on mobile */
    background-position: center center;
	transform: scale(1.20);
  }
  
  #headerName {
    display: flex;
	font-size: 4rem !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.1;   	/* tight vertical */
  }

  #headerName span {
    display: block;
    margin: 0;    
  }
}

#headerName {
   font-family: 'Great Vibes', cursive;
   color: #fff;
   text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
   letter-spacing: 1px;
   margin-bottom: 0.6rem;
   font-size: 5rem;
}

.header .lead {
  font-family: 'Dancing Script', 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.5;
  opacity: 0.95;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

/* RSVP SECTION */

.rsvp-intro {
  text-align: center;
  animation: fadeIn 0.6s ease;
}

.rsvp-intro h3 {
  font-family: 'Dancing Script', 'Playfair Display', serif;
  color: #800020;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.rsvp-intro p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.rsvp-deadline {
  margin: 1rem 0 1rem;
  color: #555;
}

/* Smooth Transition */
.fade-out {
  animation: fadeOut 0.5s ease forwards;
}

.fade-in {
  animation: fadeSlideUp 0.7s ease forwards;
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-15px); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

.rsvp {
  text-align: center; 
  padding: 2rem;
  position: relative;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-sub {
  color: #777;
  margin-bottom: 2rem;
}

.rsvp-search input {
  width: 100%;
  padding: 0.8rem;
  border-radius: 30px;
  border: 1px solid #ddd;
  outline: none;
  font-size: 1rem;
  text-align: center;
  transition: 0.3s;
}

.rsvp-search input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 10px rgba(212,175,55,0.2);
}

.rsvp-result {
  display: none;
  margin-top: 2rem;
  animation: fadeIn 0.6s ease forwards;
}

.rsvp-result input,
.rsvp-result textarea {
  width: 100%;
  box-sizing: border-box; /* important fix */
}

textarea {
  resize: none;
  height: 70px;
}

.attend-text {
  margin-top: 1.5rem;
}

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

.btn {
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.btn.yes {
  background: #d4af37;
  color: white;
}

.btn.no {
  background: #d4af37;
  color: white;
}

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

#nameList {
  text-align: left;
}

.name-option {
  padding: 0.6rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: 0.2s;
}

.name-option:hover {
  background: #f5f5f5;
}

#rsvpMessage {
  white-space: pre-line;
}

/* MODAL */

.rsvp-modal {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  z-index: 10;
}

.rsvp-modal-content {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

/* Suggestions Dropdown */
.suggestions {
  text-align: left;
  border-radius: 10px;
  overflow: hidden;
}

.suggestion-item {
  padding: 0.6rem;
  border: 1px solid #eee;
  cursor: pointer;
  background: white;
}

.suggestion-item:hover {
  background: #f5f5f5;
}

#guestLimitMsg {
  display: block;
  margin-top: 5px;
  color: #999;
  font-size: 0.85rem;
}

/* ANIMATION */

@keyframes fadeIn {
  from {opacity:0; transform:translateY(15px);}
  to {opacity:1; transform:translateY(0);}
}

/* Layout row for inputs */
.form-row {
  display: flex;
  gap: 1rem;
  margin-top: 0.8rem;
}

.form-row input,
.form-row textarea {
  flex: 1;
  padding: 0.8rem;
  border-radius: 30px;
  border: 1px solid #ddd;
  outline: none;
  font-size: 1rem;
  text-align: center;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }
  #guestNames {
   font-size: 0.95rem;
  }

  #guestNames::placeholder {
    font-size: 0.9rem;
  }
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Cards */
.card {
  padding: 1.8rem 1.5rem; /* Inner space */
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  box-sizing: border-box;
}

/* Cards */
.card #entourage {
  padding: 1.8rem 1.5rem; /* Inner space */
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  box-sizing: border-box;
}

/* Make sure cards don’t collapse on small screens */
@media (max-width: 768px) {
  .card {
    padding: 1.5rem 1.2rem;
  }
}

/* Combined Event Details Section */
.event-details {
  text-align: center;
  padding: 2rem 1.5rem;
}

.event-title {
  font-family: 'Great Vibes', cursive;
  color: var(--burgundy);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

#event-txt {
	font-size: 2.5rem;
    font-family: 'Great Vibes', cursive;
}

#gallery-txt {
	font-size: 2.5rem;
    font-family: 'Great Vibes', cursive;
}

#entourage-txt {
	font-size: 2.5rem;
    font-family: 'Great Vibes', cursive;
}

.event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  justify-items: center;
}

@media(min-width: 768px) {
  .event-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 2.5rem;
  }
}

/* Calendar Styles */
.calendar-container {
  width: 100%;
  max-width: 500px;
}

.calendar-container .subheading {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--burgundy);
  margin-bottom: 1rem;
  font-weight: 1000;
}

/* Venue Styles */
.venue-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.venue-container .venue-box {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  width: 100%;
  box-sizing: border-box;
}

/* Space between the two boxes only */
.venue-container .venue-box + .venue-box {
  margin-top: 1.5rem; /* 👈 adds space only between cards */
}

.venue-container .card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Optional: make spacing a little larger on small devices */
@media (max-width: 600px) {
  .venue-ceremony-container {
    gap: 2.5rem;
  }
}

.venue-container .subheading {
  color: var(--burgundy);
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  margin-bottom: 1rem; /* 👈 reduced space below heading */
}

.venue-box {
  background: #fff8f9;
  border: 1px solid rgba(128,0,32,0.15);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 25px rgba(128,0,32,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.venue-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(128,0,32,0.12);
}

.venue-box .icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 0.6rem;
}

.venue-title {
  font-family: 'Playfair Display', serif;
  color: var(--burgundy);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.venue-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #5a1e30;
  margin-bottom: 0.5rem;
}

.venue-note {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--accent);
}

.btn-map {
  display: inline-block;
  background: var(--burgundy);
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.btn-map:hover {
  background: var(--accent);
}

/* Hero flex for larger screens */
.hero-flex {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

/* Countdown */
.countdown {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.countdown .pill {
  background: rgba(255,255,255,0.15);
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  min-width: 72px;
  text-align: center;
  backdrop-filter: blur(5px);
  color: #fff;
}

/* Section headings */
h2.section {
  color: var(--burgundy);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.6rem;
  margin: 0 0 1rem 0;
}

/* Dress Code Section */
#dress-code ul {
  list-style: disc inside;
  padding-left: 0.5rem;
}

.palette {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.swatch {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  border: 1px solid #eee;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.swatch:hover {
  transform: scale(1.1);
}

/* RSVP Form */
.rsvp-form input,
.rsvp-form textarea,
.rsvp-form select {
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #e6dede;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  background: var(--burgundy);
  color: white;
  border: none;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.3s;
}

/* Centered two-column grid */
.grid-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  align-items: start;
  justify-content: center;
}

.center-grid {
  justify-items: center;
}

@media (max-width: 480px) {
	
  #col-title {
    display: grid;
    grid-template-columns: 1fr 1fr; /* keep 2 columns */
    gap: 8px;
  }
  
  .grid-two-col p {
    font-size: 0.9rem;
  }
  
  .grid-two-col h3 {
	font-size: 2rem; 
  }
}

/* 🌹 Elegant Burgundy Reminder Section */
.reminder {
  background: #fff;
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.reminder-title {
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  font-style: italic;
  color: var(--burgundy);
  margin-bottom: 0.5rem;
}

.divider {
  width: 90px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--burgundy), transparent);
  margin: 0.75rem auto 1.5rem;
}

.reminder-intro {
  font-style: italic;
  font-size: 1.05rem;
  color: #333;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* 💐 Balanced Elegant Reminder Section */
.reminder {
  background: #fff;
  border-radius: 20px;
  padding: 3.2rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(128, 0, 32, 0.08);
}

.reminder-title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-style: italic;
  color: var(--burgundy);
  margin-bottom: 0.6rem;
}

.divider {
  width: 90px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--burgundy), transparent);
  margin: 0.8rem auto 1.6rem;
}

.reminder-intro {
  font-style: italic;
  font-size: 1.05rem;
  color: #333;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* Grid layout */
.reminder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.75rem;
  justify-items: center;
}

/* Balanced box design */
.reminder-box {
  background: #fff8f9; /* soft neutral blush */
  border: 1px solid rgba(128, 0, 32, 0.15);
  border-radius: 16px;
  padding: 1.8rem 1.2rem;
  box-shadow: 0 4px 15px rgba(128, 0, 32, 0.07);
  color: var(--burgundy);
  transition: all 0.3s ease;
  max-width: 340px;
}

.reminder-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(128, 0, 32, 0.12);
  background: #fdf2f4;
}

.reminder-box h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-style: italic;
  color: var(--burgundy);
  letter-spacing: 0.3px;
}

.reminder-box .subtext {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  color: #5a1e30;
  line-height: 1.65;
  margin: 0;
}

.reminder-footer {
  margin-top: 2.7rem;
  font-style: italic;
  color: var(--burgundy);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-size: 1.05rem;
}

.card, .reminder {
  display: block !important;
  opacity: 1 !important;
}

/* Responsive balance */
@media (max-width: 600px) {
  .reminder {
    padding: 2rem 1.2rem;
  }
  .reminder-box {
    padding: 1.4rem;
  }
  .reminder-title {
    font-size: 1.6rem;
  }
}

.btn:hover {
  background: var(--accent);
}

/* Footer */
.footer {
  background: var(--burgundy);
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* Audio control */
.audio-control {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

/* Small muted text */
.small-muted {
  font-size: 0.9rem;
  color: #fff;
}

/* -------------------------------------- */

/* 💒 Wedding Date Calendar */
.calendar-section {
  text-align: center;
}

.calendar {
  background: #fff8f9;
  border-radius: var(--radius);
  border: 2px solid rgba(128, 0, 32, 0.1); /* soft burgundy border */
  padding: 1.5rem;
  box-shadow: 0 6px 25px rgba(128, 0, 32, 0.08);
  max-width: 520px;
  margin: 0 auto;
}

.calendar-header {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--burgundy);
  margin-bottom: 1rem;
  font-style: italic;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
  font-family: "Inter", sans-serif;
}

.calendar-grid div {
  background: #fff;
  padding: 0.5rem 0;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
}

.calendar-grid div:nth-child(-n+7) {
  font-weight: 600;
  color: var(--burgundy);
  background: none;
}

.calendar .prev-month {
  color: #ccc;
}

.special-day {
  background: var(--burgundy);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  line-height: 25px;
  margin: 0 auto;
  box-shadow: 0 0 10px rgba(128, 0, 35, 0.5);
  animation: pulse 2s infinite ease-in-out;
}

/* Pulse animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(128, 0, 35, 0.4);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 18px rgba(128, 0, 35, 0.7);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(128, 0, 35, 0.4);
  }
}

.calendar-footer {
  margin-top: 1rem;
  font-family: "Playfair Display", serif;
  color: var(--burgundy);
  font-style: italic;
}

/* 💒 Venue & Time Section */

.venue-time {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;  /* centers horizontally */
  justify-content: center;  /* centers vertically if space allows */
  text-align: center;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.venue-time h2 {
  margin-bottom: 1.5rem;
  color: var(--burgundy);
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
}

.venue-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem; /* Adds nice space between cards */
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

/* Keep both cards same width and centered */
.venue-grid .card {
  width: 100%;
  box-sizing: border-box;
}

.venue-box {
  text-align: center;
  margin: 0 auto;
}

.venue-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(128, 0, 32, 0.12);
}

.venue-box .venue-icon, .time-icon {
  width: 55px;
  height: 55px;
  object-fit: contain;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 2px 4px rgba(128, 0, 32, 0.2));
}

/* VENUE ICON ANIMATION */
.venue-icon {
  animation: jump 2s infinite ease-in-out;
}

@keyframes jump {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* TIME ICON ANIMATION */

.time-icon {
  animation: softRing 1.6s infinite ease-in-out;
  transform-origin: bottom center;
}

@keyframes softRing {
  0% {
    transform: rotate(0);
  }
  20% {
    transform: rotate(-8deg);
  }
  40% {
    transform: rotate(8deg);
  }
  60% {
    transform: rotate(-6deg);
  }
  80% {
    transform: rotate(4deg);
  }
  100% {
    transform: rotate(0);
  }
}

.venue-title {
  font-family: "Playfair Display", serif;
  color: var(--burgundy);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.venue-sub {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: #5a1e30;
  margin-bottom: 0.6rem;
}

.venue-note {
  font-family: "Inter", sans-serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--accent);
}

.map-container {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(128, 0, 32, 0.15);
  margin-top: 0.8rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.btn-map {
  display: inline-block;
  background: var(--burgundy);
  color: #fff;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.btn-map:hover {
  background: var(--accent);
}

@media (max-width: 768px) {
  .venue-time {
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .venue-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 700px;
  }

  .venue-box {
    margin: 0 auto;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .venue-box,
  .venue-details,
  .time-location {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
	justify-content: center;
  }

  .venue-box h3,
  .venue-box p,
  .venue-details h3,
  .venue-details p {
    text-align: center;
    margin: 0.3rem 0;
  }
}

@media (max-width: 768px) {
  .venue-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .venue-left,
  .venue-right {
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* ===== Horizontal Timeline Container ===== */
.timeline-horizontal {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 1.5rem;
  margin-top: 3rem;
}

.timeline-title {
  color: var(--burgundy);
}

.timeline-intro {
  font-style: italic;
  font-size: 1.05rem;
  color: #333;
  max-width: 700px;
  line-height: 1.7;
}

/* Center horizontal line */
.timeline-horizontal::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--burgundy), transparent);
  opacity: 0.4;
}

/* Event block */
.event {
  position: relative;
  text-align: center;
  flex: 1;
}

/* Dot */
.dot {
  width: 10px;
  height: 10px;
  background: var(--burgundy);
  border-radius: 50%;
  margin: 0 auto 8px auto;
  position: relative;
  z-index: 2;
  margin-top: 8px;
}

/* Line under dot (optional subtle touch) */
.line {
  width: 2px;
  height: 18px;
  background: var(--burgundy);
  opacity: 0.3;
  margin: 0 auto 8px auto;
}

/* Icon */
.icon {
  width: 60px;
  margin-bottom: 0.5rem;
}

/* Time */
.time {
  font-weight: bold;
  color: var(--burgundy);
  margin-bottom: 0.25rem;
}

/* ===== Mobile Scroll Version ===== */

@media (max-width: 480px) {

  .timeline-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    justify-items: center;
  }

  .event {
    text-align: center;
    width: 100%;
  }

  /* Remove horizontal line (it looked messy on small screens) */
  .timeline-horizontal::before {
    display: none;
  }
  
  /* Center horizontal line */
.timeline-horizontal::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--burgundy), transparent);
  opacity: 0.4;
}

  .dot {
    margin-top: 4px;
  }

  .icon {
    width: 62px;
  }

  .time {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {

.timeline-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    justify-items: center;
  }

  .event {
    text-align: center;
    width: 100%;
  }

  /* Remove horizontal line (it looked messy on small screens) */
  .timeline-horizontal::before {
    display: none;
  }

  .dot {
    margin-top: 4px;
  }

  .icon {
    width: 62px;
  }

  .time {
    font-size: 0.9rem;
  }
}

/* ============================= */
/* 💌 Envelope Invitation Intro  */
/* ============================= */

.lux-invite {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top left, #8c1f2f, #3a070c);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.lux-invite.zoom {
  animation: envelopeZoom 1s ease forwards;
  pointer-events: none;
}

@keyframes envelopeZoom {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(5);
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .lux-invite.done {
    display: none !important;
  }

  body {
    opacity: 1 !important;
  }

  .header,
  .container,
  section {
    display: block !important;
  }
}

@media (max-width: 768px) {
  .lux-invite.done {
    display: none !important;
  }

  body {
    opacity: 1 !important;
  }

  .header,
  .container,
  section {
    display: block !important;
  }
}

.lux-inner { 
text-align: center; 
color: #f2e8eb; 
padding: 20px; 
}

    .lux-top {
      letter-spacing: 4px;
      font-size: 1.3rem;
      opacity: 0.75;
    }

    .lux-script {
      font-family: 'Great Vibes', cursive;
      font-size: 5rem;
      margin: 10px 0 30px;
    }

    /* ========== ENVELOPE ========== */
.lux-envelope {
  position: relative;
  width: 380px;
  height: 230px;
  margin: 0 auto;
  perspective: 1400px;
  cursor: pointer;
}
	
	@media (max-width: 480px) {
  .lux-envelope {
    width: 320px;
    height: 200px;
  }
}

    .lux-flap {
		position: absolute;
		inset: 0;
		background: linear-gradient(135deg, #8b1f2e, #4a0b12);
		clip-path: polygon(0 0, 100% 0, 50% 55%);
		transform-origin: top;
		transition: transform 1.3s ease;
    }

.lux-wax {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background:
    url('assets/waxlogo.png') center/ 70px 70px no-repeat;
  box-shadow:
    inset 0 3px 5px rgba(255,255,255,0.4),
    0 6px 12px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

    .lux-flowers {
      position: absolute;
      top: 5px;
      right: 5px;
      width: 70px;
      opacity: 0.9;
      pointer-events: none;
    }

    .lux-open {
      margin-top: 28px;
      font-size: 0.75rem;
      letter-spacing: 2px;
      opacity: 0.6;
    }
	
.lux-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('assets/paper-texture.png');
  opacity: 0.08;
  mix-blend-mode: overlay;
  border-radius: 12px;
}
	
.lux-body::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1.5px solid rgba(212,175,55,0.6); /* soft gold */
  border-radius: 10px;
  pointer-events: none;
}

.lux-corner {
  position: absolute;
  width: 60px;
  opacity: 0.5;
}

.lux-corner.top-left {
  top: 8px;
  left: 8px;
}

.lux-corner.bottom-right {
  bottom: 8px;
  right: 8px;
  transform: rotate(180deg);
}

.lux-envelope:hover .lux-body {
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}

.lux-envelope:hover {
  filter: drop-shadow(0 0 10px rgba(212,175,55,0.4));
}

.lux-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #7a1a28, #3f060c);
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  overflow: hidden; /* keeps shine inside */
}

.lux-body::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1.5px solid rgba(212,175,55,0.6);
  border-radius: 10px;
  pointer-events: none;
  z-index: 2; /* keep above shine */
}

.lux-body::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.18) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 2;
}

.lux-envelope:hover .lux-body::after {
  animation: shineSweep 1.5s ease forwards;
}

@keyframes shineSweep {
  100% { left: 150%; }
}

    /* ========== ANIMATIONS ========== */
	
.lux-invite.open .lux-flap {
  animation: flapOpen 1.3s cubic-bezier(.68,-0.55,.27,1.55) forwards;
}

@keyframes flapOpen {
  0%   { transform: rotateX(0); }
  70%  { transform: rotateX(-175deg); }
  100% { transform: rotateX(-160deg); }
}

.lux-invite.open .lux-wax {
  animation: waxPop 0.5s ease forwards;
}

.lux-invite.open .lux-flowers {
  animation: flowerFall 0.8s ease forwards;
}

@keyframes flowerFall {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(60px) rotate(15deg) scale(0.8);
    opacity: 0;
  }
}

@keyframes waxPop {
  0%   { transform: translateX(-50%) scale(1); opacity: 1; }
  50%  { transform: translateX(-50%) scale(0.9); }
  100% { transform: translateX(-50%) scale(0); opacity: 0; }
}

    .lux-invite.fade {
      opacity: 0;
      pointer-events: none;
      transform: scale(1.03);
    }

@keyframes envelopeFloat {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

.lux-envelope {
  animation: envelopeFloat 4s ease-in-out infinite;
}

    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(16px); }
      to   { opacity: 1; transform: translateY(0); }
    }

@media (max-width: 480px) {
  .lux-envelope {
    width: 260px;
    height: 170px;
  }
}

/* ----------------------------------------------- */

    /* ✨ SCROLL ANIMATION STYLES */
    [data-animate] {
      opacity: 0;
      transform: translateY(40px);
      transition: all 0.8s ease-out;
    }
	[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
    }
    [data-animate].visible {
      opacity: 1;
      transform: translateY(0);
    }
    [data-animate].delay-1 { transition-delay: 0.1s; }
    [data-animate].delay-2 { transition-delay: 0.2s; }
    [data-animate].delay-3 { transition-delay: 0.3s; }

    /* 🌸 Elegant Page Side Gradient */
    body::before, body::after {
      content: "";
      position: fixed;
      top: 0;
      width: 80px;
      height: 100%;
      z-index: -1;
      pointer-events: none;
    }

    /* Left gradient side */
    body::before {
      left: 0;
      background: linear-gradient(to right, rgba(128,0,32,0.2), rgba(255,255,255,0));
      box-shadow: 8px 0 20px rgba(128, 0, 32, 0.1);
    }

    /* Right gradient side */
    body::after {
      right: 0;
      background: linear-gradient(to left, rgba(128,0,32,0.2), rgba(255,255,255,0));
      box-shadow: -8px 0 20px rgba(128, 0, 32, 0.1);
    }

    /* Optional inner glow for a soft, romantic feel */
    html {
      box-shadow: inset 0 0 60px rgba(128,0,32,0.1);
    }

.animate {
  opacity: 1;
  transform: none;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .header {
    background-attachment: scroll;
    background-position: center top;
    background-size: cover;
  }
  
  .hero-flex {
    flex-direction: row;
    gap: 1.25rem;
    align-items: center;
  }

  .grid {
    grid-template-columns: 1fr 420px;
  }

  .header h1 {
    font-size: 3.5rem;
  }

  .header p.lead {
    font-size: 1.3rem;
  }

  .countdown .pill {
    min-width: 80px;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 480px) {
  .header {
    background-attachment: scroll;
    background-position: center top;
    background-size: cover;
  }

  #headerName {
    font-size: 4rem !important;
    line-height: 1.1;
  }

  .header p.lead {
    font-size: 1rem;
  }

  .countdown .pill {
    min-width: 50px;
    padding: 0.5rem 0.7rem;
  }
}

/* MOBILE RESPONSIVE - 480px */
@media (max-width: 480px) {

  .event-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .calendar-container {
    width: 100%;
    max-width: 340px;
  }

  .calendar {
    width: 100%;
    padding: 10px;
  }

  .calendar-header .month {
    font-size: 18px;
    text-align: center;
  }

  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    font-size: 12px;
  }

  .calendar-grid div {
    padding: 6px 0;
  }

  .special-day {
    font-weight: bold;
    border-radius: 6px;
  }

  .calendar-footer p {
    font-size: 13px;
    text-align: center;
  }

  .event-title {
    font-size: 26px;
    text-align: center;
  }

  .subheading {
    font-size: 16px;
    text-align: center;
  }

}

/* ===================================== */
/* 💎 MOBILE PREMIUM DESIGN ENHANCEMENT */
/* ===================================== */

@media (max-width: 768px) {
	
	  /* 🌸 Improve global spacing */
  section {
    padding: 70px 24px;
  }

  /* 🌷 Add soft background depth */
  body {
    background:
      radial-gradient(circle at 20% 10%, rgba(128,0,32,0.08), transparent 40%),
      radial-gradient(circle at 80% 90%, rgba(128,0,32,0.08), transparent 40%),
      linear-gradient(180deg, #faf5f7, #ffffff);
  }

  /* 💌 Header more dramatic */
  .header {
    box-shadow: 0 15px 40px rgba(128,0,32,0.25);
  }

  /* 💖 Header more dramatic */
  #headerName {
    font-size: 3.5rem;
    line-height: 1.1;
  }
  
    .subtext {
    font-size: 1rem;
    opacity: 0.9;
  }
  
    /* ✨ Section titles */
  .section-title {
    font-size: 2.2rem;
    margin-bottom: 25px;
  }

  /* 💎 Cards more breathing room */
  .card,
  .venue-box,
  .reminder-box,
  .timeline-event {
    padding: 24px;
    border-radius: 22px;
  }

  /* ✨ Section titles more elegant */
  .section-title,
  #event-txt,
  #gallery-txt,
  #entourage-txt {
    font-size: 2rem;
    letter-spacing: 1px;
    position: relative;
  }
  
    /* 🌷 Buttons more touch-friendly */
  .btn,
  .btn-map {
    padding: 14px 22px;
    font-size: 1rem;
    border-radius: 30px;
  }

  /* Add decorative underline */
  .section-title::after,
  #event-txt::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    margin: 8px auto 0;
    background: linear-gradient(to right, transparent, var(--burgundy), transparent);
  }

  /* 💐 Reminder boxes softer & elegant */
  .reminder-box {
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(128,0,32,0.12);
  }

  /* 🕯 Venue cards more layered */
  .venue-box {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(128,0,32,0.15);
  }

  /* 💎 Buttons more romantic */
  .btn,
  .btn-map {
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(128,0,32,0.25);
  }

  .btn:active {
    transform: scale(0.96);
  }

  /* 💍 Timeline cards softer */
  .timeline-event {
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(128,0,32,0.12);
  }

  /* 🌸 Add subtle page fade-in */
  body {
    animation: mobileFade 0.8s ease;
  }

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

}

/* ================================= */
/* 🌸 ENHANCED FLOATING PETALS      */
/* ================================= */

.petals {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.petals span {
  position: absolute;
  background: rgba(214, 160, 178, 0.18);
  border-radius: 60% 40% 60% 40%;
  animation: floatPetal linear infinite;
}

/* Different sizes */
.petals span:nth-child(3n) {
  width: 10px;
  height: 14px;
}
.petals span:nth-child(3n+1) {
  width: 14px;
  height: 18px;
}
.petals span:nth-child(3n+2) {
  width: 8px;
  height: 12px;
}

/* Random horizontal positions */
.petals span:nth-child(1)  { left: 5%;  animation-duration: 14s; animation-delay: 0s; }
.petals span:nth-child(2)  { left: 15%; animation-duration: 12s; animation-delay: 2s; }
.petals span:nth-child(3)  { left: 25%; animation-duration: 16s; animation-delay: 4s; }
.petals span:nth-child(4)  { left: 35%; animation-duration: 13s; animation-delay: 1s; }
.petals span:nth-child(5)  { left: 45%; animation-duration: 15s; animation-delay: 3s; }
.petals span:nth-child(6)  { left: 55%; animation-duration: 18s; animation-delay: 5s; }
.petals span:nth-child(7)  { left: 65%; animation-duration: 11s; animation-delay: 6s; }
.petals span:nth-child(8)  { left: 75%; animation-duration: 17s; animation-delay: 2s; }
.petals span:nth-child(9)  { left: 85%; animation-duration: 14s; animation-delay: 4s; }
.petals span:nth-child(10) { left: 95%; animation-duration: 19s; animation-delay: 7s; }
.petals span:nth-child(11) { left: 12%; animation-duration: 16s; animation-delay: 8s; }
.petals span:nth-child(12) { left: 28%; animation-duration: 13s; animation-delay: 9s; }
.petals span:nth-child(13) { left: 52%; animation-duration: 15s; animation-delay: 6s; }
.petals span:nth-child(14) { left: 72%; animation-duration: 12s; animation-delay: 10s; }
.petals span:nth-child(15) { left: 88%; animation-duration: 18s; animation-delay: 11s; }

/* Floating motion */
@keyframes floatPetal {
  0% {
    transform: translateY(-20px) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translateY(50vh) translateX(15px) rotate(180deg);
  }
  100% {
    transform: translateY(100vh) translateX(-20px) rotate(360deg);
    opacity: 0;
  }
}

/* ======================================= */
/* 📱 MOBILE DESIGN UPGRADE (LUXURY FEEL)     */
/* ======================================= */

@media (max-width: 768px) {

  /* ============================== */
  /* GENERAL MOBILE SPACING & TYPO    */
  /* ============================== */

  body {
    font-size: 16px;
    line-height: 1.7;
  }

  h1, h2, h3 {
    line-height: 1.25;
  }

  .container {
    padding: 1.5rem 1rem;
  }

  .section {
    margin-bottom: 1.2rem;
  }

  /* ============================== */
  /* GLASSMORPHISM CARDS               */
  /* ============================== */

  .card,
  .reminder-box,
  .venue-box,
  .timeline-event {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(128, 0, 32, 0.08);
    box-shadow: 0 8px 25px rgba(128, 0, 32, 0.06);
    border-radius: 18px;
  }

  .card {
    padding: 1.6rem 1.2rem;
  }

  /* ============================== */
  /* SECTION DIVIDERS                 */
  /* ============================== */

  .section-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, transparent, #800020, transparent);
    margin: 1.5rem auto;
  }

  /* ============================== */
  /* BUTTONS (MORE PREMIUM)           */
  /* ============================== */

  .btn {
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
  }

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

  /* ============================== */
  /* HEADERS (MOBILE FRIENDLY)         */
  /* ============================== */

  .header {
    min-height: 70vh;
    padding: 4rem 1.2rem 3rem;
  }

  #headerName {
    font-size: 3rem;
    text-align: center;
  }

  .header .lead {
    font-size: 1.05rem;
  }

  /* ============================== */
  /* RSVP SECTION MOBILE              */
  /* ============================== */

  .rsvp-intro h3 {
    font-size: 1.6rem;
  }

  .rsvp-intro p {
    font-size: 1rem;
  }

  .rsvp-search input {
    border-radius: 30px;
    padding: 0.85rem;
  }

  .rsvp-buttons {
    flex-direction: column;
    gap: 0.6rem;
  }

  /* ============================== */
  /* EVENT & VENUE GRID                */
  /* ============================== */

  .event-grid,
  .venue-grid {
    grid-template-columns: 1fr;
  }

  .venue-box {
    margin-bottom: 1rem;
  }

  .venue-title {
    font-size: 1.2rem;
  }

  /* ============================== */
  /* FOOTER MOBILE                    */
  /* ============================== */

  .footer {
    padding: 1.2rem;
    font-size: 0.9rem;
  }

}

.gallery-marquee {
  overflow: hidden;
  max-width: 100%;
  padding: 6px 0;
}

.gallery-track {
  display: inline-flex;
  gap: 6px;
  animation: marquee 30s linear infinite;
}

.gallery-track img {
  width: 280px;        /* bigger preview */
  height: 230px;         /* taller preview */
  object-fit: cover;    /* crops nicely */
  border-radius: 10px;    /* soft corners */
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-track img:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Running animation */
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* MOBILE SMALLER */
@media (max-width: 768px) {
  .gallery-track img {
  width: 220px;        /* bigger preview */
  height: 170px;         /* taller preview */
  object-fit: cover;    /* crops nicely */
  border-radius: 10px;    /* soft corners */
  cursor: pointer;
  transition: transform 0.2s ease;
  
  } 
  
  .gallery-track img:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
}

/* =============================== */
/* 💫 STORY THEME SECTION (PREMIUM) */
/* =============================== */

.story-theme {
  text-align: center;
  position: relative;
}

#story-txt {
  font-family: 'Great Vibes', cursive;
  font-size: 2.8rem;
  color: var(--burgundy);
}

/* GRID */
.story-theme-grid {
  display: grid;
  gap: 2rem;
  position: relative;
}

/* TIMELINE LINE */
.story-theme-grid::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--burgundy), transparent);
  opacity: 0.3;
}

/* STORY CARD */
.story-theme-card {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  background: #fff8f9;
  border: 1px solid rgba(128, 0, 32, 0.15);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: 0 8px 30px rgba(128,0,32,0.08);
  position: relative;
}

/* alternate sides */
.story-theme-card.reverse {
  flex-direction: row-reverse;
}

/* IMAGE */

.story-img img {
  width: 350px;
  height: 230px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: zoom-in;
}

/* Modal background */
#zoom-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;

  /* smooth fade */
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* show modal */
#zoom-modal.active {
  display: flex;
  opacity: 1;
}

/* image zoom effect */
#zoom-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 18px;

  transform: scale(0.8);
  transition: transform 0.35s ease;
}

/* when modal active, zoom in */
#zoom-modal.active img {
  transform: scale(1);
}

/* close button */
#zoom-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: white;
  color: black;
  border: none;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}

/* TEXT */
.story-content {
  text-align: left;
}

.story-content h3 {
  font-family: 'Playfair Display', serif;
  color: var(--burgundy);
  margin-bottom: 0.6rem;
}

.story-content p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #444;
}

/* HOVER */
.story-theme-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(128,0,32,0.12);
}

.story-img:hover {
  transform: scale(1.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* SCROLL FADE */
.story-theme-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.story-theme-card:nth-child(1) { animation-delay: 0.1s; }
.story-theme-card:nth-child(2) { animation-delay: 0.2s; }
.story-theme-card:nth-child(3) { animation-delay: 0.3s; }
.story-theme-card:nth-child(4) { animation-delay: 0.4s; }
.story-theme-card:nth-child(5) { animation-delay: 0.5s; }

/* MOBILE */
@media (max-width: 768px) {

  .story-img img {
  width: 280px;
  height: 190px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: zoom-in;
  }

  .story-theme-grid::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* perfect centering */
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
      to bottom,
      transparent,
      var(--burgundy),
      transparent
    );
    opacity: 0.3;
  }
}

/* MOBILE */
@media (max-width: 480px) {
  .story-theme-card,
  .story-theme-card.reverse {
    flex-direction: column;
    text-align: center;
  }

  .story-img img {
  width: 280px;
  height: 190px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: zoom-in;
  }
  
  .story-theme-grid {
    position: relative; /* IMPORTANT */
  }

  .story-theme-grid::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* perfect centering */
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
      to bottom,
      transparent,
      var(--burgundy),
      transparent
    );
    opacity: 0.3;
  }

  .story-content {
    text-align: center;
  }

 }