@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@200;300;400;500;600&display=swap');

:root {
  /* Color Palette */
  --sage-green: #637865;
  --sage-dark: #3a493c;
  --sage-light: #eef2ef;
  --sage-ultra-light: #f7f9f7;
  
  --champagne: #c5a363;
  --champagne-dark: #a88546;
  --champagne-light: #f6efe0;
  
  --blush: #e2b3a8;
  --rose: #be7a6f;
  
  --text-dark: #222a23;
  --text-mid: #556056;
  --text-light: #8fa091;
  --border: rgba(99, 120, 101, 0.15);
  --border-gold: rgba(197, 163, 99, 0.3);
  
  /* Font Stacks */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;
  
  /* Layout Constants */
  --container-width: 1100px;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-subtle: 0 10px 30px rgba(99, 120, 101, 0.05);
  --shadow-medium: 0 15px 35px rgba(34, 42, 35, 0.08);
}

/* --- RESET & BASICS --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--sage-ultra-light);
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* --- GLOBAL LAYOUTS --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 30px;
}

section {
  padding: 100px 0;
  position: relative;
}

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

/* --- DESIGN ELEMENTS --- */
.section-subtitle {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 15px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 25px;
}

.section-title em {
  font-style: italic;
  color: var(--rose);
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 30px auto 40px;
}

.divider span {
  display: block;
  height: 1px;
  width: 60px;
  background: var(--border-gold);
}

.divider i {
  color: var(--champagne);
  font-size: 0.6rem;
  transform: rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--champagne);
  display: inline-block;
  opacity: 0.8;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 15px 40px;
  border: 1px solid var(--champagne);
  background: transparent;
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: var(--transition-smooth);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--champagne);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: -1;
}

.btn:hover {
  color: white !important;
  border-color: var(--champagne);
}

.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-primary {
  background: var(--sage-green);
  color: white;
  border-color: var(--sage-green);
}

.btn-primary::before {
  background: var(--sage-dark);
}

.btn-primary:hover {
  border-color: var(--sage-dark);
}

/* --- NAVIGATION --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 100;
  background: transparent;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(247, 249, 247, 0.9);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: 1px;
}

.logo span {
  font-style: italic;
  color: var(--rose);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding: 5px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--champagne);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-dark);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* --- HERO --- */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--sage-light);
  overflow: hidden;
}

/* Fading Background Slideshow */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  transform: scale(1.05);
  transition-property: opacity, transform;
}

.hero-slide.active {
  opacity: 0.28;
  transform: scale(1);
  transition: opacity 1.5s ease-in-out, transform 8s linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 30%, rgba(238, 242, 239, 0.75) 90%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  animation: slideUpHero 1.5s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

.hero-logo {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--champagne-light);
  box-shadow: var(--shadow-subtle);
  margin: 0 auto 25px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 25px;
}

.hero-names {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 30px;
  letter-spacing: -0.02em;
}

.hero-names span {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2rem, 6vw, 4.5rem);
  color: var(--rose);
  line-height: 0.9;
  margin: 5px 0;
}

.hero-date {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text-mid);
  margin-bottom: 8px;
}

.hero-venue {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 40px;
}

/* --- COUNTDOWN TIMER --- */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  min-width: 80px;
  padding: 15px 10px;
  border-radius: 4px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.countdown-item:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-5px);
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--sage-dark);
  display: block;
  line-height: 1;
  margin-bottom: 5px;
}

.countdown-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  display: block;
}

/* --- OUR STORY --- */
.story-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.story-intro {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-mid);
  margin-bottom: 50px;
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 60px auto 0;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-gold);
  transform: translateX(-50%);
}

.timeline-item {
  margin-bottom: 60px;
  position: relative;
  width: 50%;
  padding: 0 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-badge {
  position: absolute;
  top: 5px;
  left: 100%;
  width: 14px;
  height: 14px;
  background: var(--champagne);
  border: 3px solid var(--sage-ultra-light);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.timeline-item:nth-child(even) .timeline-badge {
  left: 0;
}

.timeline-date {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 500;
  color: var(--rose);
  margin-bottom: 10px;
  display: block;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* --- THE EVENT --- */
.event {
  background: var(--sage-light);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.event-card {
  background: white;
  border-radius: 6px;
  padding: 50px 40px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: var(--transition-smooth);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.event-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  pointer-events: none;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
  border-color: var(--champagne-light);
}

.event-icon {
  font-size: 2.2rem;
  color: var(--champagne);
  margin-bottom: 25px;
}

.event-card h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.event-meta {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 25px;
}

.event-meta li {
  margin-bottom: 8px;
}

.event-meta strong {
  color: var(--text-dark);
  font-weight: 500;
}

.event-address {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 30px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-card .btn {
  padding: 10px 25px;
  font-size: 0.65rem;
}

/* --- WEDDING PARTY --- */
.party-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}

.party-tab-btn {
  background: white;
  border: 1px solid var(--border);
  padding: 12px 30px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 30px;
  color: var(--text-mid);
  transition: var(--transition-smooth);
}

.party-tab-btn.active, .party-tab-btn:hover {
  background: var(--sage-green);
  color: white;
  border-color: var(--sage-green);
  box-shadow: var(--shadow-subtle);
}

.party-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.party-grid.hidden {
  display: none;
}

.party-card {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: var(--transition-smooth);
  text-align: center;
  position: relative;
}

.party-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.party-img-wrapper {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.party-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.party-card:hover .party-img {
  transform: scale(1.08);
}

.party-info {
  padding: 20px 15px;
}

.party-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.party-role {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--champagne);
}

/* --- PHOTO GALLERY --- */
.gallery {
  background: var(--sage-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
  transition: var(--transition-smooth);
}

/* Create varying shapes for grid */
.gallery-item.row-2 { grid-row: span 2; }
.gallery-item.col-2 { grid-column: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(99, 120, 101, 0.4);
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery-hover-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  font-size: 2rem;
  color: white;
  opacity: 0;
  z-index: 5;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item:hover .gallery-hover-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* --- GIFTS & REGISTRY --- */
.gifts-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.gifts-text {
  text-align: left;
}

.gifts-text p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 25px;
}

.registry-card {
  background: white;
  border-radius: 6px;
  border: 1px solid var(--border);
  padding: 40px;
  box-shadow: var(--shadow-subtle);
  position: relative;
  text-align: center;
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto;
}

.registry-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  pointer-events: none;
}

.registry-header {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 25px;
}

.registry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.registry-row:last-child {
  border-bottom: none;
}

.registry-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
}

.registry-value {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--champagne);
  transition: var(--transition-smooth);
}

.copy-btn:hover {
  color: var(--rose);
  transform: scale(1.1);
}

/* --- FAQ ACCORDION --- */
.faq {
  background: var(--sage-light);
}

.faq-wrapper {
  max-width: 800px;
  margin: 40px auto 0;
}

.faq-accordion {
  border-radius: 6px;
  overflow: hidden;
}

.faq-item {
  background: white;
  border-bottom: 1px solid var(--sage-light);
  transition: var(--transition-smooth);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-trigger {
  width: 100%;
  padding: 24px 30px;
  background: white;
  border: none;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.faq-trigger::after {
  content: '+';
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--champagne);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-trigger {
  color: var(--sage-dark);
}

.faq-item.active .faq-trigger::after {
  content: '-';
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 30px;
}

.faq-item.active .faq-content {
  max-height: 250px;
  padding-bottom: 25px;
}

.faq-content p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.8;
}

/* --- RSVP FORM --- */
.rsvp-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-subtle);
  padding: 50px 40px;
  position: relative;
}

.rsvp-wrapper::before {
  content: '';
  position: absolute;
  inset: 15px;
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  pointer-events: none;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
  z-index: 5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-dark);
  background: var(--sage-ultra-light);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--champagne);
  background: white;
  box-shadow: 0 0 0 3px rgba(197, 163, 99, 0.1);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23637865' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 15px;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.radio-group {
  display: flex;
  gap: 30px;
  margin-top: 10px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.radio-input {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--champagne);
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.radio-input:checked {
  background: var(--champagne);
}

.radio-input:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

.form-alert {
  padding: 15px;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 25px;
  display: none;
}

.form-alert.success {
  background: #e1efe2;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
}

.form-alert.error {
  background: #fbe9e7;
  color: #c62828;
  border: 1px solid #ffccbc;
}

/* --- GUESTBOOK WISHES --- */
.guestbook {
  background: var(--sage-ultra-light);
  border-top: 1px solid var(--border);
}

.guestbook-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.wishes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 50px;
  max-height: 500px;
  overflow-y: auto;
  padding: 10px;
}

.wish-card {
  background: white;
  border-radius: 6px;
  padding: 30px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  transition: var(--transition-smooth);
}

.wish-card::before {
  content: '“';
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--sage-light);
  line-height: 1;
}

.wish-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.wish-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.wish-author {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-dark);
}

.wish-date {
  font-size: 0.65rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 3px;
  display: block;
}

/* --- LIGHTBOX OVERLAY --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(34, 42, 35, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 85%;
  max-height: 80vh;
  position: relative;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border: 4px solid white;
  border-radius: 4px;
  box-shadow: var(--shadow-medium);
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: -10px;
  font-size: 2.2rem;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  transition: var(--transition-smooth);
}

.lightbox-nav:hover {
  color: var(--champagne);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

/* --- FOOTER --- */
footer {
  background: var(--sage-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 80px 0 40px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--champagne-light);
  margin-bottom: 15px;
  font-weight: 300;
}

.footer-logo span {
  font-style: italic;
  color: var(--blush);
}

.footer-hashtag {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--champagne);
  margin-bottom: 30px;
  letter-spacing: 0.1em;
  font-style: italic;
}

.footer-info {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 2;
  margin-bottom: 40px;
}

.footer-copy {
  font-size: 0.68rem;
  opacity: 0.5;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
}

/* --- ANIMATIONS & SHOW-REVEAL --- */
@keyframes slideUpHero {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 1s cubic-bezier(0.25, 0.8, 0.25, 1), transform 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .wishes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.05);
    flex-direction: column;
    padding: 100px 40px;
    gap: 30px;
    transition: 0.5s ease;
    z-index: 99;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .mobile-nav-toggle {
    display: block;
    z-index: 101;
  }
  
  .event-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 40px auto 0;
  }
  
  .party-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  
  .gifts-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .gifts-text {
    text-align: center;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    text-align: left !important;
    padding-left: 50px;
    padding-right: 0;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-badge {
    left: 20px !important;
  }
  
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

@media (max-width: 480px) {
  .party-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item.col-2 {
    grid-column: span 1;
  }
  
  .countdown-container {
    gap: 10px;
  }
  
  .countdown-item {
    min-width: 65px;
    padding: 10px 5px;
  }
  
  .rsvp-wrapper {
    padding: 35px 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .wishes-grid {
    grid-template-columns: 1fr;
  }
}
