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

:root {
  color-scheme: light;
  --ivory: #f4efe6;
  --blush: #e9e1d2;
  --sage: #8ea36d;
  --sky: #d6dccb;
  --text: #4f4b3f;
  --muted: #7d7767;
  --accent: #7f8f5a;
  --card: #ffffff;
}

body {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 18px;
  color: var(--text);
  background: radial-gradient(
      circle at top,
      rgba(255, 252, 246, 0.9),
      rgba(244, 239, 230, 0.9)
    ),
    var(--ivory);
  line-height: 1.6;
  position: relative;
  z-index: 0;
  overflow-x: hidden;
  min-height: 100%;
}

body.no-scroll {
  overflow: hidden;
  touch-action: none;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
  will-change: background-position;
  animation: floral-drift-left 26s ease-in-out infinite;
  filter: hue-rotate(90deg) saturate(0.7);
}

body::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='1160' viewBox='0 0 720 1160'%3E%3Cg fill='none' stroke='%23c8a2b9' stroke-linecap='round'%3E%3Cpath d='M150 1160C95 980 150 800 290 680C430 560 490 420 480 280C470 180 390 90 290 30' stroke-width='2.3'/%3E%3Cpath d='M290 30C360 100 390 180 380 260' stroke-width='2'/%3E%3Cpath d='M290 680C370 660 440 600 490 520' stroke-width='1.7'/%3E%3Cpath d='M230 780C310 780 380 740 450 680' stroke-width='1.7'/%3E%3Cpath d='M260 520C310 505 350 470 390 430' stroke-width='1.4'/%3E%3Cpath d='M200 900C270 900 340 865 400 820' stroke-width='1.4'/%3E%3Cpath d='M320 1020C360 1010 390 990 420 960' stroke-width='1.2'/%3E%3C/g%3E%3Cg fill='%23f3e2e5'%3E%3Cellipse cx='330' cy='170' rx='9' ry='13'/%3E%3Cellipse cx='360' cy='340' rx='8' ry='12'/%3E%3Cellipse cx='280' cy='470' rx='9' ry='13'/%3E%3Cellipse cx='320' cy='650' rx='8' ry='12'/%3E%3Cellipse cx='360' cy='820' rx='8' ry='12'/%3E%3C/g%3E%3Cg fill='%23d7e2d6'%3E%3Ccircle cx='400' cy='280' r='7'/%3E%3Ccircle cx='300' cy='560' r='7'/%3E%3Ccircle cx='350' cy='840' r='7'/%3E%3Ccircle cx='420' cy='980' r='6'/%3E%3C/g%3E%3Cg fill='%23dbe6f4'%3E%3Ccircle cx='270' cy='260' r='6'/%3E%3Ccircle cx='340' cy='560' r='6'/%3E%3Ccircle cx='300' cy='760' r='6'/%3E%3Ccircle cx='380' cy='1040' r='6'/%3E%3C/g%3E%3Cg fill='none' stroke='%23c8a2b9' stroke-linecap='round'%3E%3Cpath d='M370 360C385 355 400 345 415 330' stroke-width='1.2'/%3E%3Cpath d='M310 520C325 515 340 505 355 490' stroke-width='1.2'/%3E%3Cpath d='M350 720C365 715 380 705 395 690' stroke-width='1.2'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='720' viewBox='0 0 380 720'%3E%3Cg fill='none' stroke='%23c8a2b9' stroke-linecap='round'%3E%3Cpath d='M50 720C25 600 70 530 170 480C270 430 320 350 310 270C302 200 260 130 200 70' stroke-width='1.6'/%3E%3Cpath d='M200 70C240 125 260 175 255 230' stroke-width='1.4'/%3E%3Cpath d='M170 480C230 470 280 430 310 390' stroke-width='1.2'/%3E%3Cpath d='M140 600C190 600 230 575 270 545' stroke-width='1.2'/%3E%3C/g%3E%3Cg fill='%23f3e2e5'%3E%3Cellipse cx='260' cy='210' rx='7' ry='10'/%3E%3Cellipse cx='230' cy='330' rx='7' ry='10'/%3E%3Cellipse cx='210' cy='520' rx='7' ry='10'/%3E%3C/g%3E%3Cg fill='%23d7e2d6'%3E%3Ccircle cx='240' cy='260' r='5'/%3E%3Ccircle cx='220' cy='420' r='5'/%3E%3Ccircle cx='200' cy='620' r='5'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='520' viewBox='0 0 260 520'%3E%3Cg fill='%23f3e2e5'%3E%3Ccircle cx='120' cy='120' r='8'/%3E%3Ccircle cx='160' cy='210' r='6'/%3E%3Ccircle cx='110' cy='320' r='7'/%3E%3Ccircle cx='150' cy='420' r='6'/%3E%3C/g%3E%3Cg fill='%23d7e2d6'%3E%3Ccircle cx='90' cy='160' r='5'/%3E%3Ccircle cx='180' cy='260' r='5'/%3E%3Ccircle cx='130' cy='360' r='5'/%3E%3Ccircle cx='170' cy='470' r='5'/%3E%3C/g%3E%3Cg fill='none' stroke='%23c8a2b9' stroke-linecap='round'%3E%3Cpath d='M100 140C120 150 140 150 160 140' stroke-width='1.1'/%3E%3Cpath d='M120 330C140 340 160 340 180 330' stroke-width='1.1'/%3E%3Cpath d='M110 440C130 450 150 450 170 440' stroke-width='1.1'/%3E%3C/g%3E%3C/svg%3E");
  background-position: left -180px top -40px, left 10px top 660px,
    left 40px top 220px;
  background-size: 760px 1160px, 300px 560px, 180px 340px;
  background-repeat: repeat-y, repeat-y, repeat-y;
  animation-name: floral-drift-left;
}

body::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='1160' viewBox='0 0 720 1160'%3E%3Cg fill='none' stroke='%23c8a2b9' stroke-linecap='round'%3E%3Cpath d='M570 1160C625 980 570 800 430 680C290 560 230 420 240 280C250 180 330 90 430 30' stroke-width='2.3'/%3E%3Cpath d='M430 30C360 100 330 180 340 260' stroke-width='2'/%3E%3Cpath d='M430 680C350 660 280 600 230 520' stroke-width='1.7'/%3E%3Cpath d='M490 780C410 780 340 740 270 680' stroke-width='1.7'/%3E%3Cpath d='M460 520C410 505 370 470 330 430' stroke-width='1.4'/%3E%3Cpath d='M520 900C450 900 380 865 320 820' stroke-width='1.4'/%3E%3Cpath d='M400 1020C360 1010 330 990 300 960' stroke-width='1.2'/%3E%3C/g%3E%3Cg fill='%23f3e2e5'%3E%3Cellipse cx='390' cy='170' rx='9' ry='13'/%3E%3Cellipse cx='360' cy='340' rx='8' ry='12'/%3E%3Cellipse cx='440' cy='470' rx='9' ry='13'/%3E%3Cellipse cx='400' cy='650' rx='8' ry='12'/%3E%3Cellipse cx='360' cy='820' rx='8' ry='12'/%3E%3C/g%3E%3Cg fill='%23d7e2d6'%3E%3Ccircle cx='320' cy='280' r='7'/%3E%3Ccircle cx='420' cy='560' r='7'/%3E%3Ccircle cx='370' cy='840' r='7'/%3E%3Ccircle cx='300' cy='980' r='6'/%3E%3C/g%3E%3Cg fill='%23dbe6f4'%3E%3Ccircle cx='450' cy='260' r='6'/%3E%3Ccircle cx='380' cy='560' r='6'/%3E%3Ccircle cx='420' cy='760' r='6'/%3E%3Ccircle cx='340' cy='1040' r='6'/%3E%3C/g%3E%3Cg fill='none' stroke='%23c8a2b9' stroke-linecap='round'%3E%3Cpath d='M350 360C335 355 320 345 305 330' stroke-width='1.2'/%3E%3Cpath d='M410 520C395 515 380 505 365 490' stroke-width='1.2'/%3E%3Cpath d='M370 720C355 715 340 705 325 690' stroke-width='1.2'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='720' viewBox='0 0 380 720'%3E%3Cg fill='none' stroke='%23c8a2b9' stroke-linecap='round'%3E%3Cpath d='M330 720C355 600 310 530 210 480C110 430 60 350 70 270C78 200 120 130 180 70' stroke-width='1.6'/%3E%3Cpath d='M180 70C140 125 120 175 125 230' stroke-width='1.4'/%3E%3Cpath d='M210 480C150 470 100 430 70 390' stroke-width='1.2'/%3E%3Cpath d='M240 600C190 600 150 575 110 545' stroke-width='1.2'/%3E%3C/g%3E%3Cg fill='%23f3e2e5'%3E%3Cellipse cx='120' cy='210' rx='7' ry='10'/%3E%3Cellipse cx='150' cy='330' rx='7' ry='10'/%3E%3Cellipse cx='170' cy='520' rx='7' ry='10'/%3E%3C/g%3E%3Cg fill='%23d7e2d6'%3E%3Ccircle cx='140' cy='260' r='5'/%3E%3Ccircle cx='160' cy='420' r='5'/%3E%3Ccircle cx='180' cy='620' r='5'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='520' viewBox='0 0 260 520'%3E%3Cg fill='%23f3e2e5'%3E%3Ccircle cx='140' cy='120' r='8'/%3E%3Ccircle cx='100' cy='210' r='6'/%3E%3Ccircle cx='150' cy='320' r='7'/%3E%3Ccircle cx='110' cy='420' r='6'/%3E%3C/g%3E%3Cg fill='%23d7e2d6'%3E%3Ccircle cx='170' cy='160' r='5'/%3E%3Ccircle cx='80' cy='260' r='5'/%3E%3Ccircle cx='130' cy='360' r='5'/%3E%3Ccircle cx='90' cy='470' r='5'/%3E%3C/g%3E%3Cg fill='none' stroke='%23c8a2b9' stroke-linecap='round'%3E%3Cpath d='M160 140C140 150 120 150 100 140' stroke-width='1.1'/%3E%3Cpath d='M140 330C120 340 100 340 80 330' stroke-width='1.1'/%3E%3Cpath d='M150 440C130 450 110 450 90 440' stroke-width='1.1'/%3E%3C/g%3E%3C/svg%3E");
  background-position: right -200px top 20px, right 10px top 720px,
    right 40px top 260px;
  background-size: 760px 1160px, 300px 560px, 180px 340px;
  background-repeat: repeat-y, repeat-y, repeat-y;
  opacity: 0.3;
  animation-name: floral-drift-right;
  animation-duration: 28s;
}

@keyframes floral-drift-left {
  0% {
    background-position: left -160px top -40px, left 30px top 660px,
      left 120px top 220px;
  }
  50% {
    background-position: left -150px top -110px, left 40px top 600px,
      left 120px top 160px;
  }
  100% {
    background-position: left -160px top -40px, left 30px top 660px,
      left 120px top 220px;
  }
}

@keyframes floral-drift-right {
  0% {
    background-position: right -180px top 20px, right 20px top 720px,
      right 120px top 260px;
  }
  50% {
    background-position: right -170px top -60px, right 30px top 660px,
      right 120px top 200px;
  }
  100% {
    background-position: right -180px top 20px, right 20px top 720px,
      right 120px top 260px;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  padding: 28px 24px 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero {
  min-height: 70vh;
  min-height: 70svh;
  min-height: 70dvh;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  margin: auto;
  text-align: center;
  padding: 40px 20px 80px;
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--muted);
  margin-bottom: 18px;
}

.hero-title {
  font-family: "Great Vibes", cursive;
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 10px;
}

.date-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 12px;
  padding: 16px 30px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 40px rgba(154, 168, 122, 0.18);
  position: relative;
  isolation: isolate;
  max-width: 100%;
}

.date-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(28px, 4.2vw, 40px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding-bottom: 6px;
}

.date-number {
  font-weight: 500;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.date-number-main {
  position: relative;
}

.date-number-main::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 60px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(154, 168, 122, 0),
    rgba(154, 168, 122, 0.7),
    rgba(154, 168, 122, 0)
  );
  transform: translateX(-50%);
  opacity: 0.75;
  transform-origin: center;
  animation: underline-pulse 2.6s ease-in-out infinite;
}


.date-divider {
  font-family: inherit;
  font-weight: 700;
  color: rgba(154, 168, 122, 0.7);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2em;
  height: 1em;
  line-height: 1;
  margin-top: 0;
  transform-origin: center;
  will-change: transform;
  animation: infinity-pulse 2.6s ease-in-out infinite;
}

@keyframes underline-pulse {
  0%,
  100% {
    transform: translateX(-50%) scaleX(0.9);
    opacity: 0.7;
  }
  50% {
    transform: translateX(-50%) scaleX(1.05);
    opacity: 0.95;
  }
}

@keyframes infinity-pulse {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.95;
  }
}

.section {
  padding: 80px 20px;
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.section h2 {
  font-family: "Great Vibes", cursive;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  color: var(--accent);
  text-align: center;
}

.section-text {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-style: italic;
}

.section-text.hero-subtitle {
  margin: 22px auto 22px;
}

.section.countdown {
  padding-top: 0;
}

.dress-note {
  margin-top: 12px;
}

.countdown .timer {
  display: grid;
  justify-content: center;
  gap: 20px;
  margin-top: -18px;
  position: relative;
  padding: 10px 0 14px;
}

.timer-item {
  background: transparent;
  border-radius: 0;
  padding: 0;
  text-align: center;
  position: relative;
  min-width: 140px;
  padding-left: 18px;
}


.timer-value {
  font-size: 30px;
  font-weight: 500;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 3ch;
  text-align: center;
}

.timer-label {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 14.5px;
  letter-spacing: 0.12em;
  text-transform: none;
  font-style: italic;
  color: var(--text);
  opacity: 0.85;
}


.timer-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 0 0;
  margin-top: 0;
  text-align: center;
  position: relative;
}

.timer-title {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.timer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(58px, 1fr));
  column-gap: 18px;
  row-gap: 4px;
  justify-content: center;
}

.timer-compact .timer-item {
  min-width: auto;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}


.timer-compact .timer-value {
  font-size: clamp(22px, 4.2vw, 36px);
}

.timer-compact .timer-label {
  font-size: 12.5px;
  letter-spacing: 0.08em;
}

.timer-compact .timer-item::before {
  content: none;
}

.timeline-list {
  display: grid;
  gap: 22px;
  list-style: none;
}

.timeline-item {
  background: var(--card);
  border-radius: 24px;
  padding: 0;
  display: grid;
  gap: 0;
  box-shadow: 0 16px 36px rgba(154, 168, 122, 0.12);
  border: 1px solid rgba(154, 168, 122, 0.12);
  overflow: hidden;
}

.timeline-summary {
  display: grid;
  gap: 10px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: background-color 0.35s ease;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  color: inherit;
}

.timeline-summary::after {
  content: "＋";
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 18px;
  color: var(--muted);
  transition: transform 0.35s ease;
}

.timeline-item.is-open .timeline-summary::after {
  transform: rotate(45deg);
}

.timeline-title {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}

.timeline-content {
  padding: 0 24px;
  height: 0;
  overflow: hidden;
  display: block;
}

.timeline-content p + p {
  margin-top: 10px;
}


.timeline-item.is-open .timeline-summary {
  background-color: rgba(255, 255, 255, 0.6);
}

.timeline-date {
  font-size: 18px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}


.map-embed {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(154, 168, 122, 0.2);
}

.map-embed iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
}

.palette {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.palette-color {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.palette-ivory {
  background: var(--ivory);
}

.palette-blush {
  background: var(--blush);
}

.palette-sage {
  background: var(--sage);
}

.palette-sky {
  background: var(--sky);
}

.dress-gallery {
  display: grid;
  grid-template-columns: repeat(4, 120px);
  gap: 18px;
  justify-items: center;
  justify-content: center;
  width: max-content;
  margin: 0 auto;
}

.dress-item {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 32px rgba(154, 168, 122, 0.12);
  border: 1px solid rgba(154, 168, 122, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.dress-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.zoomable {
  cursor: pointer;
}

.dress-item::after,
.style-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Ccircle cx='16' cy='16' r='8.5' fill='none' stroke='%239c9b7a' stroke-width='1.4'/%3E%3Cpath d='M22.5 22.5L29 29' stroke='%239c9b7a' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M11.5 16c2-2.2 4-3.2 6.6-3.4' fill='none' stroke='%239c9b7a' stroke-width='1' stroke-linecap='round'/%3E%3Cpath d='M13 19.5c1.8 2 3.6 2.9 6 3.1' fill='none' stroke='%239c9b7a' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.dress-item::before,
.dress-item::after {
  content: none;
}

.dress-item::before,
.style-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.dress-item:hover::before,
.dress-item:hover::after,
.style-item:hover::before,
.style-item:hover::after {
  opacity: 1;
}

.dress-item:hover {
  transform: scale(1.06);
  box-shadow: 0 18px 36px rgba(154, 168, 122, 0.18);
}

.dress-item:hover img {
  transform: scale(1.08);
}

.style-examples h3 {
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  color: var(--text);
  margin-bottom: 16px;
}

.style-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.style-column {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 26px;
  padding: 20px;
  box-shadow: 0 18px 36px rgba(154, 168, 122, 0.12);
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(4, 72px);
  gap: 12px;
  justify-content: center;
}

.style-item {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(154, 168, 122, 0.2);
  background: rgba(255, 255, 255, 0.8);
  position: relative;
}

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

.details-panel {
  display: grid;
  gap: 2px;
  padding: 26px 28px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 36px rgba(154, 168, 122, 0.12);
  border: 1px solid rgba(154, 168, 122, 0.12);
  --detail-row-height: 170px;
}

.detail-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2px;
  align-items: center;
  color: var(--text);
  height: var(--detail-row-height);
}

.detail-row p {
  margin: 0;
}

.detail-icon {
  width: 160px;
  height: 160px;
  justify-self: start;
}

.detail-right {
  grid-template-columns: 1fr 180px;
}

.detail-right .detail-icon {
  order: 2;
  justify-self: end;
}

@media (max-width: 600px) {
  .details-panel {
    padding: 20px;
  }

  .detail-row {
    grid-template-columns: 1fr;
    text-align: center;
    height: auto;
  }

  .detail-icon {
    width: 120px;
    height: 120px;
    justify-self: center;
  }

  .detail-right .detail-icon {
    order: 0;
    justify-self: center;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  touch-action: none;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  width: min(92vw, 980px);
  height: min(86vh, 720px);
  height: min(86svh, 720px);
  height: min(86dvh, 720px);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.lightbox-content img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--text);
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
}

.lightbox-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18%;
  height: 100%;
  border: none;
  border-radius: 14px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
  backdrop-filter: none;
}

.lightbox-prev {
  left: 0;
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.lightbox-next {
  right: 0;
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.lightbox-content:hover .lightbox-nav,
.lightbox.show-nav .lightbox-nav {
  opacity: 1;
}

.lightbox-nav:hover {
  opacity: 1;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0)
  );
}

.lightbox-next:hover {
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0)
  );
}

@media (max-width: 720px) {
  .lightbox-content {
    width: 94vw;
    height: 74vh;
    height: 74svh;
    height: 74dvh;
    padding: 6px;
  }

  .lightbox-nav {
    width: 22%;
  }
}

.lightbox-close:hover {
  opacity: 0.85;
}

.rsvp-form {
  display: grid;
  gap: 20px;
  background: rgba(255, 255, 255, 0.7);
  padding: 30px 34px;
  border-radius: 30px;
  box-shadow: 0 22px 44px rgba(154, 168, 122, 0.16);
  border: 1px solid rgba(154, 168, 122, 0.18);
}

.rsvp-form label,
.rsvp-form legend {
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: grid;
  gap: 8px;
  width: 100%;
}

.rsvp-form legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-label {
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.rsvp-form input,
.rsvp-form textarea,
.rsvp-form button {
  font-family: inherit;
  font-size: 19px;
}

.rsvp-form input,
.rsvp-form textarea {
  border: 1px solid rgba(154, 168, 122, 0.25);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.rsvp-form input[type="date"] {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: block;
  -webkit-appearance: none;
  appearance: none;
  min-height: 48px;
  line-height: 1.2;
}

.rsvp-form input:focus,
.rsvp-form textarea:focus {
  outline: none;
  border-color: rgba(154, 168, 122, 0.55);
  box-shadow: 0 0 0 3px rgba(154, 168, 122, 0.15);
}

.rsvp-form fieldset,
.rsvp-fieldset {
  border: 1px solid rgba(154, 168, 122, 0.2);
  border-radius: 20px;
  padding: 20px 18px 16px;
  display: grid;
  gap: 12px;
  background: rgba(255, 255, 255, 0.6);
  position: relative;
}

.radio,
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  position: relative;
  padding-left: 36px;
  min-height: 32px;
}

.radio input,
.checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio span,
.checkbox span {
  display: inline-block;
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.radio span::before,
.checkbox span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 1px solid rgba(154, 168, 122, 0.5);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 10px rgba(154, 168, 122, 0.12);
  box-sizing: border-box;
}

.radio span::before {
  border-radius: 50%;
}

.checkbox span::before {
  border-radius: 6px;
}

.radio span::after,
.checkbox span::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  transition: transform 0.2s ease;
}

.radio span::after {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.checkbox span::after {
  width: 14px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='M1 5l3.5 3.5L13 1' fill='none' stroke='%239c9b7a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transform: translateY(-50%) scale(0);
  left: 6px;
}

.radio input:checked + span::after,
.checkbox input:checked + span::after {
  transform: translateY(-50%) scale(1);
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  min-width: 0;
}

.grid > label {
  min-width: 0;
}

.rsvp-form button {
  border: none;
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(154, 155, 122, 0.9),
    rgba(166, 176, 143, 0.9)
  );
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 16px 28px rgba(154, 168, 122, 0.2);
}

.rsvp-form button:hover {
  opacity: 0.92;
}

.form-note {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  font-size: 16px;
  color: var(--text);
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(154, 168, 122, 0.18);
  border-radius: 18px;
  padding: 16px 22px;
  min-width: min(88vw, 420px);
  box-shadow: 0 18px 40px rgba(79, 75, 63, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 20;
}

.form-note.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.form-note.is-error {
  color: #7b4b4b;
  border-color: rgba(190, 120, 120, 0.3);
  box-shadow: 0 18px 40px rgba(123, 75, 75, 0.18);
}

.footer {
  padding: 40px 20px 60px;
  text-align: center;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

@media (max-width: 720px) {
  .nav {
    gap: 12px;
    font-size: 11px;
  }

  .section {
    padding: 64px 20px;
  }

  .timer-item {
    padding: 16px;
  }
}

@media (max-width: 1024px) {
  .hero {
    min-height: 60vh;
    min-height: 60svh;
    min-height: 60dvh;
  }

  .section {
    padding: 72px 24px;
  }

  .date-badge {
    padding: 12px 22px 26px;
  }

  .map-embed iframe {
    min-height: 320px;
  }
}

@media (max-width: 600px) {
  .hero-content {
    padding: 32px 16px 60px;
  }

  .date-row {
    gap: 6px;
    letter-spacing: 0.15em;
  }

  .date-row::after {
    top: 150%;
  }

  .palette {
    flex-wrap: wrap;
  }

  .dress-gallery {
    grid-template-columns: repeat(4, 72px);
    gap: 10px;
    justify-content: center;
    width: max-content;
    margin: 0 auto;
  }

  .dress-item {
    width: 72px;
    height: 72px;
  }

  .date-badge {
    width: min(92vw, 360px);
    padding: 14px 18px 20px;
  }

  .date-row {
    font-size: clamp(22px, 6.2vw, 34px);
    letter-spacing: 0.18em;
  }

  .date-divider {
    font-size: 16px;
    margin-top: 0;
  }

  .timer-compact {
    gap: 8px;
    margin-top: 0;
  }

  .section-text.hero-subtitle {
    margin: 22px auto 22px;
  }

  .timer-title {
    font-size: 11px;
    letter-spacing: 0.24em;
  }

  .timer-grid {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    column-gap: 18px;
    row-gap: 10px;
  }

  .style-column {
    padding: 16px;
  }

  .style-grid {
    grid-template-columns: repeat(4, 58px);
    gap: 10px;
  }

  .style-item {
    width: 58px;
    height: 58px;
  }

  .rsvp-form {
    padding: 24px;
  }

  .rsvp-form label,
  .rsvp-form legend {
    font-size: 14px;
  }

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

  .timer-value {
    font-size: 30px;
  }

  body::before {
    background-position: left -45vw top -12vh, left -30vw top 48vh,
      left -22vw top 18vh;
    background-size: 85vw 120vh, 36vw 64vh, 26vw 44vh;
    opacity: 0.3;
  }

  body::after {
    background-position: right -45vw top -6vh, right -30vw top 54vh,
      right -22vw top 24vh;
    background-size: 85vw 120vh, 36vw 64vh, 26vw 44vh;
    opacity: 0.28;
  }
}

@media (max-width: 420px) {
  body::before {
    background-position: left -55vw top -12vh, left -38vw top 46vh,
      left -28vw top 18vh;
    background-size: 92vw 130vh, 40vw 70vh, 28vw 48vh;
  }

  body::after {
    background-position: right -55vw top -6vh, right -38vw top 52vh,
      right -28vw top 24vh;
    background-size: 92vw 130vh, 40vw 70vh, 28vw 48vh;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  body::before {
    background-position: left -40vw top -20vh, left -28vw top 30vh,
      left -18vw top 8vh;
    background-size: 70vw 120vh, 32vw 70vh, 22vw 46vh;
    opacity: 0.28;
  }

  body::after {
    background-position: right -40vw top -12vh, right -28vw top 34vh,
      right -18vw top 12vh;
    background-size: 70vw 120vh, 32vw 70vh, 22vw 46vh;
    opacity: 0.26;
  }
}
