/**
 * ============================================================================
 * RESPONSIVE STYLESHEET: responsive.css
 * Project: Jonathan & Julene's Wedding Platform
 * Architecture: Fluid-First Scalable Layouts & High-Resolution Display Engine
 * Target Range: Minimum Desktop (1024px) to Ultrawide & 4K/72" TV (3840px+)
 * ============================================================================
 *
 * TABLE OF CONTENTS:
 *  1. VARIABLES & DESIGN TOKENS (:root custom properties)
 *  2. BASE & RESET RESILIENCE (Box model, overflow prevention, media scaling)
 *  3. LAYOUT & CONTAINER ARCHITECTURE (Centering, fluid wrappers, max constraints)
 *  4. COMPONENT ADAPTATIONS (Header, Navigation, Hero, Timeline, RSVP, Grids, Admin, Gallery)
 *  5. PROGRESSIVE RESPONSIVE BREAKPOINTS:
 *     - 1024px : Minimum Desktop
 *     - 1280px : Small Laptops (13") & Netbooks
 *     - 1366px : Small Laptops (14")
 *     - 1440px : MacBook Air 13" (Older)
 *     - 1536px : Windows Laptop 15" (at 125% DPI scale)
 *     - 1728px : MacBook Pro 16" & MacBook Air 15"
 *     - 1920px : 24" Full HD & Scaled Smart TVs
 *     - 2240px : iMac 24" (4.5K Retina Display)
 *     - 2560px : 27" QHD, iMac 27" 5K & 32" 4K Scaled
 *     - 3440px : 34" Ultrawide Monitors
 *     - 3840px : 43" 4K Monitors & 72" TV Raw 4K Display
 *  6. HIGH-DPI & RETINA SPECIALIZATIONS
 *  7. ACCESSIBILITY, HOVER/TOUCH & MOTION PREFERENCES
 * ============================================================================
 */

/* ============================================================================
   1. VARIABLES & DESIGN TOKENS
   ============================================================================ */
:root {
  /* Fluid Spacing Scale (rem / clamp) */
  --space-3xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.375rem);
  --space-2xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-xs:  clamp(0.75rem, 0.6rem + 0.75vw, 1rem);
  --space-sm:  clamp(1rem, 0.8rem + 1vw, 1.5rem);
  --space-md:  clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  --space-lg:  clamp(2rem, 1.6rem + 2vw, 3.25rem);
  --space-xl:  clamp(3rem, 2.4rem + 3vw, 4.75rem);
  --space-2xl: clamp(4rem, 3rem + 5vw, 7rem);

  /* Fluid Typography Scale */
  --font-hero-names: clamp(2.75rem, 2rem + 3.5vw, 5.5rem);
  --font-hero-sub:   clamp(1.2rem, 1rem + 1vw, 2rem);
  --font-section-h2: clamp(1.85rem, 1.4rem + 2vw, 3.25rem);
  --font-card-h3:    clamp(1.25rem, 1.1rem + 0.75vw, 1.85rem);
  --font-body:       clamp(0.925rem, 0.85rem + 0.35vw, 1.125rem);
  --font-meta:       clamp(0.75rem, 0.7rem + 0.2vw, 0.925rem);

  /* Container Constraints & Width Tokens */
  --container-max-w: 1200px;
  --section-max-w: 960px;
  --admin-max-w: 1280px;
  --gallery-max-w: 1600px;
  --card-max-w: 680px;
  --page-padding-x: clamp(1rem, 3vw, 3.5rem);

  /* Grid Column Dimensions */
  --grid-gap: clamp(1rem, 1.25vw, 2rem);
  --timeline-min-w: 260px;
  --metric-min-w: 220px;
  --gallery-min-w: 280px;
  --photo-admin-min-w: 280px;
}

/* ============================================================================
   2. BASE & RESET RESILIENCE
   ============================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-size: var(--font-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fluid Media & Replaced Elements */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* Prevent inputs & textareas from blowing up layout on small/large devices */
input,
button,
textarea,
select {
  font: inherit;
  max-width: 100%;
}

/* ============================================================================
   3. LAYOUT & CONTAINER ARCHITECTURE
   ============================================================================ */
/* Centered Primary Container Wrappers */
.section-wrap {
  width: 100%;
  max-width: var(--section-max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-padding-x);
  padding-right: var(--page-padding-x);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.container {
  width: 100%;
  max-width: var(--container-max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-padding-x);
  padding-right: var(--page-padding-x);
}

/* Navigation Header Alignment */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px var(--page-padding-x);
  background: rgba(249, 245, 239, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 163, 89, 0.35);
  z-index: 1000;
  transition: all 0.25s ease;
}

.nav-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: #243d2c;
  letter-spacing: 2px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  width: auto;
  white-space: nowrap;
}

.nav-links a {
  color: #1c211e;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: color 0.2s ease;
  padding: 4px 6px;
}

.nav-links a:hover {
  color: #d4a359;
}

.nav-rsvp-btn {
  background: #243d2c !important;
  color: #ffffff !important;
  padding: 8px 20px !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;
  box-shadow: 0 4px 12px rgba(36, 61, 44, 0.2) !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

.nav-rsvp-btn:hover {
  background: #d4a359 !important;
  box-shadow: 0 6px 18px rgba(212, 163, 89, 0.4) !important;
  transform: translateY(-1px) !important;
}

/* Top Admin Nav Bar */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  margin-bottom: 24px;
  width: 100%;
  max-width: var(--admin-max-w);
  box-sizing: border-box;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-title h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 600;
  letter-spacing: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn {
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ============================================================================
   4. COMPONENT ADAPTATIONS
   ============================================================================ */

/* Hero Section Responsiveness */
.hero {
  position: relative;
  width: 100%;
  max-width: 100vw;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--page-padding-x) var(--space-xl);
  text-align: center;
  box-sizing: border-box;
}

.hero-names {
  font-size: var(--font-hero-names);
  line-height: 1.08;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
  word-wrap: break-word;
}

.hero-subtitle {
  font-size: var(--font-hero-sub);
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-date-badge {
  font-size: clamp(0.85rem, 0.8rem + 0.3vw, 1.15rem);
  max-width: 90vw;
  white-space: normal;
  text-align: center;
}

/* Live Countdown Boxes */
.countdown-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2xs);
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.countdown-box {
  flex: 1 1 70px;
  max-width: 110px;
  padding: var(--space-2xs);
  box-sizing: border-box;
}

.countdown-number {
  font-size: clamp(1.75rem, 1.4rem + 1.25vw, 2.75rem);
}

.countdown-label {
  font-size: var(--font-meta);
}

/* Section Headers */
.section-header h2 {
  font-size: var(--font-section-h2);
  line-height: 1.15;
}

/* Story Card */
.story-card {
  width: 100%;
  max-width: var(--card-max-w);
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-md) var(--space-md);
  box-sizing: border-box;
}

.story-card p {
  font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.5rem);
  line-height: 1.8;
}

/* Timeline Grid */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--timeline-min-w), 1fr));
  gap: var(--grid-gap);
  width: 100%;
  box-sizing: border-box;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: var(--space-md);
  box-sizing: border-box;
  height: 100%;
}

.timeline-title {
  font-size: var(--font-card-h3);
}

/* Venue Card */
.venue-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
  align-items: center;
  box-sizing: border-box;
  padding: var(--space-md);
}

/* RSVP Section & Interactive Form Card */
.rsvp-section {
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  padding: var(--space-xl) 0;
}

.rsvp-card {
  width: 100%;
  max-width: var(--card-max-w);
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-md);
  box-sizing: border-box;
}

.attending-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xs);
}

/* Info Grid (Details / FAQ) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--grid-gap);
  width: 100%;
  box-sizing: border-box;
}

.info-box {
  padding: var(--space-md);
  box-sizing: border-box;
}

.info-box h3 {
  font-size: var(--font-card-h3);
}

/* Photo Upload & Gallery Components (index.html) */
.upload-card {
  width: 100%;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-md);
  box-sizing: border-box;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: var(--space-2xs);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--grid-gap);
  width: 100%;
}

/* Live Projector Screen Grid (gallery.html) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--gallery-min-w), 1fr));
  gap: var(--grid-gap);
  width: 100%;
  max-width: var(--gallery-max-w);
  margin: 0 auto;
}

/* Admin Dashboard Metrics & Grids (admin.html) */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--metric-min-w), 1fr));
  gap: var(--grid-gap);
  width: 100%;
}

.rsvp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--grid-gap);
  width: 100%;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--photo-admin-min-w), 1fr));
  gap: var(--grid-gap);
  width: 100%;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  align-items: center;
  justify-content: space-between;
}

/* Lightbox & Slideshow Modals */
.lightbox img,
.slideshow-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

/* Footer Centering */
.footer {
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  padding: var(--space-lg) var(--page-padding-x);
}


/* ============================================================================
   5. PROGRESSIVE RESPONSIVE BREAKPOINTS
   ============================================================================ */

/* ----------------------------------------------------------------------------
   BREAKPOINT: 1024px
   Devices: Minimum Desktop, iPad Pro 12.9" Landscape, Microsoft Surface Pro
   ---------------------------------------------------------------------------- */
@media screen and (min-width: 1024px) {
  :root {
    --container-max-w: 1040px;
    --section-max-w: 980px;
    --admin-max-w: 1080px;
    --page-padding-x: 2.5rem;
    --timeline-min-w: 280px;
    --photo-admin-min-w: 280px;
  }

  .nav-links {
    gap: 24px;
  }

  .nav-links a {
    font-size: 14px;
  }

  .venue-card {
    grid-template-columns: 1.15fr 0.85fr;
    padding: 2.5rem;
  }

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

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

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

/* ----------------------------------------------------------------------------
   BREAKPOINT: 1280px
   Devices: Small Laptops (13"), Netbooks, Standard Desktop (1280x800 / 1280x720)
   ---------------------------------------------------------------------------- */
@media screen and (min-width: 1280px) {
  :root {
    --container-max-w: 1220px;
    --section-max-w: 1080px;
    --admin-max-w: 1240px;
    --card-max-w: 720px;
    --page-padding-x: 3rem;
  }

  .hero {
    min-height: 90vh;
  }

  .hero-names {
    letter-spacing: 3px;
  }

  .countdown-box {
    min-width: 90px;
    padding: 16px 20px;
  }

  .venue-card {
    gap: 40px;
    padding: 3rem;
  }

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

  .rsvp-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  }
}

/* ----------------------------------------------------------------------------
   BREAKPOINT: 1366px
   Devices: Small Laptops (14" Standard 1366x768)
   ---------------------------------------------------------------------------- */
@media screen and (min-width: 1366px) {
  :root {
    --container-max-w: 1280px;
    --section-max-w: 1120px;
    --admin-max-w: 1300px;
  }

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

  .timeline-item {
    padding: 1.75rem 1.25rem;
  }

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

/* ----------------------------------------------------------------------------
   BREAKPOINT: 1440px
   Devices: MacBook Air 13" (Older 1440x900), Standard 1440p Wide Panels
   ---------------------------------------------------------------------------- */
@media screen and (min-width: 1440px) {
  :root {
    --container-max-w: 1360px;
    --section-max-w: 1180px;
    --admin-max-w: 1380px;
    --gallery-max-w: 1380px;
    --card-max-w: 760px;
  }

  .hero-names {
    font-size: clamp(4.5rem, 5vw, 6rem);
  }

  .story-card {
    padding: 3.5rem 3rem;
  }

  .story-card p {
    font-size: 1.35rem;
    max-width: 800px;
  }

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

/* ----------------------------------------------------------------------------
   BREAKPOINT: 1536px
   Devices: Windows Laptop 15" (1920x1080 at 125% DPI scale = 1536x864 effective)
   ---------------------------------------------------------------------------- */
@media screen and (min-width: 1536px) {
  :root {
    --container-max-w: 1440px;
    --section-max-w: 1220px;
    --admin-max-w: 1460px;
    --gallery-max-w: 1460px;
  }

  .nav-header {
    padding: 18px 40px;
  }

  .nav-brand {
    font-size: 26px;
  }

  .nav-links a {
    font-size: 15px;
  }

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

/* ----------------------------------------------------------------------------
   BREAKPOINT: 1728px
   Devices: MacBook Pro 16" (1728x1117), MacBook Air 15" (1710x1107)
   ---------------------------------------------------------------------------- */
@media screen and (min-width: 1728px) {
  :root {
    --container-max-w: 1580px;
    --section-max-w: 1320px;
    --admin-max-w: 1600px;
    --gallery-max-w: 1600px;
    --card-max-w: 820px;
    --page-padding-x: 4rem;
  }

  .hero {
    min-height: 88vh;
  }

  .rsvp-card {
    padding: 3.25rem 3rem;
  }

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

/* ----------------------------------------------------------------------------
   BREAKPOINT: 1920px
   Devices: 24" Full HD Monitors (1080p), 1080p Scaled Smart TVs
   ---------------------------------------------------------------------------- */
@media screen and (min-width: 1920px) {
  :root {
    --container-max-w: 1700px;
    --section-max-w: 1400px;
    --admin-max-w: 1720px;
    --gallery-max-w: 1800px;
    --card-max-w: 860px;
    --font-hero-names: 5.75rem;
    --font-hero-sub: 2.25rem;
    --font-section-h2: 3.5rem;
  }

  .hero-names {
    font-size: var(--font-hero-names);
  }

  .countdown-box {
    min-width: 110px;
    padding: 20px 24px;
  }

  .countdown-number {
    font-size: 3.25rem;
  }

  .countdown-label {
    font-size: 0.95rem;
  }

  .venue-card {
    padding: 3.5rem;
  }

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

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

/* ----------------------------------------------------------------------------
   BREAKPOINT: 2240px
   Devices: iMac 24" (4.5K Retina Display @2x = 2240x1260 effective)
   ---------------------------------------------------------------------------- */
@media screen and (min-width: 2240px) {
  :root {
    --container-max-w: 1920px;
    --section-max-w: 1540px;
    --admin-max-w: 1960px;
    --gallery-max-w: 2040px;
    --card-max-w: 920px;
    --page-padding-x: 5rem;
  }

  .hero-names {
    font-size: 6.25rem;
  }

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

  .timeline-desc {
    font-size: 1.05rem;
  }

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

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

/* ----------------------------------------------------------------------------
   BREAKPOINT: 2560px
   Devices: 27" QHD (2560x1440), iMac 27" 5K (@2x), 32" 4K Scaled (@1.5x)
   ---------------------------------------------------------------------------- */
@media screen and (min-width: 2560px) {
  :root {
    --container-max-w: 2100px;
    --section-max-w: 1680px;
    --admin-max-w: 2160px;
    --gallery-max-w: 2300px;
    --card-max-w: 980px;
    --font-hero-names: 7rem;
    --font-section-h2: 4rem;
    --font-card-h3: 2.1rem;
    --font-body: 1.15rem;
  }

  .hero {
    min-height: 85vh;
  }

  .story-card p {
    font-size: 1.6rem;
    max-width: 1000px;
  }

  .venue-card {
    padding: 4rem;
    gap: 60px;
  }

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

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

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

/* ----------------------------------------------------------------------------
   BREAKPOINT: 3440px
   Devices: 34" Ultrawide Monitors (3440x1440 Aspect Ratio 21:9)
   ---------------------------------------------------------------------------- */
@media screen and (min-width: 3440px) {
  :root {
    /* Prevent ultrawide content stretching edge-to-edge while preserving panoramic elegance */
    --container-max-w: 2400px;
    --section-max-w: 1920px;
    --admin-max-w: 2500px;
    --gallery-max-w: 2800px;
    --card-max-w: 1100px;
    --page-padding-x: 6rem;
  }

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

  .section-wrap {
    max-width: var(--section-max-w);
  }

  .grid {
    grid-template-columns: repeat(7, 1fr);
    max-width: var(--gallery-max-w);
  }

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

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

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

/* ----------------------------------------------------------------------------
   BREAKPOINT: 3840px
   Devices: 43" 4K Monitors & 72" TV Raw 4K UHD (3840x2160)
   ---------------------------------------------------------------------------- */
@media screen and (min-width: 3840px) {
  :root {
    --container-max-w: 2800px;
    --section-max-w: 2200px;
    --admin-max-w: 2900px;
    --gallery-max-w: 3200px;
    --card-max-w: 1280px;
    --font-hero-names: 8.5rem;
    --font-hero-sub: 3rem;
    --font-section-h2: 4.75rem;
    --font-card-h3: 2.5rem;
    --font-body: 1.35rem;
    --page-padding-x: 8rem;
  }

  body {
    font-size: var(--font-body);
  }

  .hero {
    min-height: 82vh;
    padding-top: 180px;
    padding-bottom: 120px;
  }

  .hero-names {
    font-size: var(--font-hero-names);
    letter-spacing: 6px;
  }

  .hero-subtitle {
    font-size: var(--font-hero-sub);
  }

  .hero-date-badge {
    font-size: 1.6rem;
    padding: 18px 48px;
  }

  .countdown-box {
    min-width: 140px;
    padding: 28px 32px;
    border-radius: 20px;
  }

  .countdown-number {
    font-size: 4.5rem;
  }

  .countdown-label {
    font-size: 1.25rem;
  }

  .hero-btn,
  .submit-rsvp-btn,
  .submit-btn {
    font-size: 1.5rem;
    padding: 24px 60px;
    border-radius: 50px;
  }

  .story-card {
    padding: 5rem 4rem;
    border-radius: 28px;
  }

  .story-card p {
    font-size: 2rem;
    max-width: 1400px;
  }

  .timeline-time {
    font-size: 1.15rem;
    padding: 6px 18px;
  }

  .timeline-title {
    font-size: var(--font-card-h3);
  }

  .timeline-desc {
    font-size: 1.25rem;
  }

  .venue-card {
    padding: 5rem;
    border-radius: 32px;
  }

  .venue-info h3 {
    font-size: 2.8rem;
  }

  .venue-info p {
    font-size: 1.35rem;
  }

  .btn-map {
    font-size: 1.25rem;
    padding: 18px 36px;
  }

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

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

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

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

  .form-input,
  .form-textarea,
  .form-select {
    font-size: 1.35rem;
    padding: 18px 24px;
    border-radius: 16px;
  }

  .form-label {
    font-size: 1.15rem;
  }

  .toggle-label {
    font-size: 1.25rem;
    padding: 24px 20px;
  }
}


/* ============================================================================
   6. HIGH-DPI & RETINA SPECIALIZATIONS
   ============================================================================ */
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
  /* Crisp 1px borders on high-DPI glassmorphism & cards */
  .upload-card,
  .story-card,
  .venue-card,
  .rsvp-card,
  .timeline-item,
  .metric-card,
  .admin-card,
  .grid-item {
    border-width: 1px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  /* Sharpen text contrast on Retina displays */
  .hero-names,
  .hero-monogram,
  .brand-brand,
  .timeline-title,
  .section-header h2 {
    -webkit-font-smoothing: antialiased;
  }
}


/* ============================================================================
   7. ACCESSIBILITY, HOVER/TOUCH & MOTION PREFERENCES
   ============================================================================ */
/* Hover Enhancements for Pointer-Capable Desktop Devices */
@media (hover: hover) and (pointer: fine) {
  .hero-btn:hover,
  .submit-rsvp-btn:hover,
  .submit-btn:hover {
    transform: translateY(-3px) scale(1.01);
  }

  .timeline-item:hover,
  .gallery-card:hover,
  .admin-card:hover,
  .grid-item:hover {
    transform: translateY(-4px);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
  }
}

/* Touch Device Friendly Sizing (Minimum 44x44px touch targets) */
@media (pointer: coarse) {
  .nav-links a,
  .nav-rsvp-btn,
  .btn-gold,
  .btn-outline,
  .tab-btn,
  .mode-tab-btn,
  .action-btn,
  .star-badge,
  .preview-remove {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Accessibility: Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
