/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --color-primary: #8B7355;
  --color-primary-light: #C4A882;
  --color-accent: #B08968;
  --color-bg: #FFFDF9;
  --color-bg-alt: #F5F0EB;
  --color-text: #3A3A3A;
  --color-text-light: #6B6B6B;
  --color-white: #fff;
  --color-heading: #8B7355;
  --color-button: #8B7355;
  --color-button-hover: #B08968;
  --color-button-text: #fff;
  --color-footer-bg: #3A3A3A;
  --color-footer-text: #fff;
  --color-divider: #C4A882;
  --color-map-fill: #ADD8E6;
  --color-map-stroke: #FFFFFF;
  --color-travel-path: #8FBC8F;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-section: 'Dancing Script', cursive;
  --font-body: 'Lato', 'Helvetica Neue', sans-serif;
  --font-nav: var(--font-body);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-weight: 300;
  opacity: 0;
  transition: opacity 0.3s ease;
}
body.loaded {
  opacity: 1;
}

.nav-spacer { height: 60px; }

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

/* ===== Navigation ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-navbar, rgba(255, 253, 249, 0.95));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139, 115, 85, 0.1);
  transition: box-shadow 0.3s;
}

#navbar {
  transition: box-shadow 0.3s, opacity 0.3s;
}

#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  opacity: 0;
  pointer-events: none;
}

#navbar.scrolled:hover {
  pointer-events: auto;
}

#navbar:hover {
  opacity: 1;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  position: relative;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s;
}

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

/* Priority tab nav — replaces .nav-links on pages that use it */
.nav-tabs {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex: 1;
  flex-wrap: nowrap;
  gap: 0;
  overflow: hidden;
}

/* When tab nav is present, hide old nav-links and hamburger */
.nav-inner:has(.nav-tabs) .nav-toggle {
  display: none !important;
}
.nav-inner:has(.nav-tabs) .nav-links {
  display: none !important;
}

/* Mobile (touch): show hamburger + nav-links, hide tabs */
@media (pointer: coarse) {
  .nav-tabs {
    display: none !important;
  }
  .nav-inner:has(.nav-tabs) .nav-toggle {
    display: block !important;
  }
  .nav-inner:has(.nav-tabs) .nav-links {
    display: none !important;
  }
  .nav-inner:has(.nav-tabs) .nav-links.open {
    display: flex !important;
  }
}

.nav-tab {
  text-decoration: none;
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-nav);
  transition: color 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  display: inline-block;
}

.home-page .nav-tab {
  border-bottom: 3px solid transparent;
  transition: 0.4s;
}

.home-page .nav-tab:hover {
  background-color: var(--color-primary);
  border-bottom: 3px solid currentColor;
}

.nav-tab.active {
  color: var(--color-primary);
}

.nav-more-wrapper {
  position: relative;
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.nav-more-btn {
  all: unset;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-primary);
  cursor: pointer;
  font-family: var(--font-nav);
  padding: 8px 10px;
  white-space: nowrap;
}

.nav-more-dropdown {
  display: none;
  position: fixed;
  right: 0;
  background: var(--color-navbar, #ffffff);
  flex-direction: column;
  padding: 12px 20px;
  gap: 12px;
  border-top: 1px solid rgba(139, 115, 85, 0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  min-width: 160px;
  z-index: 1001;
}

.nav-more-dropdown.open {
  display: flex;
}

.nav-more-dropdown a {
  text-decoration: none;
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 0;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-more-dropdown a:hover {
  color: var(--color-primary);
}

.--hidden {
  display: none !important;
}

/* ===== Hero Slideshow ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slideshow {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  z-index: 1;
}

.slideshow::-webkit-scrollbar {
  display: none;
}

.slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.45) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  pointer-events: none;
}

.hero-pretext {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.9;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 2px;
  line-height: 1.1;
}

.hero-divider {
  width: 80px;
  height: 1px;
  background: rgba(255,255,255,0.6);
  margin: 24px auto;
}

.hero-date {
  font-size: 1.1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 300;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 32px;
  height: 32px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
  pointer-events: auto;
}

.hero-arrow:hover {
  opacity: 0.9;
}

.hero-arrow svg {
  width: 100%;
  height: 100%;
}

.hero-arrow-left {
  left: 16px;
}

.hero-arrow-right {
  right: 16px;
}

.hero-arrow.hidden {
  opacity: 0;
  pointer-events: none;
}

.slideshow-controls {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.slideshow-dots {
  display: flex;
  gap: 10px;
}

.slideshow-pause {
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
  padding: 4px;
  display: flex;
  align-items: center;
}

.slideshow-pause:hover {
  opacity: 1;
}

.slideshow-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: transform 0.3s;
  pointer-events: auto;
  position: relative;
}

.slideshow-dots .dot.active {
  transform: scale(1.2);
}

/* ===== Sections ===== */
.section {
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}


.section-alt {
  background: var(--color-bg-alt);
}

h2 {
  font-family: var(--font-section);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 400;
  text-align: center;
  color: var(--color-heading);
  margin-bottom: 16px;
}

.section-divider-svg {
  display: block;
  margin: 0 auto 16px;
  width: 50%;
  max-width: 325px;
  height: auto;
}

.faq-list {
  position: relative;
}

.faq-floral {
  display: none;
}

.faq-list,
.events-timeline,
.gallery-grid,
.rsvp-form,
.registry-grid,
.travel-grid,
#countdown-timer {
  position: relative;
}

.faq-list > *:not(.faq-floral),
.gallery-grid > *,
.rsvp-form > *,
.registry-grid > *,
.travel-grid > *,
#countdown-timer > * {
  position: relative;
  z-index: 1;
}

.faq-list::before,
.gallery-grid::before,
.rsvp-form::before,
.registry-grid::before,
.travel-grid::before,
#countdown-timer::before,
.faq-list::after,
.gallery-grid::after,
.rsvp-form::after,
.registry-grid::after,
.travel-grid::after,
#countdown-timer::after {
  content: '';
  position: absolute;
  top: -1000px;
  bottom: -500px;
  width: 120px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
  background-repeat: repeat-y;
  background-size: 100% auto;
}

.faq-list::before,
.gallery-grid::before,
.rsvp-form::before,
.registry-grid::before,
.travel-grid::before,
#countdown-timer::before {
  left: min(calc(-50vw + 50%), -95px);
  background-image: url('/vectors/300ppi/floral1_border.png');
}

.faq-list::after,
.gallery-grid::after,
.rsvp-form::after,
.registry-grid::after,
.travel-grid::after,
#countdown-timer::after {
  right: min(calc(-50vw + 50%), -95px);
  background-image: url('/vectors/300ppi/floral1_border.png');
  transform: scaleX(-1);
}


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

/* ===== Countdown ===== */
.countdown-section {
  padding: 60px 0;
  background: var(--color-primary);
  color: var(--color-white);
}

.countdown-section h2 {
  color: var(--color-white);
  margin-bottom: 32px;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 40px;
}

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

.countdown-block span {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
}

.countdown-block label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
  margin-top: 8px;
  display: block;
}

/* ===== Our Story — Full-bleed photos, sticky map, 50/50 ===== */
#our-story {
  padding: 0;
  background: var(--color-bg);
}

/* Grid: map and panels overlap in the same cell */
.story-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Map column: left half, sticky, overlaps the panels */
.story-map-col {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.us-map {
  width: 90%;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.4));
}

.us-outline {
  fill: var(--color-map-fill);
  stroke: var(--color-map-stroke);
  stroke-width: 3;
}

/* Dotted travel lines — always drawn, revealed by mask */
.travel-seg {
  fill: none;
  stroke: var(--color-travel-path);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 4 8;
  opacity: 0.9;
}

/* Mask reveal paths — JS controls dashoffset to progressively unmask */
.seg-reveal {
  stroke-linecap: round;
}

.stop-dot {
  stroke: var(--color-white);
  stroke-width: 3;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  cursor: pointer;
  pointer-events: none;
}

.stop-dot.visible {
  opacity: 1;
  pointer-events: all;
}

.stop-dot.active {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.9));
  stroke-width: 5;
}


.stop-dot.hint-pulse.active {
  animation: dot-pulse 1.5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

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

/* Panels column: spans FULL width (both grid cols) with side margins */
.story-panels-col {
  grid-column: 1 / -1;
  grid-row: 1;
  z-index: 1;
  padding: 0;
  pointer-events: none;
}

.story-panels-col * {
  pointer-events: auto;
}

/* Each panel: 100vh, its own background photo, text centered in right half */
.story-panel {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
}



@media (max-width: 768px) {
  .story-panel {
    min-height: 0;
  }
}

.panel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.panel-text {
  position: relative;
  z-index: 1;
  margin-left: 50%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 48px;
}

.panel-text h3,
.panel-text p {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 8px 16px;
}

.panel-text h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.panel-text p {
  font-size: clamp(0.8rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
  max-width: 400px;
}

/* Narrow desktop: map on top, text in bottom half */
@media (max-width: 750px) and (pointer: fine) {
  .story-layout {
    grid-template-columns: 1fr;
  }

  .story-map-col {
    grid-column: 1;
    grid-row: 1;
    height: 30vh;
    padding: 8px;
    align-items: flex-start;
    padding-top: 5%;
  }

  .story-panels-col {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
  }

  .panel-text {
    margin-left: 0;
    justify-content: flex-end;
    padding-bottom: 48px;
  }

  .panel-text h3 {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
  }

  .panel-text p {
    font-size: clamp(0.75rem, 2.2vw, 1rem);
  }
}

/* Carousel arrows — hidden by default */
.carousel-arrow {
  display: none;
}

/* Mobile portrait: map overlaid on top of full-screen photo */
@media (max-width: 768px) and (orientation: portrait) and (pointer: coarse) {
  .nav-inner {
    height: 8svh;
  }
  .nav-links {
    top: 8svh !important;
  }
  .nav-tab {
    padding: 6px 4px;
    font-size: 0.85rem;
  }
  .nav-more-wrapper {
    display: flex;
    margin-left: auto;
  }
  .nav-more-btn {
    padding: 6px 8px;
  }
  .nav-links {
    display: none !important;
  }
  .nav-toggle {
    display: none !important;
  }
  .hero {
    height: 92svh;
    min-height: unset;
  }
  .hero-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .hero-date-sep {
    display: none;
  }
  .hero-date-line {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .hero-date-line:first-child::before,
  .hero-date-line:first-child::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background: rgba(255,255,255,0.6);
  }
  .carousel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 5;
    width: 28px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
    -webkit-tap-highlight-color: transparent;
  }

  .carousel-arrow svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
  }

  .carousel-arrow-left {
    left: 4px;
  }

  .carousel-arrow-right {
    right: 4px;
  }

  .carousel-arrow.hidden {
    opacity: 0;
    pointer-events: none;
  }
  #our-story {
    padding: 0;
  }

  #our-story {
    scroll-margin-top: 50px;
  }

  #our-story > .container {
    padding: 0;
    max-width: 100%;
  }

  .nav-spacer { height: 10px; }

  #our-story > .container > h2 {
    padding: 8px 0 4px;
    font-size: 1.3rem;
    margin-bottom: 0;
  }

  .story-layout {
    position: relative;
    height: calc(100svh - 50px);
    overflow: hidden;
  }

  .story-map-col {
    position: absolute;
    top: 12svh;
    left: 0;
    right: 0;
    height: auto;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0 16px;
    pointer-events: none;
  }

  .story-map-col .us-map {
    max-width: 70%;
    height: auto;
    opacity: 0.85;
  }

  .us-outline {
    fill: var(--color-map-fill);
    opacity: 1;
  }

  .story-map-col .stop-dot {
    pointer-events: all;
    r: 65;
  }

  .us-map {
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  }

  .story-panels-col {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100svh;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 24px;
    -webkit-overflow-scrolling: touch;
    padding: 0 24px;
    pointer-events: auto;
    z-index: 1;
  }

  .story-panels-col * {
    pointer-events: auto;
  }

  .story-panel {
    min-width: 99.5%;
    max-width: 99.5vw;
    min-height: 0 !important;
    height: 62svh !important;
    max-height: 62svh !important;
    flex-shrink: 0;
    scroll-snap-align: center;
    background-size: cover;
    background-position: center bottom;
    overflow: hidden;
    border-radius: 16px;
    transition: height 0.3s ease;
  }

  .story-panel.active-panel {
    height: 85svh !important;
    max-height: 85svh !important;
    margin-bottom: 24px;
  }

  .panel-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(0,0,0,0.5) 100%);
  }

  .panel-text {
    margin-left: 0;
    min-height: 0;
    height: auto;
    padding: 12px 16px;
    justify-content: flex-end;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(4px);
  }

  .panel-text p {
    font-size: clamp(0.7rem, 2svh, 1rem);
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .panel-text h3 {
    font-size: clamp(1rem, 3.5svh, 2rem);
  }
}

/* Mobile landscape: map on left, photo fills height on right */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
  #navbar {
    display: none;
  }

  #our-story {
    padding: 0;
  }

  .nav-spacer { height: 0; }

  .footer { display: none; }

  #our-story > .container {
    display: none;
  }

  body { overflow: hidden; height: 100svh; }

  .story-layout {
    display: flex;
    flex-direction: row;
    position: relative;
    height: 100svh;
    overflow: hidden;
  }

  .story-map-col {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    z-index: 2;
    pointer-events: none;
  }

  .story-map-col .stop-dot {
    pointer-events: auto;
  }

  .us-map {
    transform: scale(0.9);
  }

  .panel-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(0,0,0,0.6) 100%);
  }

  .story-panels-col {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0;
  }

  .story-panel {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    scroll-snap-align: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
  }

  .panel-text {
    margin-left: 0;
    min-height: 0;
    height: auto;
    width: 45%;
    padding: 8px 12px;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }

  .panel-text h3 {
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 3.5svh, 1.5rem);
    margin-bottom: 4px;
  }

  .panel-text p {
    font-size: clamp(0.5rem, 1.5svh, 0.8rem);
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .panel-text h3,
  .panel-text p {
    background: none;
    backdrop-filter: none;
  }
}

/* ===== FAQ / Preguntas ===== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.faq-item {
  border-bottom: none;
  padding: 12px 0;
  position: relative;
}

.faq-item::after {
  content: '';
  display: block;
  margin: 24px auto 0;
  width: 100%;
  height: 20px;
  background: url('/vectors/SVG/dividers.svg') center / contain no-repeat;
}

.faq-item:last-child::after {
  display: none;
}

.faq-question {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  font-weight: 400;
  color: var(--color-heading);
  margin-bottom: 8px;
  cursor: pointer;
}

.faq-answer {
  color: var(--color-text-light);
  line-height: 1.7;
  font-size: clamp(0.8rem, 2vw, 1rem);
}

/* ===== Thumbnail Lightbox (FLIP magnify) ===== */
.thumb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.thumb-lightbox.active {
  display: flex;
}

.thumb-lightbox-frame {
  position: relative;
  width: min(85vw, 85vh);
  height: min(85vw, 85vh);
  border-radius: 50%;
  border: 4px solid var(--color-white);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  overflow: hidden;
  will-change: transform;
  cursor: default;
  container-type: inline-size;
}

.thumb-lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-lightbox-heading {
  position: absolute;
  top: 12%;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 6cqi;
  font-weight: 400;
  color: var(--color-white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  pointer-events: none;
  opacity: 0;
}

.thumb-lightbox-blurb {
  position: absolute;
  bottom: 12%;
  left: 10%;
  right: 10%;
  text-align: center;
  font-size: 3cqi;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  line-height: 1.6;
  pointer-events: none;
  opacity: 0;
}

/* ===== Event Details ===== */

/* Venue Map Block */
.venue-map-block {
  text-align: center;
  margin-bottom: 40px;
}
.venue-map-block h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-heading);
  margin-bottom: 4px;
}
.venue-map-block p {
  color: var(--color-text-light);
  margin-bottom: 16px;
}
.btn-directions,
.btn-show-map {
  display: inline-block;
  padding: 10px 3vw;
  margin: 4px 6px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}
.btn-directions {
  background: var(--color-button);
  color: var(--color-button-text);
  border: none;
}
.btn-directions:hover { background: var(--color-button-hover); }
.btn-show-map {
  background: transparent;
  color: var(--color-button);
  border: 2px solid var(--color-button);
}
.btn-show-map:hover {
  background: var(--color-button);
  color: var(--color-button-text);
}
.venue-map {
  margin-top: 20px;
}

/* Detail Divider */
.detail-divider {
  display: block;
  width: 240px;
  height: auto;
  margin: 4px auto 20px;
  opacity: 0.85;
}

/* Details Subheading */
.details-subheading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-heading);
  text-align: center;
  margin-bottom: 8px;
  margin-top: -8px;
}

/* Attire Block */
.attire-block {
  text-align: center;
  margin-bottom: 40px;
}
.attire-block h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-heading);
  margin-bottom: 4px;
}
.attire-block .attire-label {
  color: var(--color-accent);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.attire-block .attire-desc {
  color: var(--color-text-light);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Events Timeline — time left, details right */
.events-timeline {
  max-width: 800px;
  margin: 0 auto;
}
.event-card {
  display: flex;
  align-items: baseline;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-divider);
}
.event-card:last-child {
  border-bottom: none;
}
.event-time {
  flex-shrink: 0;
  width: 120px;
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 700;
  text-align: right;
}
.event-card-text {
  flex: 1;
  min-width: 0;
}
.event-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-primary);
  margin: 0 0 2px;
}
.event-venue {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 6px;
}
.event-card-text p:last-child {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.6;
}

/* ===== Wedding Party ===== */
.party-row {
  margin-top: 48px;
}

.party-side-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-accent);
  text-align: center;
  margin-bottom: 28px;
}

.party-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  margin-bottom: 48px;
}

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

.party-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background-size: cover;
  background-position: center top;
  margin: 0 auto 16px;
  border: 4px solid var(--color-bg-alt);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.party-member h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.party-role {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-accent);
  margin-bottom: 8px;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: 16px;
  margin-top: 48px;
}

.gallery-item {
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

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

/* ===== Travel ===== */
.travel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.travel-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  font-size: clamp(0.75rem, 2vw, 1rem);
}

.travel-card p, .travel-card li {
  line-height: 1.6;
}

.travel-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.travel-card ul {
  list-style: none;
  margin: 12px 0;
}

.travel-card li {
  padding: 6px 0;
  border-bottom: 1px solid var(--color-bg-alt);
}

.travel-card li:last-child { border-bottom: none; }

/* ===== Registry ===== */
.registry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.registry-card {
  display: block;
  text-align: center;
  background: var(--color-white);
  border: 2px solid var(--color-bg-alt);
  border-radius: 12px;
  padding: 40px 28px;
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.3s, transform 0.3s;
}

.registry-card:hover {
  border-color: var(--color-primary-light);
  transform: translateY(-4px);
}

.registry-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

/* ===== RSVP Form ===== */
.rsvp-form {
  max-width: 650px;
  margin: 48px auto 0;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.guest-name-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color 0.3s;
  margin-bottom: 10px;
}

.guest-name-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--color-button);
  color: var(--color-button-text);
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
}

.btn:hover { background: var(--color-button-hover); }
.btn:active { transform: scale(0.98); }

/* RSVP name verification status */
/* RSVP Lookup */
.rsvp-lookup-intro {
  text-align: center;
  margin-bottom: 24px;
  color: var(--color-text-light);
  font-size: 1rem;
}
.rsvp-lookup-status {
  font-size: 0.9rem;
  margin-bottom: 16px;
  min-height: 1.2em;
  text-align: center;
}
.rsvp-lookup-status.error {
  color: #c0392b;
}
.rsvp-lookup-status a {
  color: var(--color-primary);
}

/* RSVP Update Banner */
.rsvp-update-banner {
  background: var(--color-bg-alt, #f0f0f0);
  border: 1px solid var(--color-primary-light);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text);
}

/* RSVP Household Title */
.rsvp-household-title {
  text-align: center;
  font-family: var(--font-display);
  margin-bottom: 24px;
  color: var(--color-heading, var(--color-primary));
}

/* RSVP Member Rows */
.rsvp-members,
.rsvp-plusones {
  margin-bottom: 24px;
}
.rsvp-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 8px;
  background: var(--color-white, #fff);
}
.rsvp-member-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-text);
}
.rsvp-member-btns {
  display: flex;
  gap: 8px;
}
.rsvp-attend-btn,
.rsvp-decline-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: #999;
}
.rsvp-attend-btn:hover {
  border-color: #6B8E5A;
  color: #6B8E5A;
}
.rsvp-decline-btn:hover {
  border-color: #c0392b;
  color: #c0392b;
}
.rsvp-attend-btn.selected {
  background: #6B8E5A;
  border-color: #6B8E5A;
  color: #fff;
}
.rsvp-decline-btn.selected {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}

/* Plus-one name input */
.rsvp-plusone-row .rsvp-plusone-name {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white, #fff);
  margin-right: 12px;
}
.rsvp-plusone-name:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Member left side (name + child toggle) */
.rsvp-member-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.rsvp-member-name-input {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white, #fff);
  width: 100%;
}
.rsvp-member-name-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Additional family members */
.rsvp-additional {
  margin-bottom: 24px;
}
.rsvp-additional-name {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white, #fff);
  width: 100%;
}
.rsvp-additional-name:focus {
  outline: none;
  border-color: var(--color-primary);
}
.rsvp-add-member-btn {
  background: none;
  border: 1px dashed var(--color-primary-light);
  color: var(--color-primary);
  padding: 10px 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
  transition: background 0.2s, border-color 0.2s;
}
.rsvp-add-member-btn:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-primary);
}
.rsvp-remove-member {
  background: none;
  border: none;
  color: #999;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}
.rsvp-remove-member:hover {
  color: #c0392b;
}

/* Children section */
.rsvp-children-section {
  margin-bottom: 24px;
}
.rsvp-children-question {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--color-text);
  padding: 8px 0;
}
.rsvp-children-btn {
  padding: 8px 20px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: none;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.rsvp-children-btn:hover {
  border-color: var(--color-primary);
}
.rsvp-children-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.rsvp-children {
  margin-top: 12px;
}
.rsvp-child-name {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white, #fff);
  width: 100%;
}
.rsvp-child-name:focus {
  outline: none;
  border-color: var(--color-primary);
}
.rsvp-child-row .rsvp-member-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rsvp-child-age {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-white, #fff);
  cursor: pointer;
}
.rsvp-child-age:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-hint {
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  text-transform: none;
  opacity: 0.7;
}

.rsvp-confirmation {
  max-width: 650px;
  margin: 48px auto 0;
  text-align: center;
  padding: 48px 24px;
}
.rsvp-confirmation-inner h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.rsvp-confirmation-inner p {
  color: var(--color-text-light);
  font-size: 1rem;
  margin-bottom: 24px;
  line-height: 1.6;
}
.rsvp-confirmation-inner .btn {
  max-width: 300px;
  margin: 0 auto;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  text-align: center;
  padding: 60px 24px;
}

.footer-names {
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  margin-bottom: 4px;
}

.footer-date {
  font-size: 0.9rem;
  letter-spacing: 2px;
  opacity: 0.8;
}

.footer-hashtag {
  margin-top: 16px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  opacity: 0.6;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 253, 249, 0.98);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(139, 115, 85, 0.1);
  }

  .nav-links.open { display: flex; }

  .hero-content h1 { font-size: 3rem; }

  .countdown-timer { gap: 20px; }
  .countdown-block span { font-size: 2.2rem; }

  .form-row { grid-template-columns: 1fr; }

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

  .gallery-item.tall { grid-row: span 1; }
  .gallery-item.wide { grid-column: span 1; }

  .venue-hero-img {
    height: 240px;
  }
  .venue-hero-name {
    font-size: 1.5rem;
  }
  .venue-info-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 18px;
  }
  .venue-info-actions {
    justify-content: stretch;
  }
  .venue-info-actions .btn-directions,
  .venue-info-actions .btn-show-map {
    flex: 1;
  }

  .event-card {
    gap: 20px;
  }
  .event-time {
    width: 70px;
    font-size: 0.78rem;
  }
}
