/* Main stylesheet for Sagar & Sakshi Wedding Website */

/* Fonts loaded via preload in HTML head for better performance */

/* CSS Variables */
:root {
  --primary-color: #192E2B;
  --secondary-color: #ffffff;
  --accent-color: #f5f5f5;
  --light-gray: #e5e5e5;
  --body-bg: #f8f8f8;
  --error-color: #dc3545;
  --error-bg: #f8d7da;
  --error-border: #f5c6cb;
  --error-text: #721c24;
  --success-color: #28a745;
  --success-bg: #d4edda;
  --success-border: #c3e6cb;
  --success-text: #155724;
  --info-bg: #f8f9fa;
  --info-border: #e9ecef;
  --warning-bg: #fff3cd;
  --warning-border: #ffeaa7;
  --muted-text: #6c757d;
  --tooltip-bg: #f5f5f5;
  --tooltip-text: #333;
  --font-family: 'Crimson Text', Georgia, serif;
  --font-family-heading: 'Playfair Display', Georgia, serif;
  --font-family-button: 'Cinzel', 'Times New Roman', serif;
  --max-width: 1000px;
  --spacing-xs: 0.5rem;
  --spacing-small: 1rem;
  --spacing-medium: 2rem;
  --spacing-large: 3rem;
  --spacing-xl: 4rem;
  --border-width: 2px;
  --border-radius: 50%;
  --transition-speed: 0.3s;
  --line-height-base: 1.6;
  --line-height-heading: 1.1;
  --letter-spacing-normal: 0.5px;
  --letter-spacing-wide: 1px;
  --letter-spacing-wider: 2px;
}

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--primary-color);
  background-color: var(--body-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  font-display: swap;
}



/* Page container for narrower, page-like appearance */
.main-content {
  background-color: var(--secondary-color);
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  padding-bottom: var(--spacing-large);
}

/* Font Loading Optimization - Fonts loaded via preload in HTML head */

/* Performance Optimizations */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Reduce layout shifts */
.hero-image-placeholder,
.party-member-image-placeholder,
.business-image-placeholder,
.photo-placeholder,
.showcase-image-placeholder,
.couple-image-placeholder,
.hotel-image-placeholder {
  contain: layout style paint;
  will-change: transform;
}

/* Optimize animations */
.btn,
.nav-menu a,
.photo-item,
.showcase-member,
.business-card,
.hotel-card {
  will-change: transform;
}

/* Font optimization */
body {
  font-display: swap;
}

/* Optimize repaints */
.ripple {
  will-change: transform, opacity;
}

/* GPU acceleration for smooth animations */
.lightbox-content,
.nav-menu.mobile-open {
  transform: translateZ(0);
}

/* Skip Navigation Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
  border-radius: 4px;
  font-weight: bold;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 6px;
}

/* Container and Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-small);
}

/* Grid Systems */
.grid {
  display: grid;
  gap: var(--spacing-medium);
}

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

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

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

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

/* Layout Components */
.section {
  padding: var(--spacing-large) 0;
}

.section-small {
  padding: var(--spacing-medium) 0;
}

.card {
  background: var(--secondary-color);
  padding: var(--spacing-medium);
  text-align: center;
}

.profile-card {
  text-align: center;
  padding: var(--spacing-small);
}

.profile-image {
  width: 200px;
  height: 200px;
  border-radius: var(--border-radius);
  object-fit: cover;
  margin: 0 auto var(--spacing-small);
  display: block;
}

.circular-image {
  border-radius: var(--border-radius);
  object-fit: cover;
}

/* Typography System */

/* Base Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-heading);
  line-height: var(--line-height-heading);
  color: var(--primary-color);
  margin: 0 0 var(--spacing-small) 0;
}

p {
  font-family: var(--font-family);
  font-size: 1.25rem;
  line-height: var(--line-height-base);
  color: var(--primary-color);
  margin: 0 0 var(--spacing-small) 0;
}

/* Typography Hierarchy */

/* Main Site Title - Used for "SAGAR & SAKSHI" */
.main-title {
  font-family: var(--font-family-heading);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.5rem;
}

/* Page Titles - Used for main page headings */
.page-title {
  font-family: var(--font-family-heading);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: var(--letter-spacing-wide);
  text-align: center;
  margin-bottom: var(--spacing-large);
}

/* Section Titles - Used for major sections */
.section-title {
  font-family: var(--font-family-heading);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: var(--letter-spacing-wide);
  text-align: center;
  margin-bottom: var(--spacing-medium);
}

/* Subsection Titles - Used for smaller sections */
.subsection-title {
  font-family: var(--font-family-heading);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: var(--letter-spacing-normal);
  text-align: center;
  margin-bottom: var(--spacing-small);
}

/* Card Titles - Used for names, business names, etc. */
.card-title {
  font-family: var(--font-family-heading);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: var(--letter-spacing-normal);
  margin-bottom: var(--spacing-xs);
}

/* Announcement Text - Used for hero messages */
.announcement-text {
  font-family: var(--font-family-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: var(--letter-spacing-wide);
  text-align: center;
}

/* Body Text - Standard paragraph text */
.body-text {
  font-family: var(--font-family);
  font-size: 1.25rem;
  line-height: var(--line-height-base);
  margin-bottom: var(--spacing-small);
}

/* Large Body Text - For important descriptions */
.body-text-large {
  font-family: var(--font-family);
  font-size: 1.375rem;
  line-height: var(--line-height-base);
  margin-bottom: var(--spacing-small);
}

/* Small Text - For captions, credits, etc. */
.small-text {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: var(--line-height-base);
  margin-bottom: var(--spacing-xs);
  text-align: center;
}

/* Subtitle Text - For dates, locations, etc. */
.subtitle-text {
  font-family: var(--font-family);
  font-size: 1.375rem;
  font-style: italic;
  margin-bottom: var(--spacing-small);
}

/* Role Text - For wedding party roles, job titles */
.role-text {
  font-family: var(--font-family);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: var(--spacing-xs);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Showcase role and relationship - toggle visibility on hover */
.showcase-role-title {
  display: block;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.showcase-relationship {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.showcase-member:hover .showcase-role-title,
.showcase-member:focus .showcase-role-title {
  display: none;
  opacity: 0;
}

.showcase-member:hover .showcase-relationship,
.showcase-member:focus .showcase-relationship {
  display: block;
  opacity: 1;
}

/* Wedding Date - Special styling for the wedding date */
.wedding-date {
  font-family: var(--font-family-button);
  font-size: 0.95rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: var(--spacing-medium);
}

/* Default heading fallbacks for semantic HTML */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
}

h2 {
  font-size: 1.2rem;
  font-weight: 400;
  text-align: center;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

h5 {
  font-size: 1rem;
  font-weight: 600;
}

h6 {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Text Utilities */
.text-center {
  text-align: center;
}

.text-uppercase {
  text-transform: uppercase;
}

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

.text-large {
  font-size: 1.2rem;
}

.text-small {
  font-size: 0.9rem;
}

/* Button Typography */
.btn {
  display: inline-block;
  padding: var(--spacing-small) var(--spacing-medium);
  font-family: var(--font-family-button);
  font-size: 0.85rem;
  font-weight: 400;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  text-align: center;
  line-height: 1;
}

.btn:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

/* Header Styles */
.header {
  text-align: center;
  padding: var(--spacing-medium) 0;
  background-color: var(--secondary-color);
  max-width: var(--max-width);
  margin: 0 auto;
}

.main-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.wedding-date {
  font-size: 0.95rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-small);
}

/* Navigation Styles */
.nav-container {
  border-top: 1px solid var(--primary-color);
  border-bottom: 1px solid var(--primary-color);
  position: relative;
  background-color: var(--secondary-color);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Desktop Navigation (769px and up) */
@media screen and (min-width: 769px) {
  .nav-toggle {
    display: none !important;
  }

  .nav-menu {
    display: flex !important;
    position: static !important;
    background: transparent !important;
    border: none !important;
    flex-direction: row !important;
    justify-content: center !important;
    padding: var(--spacing-small) 0 !important;
  }

  .nav-menu li {
    margin: 0 1px !important;
    border: none !important;
  }

  .nav-menu a {
    padding: var(--spacing-xs) var(--spacing-small) !important;
    display: inline-block !important;
    text-align: center !important;
  }
}

.nav-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: var(--spacing-small) 0;
  margin: 0;
}

.nav-menu li {
  margin: 0 1px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-normal);
  padding: var(--spacing-xs) var(--spacing-small);
  display: block;
  transition: all var(--transition-speed) ease;
  border-radius: 4px;
}

.nav-menu a:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

.nav-menu a.active {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--spacing-small);
  position: absolute;
  right: var(--spacing-small);
  top: var(--spacing-small);
  z-index: 1002;
}

.nav-toggle:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Hamburger Menu Icon */
.hamburger {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary-color);
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.3s ease;
}

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

.hamburger::after {
  top: 6px;
}

/* Hamburger Animation */
.nav-toggle.active .hamburger {
  background: transparent;
}

.nav-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* MOBILE NAVIGATION - COMPLETE REWRITE */
@media screen and (max-width: 768px) {

  /* Show mobile toggle button */
  .nav-toggle {
    display: block !important;
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    border: 2px solid var(--primary-color);
    padding: 10px;
    cursor: pointer;
    z-index: 9999;
    border-radius: 4px;
  }

  /* Hide desktop navigation */
  .nav-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    border: 2px solid var(--primary-color);
    border-top: none;
    flex-direction: column;
    padding: 0;
    margin: 0;
    z-index: 9998;
    list-style: none;
  }

  /* Show mobile menu when open */ 
  .nav-menu.mobile-open {
    display: flex !important;
    background-repeat: no-repeat;
    background-position: left center;
    background-size: auto 100%;
  }

  /* Mobile menu items */
  .nav-menu li {
    margin: 0 !important;
    border-bottom: 1px solid #ccc;
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  /* Mobile menu links */
  .nav-menu a {
    display: block !important;
    padding: 15px 20px !important;
    text-align: center !important;
    text-decoration: none !important;
    color: var(--primary-color) !important;
    background: var(--secondary-color) !important;
    border: none !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
  }

  .nav-menu a:hover {
    background: var(--accent-color) !important;
    transform: none !important;
  }

  .nav-menu a.active {
    background: var(--primary-color) !important;
    color: var(--secondary-color) !important;
  }
}

/* Main Content */
.main-content {
  min-height: 60vh;
  padding: 0;
}

/* MOBILE RESPONSIVE IMPROVEMENTS */
@media screen and (max-width: 768px) {

  /* Make container more mobile-friendly */
  .container {
    padding: 0 15px !important;
  }

  /* Hero section mobile */
  .hero-split-container {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }

  .hero-left,
  .hero-right {
    min-height: 40vh !important;
    padding: var(--spacing-medium) !important;
  }

  /* Main grid mobile */
  .main-grid {
    grid-template-columns: 1fr !important;
  }

  .grid-item {
    border-right: none !important;
    border-bottom: 1px solid var(--primary-color) !important;
  }

  .grid-item:last-child {
    border-bottom: none !important;
  }

  /* Typography mobile */
  .main-title {
    font-size: 2rem !important;
  }

  .announcement-text {
    font-size: 2.5rem !important;
  }

  .section-title {
    font-size: 1.4rem !important;
  }

  /* Mobile styles handled by mobile.css */
}

/* Main Grid Layout */
.main-grid-section {
  padding: var(--spacing-medium) 0 var(--spacing-small) 0;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.grid-item {
  padding: var(--spacing-large);
  text-align: center;
}

/* Counter section (left) - no left padding */
.grid-item:first-child {
  padding-left: 0;
  border-right: 2px solid var(--primary-color);
  position: relative;
}

/* Location/RSVP section (right) - no right padding */
.grid-item:last-child {
  padding-right: 0;
}

.grid-item:first-child::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--primary-color);
  z-index: 1;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--spacing-medium);
  text-transform: uppercase;
  color: var(--primary-color);
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: var(--spacing-medium);
  margin: var(--spacing-medium) 0;
  flex-wrap: wrap;
}

.countdown-number-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.section-actions {
  margin-top: var(--spacing-medium);
}

/* RSVP Split Layout */
.rsvp-split {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rsvp-section-top,
.rsvp-section-bottom {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-medium) 0;
}

.rsvp-section-top {
  border-bottom: 2px solid var(--primary-color);
  position: relative;
}

.rsvp-section-top::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-color);
  z-index: 1;
}

.rsvp-section-top .section-title,
.rsvp-section-bottom .section-title {
  margin-bottom: var(--spacing-small);
}

.rsvp-section-top .section-actions,
.rsvp-section-bottom .section-actions {
  margin-top: var(--spacing-small);
}

.location-venue {
  font-size: 1.375rem;
  font-weight: 200;
  color: var(--primary-color);
  margin: var(--spacing-xs) 0;
  font-style: italic;
}

/* Welcome Section */
.welcome-section {
  padding: var(--spacing-large) 0;
  text-align: center;
}

.welcome-content {
  max-width: 800px;
  margin: 0 auto;
}

.welcome-content p {
  font-size: 1.375rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-medium);
  color: var(--primary-color);
}

.welcome-signature {
  text-align: center;
  font-style: italic;
  font-size: 1rem;
  margin-top: var(--spacing-large);
  color: var(--primary-color);
}

/* Hero Split Section Styles */
.hero-split-section {
  padding: var(--spacing-large) 0;
  margin: 0;
}

.hero-split-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 35vh;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-left {
  background-color: var(--secondary-color);
  padding: var(--spacing-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 35vh;
  border-right: 2px solid var(--primary-color);
  position: relative;
}

.hero-left::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--primary-color);
  z-index: 1;
}

.hero-right {
  background-color: var(--secondary-color);
  padding: var(--spacing-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 35vh;
}

.wedding-announcement {
  text-align: center;
  font-family: var(--font-family-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.announcement-text {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
  letter-spacing: var(--letter-spacing-wide);
  text-align: center;
}

.hero-right .hero-image-placeholder {
  width: 100%;
  height: 35vh;
  background-color: var(--accent-color);
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.hero-right .hero-image {
  width: 100%;
  height: 35vh;
  object-fit: cover;
  display: block;
}

/* Hero Section Styles */
.hero-section {
  text-align: center;
  padding: var(--spacing-large) 0;
}

.hero-image-container {
  margin-bottom: var(--spacing-large);
}

.hero-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  display: block;
}

.hero-image-placeholder {
  width: 100%;
  max-width: 600px;
  height: 400px;
  background-color: var(--accent-color);
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.placeholder-text {
  color: var(--primary-color);
  font-size: 1.2rem;
  text-align: center;
  font-style: italic;
  line-height: 1.4;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: 2.5rem;
  font-family: var(--font-family-heading);
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--spacing-medium);
}

.hero-message {
  font-size: 1.5rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-large);
  color: var(--primary-color);
  font-style: italic;
}

.hero-signature {
  font-size: 1.375rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-medium);
  font-style: italic;
}

/* Countdown Section Styles */
.countdown-section {
  text-align: center;
  padding: var(--spacing-large) 0;
}

.countdown-title {
  font-size: 2rem;
  font-weight: 200;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--spacing-large);
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: var(--spacing-large);
  margin-bottom: var(--spacing-medium);
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.countdown-number {
  font-size: 4rem;
  font-weight: 200;
  font-family: var(--font-family-heading);
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: var(--spacing-xs);
}

.countdown-label {
  font-size: 1rem;
  font-weight: 200;
  letter-spacing: var(--letter-spacing-normal);
  color: var(--primary-color);
}

.countdown-message {
  font-size: 1.625rem;
  font-style: italic;
  margin-bottom: var(--spacing-small);
  color: var(--primary-color);
}

.countdown-actions {
  margin-bottom: var(--spacing-medium);
}

/* Registry Section Styles */
.registry-section {
  text-align: center;
  padding: var(--spacing-large) 0;
}

.registry-title {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--spacing-medium);
}

.registry-message {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-large);
  color: var(--primary-color);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.registry-links {
  margin-bottom: var(--spacing-medium);
}

.registry-note {
  font-size: 1rem;
  font-style: italic;
  color: var(--primary-color);
  margin-top: var(--spacing-small);
}

/* RSVP Section Styles */
.rsvp-section {
  text-align: center;
  padding: var(--spacing-large) 0;
}

.rsvp-title {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--spacing-medium);
}

.rsvp-message {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-large);
  color: var(--primary-color);
}

.rsvp-actions {
  margin-bottom: var(--spacing-large);
}

.location-info {
  margin-top: var(--spacing-large);
}

.location-info h3 {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: var(--letter-spacing-normal);
  margin-bottom: var(--spacing-medium);
}

.accommodations-section {
  margin-top: var(--spacing-medium);
}

.accommodations-text {
  font-size: 1.375rem;
  margin-bottom: var(--spacing-small);
  color: var(--primary-color);
}

/* RSVP Form Styles */
.rsvp-form-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.rsvp-form {
  background-color: var(--secondary-color);
  padding: var(--spacing-large);
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: var(--spacing-medium);
}

.form-label {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: var(--spacing-xs);
  color: var(--primary-color);
  letter-spacing: var(--letter-spacing-normal);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--spacing-small);
  font-size: 1rem;
  font-family: var(--font-family);
  border: 2px solid var(--light-gray);
  border-radius: 4px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transition: border-color var(--transition-speed) ease;
}

.form-select {
  padding-right: 40px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23000' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-input:invalid,
.form-select:invalid,
.form-textarea:invalid {
  border-color: var(--error-color);
}

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

.form-file-input {
  width: 100%;
  padding: var(--spacing-small);
  border: 2px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--background-color);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary-color);
  cursor: pointer;
  transition: border-color var(--transition-speed) ease;
}

.form-file-input:hover {
  border-color: var(--primary-color);
}

.form-file-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-help-text {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: var(--spacing-xs);
  font-style: italic;
}

.file-upload-preview {
  margin-top: var(--spacing-small);
  text-align: center;
}

.btn-remove-file {
  background: var(--error-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color var(--transition-speed) ease;
}

.btn-remove-file:hover {
  background: #c0392b;
}

.file-upload-list {
  margin-top: var(--spacing-small);
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-xs);
  background: #f8f8f8;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: var(--spacing-xs);
}

.file-item-name {
  flex: 1;
  font-size: 0.875rem;
  color: var(--primary-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: var(--spacing-xs);
}

.file-item-size {
  font-size: 0.75rem;
  color: #666;
  margin-right: var(--spacing-xs);
}

.btn-remove-file-item {
  background: transparent;
  color: var(--error-color);
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0 8px;
  line-height: 1;
}

.btn-remove-file-item:hover {
  color: #c0392b;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-small);
}

.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--primary-color);
  padding: var(--spacing-xs);
  border-radius: 4px;
  transition: background-color var(--transition-speed) ease;
}

.radio-label:hover {
  background-color: var(--accent-color);
}

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

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--light-gray);
  border-radius: 50%;
  margin-right: var(--spacing-small);
  position: relative;
  transition: all var(--transition-speed) ease;
}

.radio-label input[type="radio"]:checked+.radio-custom {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
}

.radio-label input[type="radio"]:checked+.radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--secondary-color);
}

/* Checkbox styles */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-small);
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--primary-color);
  padding: var(--spacing-xs);
  border-radius: 4px;
  transition: background-color var(--transition-speed) ease;
}

.checkbox-label:hover {
  background-color: var(--accent-color);
}

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

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--light-gray);
  border-radius: 4px;
  margin-right: var(--spacing-small);
  position: relative;
  transition: all var(--transition-speed) ease;
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--secondary-color);
  font-size: 14px;
  font-weight: bold;
}

.error-message {
  display: block;
  color: var(--error-color);
  font-size: 0.875rem;
  margin-top: var(--spacing-xs);
  font-style: italic;
}

.form-actions {
  text-align: center;
  margin-top: var(--spacing-large);
}

.rsvp-submit-btn {
  padding: var(--spacing-medium) var(--spacing-large);
  font-size: 1.1rem;
  min-width: 200px;
}

.form-success {
  text-align: center;
  padding: var(--spacing-large);
  background-color: var(--success-bg);
  border: 2px solid var(--success-border);
  border-radius: 8px;
  margin-top: var(--spacing-medium);
}

.form-success h3 {
  color: var(--success-text);
  margin-bottom: var(--spacing-small);
  font-size: 1.5rem;
}

.form-success p {
  color: var(--success-text);
  font-size: 1.375rem;
  margin: 0;
}

/* Accommodations Section Styles */
.accommodations-section {
  text-align: center;
  padding: var(--spacing-large) 0;
}

.accommodations-title {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--spacing-medium);
  color: var(--primary-color);
}

.accommodations-text {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-large);
  color: var(--primary-color);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.accommodations-actions {
  margin-bottom: var(--spacing-medium);
}

/* Location Information Styles */
.location-info {
  text-align: center;
  padding: var(--spacing-large) 0;
}

.location-title {
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--spacing-medium);
  color: var(--primary-color);
}

.location-description {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-large);
  color: var(--primary-color);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.location-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-large);
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.venue-info,
.ceremony-info {
  background-color: var(--accent-color);
  padding: var(--spacing-medium);
  border-radius: 8px;
  border: 2px solid var(--light-gray);
}

.venue-info h4,
.ceremony-info h4 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: var(--spacing-small);
  letter-spacing: var(--letter-spacing-normal);
  color: var(--primary-color);
  text-align: center;
}

.venue-info p,
.ceremony-info p {
  font-size: 1rem;
  line-height: var(--line-height-base);
  color: var(--primary-color);
  margin: 0;
  text-align: center;
}

/* Bottom Actions Section */
.bottom-actions-section {
  padding: var(--spacing-large) 0;
}

.bottom-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 2px solid var(--primary-color);
}

.action-section {
  text-align: center;
  padding: var(--spacing-xl);
  border-right: 1px solid var(--primary-color);
}

.action-section:last-child {
  border-right: none;
}

.action-title {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--spacing-medium);
  color: var(--primary-color);
}

.action-buttons {
  margin-top: var(--spacing-medium);
}

/* Party Showcase Styles */
.party-showcase {
  text-align: center;
  padding: var(--spacing-large) 0 var(--spacing-xl) 0;
}

.party-showcase .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-medium);
}

.showcase-title {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--spacing-large);
  color: var(--primary-color);
}

.party-showcase-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto var(--spacing-large);
  padding: 0;
  overflow: visible;
}

/* Desktop - balanced spacing to fit all 5 in one row */
@media (min-width: 769px) {
  .party-showcase-grid {
    gap: 2.5rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  .showcase-member {
    flex: 0 1 auto;
    max-width: 150px;
  }

  .showcase-image-placeholder {
    max-width: 120px !important;
  }
}

.showcase-member {
  text-align: center;
  flex: 1;
  overflow: visible;
  scroll-margin-top: 0;
  cursor: pointer;
}

/* Prevent scroll jump when clicking/focusing on showcase members */
.showcase-member:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
}

/* Prevent scroll jump on specific clickable card elements (not form elements) */
.business-card,
.card,
.showcase-member,
[tabindex]:not(input):not(textarea):not(select):not(button) {
  scroll-margin: 0 !important;
}

.showcase-image-placeholder {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 1;
  border-radius: var(--border-radius);
  background-color: var(--accent-color);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-small) auto;
  transition: transform var(--transition-speed) ease;
}

.showcase-image-placeholder.circular {
  border-radius: 50%;
}

.showcase-image-placeholder:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.showcase-image-placeholder .placeholder-text {
  font-size: 0.8rem;
  text-align: center;
  color: var(--primary-color);
  font-style: italic;
  line-height: 1.2;
}

.showcase-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: var(--letter-spacing-normal);
  margin-bottom: var(--spacing-xs);
  color: var(--primary-color);
}

.showcase-role {
  font-size: 1.125rem;
  color: var(--primary-color);
  font-style: italic;
  margin: 0;
}

.party-showcase-actions {
  margin-top: var(--spacing-medium);
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: var(--spacing-small) var(--spacing-medium);
  font-size: 1rem;
  font-weight: 200;
  letter-spacing: var(--letter-spacing-normal);
  text-decoration: none;
  border: 2px solid var(--primary-color);
  background-color: transparent;
  color: var(--primary-color);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border-radius: 4px;
  margin: var(--spacing-xs);
}

.btn:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* Section Dividers */
.section-divider {
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  margin: var(--spacing-large) 0;
}

/* Schedule Section Styles */
.schedule-section {
  padding: var(--spacing-large) 0;
}

.schedule-title {
  font-size: 2.5rem;
  font-weight: bold;
  letter-spacing: var(--letter-spacing-wide);
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--primary-color);
}

.schedule-day {
  margin-bottom: var(--spacing-xl);
}

.day-title {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: var(--letter-spacing-wide);
  text-align: center;
  margin-bottom: var(--spacing-large);
  color: var(--primary-color);
}

.schedule-events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-large);
}

.schedule-event {
  margin-bottom: var(--spacing-large);
}

.event-time {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: var(--letter-spacing-normal);
  margin-bottom: var(--spacing-small);
  color: var(--primary-color);
}

.event-name {
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: var(--letter-spacing-normal);
  margin-bottom: var(--spacing-small);
  color: var(--primary-color);
}

.event-description {
  font-size: 1rem;
  line-height: var(--line-height-base);
  margin-bottom: var(--spacing-medium);
  color: var(--primary-color);
  text-align: justify;
}

.event-venue,
.event-attire,
.event-address {
  margin-bottom: var(--spacing-medium);
}

.event-venue h5,
.event-attire h5,
.event-address h5 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: var(--spacing-xs);
  letter-spacing: var(--letter-spacing-normal);
  color: var(--primary-color);
}

.event-venue p,
.event-attire p,
.event-address p {
  font-size: 1.25rem;
  line-height: var(--line-height-base);
  margin-bottom: var(--spacing-xs);
  color: var(--primary-color);
}

.map-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: var(--letter-spacing-normal);
}

.map-link:hover {
  text-decoration: none;
}

/* Wedding Party Styles */
.party-section {
  padding: var(--spacing-large) 0;
}

.wedding-party-group {
  margin-bottom: var(--spacing-xl);
}

.party-group-title {
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: var(--letter-spacing-wide);
  text-align: center;
  margin-bottom: var(--spacing-medium);
}

.party-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-large);
  margin-top: var(--spacing-medium);
  justify-items: center;
}

.party-member-card {
  text-align: center;
  padding: var(--spacing-medium);
  max-width: 300px;
  width: 100%;
}

.party-member-image {
  width: 200px;
  height: 200px;
  border-radius: var(--border-radius);
  object-fit: cover;
  margin: 0 auto var(--spacing-small);
  display: block;
  border: 3px solid var(--light-gray);
}

.party-member-image-placeholder {
  width: 200px;
  height: 200px;
  border-radius: var(--border-radius);
  background-color: var(--accent-color);
  border: 3px solid var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-small);
}

.party-member-name {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: var(--letter-spacing-normal);
  margin-bottom: var(--spacing-xs);
}

.party-member-title {
  font-size: 1rem;
  font-style: italic;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
}

.party-member-relationship {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--primary-color);
  margin-bottom: var(--spacing-small);
  letter-spacing: var(--letter-spacing-normal);
}

.party-member-description {
  font-size: 0.95rem;
  line-height: var(--line-height-base);
  color: var(--primary-color);
  text-align: center;
}

/* Special roles grid for single items (flower girl, ring bearer) */
.special-roles-grid {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-medium);
}

/* Couple Page Styles */
.couple-section {
  padding: var(--spacing-large) 0;
  text-align: center;
}

.couple-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-medium);
  margin-bottom: var(--spacing-large);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.couple-photo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.couple-image-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background-color: var(--accent-color);
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed) ease;
}

.couple-image-placeholder:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.couple-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.couple-story-section {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  padding: var(--spacing-large) 0;
}

.couple-story-title {
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: var(--letter-spacing-normal);
  text-align: center;
  margin-bottom: var(--spacing-medium);
}

.couple-story-content {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-medium);
  color: var(--primary-color);
}

.couple-story-paragraph {
  margin-bottom: var(--spacing-medium);
}

.couple-story-signature {
  text-align: center;
  font-style: italic;
  font-size: 1rem;
  margin-top: var(--spacing-large);
  color: var(--primary-color);
}

/* Footer Styles */
.footer {
  border-top: 2px solid var(--primary-color);
  padding: var(--spacing-small) 0;
  background-color: var(--secondary-color);
  max-width: var(--max-width);
  margin: 0 auto;
  opacity: 0.6;
}

.footer .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-small);
}

.footer-text {
  font-family: var(--font-family-button);
  font-size: 0.75rem;
  color: var(--primary-color);
  font-weight: 400;
  letter-spacing: 1px;
  margin: 0;
  text-align: right;
  line-height: 1.4;
}

.photographer-credit {
  text-decoration: underline;
  font-weight: 400;
}

/* Location Page Styles */
.location-header {
  text-align: center;
  padding: var(--spacing-large) 0;
  margin-bottom: var(--spacing-small);
}

.location-title {
  font-size: 2.5rem;
  font-weight: bold;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--spacing-small);
}

.location-subtitle {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--primary-color);
  margin-bottom: 0;
}

.location-categories {
  padding: var(--spacing-medium) 0;
}

.category-section {
  margin-bottom: var(--spacing-xl);
}

.category-section:last-child {
  margin-bottom: 0;
  padding-bottom: var(--spacing-xl);
}

.category-title {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: var(--letter-spacing-wide);
  text-align: center;
  margin-bottom: var(--spacing-large);
  text-transform: uppercase;
  color: var(--primary-color);
}

.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-large);
  margin-top: var(--spacing-medium);
  justify-items: center;
}

/* Business Recommendation Card Styles */
.business-card {
  text-align: center;
  padding: var(--spacing-medium);
  max-width: 350px;
  width: 100%;
  background-color: var(--secondary-color);
  border-radius: 8px;
  transition: transform var(--transition-speed) ease;
}

.business-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.business-image-container {
  margin-bottom: var(--spacing-medium);
  display: flex;
  justify-content: center;
}

.business-image {
  width: 200px;
  height: 200px;
  border-radius: var(--border-radius);
  object-fit: cover;
  border: 3px solid var(--light-gray);
}

.business-image-placeholder {
  width: 200px;
  height: 200px;
  border-radius: var(--border-radius);
  background-color: var(--accent-color);
  border: 3px solid var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.business-name {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: var(--letter-spacing-normal);
  margin-bottom: var(--spacing-xs);
  text-transform: uppercase;
  color: var(--primary-color);
}

.business-address {
  font-size: 0.95rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-small);
  font-style: italic;
}

.business-description {
  font-size: 0.95rem;
  line-height: var(--line-height-base);
  color: var(--primary-color);
  text-align: center;
}

/* P
hoto Gallery Styles */
.photos-section {
  padding: var(--spacing-large) 0;
}

.gallery-section {
  margin-bottom: var(--spacing-xl);
}

.gallery-section-title {
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: var(--letter-spacing-wide);
  text-align: center;
  margin-bottom: var(--spacing-large);
  text-transform: uppercase;
  color: var(--primary-color);
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-medium);
  margin-bottom: var(--spacing-large);
  justify-items: center;
}

.photo-item {
  cursor: pointer;
  transition: transform var(--transition-speed) ease;
  width: 100%;
  max-width: 300px;
}

.photo-item:hover {
  transform: translateY(-4px);
}

.photo-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background-color: var(--accent-color);
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-speed) ease;
}

.photo-item:hover .photo-placeholder {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.photo-placeholder .placeholder-text {
  font-size: 1rem;
  text-align: center;
  color: var(--primary-color);
  font-style: italic;
  line-height: 1.4;
}

.photo-credit {
  text-align: center;
  margin-top: var(--spacing-large);
  padding-top: var(--spacing-medium);
  border-top: 2px solid var(--light-gray);
}

.photo-credit p {
  font-size: 1rem;
  font-style: italic;
  color: var(--primary-color);
  margin: 0;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--secondary-color);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: var(--spacing-xs);
  transition: color var(--transition-speed) ease;
}

.lightbox-close:hover {
  color: var(--light-gray);
}

.lightbox-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-placeholder {
  width: 600px;
  height: 450px;
  background-color: var(--accent-color);
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.lightbox-placeholder .placeholder-text {
  font-size: 1.2rem;
  text-align: center;
  color: var(--primary-color);
  font-style: italic;
  line-height: 1.4;
}

.lightbox-navigation {
  display: flex;
  gap: var(--spacing-medium);
  margin-top: var(--spacing-medium);
}

.lightbox-prev,
.lightbox-next {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: var(--spacing-small) var(--spacing-medium);
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: all var(--transition-speed) ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.lightbox-prev:disabled,
.lightbox-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Lightbox Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-content {
  animation: slideIn 0.3s ease;
}

/* H
otels Page Styles */
.hotels-section {
  padding: var(--spacing-large) 0;
}

.hotels-intro {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: var(--spacing-large);
  color: var(--primary-color);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hotels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-large);
  margin-bottom: var(--spacing-xl);
}

.hotel-card {
  background-color: var(--secondary-color);
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  padding: var(--spacing-medium);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed) ease;
}

.hotel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.hotel-image-container {
  margin-bottom: var(--spacing-medium);
}

.hotel-image-placeholder {
  width: 100%;
  height: 200px;
  background-color: var(--accent-color);
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hotel-name {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: var(--letter-spacing-normal);
  margin-bottom: var(--spacing-xs);
  text-transform: uppercase;
  color: var(--primary-color);
}

.hotel-address {
  font-size: 0.95rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-small);
  font-style: italic;
}

.hotel-description {
  font-size: 1rem;
  line-height: var(--line-height-base);
  margin-bottom: var(--spacing-medium);
  color: var(--primary-color);
}

.hotel-details {
  background-color: var(--accent-color);
  padding: var(--spacing-small);
  border-radius: 4px;
  margin-bottom: var(--spacing-medium);
}

.hotel-details p {
  margin-bottom: var(--spacing-xs);
  font-size: 0.95rem;
}

.hotel-details p:last-child {
  margin-bottom: 0;
}

.hotel-actions {
  display: flex;
  gap: var(--spacing-small);
  flex-wrap: wrap;
}

.hotel-additional-info {
  margin-bottom: var(--spacing-xl);
}

.hotel-additional-info h3 {
  text-align: center;
  margin-bottom: var(--spacing-large);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-medium);
}

.info-card {
  background-color: var(--accent-color);
  padding: var(--spacing-medium);
  border-radius: 8px;
  border: 2px solid var(--light-gray);
}

.info-card h4 {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-small);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-normal);
}

.hotel-contact {
  text-align: center;
  background-color: var(--accent-color);
  padding: var(--spacing-large);
  border-radius: 8px;
  border: 2px solid var(--light-gray);
}

.hotel-contact h3 {
  margin-bottom: var(--spacing-medium);
}

.contact-details {
  margin-top: var(--spacing-medium);
}

.contact-details p {
  margin-bottom: var(--spacing-xs);
  font-size: 1.1rem;
}

.contact-details a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* Travel Page Styles */
.travel-section {
  padding: var(--spacing-large) 0;
}

.travel-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.travel-intro {
  font-size: 1.2rem;
  color: var(--primary-color);
  max-width: 600px;
  margin: 0 auto;
}

.travel-directions,
.venue-info-section,
.local-transport,
.travel-tips,
.travel-contact {
  margin-bottom: var(--spacing-xl);
}

.travel-directions h3,
.venue-info-section h3,
.local-transport h3,
.travel-tips h3,
.travel-contact h3 {
  text-align: center;
  margin-bottom: var(--spacing-large);
}

.directions-grid,
.transport-options,
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-medium);
}

.direction-card,
.transport-card,
.tip-card {
  background-color: var(--secondary-color);
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  padding: var(--spacing-medium);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.direction-card h4,
.transport-card h4,
.tip-card h4 {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-small);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-normal);
  color: var(--primary-color);
}

.direction-card p,
.transport-card p,
.tip-card p {
  margin-bottom: var(--spacing-small);
  line-height: var(--line-height-base);
}

.direction-card ul,
.transport-card ul,
.tip-card ul {
  margin-left: var(--spacing-medium);
  margin-bottom: var(--spacing-small);
}

.direction-card li,
.transport-card li,
.tip-card li {
  margin-bottom: var(--spacing-xs);
}

.direction-card a,
.transport-card a,
.tip-card a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.direction-card a:hover,
.transport-card a:hover,
.tip-card a:hover {
  text-decoration: underline;
}

/* Venue Details Styles */
.venue-details-card {
  background-color: var(--accent-color);
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  padding: var(--spacing-large);
  text-align: center;
}

.venue-details-card h4 {
  font-size: 1.6rem;
  margin-bottom: var(--spacing-xs);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

.venue-address {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: var(--spacing-large);
  color: var(--primary-color);
}

.venue-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-medium);
  margin-top: var(--spacing-medium);
}

.venue-detail {
  background-color: var(--secondary-color);
  padding: var(--spacing-medium);
  border-radius: 8px;
  border: 2px solid var(--light-gray);
}

.venue-detail h5 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-small);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-normal);
  color: var(--primary-color);
}

.venue-detail p {
  margin-bottom: var(--spacing-xs);
  font-size: 0.95rem;
}

.venue-detail p:last-child {
  margin-bottom: 0;
}

.venue-detail em {
  font-size: 0.9rem;
  color: var(--primary-color);
}

/* Travel Contact Styles */
.travel-contact {
  text-align: center;
  background-color: var(--accent-color);
  padding: var(--spacing-large);
  border-radius: 8px;
  border: 2px solid var(--light-gray);
}

.contact-info {
  margin-top: var(--spacing-medium);
}

.contact-info p {
  margin-bottom: var(--spacing-xs);
  font-size: 1rem;
}

.contact-info a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Enhanced Button Animations and Effects */
.btn {
  position: relative;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
}

.btn.pressed {
  transform: translateY(-2px) scale(0.98);
}

.btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn.error {
  background-color: var(--error-color);
  border-color: var(--error-color);
  color: var(--secondary-color);
  animation: shake 0.5s ease-in-out;
}

/* Ripple effect for buttons */
.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

/* Loading spinner for buttons */
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: var(--spacing-xs);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Form Error Styles */
.form-error {
  background-color: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
  padding: var(--spacing-small);
  border-radius: 4px;
  margin-top: var(--spacing-small);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

/* Image Loading States */
.image-loading {
  position: relative;
  overflow: hidden;
}

.image-loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.image-loaded {
  animation: imageLoadFade 0.5s ease-in-out;
}

@keyframes imageLoadFade {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.image-error-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--info-bg);
  border: 2px dashed var(--info-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-text);
  font-style: italic;
  border-radius: 8px;
}

/* Confetti Animation */
@keyframes confetti-fall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}



/* Smooth Scrolling Enhancement */
html {
  scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.nav-menu a:focus,
.btn:focus {
  outline: 3px solid rgba(0, 0, 0, 0.3);
  outline-offset: 2px;
}

/* Remove focus outline from showcase members */
.showcase-member:focus,
.showcase-image-placeholder:focus {
  outline: none;
}

/* Story Timeline Styles */
.story-timeline-section {
  padding: var(--spacing-large) 0;
  text-align: center;
  position: relative;
  z-index: 100;
  overflow: visible;
  border-top: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

.story-hint {
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--primary-color);
  opacity: 0.7;
  margin-bottom: var(--spacing-medium);
  letter-spacing: 0.5px;
  animation: subtlePulse 3s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.hint-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
}

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

.story-illustrations-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: nowrap;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-small);
  overflow: visible;
}

.story-moment {
  position: relative;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  flex: 0 0 auto;
  text-align: center;
  overflow: visible;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.story-moment::after {
  content: '👆';
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  animation: pulseHint 2s ease-in-out infinite;
}

@keyframes pulseHint {

  0%,
  100% {
    transform: scale(1);
  }

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

.story-moment:hover::after {
  opacity: 0;
}

.story-illustration {
  width: 100%;
  max-width: 100px;
  aspect-ratio: 1;
  margin: 0 auto var(--spacing-small) auto;
  position: relative;
}

/* Add "Tap to view" hint
.story-illustration::after {
  content: 'Tap to view';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--primary-color);
  opacity: 0.6;
  white-space: nowrap;
  pointer-events: none;
  font-style: italic;
} */

.story-moment:hover .story-illustration::after {
  opacity: 0;
}

.illustration-placeholder {
  width: 100%;
  height: 100%;
  background-color: transparent;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) ease;
  position: relative;
}

.story-moment:hover .illustration-placeholder {
  border-color: var(--primary-color);
}

.illustration-placeholder .placeholder-text {
  font-size: 0.8rem;
  text-align: center;
  color: var(--primary-color);
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-normal);
}

.story-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 10px;
  background-color: var(--tooltip-bg);
  color: var(--tooltip-text);
  padding: var(--spacing-medium);
  border-radius: 8px;
  border: 1px solid var(--info-border);
  width: 280px;
  max-width: calc(100vw - 40px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed) ease;
  z-index: 9999;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
}

/* Tooltip for first item (left edge) - show on RIGHT side */
.story-moment:first-child .story-tooltip {
  bottom: auto;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  margin-bottom: 0;
  margin-left: 10px;
}

.story-moment:first-child .story-tooltip::after {
  top: 50%;
  left: auto;
  right: 100%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-right-color: var(--tooltip-bg);
  border-top-color: transparent;
}

/* Tooltip for last item (right edge) - show on LEFT side */
.story-moment:last-child .story-tooltip {
  bottom: auto;
  top: 50%;
  left: auto;
  right: 100%;
  transform: translateY(-50%);
  margin-bottom: 0;
  margin-right: 10px;
}

.story-moment:last-child .story-tooltip::after {
  top: 50%;
  left: 100%;
  right: auto;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: var(--tooltip-bg);
  border-top-color: transparent;
}

.story-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: var(--tooltip-bg);
}

.story-tooltip p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: left;
  font-style: italic;
}

/* Hover Effects */
.story-moment:hover {
  z-index: 10000;
}

.story-moment:hover .illustration-placeholder {
  transform: scale(1.1);
  border-color: var(--primary-color);
  background-color: var(--primary-color);
}

.story-moment:hover .illustration-placeholder .placeholder-text {
  color: var(--secondary-color);
  font-weight: 700;
}

.story-moment:hover .story-tooltip,
.story-moment:focus .story-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-10px);
}

/* Adjust hover/focus transform for edge items */
.story-moment:first-child:hover .story-tooltip,
.story-moment:first-child:focus .story-tooltip {
  transform: translateY(-50%) translateX(10px);
}

.story-moment:last-child:hover .story-tooltip,
.story-moment:last-child:focus .story-tooltip {
  transform: translateY(-50%) translateX(-10px);
}

/* Animation for story moments */
.story-moment {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.story-moment:nth-child(1) {
  animation-delay: 0.1s;
}

.story-moment:nth-child(2) {
  animation-delay: 0.2s;
}

.story-moment:nth-child(3) {
  animation-delay: 0.3s;
}

.story-moment:nth-child(4) {
  animation-delay: 0.4s;
}

.story-moment:nth-child(5) {
  animation-delay: 0.5s;
}

.story-moment:nth-child(6) {
  animation-delay: 0.6s;
}

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

/* Responsive styles handled by mobile.css */

/* Enhanced Hover Effects */
.showcase-member:hover .showcase-image-placeholder,
.photo-item:hover .photo-placeholder,
.business-card:hover .business-image-placeholder {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Transition Improvements */
.hero-image-placeholder,
.party-member-image-placeholder,
.business-image-placeholder,
.photo-placeholder,
.showcase-image-placeholder,
.couple-image-placeholder,
.hotel-image-placeholder {
  transition: all var(--transition-speed) ease;
}

/* Form Animation Enhancements */
.rsvp-form {
  transition: all 0.5s ease;
}

.form-success {
  transition: all 0.5s ease;
}

/* Photo Credit Styles */
.photo-credit {
  text-align: center;
  margin-top: var(--spacing-large);
  padding-top: var(--spacing-medium);
  border-top: 2px solid var(--light-gray);
}

.photo-credit p {
  font-size: 1rem;
  font-style: italic;
  color: var(--primary-color);
  margin: 0;
  letter-spacing: var(--letter-spacing-normal);
}

/* Browser Compatibility Fallbacks */
.no-grid .grid,
.no-grid .grid-2,
.no-grid .grid-3,
.no-grid .grid-4 {
  display: block;
}

.no-grid .grid>*,
.no-grid .grid-2>*,
.no-grid .grid-3>*,
.no-grid .grid-4>* {
  display: inline-block;
  width: 100%;
  vertical-align: top;
  margin-bottom: var(--spacing-medium);
}

.no-flexbox .flex,
.no-flexbox .flex-center,
.no-flexbox .flex-between {
  display: block;
  text-align: center;
}

.no-flexbox .nav-menu {
  display: block;
}

.no-flexbox .nav-menu li {
  display: inline-block;
  margin: 0 1px;
}

/* Touch device optimizations */
.touch-device .btn {
  min-height: 44px;
  min-width: 44px;
}

.touch-device .nav-menu a {
  min-height: 44px;
  padding: var(--spacing-small);
}

/* Mobile device optimizations */
.mobile-device .main-title {
  font-size: 2rem;
}

.mobile-device .container {
  padding: 0 var(--spacing-xs);
}

/* Responsive Design for Hero Split */
@media (max-width: 768px) {
  .hero-split-container {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-left,
  .hero-right {
    min-height: 40vh;
    padding: var(--spacing-large);
  }

  .monogram-r,
  .monogram-g {
    font-size: 6rem;
  }

  .monogram-ampersand {
    font-size: 3rem;
  }

  .hero-right .hero-image-placeholder {
    height: 40vh;
  }

  .hero-right .hero-image {
    height: 40vh;
  }

  .main-grid {
    grid-template-columns: 1fr;
  }

  .grid-item {
    border-right: none;
    border-bottom: 1px solid var(--primary-color);
  }

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

  .bottom-actions-grid {
    grid-template-columns: 1fr;
  }

  .action-section {
    border-right: none;
    border-bottom: 1px solid var(--primary-color);
  }

  .action-section:last-child {
    border-bottom: none;
  }

  .schedule-events-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-medium);
  }
}

/* Welcom
e Page Styles */
.welcome-section {
  padding: var(--spacing-large) 0;
}

.welcome-hero-image {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.couple-image-placeholder.large {
  width: 100%;
  max-width: 600px;
  height: 400px;
  margin: 0 auto;
  background-color: var(--accent-color);
  border: 1px solid var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-color);
  text-align: center;
  line-height: 1.4;
}

.welcome-message {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.welcome-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  margin-bottom: var(--spacing-xl);
  color: var(--primary-color);
}

.welcome-content {
  text-align: left;
  margin-bottom: var(--spacing-large);
}

.welcome-text {
  font-size: 1.1rem;
  line-height: var(--line-height-base);
  margin-bottom: var(--spacing-medium);
  color: var(--primary-color);
}

.welcome-signature {
  text-align: center;
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-large);
  border-top: 1px solid var(--light-gray);
}

.signature-text {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-small);
  color: var(--primary-color);
  font-style: italic;
}

.signature-names {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: var(--letter-spacing-normal);
  color: var(--primary-color);
  margin-bottom: 0;
}

/* Responsive styles for welcome page */
@media (max-width: 768px) {
  .welcome-title {
    font-size: 2rem;
  }

  .couple-image-placeholder.large {
    height: 300px;
  }

  .welcome-text {
    font-size: 1rem;
  }

  .signature-names {
    font-size: 1.3rem;
  }
}

/* W
edding Party Member Pages Styles */
.wedding-party-section {
  padding: var(--spacing-large) 0;
}

.wedding-party-title {
  font-size: 2.5rem;
  font-weight: bold;
  letter-spacing: var(--letter-spacing-wide);
  text-align: center;
  margin-bottom: var(--spacing-small);
  text-transform: uppercase;
  color: var(--primary-color);
}

.wedding-party-subtitle {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--primary-color);
  font-style: italic;
}

.wedding-party-category {
  margin-bottom: var(--spacing-xl);
}

.category-title {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: var(--letter-spacing-wide);
  text-align: center;
  margin-bottom: var(--spacing-large);
  text-transform: uppercase;
  color: var(--primary-color);
}

.wedding-party-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-large);
  margin-bottom: var(--spacing-large);
}

.wedding-party-member {
  display: flex;
  flex-direction: column;
  background-color: var(--secondary-color);
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  padding: var(--spacing-medium);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed) ease;
}

.wedding-party-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.member-image-container {
  text-align: center;
  margin-bottom: var(--spacing-medium);
}

.member-image {
  width: 250px;
  height: 250px;
  border-radius: 8px;
  object-fit: cover;
  border: 3px solid var(--light-gray);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.member-details {
  text-align: center;
  flex-grow: 1;
}

.member-name {
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-normal);
  margin-bottom: var(--spacing-xs);
  text-transform: uppercase;
  color: var(--primary-color);
}

.member-relationship {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-small);
  font-weight: 300;
}

.member-job-title {
  font-size: 0.95rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-medium);
  font-style: italic;
  font-weight: 300;
}

.member-story {
  font-size: 1rem;
  line-height: var(--line-height-base);
  color: var(--primary-color);
  margin: 0;
}

/* Member Navigation Styles */
.member-navigation {
  display: flex;
  justify-content: center;
  gap: var(--spacing-small);
  margin-top: var(--spacing-large);
  flex-wrap: wrap;
}

.member-nav-btn {
  padding: var(--spacing-xs) var(--spacing-small);
  font-size: 0.9rem;
  min-width: auto;
}

/* Special Roles Section (for future flower girl/ring bearer) */
.special-roles-section {
  margin-top: var(--spacing-xl);
}

.special-roles-grid {
  display: flex;
  justify-content: center;
  gap: var(--spacing-large);
  flex-wrap: wrap;
}

.special-role-member {
  max-width: 300px;
  text-align: center;
}

.special-role-member .member-image {
  width: 200px;
  height: 200px;
}

/* W
edding Party Styles */
.wedding-party-section {
  padding: var(--spacing-large) 0;
  text-align: center;
}

.wedding-party-title {
  font-size: 2.5rem;
  font-weight: bold;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--spacing-small);
  text-transform: uppercase;
  color: var(--primary-color);
}

.wedding-party-subtitle {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-large);
  font-style: italic;
}

.wedding-party-category {
  margin-bottom: var(--spacing-large);
  padding: var(--spacing-large) 0;
}

.category-title {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--spacing-large);
  text-transform: uppercase;
  color: var(--primary-color);
  text-align: center;
}

.wedding-party-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-large);
  max-width: 1200px;
  margin: 0 auto;
}

.wedding-party-member {
  background-color: var(--accent-color);
  border: 2px solid var(--light-gray);
  border-radius: 12px;
  padding: var(--spacing-medium);
  text-align: center;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.wedding-party-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.member-image-container {
  margin-bottom: var(--spacing-medium);
}

.member-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  margin: 0 auto;
  display: block;
}

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

.member-name {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: var(--letter-spacing-normal);
  margin-bottom: var(--spacing-small);
  color: var(--primary-color);
  text-transform: uppercase;
}

.member-relationship {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-small);
  font-weight: 600;
}

.member-job-title {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-medium);
  font-style: italic;
  opacity: 0.8;
}

.member-story {
  font-size: 1rem;
  line-height: var(--line-height-relaxed);
  color: var(--primary-color);
  text-align: left;
  margin: 0;
}

/* Wedding Party Navigation */
.wedding-party-navigation {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-large);
  background-color: var(--accent-color);
  border: 2px solid var(--light-gray);
  border-radius: 12px;
}

.navigation-title {
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--spacing-large);
  text-transform: uppercase;
  color: var(--primary-color);
  text-align: center;
}

.member-navigation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-medium);
  max-width: 800px;
  margin: 0 auto;
}

.member-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-medium);
  background-color: var(--secondary-color);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  text-decoration: none;
  color: var(--primary-color);
  transition: all var(--transition-speed) ease;
}

.member-nav-link:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
}

.nav-number {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: var(--spacing-xs);
}

.nav-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: var(--letter-spacing-normal);
  text-transform: uppercase;
}

/* Responsive Design for Wedding Party */
@media (max-width: 768px) {
  .wedding-party-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-medium);
  }

  .member-navigation-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-small);
  }

  .wedding-party-title {
    font-size: 2rem;
  }

  .category-title {
    font-size: 1.5rem;
  }

  .member-image {
    width: 150px;
    height: 150px;
  }

  .member-name {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .member-navigation-grid {
    grid-template-columns: 1fr;
  }

  .wedding-party-member {
    padding: var(--spacing-small);
  }

  .member-image {
    width: 120px;
    height: 120px;
  }
}

/* 
Loading Spinner Styles */
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--secondary-color);
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn.loading {
  opacity: 0.8;
  cursor: not-allowed;
}

.btn.loading:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Form Error Styles */
.form-error {
  background-color: var(--error-bg);
  color: var(--error-text);
  padding: 12px;
  border-radius: 4px;
  margin-top: 10px;
  border: 1px solid var(--error-border);
}

.form-error p {
  margin: 0;
  font-size: 14px;
}

/* Confetti Animation */
@keyframes confetti-fall {
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Existing Submission Styles */
.existing-submission {
  background: var(--info-bg);
  border: 2px solid var(--success-color);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  text-align: center;
}

.submission-status {
  max-width: 500px;
  margin: 0 auto;
}

.submission-details {
  background: var(--secondary-color);
  padding: 20px;
  border-radius: 6px;
  margin: 20px 0;
  border: 1px solid var(--info-border);
}

.submission-details p {
  margin: 10px 0;
  font-size: 1rem;
}

.submission-note {
  font-style: italic;
  color: #666;
  font-size: 0.9rem !important;
  margin-top: 15px !important;
}

.submission-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 25px;
}

.update-note {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 20px;
}

/* Mobile responsive for existing submission */
@media screen and (max-width: 768px) {
  .existing-submission {
    padding: 20px;
    margin-bottom: 20px;
  }

  .submission-actions {
    flex-direction: column;
    align-items: center;
  }

  .submission-actions .btn {
    width: 100%;
    max-width: 250px;
  }
}

/* Thank You Message on RSVP Page */
.existing-submission {
  background: white;
  border-radius: 8px;
  padding: 40px 30px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.thank-you-content {
  max-width: 600px;
  margin: 0 auto;
}

.submission-message {
  margin: 30px 0;
}

.submission-status-info {
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  border-radius: 6px;
  padding: 15px;
  margin: 25px 0;
}

.submission-received {
  margin: 0;
  font-size: 1rem;
  color: var(--success-color);
  font-weight: 500;
  cursor: help;
}

.hover-underline {
  border-bottom: 1px dotted var(--success-color);
}

.tooltip-icon {
  margin-left: 5px;
  opacity: 0.7;
  font-size: 0.9rem;
}

.next-steps-info {
  background: var(--info-bg);
  border-radius: 6px;
  padding: 25px;
  margin-top: 30px;
}

.submission-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 25px;
}

/* Mobile responsive for thank you message */
@media screen and (max-width: 768px) {
  .existing-submission {
    padding: 30px 20px;
    margin-bottom: 20px;
  }

  .submission-actions {
    flex-direction: column;
    align-items: center;
  }

  .submission-actions .btn {
    width: 100%;
    max-width: 250px;
  }
}

/* RSVP S
ubmission Popover */
.submission-received-wrapper {
  position: relative;
  display: inline-block;
}

.submission-received {
  color: var(--success-color);
  font-weight: 500;
  cursor: pointer;
  border-bottom: 1px dotted var(--success-color);
  padding: 2px 0;
}

.info-icon {
  margin-left: 5px;
  opacity: 0.7;
  font-size: 0.9rem;
}

.submission-popover {
  display: none;
  position: fixed;
  z-index: 1000;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 300px;
  max-width: 90vw;
}

.popover-content {
  padding: 20px;
}

.popover-content h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 1.1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.popover-details p {
  margin: 8px 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.popover-arrow {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid white;
}

.popover-arrow::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -8px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ddd;
}

/* Existing submission status */
.submission-status {
  max-width: 500px;
  margin: 0 auto;
}

.submission-info {
  background: var(--secondary-color);
  padding: 20px;
  border-radius: 6px;
  margin: 20px 0;
  border: 1px solid var(--info-border);
}

/* Mobile responsive for popover */
@media screen and (max-width: 768px) {
  .submission-popover {
    width: 280px;
    left: 10px !important;
    right: 10px;
    width: auto;
  }
}

/* Desktop styles for new location-rsvp structure */
.location-rsvp-item {
  display: flex;
  flex-direction: column;
}

.location-rsvp-item .location-section,
.location-rsvp-item .rsvp-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: var(--spacing-medium);
}

.location-rsvp-item .location-section {
  border-bottom: 2px solid var(--primary-color);
}

/* Ensure buttons are aligned horizontally on desktop */
.location-rsvp-item .section-actions {
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Enhanced showcase member hover effects */
.showcase-member {
  position: relative;
  transition: transform 0.3s ease;
}

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

/* Mobile override for grid-item border-right */
@media screen and (max-width: 768px) {
  .grid-item:first-child {
    border-right: none !important;
  }

  .countdown-item {
    border-right: none !important;
  }

  /* KILL THE PSEUDO-ELEMENT BORDER! */
  .grid-item:first-child::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    background: none !important;
  }
}

/* =
==================================
   Thank You Page Styles
   =================================== */

.thank-you-section {
  animation: fadeInUp 0.8s ease-out;
}

.thank-you-image-container {
  margin: 30px auto;
  animation: scaleIn 0.6s ease-out 0.2s both;
}

/* Thank you image placeholder has no hover effects */

.placeholder-icon {
  animation: bounceIn 0.8s ease-out 0.4s both;
}

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }

  70% {
    transform: scale(0.9);
  }

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

/* Confetti animation */
@keyframes confetti-fall {
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Thank you page image sizing - smaller overall */
.thank-you-image-container {
  max-width: 500px !important;
}

.thank-you-image-placeholder {
  height: 400px !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .thank-you-image-container {
    max-width: 350px !important;
  }

  .thank-you-image-placeholder {
    aspect-ratio: 12/13 !important;
    height: auto !important;
  }

  .placeholder-icon {
    font-size: 60px !important;
  }

  .placeholder-text {
    font-size: 1rem !important;
  }

  .placeholder-subtext {
    font-size: 0.8rem !important;
  }
}

/* Black
 and white filter for sorry we'll miss you image */
img[src*="sorry-cant-attend"] {
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
}

/* Illustration image styles */
.illustration-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  transition: all var(--transition-speed) ease;
  pointer-events: none;
  /* Clicks pass through to parent .story-moment */
  -webkit-user-drag: none;
  /* Prevent image dragging */
  user-select: none;
  -webkit-touch-callout: none;
}

.story-moment:hover .illustration-image,
.story-moment:focus .illustration-image {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Keyboard focus indicator */
.story-moment:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 4px;
  border-radius: 8px;
}

.story-moment:focus:not(:focus-visible) {
  outline: none;
}

/* Photo Essay Styles */
.photo-essay-section {
  padding: var(--spacing-large) 0;
  max-width: 900px;
  margin: 0 auto;
}

.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-large);
  align-items: center;
  margin-bottom: var(--spacing-large);
  padding: var(--spacing-medium) 0;
}

.story-block-reverse {
  direction: ltr;
}

.story-block-full {
  margin-bottom: var(--spacing-large);
  padding: var(--spacing-medium) 0;
  text-align: center;
}

.story-image-full {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin-bottom: var(--spacing-medium);
  display: block;
  object-fit: cover;
}


.story-block-text-only {
  margin: 0 auto var(--spacing-large);
  padding: var(--spacing-medium) var(--spacing-medium);
}

.story-image-left,
.story-image-right {
  width: 100%;
}

.story-text-left,
.story-text-right {
  padding: var(--spacing-medium);
}

.story-image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background-color: var(--accent-color);
  border: 2px solid var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-speed) ease;
}

.story-image-placeholder:hover {
  transform: scale(1.02);
}

.story-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4/5;
  transition: transform var(--transition-speed) ease;
}

.story-image:hover {
  transform: scale(1.02);
}

/* Special handling for dil-mil chat image - maintain aspect ratio */
.story-image[src*="dil-mil"] {
  object-fit: contain;
  aspect-ratio: auto;
  max-width: 100%;
}

.story-image-placeholder.large {
  aspect-ratio: 16/9;
}

.story-chapter-title {
  font-family: var(--font-family-heading);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--spacing-medium);
  color: var(--primary-color);
}

.story-paragraph {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--primary-color);
}

.story-full-image {
  margin: var(--spacing-xl) 0;
  width: 100%;
}

.story-closing {
  margin-top: var(--spacing-small);
  padding: var(--spacing-small) 0;
}

.story-signature {
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--primary-color);
}

/* Mobile responsive for photo essay */
@media (max-width: 768px) {

  .story-block,
  .story-block-reverse {
    grid-template-columns: 1fr;
    gap: var(--spacing-medium);
  }

  .story-text-left,
  .story-text-right {
    padding: var(--spacing-small) 0;
  }

  .story-chapter-title {
    font-size: 1.4rem;
  }

  .story-paragraph {
    font-size: 1rem;
  }
}

/* Timeline Styles */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 60px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--primary-color);
}

.timeline-event {
  position: relative;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-large);
}

.timeline-event::before {
  content: '';
  position: absolute;
  left: -47px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 3px solid var(--secondary-color);
  box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-time {
  font-family: var(--font-family-button);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--primary-color);
  margin-bottom: var(--spacing-small);
  text-transform: uppercase;
}

.timeline-content {
  padding: 0;
}

.timeline-title {
  font-family: var(--font-family-heading);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: var(--letter-spacing-normal);
  margin-bottom: var(--spacing-small);
  color: var(--primary-color);
}

.timeline-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--primary-color);
  margin-bottom: 0;
}

.timeline-note {
  font-size: 0.9rem;
  margin-top: var(--spacing-small);
  color: var(--primary-color);
}

/* Mobile timeline adjustments */
@media (max-width: 768px) {
  .timeline {
    padding-left: 40px;
  }

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

  .timeline-event::before {
    left: -37px;
  }

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

  .timeline-description {
    font-size: 0.95rem;
  }
}

/* Place Page Styles */
.place-hero {
  text-align: center;
  padding: var(--spacing-large) 0 var(--spacing-xl) 0;
}

.place-intro {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--primary-color);
  margin-top: var(--spacing-small);
}

.place-venue-section {
  margin: 0 auto var(--spacing-large) auto;
  padding: 0;
}

.venue-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 60vh;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.venue-image-side {
  background-color: var(--secondary-color);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  position: relative;
}

.venue-split::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--primary-color);
  z-index: 1;
  transform: translateX(-50%);
}

.venue-text-side {
  background-color: var(--secondary-color);
  padding: var(--spacing-large);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.venue-image {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  display: block;
  filter: contrast(1.1) saturate(0.9) brightness(0.95);
  -webkit-filter: contrast(1.1) saturate(0.9) brightness(0.95);
}

.venue-name {
  font-family: var(--font-family-heading);
  font-size: 2rem !important;
  font-weight: 600;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--spacing-xs);
  color: var(--primary-color);
  line-height: 1.2;
}

.venue-location {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--primary-color);
  margin-bottom: var(--spacing-medium);
}

.venue-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--primary-color);
  margin-bottom: var(--spacing-large);
  max-width: 400px;
}

/* Mobile responsive for venue split */
@media (max-width: 768px) {
  .venue-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .venue-split::after {
    display: none;
  }

  .venue-image-side,
  .venue-text-side {
    min-height: 40vh;
  }

  .venue-image {
    height: 40vh;
  }

  .place-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .info-card-simple {
    border-right: 2px solid var(--primary-color);
    border-bottom: none;
  }

  .info-card-simple:last-child {
    border-right: none;
  }

  .info-card-simple:not(:last-child)::after {
    display: block;
  }
}

.place-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto var(--spacing-xl) auto;
  padding: var(--spacing-large) 0;
  border-top: 2px solid var(--primary-color);
  position: relative;
}

.place-info-grid::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-color);
}

.info-card-simple {
  text-align: center;
  padding: var(--spacing-large) var(--spacing-medium);
  border-right: 2px solid var(--primary-color);
  position: relative;
}

.info-card-simple:last-child {
  border-right: none;
}

.info-card-simple:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--primary-color);
  z-index: 1;
}

.info-title {
  font-family: var(--font-family-heading);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--spacing-small);
  color: var(--primary-color);
  text-transform: uppercase;
}

.info-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
}

.info-subtext {
  font-size: 0.9rem;
  color: var(--primary-color);
  opacity: 0.8;
}

.place-cta {
  text-align: center;
  padding: var(--spacing-medium) var(--spacing-small);
  max-width: var(--max-width);
  margin: 0 auto;
  margin-top: var(--spacing-small);
}

.cta-title {
  font-family: var(--font-family-heading);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--spacing-medium);
  color: var(--primary-color);
}

.cta-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--primary-color);
  margin-bottom: var(--spacing-large);
}

/* Mobile responsive for place page */
@media (max-width: 768px) {
  .place-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .info-card-simple {
    padding: var(--spacing-medium) var(--spacing-small);
  }

  .info-title {
    font-size: 0.9rem;
  }

  .info-subtext {
    font-size: 0.8rem;
  }

  .venue-name {
    font-size: 1.6rem;
  }

  .cta-title {
    font-size: 1.4rem;
  }

  /* Force place page hero to stack vertically */
  main.main-content>.hero-split-section .hero-split-container {
    grid-template-columns: 1fr !important;
  }

  main.main-content>.hero-split-section .hero-left,
  main.main-content>.hero-split-section .hero-right {
    border-right: none !important;
  }

  main.main-content>.hero-split-section .hero-left::after {
    display: none !important;
  }
}

/* Place page subtitle */
.place-subtitle {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--primary-color);
  margin-top: var(--spacing-medium);
  font-family: var(--font-family);
}

/* Place venue details section */
.place-venue-details {
  text-align: center;
  padding: var(--spacing-xl) 0;
  max-width: 700px;
  margin: 0 auto;
}

/* Venue details content in hero */
.venue-details-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: var(--spacing-large);
}

.venue-details-content .venue-name {
  margin-bottom: var(--spacing-small);
}

.venue-details-content .venue-location {
  margin-bottom: var(--spacing-medium);
}

.venue-details-content .venue-description {
  margin-bottom: var(--spacing-large);
  max-width: 400px;
}

/* Mobile adjustments for venue details */
@media (max-width: 768px) {
  .venue-details-content {
    padding: var(--spacing-medium);
  }

  .venue-details-content .btn {
    width: auto;
    white-space: nowrap;
    padding: var(--spacing-small) var(--spacing-medium);
    font-size: 0.8rem;
  }
}

/* Stacked photos effect - pinched at bottom, aligned bottom edges */
.stacked-photos {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  perspective: 1000px;
  padding-bottom: 20px;
}

.stacked-photo {
  position: absolute;
  width: 260px;
  height: auto;
  transition: transform 0.4s ease;
  /* Polaroid effect - white border with thicker bottom */
  border: 12px solid white;
  border-bottom-width: 40px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background: white;
  transform-origin: center bottom;
  cursor: pointer;
  bottom: 0;
}

/* Ensure picture elements don't affect stacked photo layout */
.stacked-photo picture {
  display: block;
  width: 100%;
  height: auto;
}

.stacked-photo picture img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-back {
  transform: rotate(-12deg) translateX(-40px) rotateX(5deg);
  z-index: 1;
}

.photo-middle {
  transform: rotate(0deg) translateX(0px) rotateX(5deg);
  z-index: 2;
}

.photo-front {
  transform: rotate(10deg) translateX(35px) rotateX(5deg);
  z-index: 3;
}

/* Desktop hover - moderate fan out since bottom edges align */
.stacked-photos:hover .photo-back {
  transform: rotate(-15deg) translateX(-40px) rotateX(5deg);
}

.stacked-photos:hover .photo-middle {
  transform: rotate(0deg) translateX(0px) rotateX(5deg) scale(1.05);
}

.stacked-photos:hover .photo-front {
  transform: rotate(15deg) translateX(40px) rotateX(5deg);
}

/* Mobile adjustments for stacked photos */
@media (max-width: 768px) {
  .stacked-photos {
    height: 300px;
    touch-action: pan-y;
    padding-bottom: 10px;
  }

  .stacked-photo {
    width: 220px;
    /* Smaller polaroid borders on mobile */
    border: 10px solid white;
    border-bottom-width: 35px;
  }

  .photo-back {
    transform: rotate(-8deg) translateX(-20px) rotateX(5deg);
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.4s ease;
  }

  .photo-middle {
    transform: rotate(0deg) translateX(0px) rotateX(5deg);
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.4s ease;
  }

  .photo-front {
    transform: rotate(6deg) translateX(18px) rotateX(5deg);
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.4s ease;
  }

  /* Mobile swipe states - smooth transitions */
  .stacked-photo {
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  /* Show only back photo */
  .stacked-photos.show-back .photo-front,
  .stacked-photos.show-back .photo-middle {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
  }

  /* Show only middle photo */
  .stacked-photos.show-middle .photo-back,
  .stacked-photos.show-middle .photo-front {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
  }

  /* Show only front photo */
  .stacked-photos.show-front .photo-back,
  .stacked-photos.show-front .photo-middle {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
  }
}

/* Photo Essay / Story Section Styles */
.photo-essay-section {
  padding: var(--spacing-large) 0;
}

.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-large);
  margin-bottom: var(--spacing-xl);
  align-items: center;
}

.story-block-reverse {
  direction: rtl;
}

.story-block-reverse>* {
  direction: ltr;
}

.story-image-left,
.story-image-right,
.story-text-left,
.story-text-right {
  padding: var(--spacing-small);
}

.story-chapter-title {
  font-family: var(--font-family-heading);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--spacing-medium);
  color: var(--primary-color);
}

.story-paragraph {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--primary-color);
  margin-bottom: var(--spacing-small);
}

.story-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.story-closing {
  margin-top: var(--spacing-small);
  padding: var(--spacing-small) 0;
}

.story-signature {
  font-size: 1.1rem;
  font-style: italic;
  margin-top: var(--spacing-medium);
}

/* Mobile adjustments for story blocks */
@media (max-width: 768px) {
  .story-block {
    grid-template-columns: 1fr;
    gap: var(--spacing-medium);
  }

  .story-chapter-title {
    font-size: 1.4rem;
  }

  .story-paragraph {
    font-size: 1rem;
  }
}

/* Wed
ding Party Avatar Effects */
.party-showcase-grid .showcase-member img {
  filter: grayscale(100%);
  transition: filter 0.4s ease, transform 0.3s ease;
}

.party-showcase-grid .showcase-member:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.party-showcase-grid .showcase-member {
  cursor: pointer;
  transition: transform 0.3s ease;
}