/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Lato", sans-serif;
  color: #2c5f8d;
  line-height: 1.6;
  background: linear-gradient(to bottom, #ebf4fa, #ffffff);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  color: #2c5f8d;
  line-height: 1.2;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #d6e9f8;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.1);
}

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

.nav-logo {
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  color: #4a90e2;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-logo:hover {
  color: #357abd;
}

.nav-menu {
  display: none;
  gap: 2rem;
}

.nav-link {
  color: #2c5f8d;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #4a90e2;
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #4a90e2;
  transition: background 0.3s;
  border-radius: 0.5rem;
}

.mobile-menu-btn:hover {
  background: #ebf4fa;
}

/* Make hamburger easier to tap and ensure it appears above hero content */
.mobile-menu-btn {
  position: relative; /* keep inside navbar flow */
  z-index: 1100; /* above navbar background and hero */
  min-width: 44px; /* mobile friendly hit area */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.mobile-menu-btn:focus {
  outline: 3px solid rgba(74, 144, 226, 0.18);
  outline-offset: 3px;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: #4a90e2;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background: #4a90e2;
  left: 0;
  transition: transform 0.3s;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

/* Slightly thicker touch target indicator for visibility on small screens */
.hamburger,
.hamburger::before,
.hamburger::after {
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  padding: 1rem;
  border-top: 1px solid #d6e9f8;
  animation: slideDown 0.3s ease-out;
}

.mobile-menu.active {
  display: block;
}

.mobile-link {
  display: block;
  padding: 0.75rem 1rem;
  color: #2c5f8d;
  text-decoration: none;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.3s;
}

.mobile-link:hover {
  background: #ebf4fa;
  color: #4a90e2;
}

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

  .mobile-menu-btn {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }
}

/* Hero Section */
.hero {
  position: relative;
  padding: 8rem 1rem 5rem;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.9));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  color: #2c5f8d;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.hero-subtitle {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: #4a90e2;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.save-date-card {
  display: inline-block;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(74, 144, 226, 0.2);
  padding: 1.5rem 2rem;
  border: 2px solid #4a90e2;
}

.save-date-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4a90e2;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.save-date-text {
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  color: #2c5f8d;
  font-weight: 600;
}

/* Countdown styles (matches Save the Date look) */
.countdown {
  margin-top: 1rem;
  text-align: center;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  align-items: center;
}

.countdown-item {
  background: linear-gradient(135deg, #ffffff, #f1f9ff);
  border: 1px solid rgba(74,144,226,0.12);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

.countdown-num {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  color: #2c5f8d;
  font-weight: 700;
}

.countdown-label {
  display: block;
  font-size: 0.75rem;
  color: #4a90e2;
  margin-top: 0.25rem;
  font-weight: 600;
}

@media (max-width: 480px) {
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .countdown-num {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 10rem 1rem 6rem;
  }

  .hero-title {
    font-size: 5rem;
  }

  .hero-subtitle {
    font-size: 2rem;
  }

  .save-date-card {
    padding: 2rem 2.5rem;
  }

  .save-date-text {
    font-size: 2rem;
  }
}

/* Quick Info Section */
.quick-info {
  padding: 3rem 1rem;
  background: white;
}

.info-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.info-card {
  background: linear-gradient(135deg, #ebf4fa, #d6e9f8);
  border-radius: 1rem;
  padding: 2rem;
  border: 2px solid #4a90e2;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.25);
}

.info-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.info-header .icon {
  width: 1.75rem;
  height: 1.75rem;
  color: #4a90e2;
}

.info-header h3 {
  font-size: 1.5rem;
  margin: 0;
}

.info-time {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: #2c5f8d;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.info-venue {
  color: #2c5f8d;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.info-address {
  font-size: 0.875rem;
  color: #4a90e2;
}

@media (min-width: 640px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* CTA Section */
.cta-section {
  padding: 4rem 1rem;
}

.cta-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.cta-text {
  color: #4a90e2;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 2.5rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: #4a90e2;
  color: white;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
  background: #357abd;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-outline {
  background: transparent;
  color: #4a90e2;
  border: 2px solid #4a90e2;
}

.btn-outline:hover {
  background: #ebf4fa;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Footer */
.footer {
  background: linear-gradient(to bottom, #2c5f8d, #1e3a5f);
  color: white;
  padding: 3rem 1rem;
  margin-top: 4rem;
}

.footer-title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.footer-date {
  color: #b8d4f1;
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.footer-heart {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.heart-svg {
  width: 4rem;
  height: 4rem;
}

.footer-credit {
  font-size: 0.875rem;
  color: #b8d4f1;
  animation: pulse 2s ease-in-out infinite;
}

.footer-credit a {
  color: white;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-credit a:hover {
  color: #d6e9f8;
}

@media (min-width: 768px) {
  .footer-title {
    font-size: 2.5rem;
  }

  .heart-svg {
    width: 5rem;
    height: 5rem;
  }
}

/* Page Titles */
.page-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.page-subtitle {
  color: #4a90e2;
  font-size: 1.125rem;
  text-align: center;
}

@media (min-width: 768px) {
  .page-title {
    font-size: 3.5rem;
  }
}

/* Story Section */
.story-section {
  padding: 6rem 1rem 4rem;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  padding-left: 0;
}

.timeline-dot {
  display: none;
}

.timeline-content {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 8px 30px rgba(74, 144, 226, 0.15);
  padding: 2rem;
  border: 2px solid #d6e9f8;
  transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(74, 144, 226, 0.25);
}

.timeline-header {
  margin-bottom: 1.5rem;
}

.timeline-header h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.timeline-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #d6e9f8;
  color: #4a90e2;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.timeline-badge.light {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.timeline-text {
  color: #2c5f8d;
  line-height: 1.7;
}

.timeline-text p {
  margin-bottom: 1rem;
}

.timeline-text .lead {
  font-size: 1.125rem;
  font-weight: 600;
}

.timeline-text .bold {
  font-weight: 600;
}

.timeline-image {
  margin-top: 2rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 448px;
  margin-left: auto;
  margin-right: auto;
}

.timeline-image.small {
  max-width: 384px;
}

.timeline-image img {
  width: 100%;
  height: auto;
  display: block;
}

.wedding-card {
  background: linear-gradient(135deg, #4a90e2, #357abd) !important;
  color: white !important;
}

.wedding-card .timeline-header h2,
.wedding-card .timeline-text,
.wedding-card .timeline-text p {
  color: white !important;
}

@media (min-width: 640px) {
  .timeline::before {
    content: "";
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #4a90e2, #357abd, #2c5f8d);
  }

  .timeline-item {
    padding-left: 5rem;
  }

  .timeline-dot {
    display: block;
    position: absolute;
    left: 2rem;
    top: 1.5rem;
    width: 1rem;
    height: 1rem;
    background: #4a90e2;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 2px #4a90e2;
    transform: translateX(-50%);
  }

  .timeline-content {
    padding: 2.5rem;
  }
}

@media (min-width: 768px) {
  .timeline-header h2 {
    font-size: 2rem;
  }
}

/* Details Section */
.details-section {
  padding: 6rem 1rem 4rem;
}

.details-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.detail-card {
  background: white;
  border: 2px solid #4a90e2;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.25);
}

.detail-card.full-width {
  grid-column: 1 / -1;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.detail-header .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #4a90e2;
}

.detail-header h3 {
  font-size: 1.5rem;
  margin: 0;
}

.detail-time {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: #2c5f8d;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.detail-subtitle {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: #2c5f8d;
  margin-bottom: 0.75rem;
}

.detail-venue {
  font-weight: 600;
  color: #2c5f8d;
  margin-bottom: 0.5rem;
}

.detail-address {
  font-size: 0.875rem;
  color: #4a90e2;
}

.detail-text {
  color: #2c5f8d;
  line-height: 1.7;
}

/* Maps: responsive embeds for details page */


@media (min-width: 640px) {
  .details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Registry Section */
.registry-section {
  padding: 6rem 1rem 4rem;
}

.registry-icon {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #4a90e2, #357abd);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.registry-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: white;
}

.registry-card {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border: 2px solid #4a90e2;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(74, 144, 226, 0.15);
}

.registry-title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: #2c5f8d;
  text-align: center;
  margin-bottom: 0.5rem;
}

.registry-subtitle {
  font-size: 1.125rem;
  color: #4a90e2;
  text-align: center;
  margin-bottom: 2rem;
}

.registry-content {
  background: linear-gradient(135deg, #ebf4fa, #d6e9f8);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid #4a90e2;
  text-align: center;
}

.registry-text {
  color: #2c5f8d;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.registry-quote {
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid #d6e9f8;
  text-align: center;
}

.quote-text {
  font-size: 0.875rem;
  color: #4a90e2;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.quote-author {
  font-size: 0.875rem;
  color: #2c5f8d;
  font-family: "Playfair Display", serif;
}

@media (min-width: 768px) {
  .registry-card {
    padding: 3rem;
  }

  .registry-content {
    padding: 2.5rem;
  }
}

/* RSVP Section */
.rsvp-section {
  padding: 6rem 1rem 4rem;
}

.rsvp-card {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  border: 2px solid #4a90e2;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(74, 144, 226, 0.15);
  text-align: center;
}

.rsvp-icon {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #4a90e2, #357abd);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.rsvp-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: white;
}

.rsvp-title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: #2c5f8d;
  margin-bottom: 0.5rem;
}

.rsvp-subtitle {
  font-size: 1.125rem;
  color: #4a90e2;
  margin-bottom: 2rem;
}

.rsvp-content {
  background: linear-gradient(135deg, #ebf4fa, #d6e9f8);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid #4a90e2;
}

.rsvp-text {
  color: #2c5f8d;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.rsvp-note {
  font-size: 0.875rem;
  color: #4a90e2;
}

.rsvp-link-text {
  color: #4a90e2;
  margin-bottom: 1rem;
}

.text-link {
  color: #4a90e2;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s;
}

.text-link:hover {
  color: #357abd;
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Icon Styles */
.icon {
  flex-shrink: 0;
}

/* Welcome overlay converted to a side bubble (opaque) */
.welcome-overlay {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1050; /* above main content but below the mobile menu button */
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* allow clicks to pass through while visible */
}

.welcome-card {
  pointer-events: none; /* bubble is decorative only */
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border: 1px solid #d6e9f8;
  padding: 0.9rem 1.1rem;
  border-radius: 999px; /* pill/bubble shape */
  text-align: left;
  box-shadow: 0 12px 40px rgba(74,144,226,0.16);
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  min-width: 240px;
  max-width: 320px;
  transform: translateX(14px) scale(0.95);
  opacity: 0;
  animation: welcomeBubble 3.2s cubic-bezier(.2,.9,.2,1) forwards;
}

.welcome-heart {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: white;
  font-size: 1.1rem;
  flex: 0 0 44px;
}

.welcome-title {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  color: #2c5f8d;
  margin: 0;
}

.welcome-sub {
  font-size: 0.85rem;
  color: #4a90e2;
  margin: 0;
}

@keyframes welcomeBubble {
  0% {
    transform: translateX(20px) scale(0.92);
    opacity: 0;
  }
  12% {
    transform: translateX(0) scale(1.03);
    opacity: 1;
  }
  28% {
    transform: translateX(0) scale(0.99);
    opacity: 1;
  }
  80% {
    transform: translateX(0) scale(0.99);
    opacity: 1;
  }
  100% {
    transform: translateX(22px) scale(0.92);
    opacity: 0;
    visibility: hidden;
  }
}

/* Wedding party page styles (namespaced by class prefixes used in wedding-party.html) */
.party-hero {
  background-color: #2c5f8d;
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.party-hero .heart-icon,
.heart-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.section {
  padding: 60px 20px;
}

.section-white {
  background-color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #2c5f8d;
}

.section-title .divider {
  width: 100px;
  height: 4px;
  background-color: #2c5f8d;
  margin: 0 auto;
  border-radius: 2px;
}

/* Gallery styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.gallery-item {
  background: white;
  border: 2px solid #dfeefb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(74,144,226,0.06);
  transition: transform 0.28s cubic-bezier(.2,.9,.2,1), box-shadow 0.28s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.35s ease;
}

.gallery-item figcaption {
  /* figcaptions removed from markup for performance; keep this rule for backward compatibility if re-added */
  display: none;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.35s ease;
  /* Reserve layout space to avoid content shift while images load */
  aspect-ratio: 4 / 3;
}

/* Performance notes: images use decoding="async" and fetchpriority="low" in markup for faster initial render */
.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(74,144,226,0.12);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.02);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10,20,40,0.6);
  z-index: 3000;
  padding: 2rem;
}

.lightbox[aria-hidden="false"] { display: flex; }

/* Lightbox arrow buttons */
.lightbox-prev,
.lightbox-next,
.lightbox-close {
  position: absolute;
  background: rgba(255,255,255,0.9);
  border: none;
  color: #2c5f8d;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(20,40,80,0.25);
  cursor: pointer;
  transition: transform 0.18s, background 0.18s;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
  transform: translateY(-3px);
}

.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
.lightbox-close { top: 1.25rem; right: 1.25rem; }

.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  animation: lbFadeIn 260ms ease;
}

.lightbox-caption {
  color: #dfeefb;
  margin-top: 0.75rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255,255,255,0.06);
  color: white;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
}

@keyframes lbFadeIn {
  from { transform: scale(0.98); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.card {
  background: white;
  border: 3px solid #2c5f8d;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(44, 95, 141, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 200px;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(44, 95, 141, 0.2);
  border-color: #1e3a5f;
}

.card-featured {
  min-height: 280px;
  background: linear-gradient(135deg, #2c5f8d 0%, #1e3a5f 100%);
  color: white;
  border: none;
}

.card-featured:hover {
  background: linear-gradient(135deg, #1e3a5f 0%, #2c5f8d 100%);
}

.role-badge {
  display: inline-block;
  background-color: #2c5f8d;
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.card-featured .role-badge {
  background-color: rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  padding: 8px 20px;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #2c5f8d;
}

.card-featured h3 {
  color: white;
  font-size: 1.75rem;
}

.card p {
  color: #64748b;
  font-size: 0.95rem;
  font-style: italic;
}

.card-featured p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

.grid-featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.grid-bridesmaids {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.grid-groomsmen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

/* Slightly tighter and uniform gaps for the wedding party sections */
.grid-bridesmaids,
.grid-groomsmen,
.grid-featured {
  gap: 24px;
}

.card .avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: linear-gradient(135deg,#ebf4fa,#d6e9f8);
  display: block;
  margin: 0 auto 12px;
  object-fit: cover;
}

/* Footer already exists in site; ensure party footer matches the main footer colors */


@media (max-width: 768px) {
  .party-hero h1 {
    font-size: 2rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .grid-featured,
  .grid-bridesmaids,
  .grid-groomsmen {
    grid-template-columns: 1fr;
  }
}
