/* ============================================
   Emmett & Riley Wedding — Vintage 70s Garden Party
   ============================================ */

:root {
  --cream: #FDF6EC;
  --cream-dark: #F5EBD8;
  --sage: #8B9D77;
  --sage-dark: #6B7D5A;
  --sage-light: #A8B899;
  --terracotta: #C4764E;
  --terracotta-dark: #A85D3A;
  --gold: #B8860B;
  --gold-light: #D4A843;
  --dusty-rose: #C9918A;
  --olive: #4A5D3A;
  --olive-dark: #3A4A2E;
  --espresso: #3E2C23;
  --text: #4A3F35;
  --text-light: #7A6E62;
  --white: #FFFDF8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  color: var(--text);
  background-color: var(--cream);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- Typography ---- */

h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 600;
  line-height: 1.2;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  color: var(--olive-dark);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.section-title.light {
  color: var(--cream);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.15rem;
  font-style: italic;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-subtitle.light {
  color: var(--cream-dark);
}

/* ---- Navigation ---- */

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}

.main-nav.scrolled {
  background: rgba(253, 246, 236, 0.97);
  padding: 0.5rem 0;
  box-shadow: 0 2px 20px rgba(74, 63, 53, 0.1);
  backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  color: var(--cream);
  text-decoration: none;
  transition: color 0.4s;
}

.main-nav.scrolled .nav-logo {
  color: var(--olive-dark);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.main-nav.scrolled .nav-links a {
  color: var(--text);
}

.main-nav.scrolled .nav-links a:hover {
  color: var(--terracotta);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--cream);
  transition: all 0.3s;
}

.main-nav.scrolled .nav-toggle span {
  background: var(--text);
}

/* ---- Hero ---- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(62, 44, 35, 0.3) 0%,
    rgba(62, 44, 35, 0.15) 40%,
    rgba(62, 44, 35, 0.4) 100%
  );
  z-index: 1;
}

.ornate-frame {
  position: relative;
  z-index: 2;
  padding: 3rem;
}

.frame-corner {
  position: absolute;
  width: 80px;
  height: 80px;
  border-color: var(--gold-light);
  opacity: 0.7;
}

.frame-tl {
  top: 0; left: 0;
  border-top: 2px solid;
  border-left: 2px solid;
}

.frame-tr {
  top: 0; right: 0;
  border-top: 2px solid;
  border-right: 2px solid;
}

.frame-bl {
  bottom: 0; left: 0;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.frame-br {
  bottom: 0; right: 0;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

.hero-content {
  text-align: center;
  color: var(--cream);
  padding: 2rem;
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-names {
  margin-bottom: 1rem;
}

.hero-names .name {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 400;
  display: inline-block;
  text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.25);
}

.hero-names .ampersand {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-style: italic;
  margin: 0 0.8rem;
  color: var(--gold-light);
  vertical-align: middle;
}

.hero-divider {
  margin: 1rem auto;
  width: 280px;
}

.floral-divider {
  width: 100%;
  height: auto;
  display: block;
}

/* Brighten for dark backgrounds (footer) */
.floral-divider-light {
  filter: brightness(1.8) saturate(0.5);
  opacity: 0.5;
}

.hero-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.hero-venue {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  opacity: 0.85;
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  border: 1.5px solid var(--gold-light);
  color: var(--cream);
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s;
}

.hero-cta:hover {
  background: var(--gold-light);
  color: var(--espresso);
}

/* ---- Section Divider ---- */

.section-divider {
  text-align: center;
  padding: 1rem 0;
  max-width: 250px;
  margin: 0 auto;
}

/* ---- Sections ---- */

.section {
  padding: 6rem 0;
}

/* ---- Our Story ---- */

.our-story {
  background: var(--cream);
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}

.vintage-frame {
  position: relative;
  padding: 12px;
  background: var(--white);
  box-shadow: 0 8px 40px rgba(74, 63, 53, 0.12);
}

.vintage-frame::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid var(--gold-light);
  pointer-events: none;
  opacity: 0.5;
}

.story-image,
.attire-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

.story-lead {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--olive-dark);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.story-scripture {
  font-style: italic;
  color: var(--text-light);
  border-left: 2px solid var(--sage-light);
  padding-left: 1.2rem;
  margin-top: 1rem;
  line-height: 1.7;
}

.story-text p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* ---- Schedule / Timeline ---- */

.schedule {
  background: var(--white);
  position: relative;
}

.schedule::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--sage-light), transparent);
}

.schedule::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--sage-light), transparent);
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 130px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--sage), transparent);
}

.timeline-event {
  position: relative;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}

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

.timeline-time {
  position: absolute;
  left: -140px;
  top: 4px;
  width: 120px;
  text-align: right;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--terracotta);
  letter-spacing: 0.05em;
}

.timeline-dot {
  position: absolute;
  left: -14px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sage);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--sage);
}

.timeline-details {
  padding-left: 1.5rem;
}

.timeline-details h3 {
  font-size: 1.3rem;
  color: var(--olive-dark);
  margin-bottom: 0.3rem;
}

.timeline-details p {
  font-size: 1.05rem;
  color: var(--text-light);
}

.timeline-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  font-style: italic;
  font-size: 0.95rem !important;
  color: var(--sage-dark) !important;
}

.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---- Travel ---- */

.travel {
  background: var(--cream);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 750px;
  margin: 0 auto;
}

.card {
  background: var(--white);
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid rgba(184, 134, 11, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(74, 63, 53, 0.1);
}

.card-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1.5rem;
  color: var(--sage);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card h3 {
  font-size: 1.3rem;
  color: var(--olive-dark);
  margin-bottom: 0.8rem;
}

.card p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.card-detail {
  font-style: italic;
  font-size: 0.95rem !important;
  color: var(--terracotta) !important;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  background: var(--sage);
  color: var(--white);
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.3s;
}

.card-link:hover {
  background: var(--olive);
}

/* ---- Attire ---- */

.attire {
  background: var(--white);
  position: relative;
}

.attire::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--sage-light), transparent);
}

.attire-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}

.attire-details h3 {
  font-size: 1.8rem;
  color: var(--olive-dark);
  margin-bottom: 1rem;
}

.attire-details p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.attire-group h4 {
  font-size: 1.1rem;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}

.attire-group ul {
  list-style: none;
  padding: 0;
}

.attire-group li {
  padding: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
  font-size: 1.05rem;
}

.attire-group li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

.attire-note {
  font-style: italic;
  color: var(--text-light);
  margin-top: 1rem;
}

/* ---- Registry ---- */

.registry {
  background: var(--cream);
}

.registry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 750px;
  margin: 0 auto;
}

.registry-card {
  display: block;
  background: var(--white);
  padding: 3rem 2rem;
  text-align: center;
  text-decoration: none;
  border: 1px solid rgba(184, 134, 11, 0.15);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.registry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--sage), var(--gold), var(--terracotta));
  transform: scaleX(0);
  transition: transform 0.4s;
}

.registry-card:hover::before {
  transform: scaleX(1);
}

.registry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(74, 63, 53, 0.1);
}

.registry-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1.5rem;
  color: var(--terracotta);
}

.registry-icon svg {
  width: 100%;
  height: 100%;
}

.registry-card h3 {
  font-size: 1.3rem;
  color: var(--olive-dark);
  margin-bottom: 0.5rem;
}

.registry-card p {
  color: var(--text-light);
  font-style: italic;
}

button.registry-card {
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* ---- Honeymoon Fund Modal ---- */

.honeymoon-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 20, 15, 0.85);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.honeymoon-overlay.active {
  display: flex;
  opacity: 1;
}

.honeymoon-modal {
  background: var(--cream);
  padding: 3rem 2.5rem;
  max-width: 520px;
  width: 90%;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.honeymoon-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.3s;
  font-family: serif;
}

.honeymoon-close:hover {
  color: var(--terracotta);
}

.honeymoon-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--olive-dark);
  margin-bottom: 0.8rem;
}

.honeymoon-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.payment-option {
  display: block;
  padding: 1.2rem 1.5rem;
  background: var(--white);
  border: 1px solid rgba(184, 134, 11, 0.15);
  text-decoration: none;
  text-align: center;
  transition: all 0.3s;
}

.payment-option:hover {
  border-color: var(--gold-light);
  box-shadow: 0 4px 15px rgba(74, 63, 53, 0.08);
}

a.payment-option:hover {
  transform: translateY(-2px);
}

.payment-option h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--olive-dark);
  margin-bottom: 0.2rem;
}

.payment-option p {
  font-family: 'Cormorant Garamond', serif;
  color: var(--terracotta);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

/* ---- RSVP ---- */

.rsvp {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.rsvp-bg {
  position: absolute;
  inset: 0;
}

.rsvp-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
}

.rsvp-overlay {
  position: absolute;
  inset: 0;
  background: rgba(62, 44, 35, 0.82);
}

.rsvp .container {
  position: relative;
  z-index: 2;
}

.rsvp-form {
  max-width: 550px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group label {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 253, 248, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.3);
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  transition: border-color 0.3s, background 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(253, 246, 236, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-light);
  background: rgba(255, 253, 248, 0.15);
}

.form-group select option {
  background: var(--espresso);
  color: var(--cream);
}

.radio-group {
  display: flex;
  gap: 2rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem !important;
  color: var(--cream) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.radio-label input[type="radio"] {
  display: none;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--gold-light);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.3s;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-light);
}

.guest-count-group,
.dietary-group {
  transition: opacity 0.3s, max-height 0.3s;
  overflow: hidden;
}

.submit-btn {
  padding: 1rem 2.5rem;
  background: transparent;
  border: 1.5px solid var(--gold-light);
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  align-self: center;
}

.submit-btn:hover {
  background: var(--gold-light);
  color: var(--espresso);
}

/* RSVP name search */
.rsvp-search-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.rsvp-search-wrap input {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(255,253,248,0.1);
  border: 1px solid rgba(212,168,67,0.3);
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  text-align: center;
  letter-spacing: 0.05em;
  transition: border-color 0.3s, background 0.3s;
}

.rsvp-search-wrap input::placeholder {
  color: rgba(253,246,236,0.4);
}

.rsvp-search-wrap input:focus {
  outline: none;
  border-color: var(--gold-light);
  background: rgba(255,253,248,0.15);
}

.rsvp-results {
  margin-top: 1rem;
}

.search-result {
  display: block;
  padding: 0.8rem 1.2rem;
  background: rgba(255,253,248,0.08);
  border: 1px solid rgba(212,168,67,0.15);
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
}

.search-result:hover {
  background: rgba(255,253,248,0.15);
  border-color: var(--gold-light);
}

.search-name {
  display: block;
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
}

.search-household {
  display: block;
  color: rgba(253,246,236,0.5);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 0.15rem;
}

.search-empty {
  color: rgba(253,246,236,0.5);
  text-align: center;
  font-style: italic;
  padding: 1rem;
}

.rsvp-success {
  display: none;
  max-width: 550px;
  margin: 0 auto;
  text-align: center;
}

.rsvp-success.show {
  display: block;
}

.success-icon {
  width: 60px;
  height: 60px;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.success-content h3 {
  font-size: 2rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.success-content p {
  color: var(--cream-dark);
  font-size: 1.15rem;
  font-style: italic;
}

/* ---- Gallery ---- */

.gallery {
  background: var(--white);
  position: relative;
}

.gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--sage-light), transparent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 1;
}

.gallery-item.gallery-large {
  grid-column: span 2;
  grid-row: span 2;
}

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

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(62, 44, 35, 0);
  transition: background 0.3s;
}

.gallery-item:hover::after {
  background: rgba(62, 44, 35, 0.1);
}

/* ---- Lightbox ---- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(30, 20, 15, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  font-size: 2.5rem;
  padding: 1rem;
  transition: color 0.3s;
  font-family: serif;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--gold-light);
}

.lightbox-close {
  top: 1rem;
  right: 1.5rem;
  font-size: 3rem;
}

.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
}

.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
}

/* ---- Footer ---- */

.footer {
  background: var(--olive-dark);
  color: var(--cream);
  text-align: center;
  padding: 4rem 2rem;
}

.footer-flourish {
  margin-bottom: 1.5rem;
  width: 200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-names {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  margin-bottom: 0.3rem;
}

.footer-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.footer-hashtag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  margin-top: 1rem;
  color: var(--sage-light);
  font-style: italic;
}

/* ---- Background Ornament ---- */

.section {
  position: relative;
}

/* Blue flower corner ornaments */
.our-story::before,
.our-story::after,
.registry::before,
.registry::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  opacity: 1;
  background-image: url('images/white_and_orange-clean.png');
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.our-story::before {
  top: 2rem;
  left: 2rem;
}

.our-story::after {
  bottom: 2rem;
  right: 2rem;
  transform: rotate(180deg);
}

.registry::before {
  top: 2rem;
  right: 2rem;
  transform: scaleX(-1);
}

.registry::after {
  bottom: 2rem;
  left: 2rem;
  transform: scaleX(-1) rotate(180deg);
}

/* Hide corner ornaments on mobile */
@media (max-width: 768px) {
  .our-story::before,
  .our-story::after,
  .registry::before,
  .registry::after {
    display: none;
  }
}

/* ---- Fade-in Animation ---- */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .story-content,
  .attire-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .story-image,
  .attire-image {
    height: 350px;
  }

  .card-grid,
  .registry-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }

  .timeline {
    padding-left: 100px;
  }

  .timeline::before {
    left: 90px;
  }

  .timeline-time {
    left: -100px;
    width: 80px;
    font-size: 0.9rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.4s;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    color: var(--text) !important;
    font-size: 1.1rem;
  }

  .nav-links a:hover {
    color: var(--terracotta) !important;
  }

  .ornate-frame {
    padding: 1.5rem;
  }

  .frame-corner {
    width: 50px;
    height: 50px;
  }

  .hero-names .name {
    display: block;
  }

  .hero-names .ampersand {
    display: block;
    margin: -0.5rem 0;
  }

  .section {
    padding: 4rem 0;
  }

  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    left: 4px;
  }

  .timeline-time {
    position: relative;
    left: 0;
    width: auto;
    text-align: left;
    padding-left: 1.5rem;
    margin-bottom: 0.2rem;
  }

  .timeline-dot {
    left: 0;
  }

  .timeline-details {
    padding-left: 1.5rem;
  }

  .radio-group {
    flex-direction: column;
    gap: 0.8rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 1.2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .gallery-item.gallery-large {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16/9;
  }
}
