:root {
  --color-black: #260701;
  --color-dark-gray: #260701;
  --color-gray: #260701;
  --color-light-gray: #e5e5e5;
  --color-off-white: #f8f8f8;
  --color-cream: #faf9f7;
  --color-white: #ffffff;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  --section-padding: 120px 24px;
  --section-padding-mobile: 80px 20px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

html { font-size: 16px; }

@media (min-width: 769px) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-black);
  background-color: #F5F0EB;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  -webkit-user-drag: none;
  user-select: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.3;
}

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

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.section {
  padding: var(--section-padding);
  position: relative;
}

@media (max-width: 768px) {
  .section { padding: var(--section-padding-mobile); }
  html { scroll-behavior: auto !important; }
}

.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.05), transparent);
}

.gifts-section::after { display: none; }

.location-new,
.dresscode-new {
  background-color: #F0EAE3;
  position: relative;
}

.program-new,
.welcome-new {
  background-color: #F5F0EB;
  position: relative;
}

.reveal-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.1, 0.2, 1);
  will-change: transform, opacity;
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: transform, opacity;
}

@media (max-width: 768px) {
  .reveal-hidden {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 40px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid #000;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
}

.hero {
  position: relative;
  height: 100svh;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .hero { min-height: unset; }
}

.hero-background,
.hero-overlay,
.scroll-indicator,
.hero-background img {
  pointer-events: none;
}

.hero-background { position: absolute; inset: 0; z-index: 1; }
.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.15); z-index: 2; }

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--color-white);
  text-align: center;
  padding: 24px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  text-shadow: 0 2px 30px rgba(0,0,0,.3);
  margin: 0 0 16px 0;
}

.hero-date {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--color-white);
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
  margin: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  text-align: center;
  color: var(--color-white);
  opacity: 0.8;
}
.scroll-indicator p {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  margin-top: 10px;
}
.scroll-indicator .mouse {
  width: 20px;
  height: 35px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 20px;
  margin: 0 auto;
  position: relative;
}
.scroll-indicator .mouse::after {
  content: '';
  width: 2px;
  height: 6px;
  background: #fff;
  position: absolute;
  top: 5px;
  left: 50%;
  margin-left: -1px;
  border-radius: 2px;
  animation: scroll-wheel 2s infinite;
}
@keyframes scroll-wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(15px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

.section-title-serif {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 30px;
  color: var(--color-black);
}

.welcome-new { padding-top: 80px; text-align: center; }
.welcome-text-new {
  max-width: 900px;
  margin: 0 auto 60px;
  font-size: 1.2rem;
  color: var(--color-gray);
  line-height: 1.6;
}

.welcome-collage {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 800px;
  margin: 40px auto;
  max-width: 900px;
}

.collage-item { position: absolute; }
.collage-item.main { z-index: 2; left: 0; bottom: 0; }
.collage-item.main img { width: 450px; height: 650px; object-fit: cover; }
.collage-item.small { z-index: 1; right: 0; top: 0; }
.collage-item.small img { width: 550px; height: 400px; object-fit: cover; }

.watermark-date, .watermark-a, .watermark-amp, .watermark-v {
  position: absolute;
  font-family: var(--font-serif);
  color: #e3dacf94;
  z-index: 10;
  pointer-events: none;
  line-height: 1;
}
.watermark-date { top: 50px; left: 42px; font-size: clamp(3rem, 6vw, 5rem); }
.watermark-a { bottom: -27px; left: 52%; font-size: clamp(12rem, 30vw, 22rem); line-height: .8; }
.watermark-amp { bottom: 146px; left: 72%; font-size: clamp(3rem, 8vw, 6rem); }
.watermark-v { bottom: 125px; left: 74%; font-size: clamp(12rem, 30vw, 22rem); line-height: .8; }

/* ===== LOCATION ===== */
.location-new { text-align: center; }
.location-subtitle {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 40px;
  color: var(--color-gray);
}
.location-content-top { text-align: center; margin-bottom: 30px; }
.location-venue {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.location-address { color: var(--color-gray); margin-bottom: 30px; }

.location-gallery {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.location-img-item img { width: 100%; height: 400px; object-fit: cover; }

.location-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}
.location-buttons .btn { min-width: 200px; }

/* ===== PROGRAM ===== */
.program-new { text-align: center; }
.program-subtitle {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .9rem;
  margin-bottom: 80px;
  color: var(--color-gray);
}
.program-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  max-width: 800px;
  margin: 0 auto;
}
.program-item { margin-bottom: 10px; }
.program-time {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 5px;
  letter-spacing: .05em;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 15px;
}
.pt-time { font-variant-numeric: lining-nums; }
.program-desc { font-size: 1.1rem; color: var(--color-gray); margin: 0; }

.dresscode-new { padding: 100px 0; text-align: center; }
.dresscode-text {
  max-width: 700px;
  margin: 0 auto 60px;
  font-size: 1.1rem;
  color: var(--color-gray);
  line-height: 1.6;
}
.dresscode-subtitle {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.palette-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin: 0 auto 60px;
}
.swatch-item { display: flex; flex-direction: column; align-items: center; gap: 15px; width: 100px; }
.swatch-label {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-gray);
  margin: 0;
  text-align: center;
  text-transform: lowercase;
  letter-spacing: .05em;
  max-width: 120px;
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.3;
}
.color-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-image: url('images/swatches.png');
  background-size: 550%;
  background-repeat: no-repeat;
  border: none;
}
.swatch-1 { background-position: 5% 10%; }
.swatch-2 { background-position: 28% 90%; }
.swatch-3 { background-position: 95% 10%; }
.swatch-4 { background-position: 50% 10%; }
.swatch-5 { background-position: 72% 90%; }

.dresscode-men-text {
  font-size: 1.1rem;
  font-family: var(--font-sans);
  color: var(--color-gray);
  max-width: 700px;
  margin: 0 auto 40px;
}

.gallery-slider-container { position: relative; width: 100%; }

.flexible-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 0;
}
.fg-row { display: grid; gap: 20px; }
.fg-row-2 { grid-template-columns: 1fr 1fr; }
.fg-row-3 { grid-template-columns: 1fr 1fr 1fr; }

.fg-item { aspect-ratio: 3/4.2; overflow: hidden; background: #f0f0f0; }
.fg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.25,1,.5,1);
}
.fg-item:hover img { transform: scale(1.05); }

.slider-arrow { display: none; }

.gifts-section { padding: 100px 0 30px; text-align: center; }
.gifts-card {
  background-color: #F0EAE3;
  padding: 80px 60px;
  border-radius: 4px;
  max-width: 1000px;
  margin: 0 auto;
}
.gifts-text {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-gray);
}
.gifts-action { margin-top: 40px; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: pointer;
}
.lightbox-overlay.active { display: flex; }
.lightbox-content { max-width: 90%; max-height: 90%; }
.lightbox-content img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 4px; }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  transition: opacity .3s;
}
.lightbox-close:hover { opacity: .7; }

@media (max-width: 768px) {
	body {
		overflow-x: hidden;
	}

	html {
		overflow-x: visible;
	}
  .hero-background img { object-position: 72% center !important; }

  .hero-title .name, .hero-title .amp { display: block; }
  .hero-title .amp { font-size: 1em; margin: 2px 0; }

  .watermark-date, .watermark-a, .watermark-amp, .watermark-v { display: none !important; }

  .palette-grid {
    display: flex;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 10px;
  }
  .swatch-item { flex: 0 0 auto; width: 70px; max-width: 70px; text-align: center; }
  .color-circle { width: 65px; height: 65px; margin: 0 auto; }
  .swatch-label {
    font-size: 1rem !important;
    white-space: normal !important;
    word-wrap: break-word;
    line-height: 1.3;
    max-width: 95px;
    min-height: 2.6em;
  }

  .welcome-collage {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    height: 500px;
    overflow: visible;
  }
  .collage-item { position: absolute !important; }
  .collage-item.main { left: 10px !important; bottom: 20px !important; right: auto !important; top: auto !important; z-index: 2; }
  .collage-item.main img { width: 220px !important; height: 320px !important; object-fit: cover; }
  .collage-item.small { right: 10px !important; top: 20px !important; left: auto !important; bottom: auto !important; z-index: 1; }
  .collage-item.small img { width: 240px !important; height: 180px !important; object-fit: cover; }

  .program-new { padding: 60px 20px; }
  .program-grid { max-width: 100%; padding: 0 15px; }
  .program-time {
    font-size: 1.2rem !important;
    font-weight: 500;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .program-subtitle { font-size: 0.75rem; margin-bottom: 40px; }
  .program-desc { font-size: 1rem; }

  .location-buttons {
    flex-direction: column !important;
    align-items: center;
    gap: 15px;
  }
  .location-buttons .btn { width: 100%; max-width: 280px; }

  .dresscode-new, .gifts-section { padding: 60px 20px; }
  .hero-title { font-size: 2.8rem; }
  .section-title-serif { font-size: 1.8rem; }

  .dresscode-text,
  .dresscode-men-text,
  .gifts-text,
  .welcome-text-new {
    font-size: 0.95rem;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .gifts-card { padding: 40px 20px; width: 100%; }

  .flexible-gallery,
  .location-gallery {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .flexible-gallery::-webkit-scrollbar,
  .location-gallery::-webkit-scrollbar {
    display: none;
  }

  .flexible-gallery {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
    padding: 20px 15px !important;
  }
  .fg-row { display: contents; }
  .fg-item { flex: 0 0 280px; aspect-ratio: 3/4; }

  .location-gallery {
    display: flex !important;
    gap: 15px !important;
    padding: 10px 0 !important;
  }
  .location-img-item { flex: 0 0 100% !important; }
  .location-img-item img { width: 100%; height: 300px; object-fit: cover; }

  .gallery-slider-container { position: relative; padding: 0 10px; }

  .slider-arrow {
    display: flex !important;
    align-items: center;
    justify-content: center;

    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 44px;
    height: 44px;

    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-radius: 50%;

    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1000;
    transition: opacity 0.2s ease;
  }

  .slider-prev { left: -5px; }
  .slider-next { right: -5px; }

  .slider-arrow.is-disabled {
    opacity: 0.35;
    pointer-events: none;
  }
}

.footer-actions-new {
  background-color: #F5F0EB;
  padding-top: 30px;
  padding-bottom: 100px;
}
.footer-cards-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin: 0 auto;
}
.action-card {
  width: 100%;
  max-width: 1000px;
  background-color: #5D4B3E;
  color: #fff;
  padding: 80px 60px;
  border-radius: 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 20px;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.05em;
}
.card-text {
  max-width: 680px;
  margin: 0 auto 30px;
  font-size: 1.15rem;
  line-height: 1.8;
  opacity: 0.9;
  flex-grow: 1;
}
.card-btn-wrapper { margin-top: auto; }
.btn-outline-light {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 10px 40px;
  border-radius: 4px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: transparent;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}
.btn-outline-light:hover {
  background: #fff;
  color: #5D4B3E;
  border-color: #fff;
}
@media (max-width: 768px) {
  .footer-cards-container { padding: 0 24px; }
  .action-card { width: 100%; max-width: 100%; margin-bottom: 20px; padding: 40px 20px; }
  .card-text { font-size: 0.95rem; padding: 0 10px; width: 100%; box-sizing: border-box; }
  .card-title { font-size: 1.8rem; }
}

.rsvp-section .container {
  text-align: left;
}

.rsvp-form-wrapper {
  max-width: 640px;
  margin: 0;
}

.rsvp-form-wrapper,
.rsvp-form-wrapper p,
.rsvp-form-wrapper label {
  font-family: var(--font-sans);
  color: var(--color-black);
  text-align: left;
}

.rsvp-form-wrapper strong {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 18px 0 10px;
}

.rsvp-form-wrapper label {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.rsvp-form-wrapper input[type="text"],
.rsvp-form-wrapper input[type="email"],
.rsvp-form-wrapper textarea {
  width: 100%;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(38, 7, 1, 0.35);
  border-radius: 4px;
  padding: 14px 14px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  outline: none;
  transition: var(--transition-fast);
}

.rsvp-form-wrapper textarea {
  min-height: 110px;
  resize: vertical;
}

.rsvp-form-wrapper input[type="text"]:focus,
.rsvp-form-wrapper input[type="email"]:focus,
.rsvp-form-wrapper textarea:focus {
  border-color: rgba(38, 7, 1, 0.7);
  background: rgba(255,255,255,0.75);
}

.rsvp-form-wrapper .wpcf7-form-control-wrap {
  display: block;
  margin-top: 6px;
}

.rsvp-form-wrapper .wpcf7-radio {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 18px;
}

.rsvp-form-wrapper .wpcf7-list-item {
  margin: 0;
}

.rsvp-form-wrapper .wpcf7-list-item-label {
  font-size: 0.95rem;
  font-weight: 300;
}

.rsvp-form-wrapper .wpcf7-list-item > label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 300;
}

.rsvp-form-wrapper input[type="submit"] {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 40px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid #000;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
  color: var(--color-black);
  transition: var(--transition-normal);
  width: auto;
}

.rsvp-form-wrapper input[type="submit"]:hover {
  background: #fff;
}

.rsvp-form-wrapper hr {
  border: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 22px 0;
}

.rsvp-form-wrapper .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 4px;
  border: 1px solid rgba(38, 7, 1, 0.25);
  background: rgba(255,255,255,0.5);
  text-align: left;
}

.rsvp-form-wrapper .wpcf7-not-valid-tip {
  font-size: 0.85rem;
  margin-top: 6px;
}

@media (max-width: 768px) {
  .rsvp-form-wrapper {
    max-width: 100%;
  }

  .rsvp-form-wrapper input[type="submit"] {
    width: 100%; 
  }
}

#dresscode .container,
#gifts .container,
#rsvp .container,
.footer-actions-new .container {
  max-width: 1200px;
}

#dresscode .container,
#gifts .container,
#rsvp .container,
.footer-actions-new .container {
  padding-left: 24px;
  padding-right: 24px;
}

.gifts-card {
  max-width: 1200px;
}

.action-card {
  max-width: 1200px;
}

@media (max-width: 768px) {
  .dresscode-new .gallery-slider-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
	
	.dresscode-subtitle {
		font-size: 1.4rem;
	}

  .dresscode-new .flexible-gallery {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .dresscode-new .fg-item {
    border-radius: 4px;
  }
	
	.flexible-gallery {
    scroll-snap-type: x mandatory;
  }

  .fg-item {
    flex: 0 0 100% !important;
    scroll-snap-align: start;
  }
	
  .location-buttons {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }
	
	.location-buttons .btn {
    width: 100%;
    max-width: none;
  }
}

.gallery-slider-container .slider-arrow {
  color: #5D4B3E !important;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
}

.gallery-slider-container .slider-arrow {
  fill: #5D4B3E !important;
}

.gallery-slider-container {
  position: relative;
}

.gallery-slider-container .slider-arrow {
  top: 50%;
  transform: translateY(-50%);
}

.rsvp-form-wrapper .wpcf7-not-valid-tip {
  text-transform: none;
}

@supports (-webkit-touch-callout: none) {
  .gallery-slider-container .slider-arrow {
    top: calc(50% - 10px);
  }
}

