:root {
  --bg1: #fffbe6;
  --bg2: #fff0a8;
  --bg3: #f7c948;
  --panel: #fffdf4;
  --panel2: #fff4c7;
  --paper: #fffdf4;
  --cream: #fff0a8;
  --sand: #f7c948;
  --ink: #25352b;
  --muted: #68745e;
  --accent: #e55335;
  --accent2: #3f8f7d;
  --gold: #f0bd2e;
  --olive: #6f7e36;
  --glow1: #ffe05a;
  --glow2: #3f8f7d;
  --line: rgba(37, 53, 43, 0.16);
  --shadow: 0 30px 90px rgba(146, 111, 22, 0.22);
  --max: 1180px;
  --speed: .65s;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 8%, color-mix(in srgb, var(--glow1) 34%, transparent), transparent 30%),
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--glow2) 26%, transparent), transparent 34%),
    radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--bg3) 24%, transparent), transparent 42%),
    linear-gradient(145deg, var(--bg1) 0%, var(--bg2) 44%, var(--bg3) 100%);
  transition: background var(--speed) ease, color var(--speed) ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 34%, color-mix(in srgb, var(--panel2) 34%, transparent) 34% 62%, transparent 62% 100%),
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--panel) 82%, transparent), transparent 74%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(120deg, color-mix(in srgb, var(--ink) 4%, transparent) 1px, transparent 1px),
    linear-gradient(30deg, color-mix(in srgb, var(--ink) 3%, transparent) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}

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

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.page {
  position: relative;
  overflow: hidden;
}

/* =========================================================
   DECOR
========================================================= */

.decor {
  position: absolute;
  z-index: 1;
  width: var(--decor-size, 90px);
  opacity: var(--decor-opacity, .72);
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 14px 18px rgba(52, 60, 55, .12));
}

.d1 {
  --decor-size: 92px;
  left: 3%;
  top: 120px;
  animation: floatOne 8s ease-in-out infinite;
}

.d2 {
  --decor-size: 150px;
  right: 7%;
  top: 95px;
  animation: floatTwo 9s ease-in-out infinite;
}

.d3 {
  --decor-size: 74px;
  right: 4%;
  top: 880px;
  animation: floatThree 7s ease-in-out infinite;
}

.d4 {
  --decor-size: 92px;
  left: 5%;
  top: 1320px;
  animation: floatTwo 10s ease-in-out infinite;
}

.d5 {
  --decor-size: 90px;
  right: 9%;
  top: 1780px;
  animation: floatOne 8.5s ease-in-out infinite;
}

.d6 {
  --decor-size: 128px;
  left: 7%;
  top: 2360px;
  animation: floatThree 11s ease-in-out infinite;
}

.d7 {
  --decor-size: 86px;
  right: 6%;
  top: 2920px;
  animation: floatTwo 9.5s ease-in-out infinite;
}

.d8 {
  --decor-size: 112px;
  left: 8%;
  top: 3420px;
  animation: floatOne 10.5s ease-in-out infinite;
}

.d9 {
  --decor-size: 96px;
  right: 13%;
  bottom: 150px;
  animation: floatThree 8.8s ease-in-out infinite;
}

@keyframes floatOne {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-8deg);
  }

  50% {
    transform: translate3d(10px, -22px, 0) rotate(5deg);
  }
}

@keyframes floatTwo {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(7deg);
  }

  50% {
    transform: translate3d(-10px, -18px, 0) rotate(-4deg);
  }
}

@keyframes floatThree {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1) rotate(-6deg);
  }

  50% {
    transform: translate3d(8px, 14px, 0) scale(1.05) rotate(4deg);
  }
}

/* =========================================================
   ANIMATION
========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(34px) scale(.98);
  filter: blur(10px);
  transition:
    opacity .86s ease,
    transform .86s cubic-bezier(.2, .9, .2, 1),
    filter .86s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* =========================================================
   HERO
========================================================= */

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 7vw, 98px) 0 72px;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -110px;
  width: 130vw;
  height: 260px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--panel) 82%, transparent),
    color-mix(in srgb, var(--panel2) 42%, transparent)
  );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: 9%;
  right: -12vw;
  z-index: 0;
  width: min(48vw, 640px);
  height: min(48vw, 640px);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent2) 22%, transparent), transparent 68%);
  opacity: .88;
  pointer-events: none;
}

.heroLayout {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(430px, 1.08fr);
  align-items: center;
  min-height: clamp(620px, calc(100svh - 160px), 760px);
  gap: clamp(48px, 7vw, 96px);
  isolation: isolate;
}

.heroLayout::before {
  content: "";
  position: absolute;
  left: clamp(-24px, -3vw, -8px);
  top: 7%;
  z-index: -1;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent2) 34%, transparent);
  opacity: .38;
  pointer-events: none;
}

.heroText {
  position: relative;
  max-width: 610px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  color: var(--accent2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent2) 68%, transparent), transparent);
}

.scriptTitle {
  margin: 0 0 16px;
  font-family: "Great Vibes", cursive;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: .82;
  color: var(--accent);
  transform: rotate(-2deg);
  text-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 22%, transparent);
}

.heroNames {
  margin: 0;
  font-family: "Playfair Display", "Cormorant Garamond", serif;
  font-size: clamp(46px, 5.8vw, 82px);
  line-height: .98;
  letter-spacing: .01em;
  text-transform: uppercase;
  font-weight: 500;
  max-width: 560px;
}

.amp {
  display: inline-block;
  margin: 0 .12em;
  font-family: "Marck Script", cursive;
  font-size: .62em;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent2);
}

.heroLead {
  max-width: 500px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.heroDetails {
  display: grid;
  grid-template-columns: repeat(3, auto);
  width: fit-content;
  gap: 1px;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  backdrop-filter: blur(12px);
}

.heroDetails span {
  padding: 11px 15px;
  background: color-mix(in srgb, var(--panel) 42%, transparent);
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform .28s ease,
    box-shadow .28s ease,
    background var(--speed) ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px color-mix(in srgb, var(--accent) 24%, transparent);
}

.btn--ghost {
  color: var(--accent2);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
}

.heroBoard {
  position: relative;
  min-height: clamp(520px, 48vw, 620px);
}

.coupleDuo {
  position: relative;
  width: min(620px, 100%);
  min-height: clamp(520px, 48vw, 620px);
  margin-left: auto;
  isolation: isolate;
}

.coupleDuo::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 18px;
  z-index: 0;
  width: 118px;
  height: 118px;
  background: url("./icons/champagne-glasses.svg") center/contain no-repeat;
  opacity: .2;
}

.couplePhoto {
  position: absolute;
  z-index: 3;
  width: clamp(250px, 22vw, 304px);
  margin: 0;
  padding: 10px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-origin: center;
}

.couplePhoto::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 2;
  border-radius: 18px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .02) 0%, rgba(0, 0, 0, .04) 48%, rgba(0, 0, 0, .22) 100%),
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, .26), transparent 36%);
}

.couplePhoto img {
  width: 100%;
  height: clamp(390px, 36vw, 438px);
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  filter: saturate(.96) contrast(.98);
}

.couplePhoto--groom {
  left: 34px;
  top: 116px;
  transform: rotate(-3deg);
  animation: groomFloat 8s ease-in-out infinite;
}

.couplePhoto--bride {
  right: 28px;
  top: 42px;
  transform: rotate(3deg);
  animation: brideFloat 8.8s ease-in-out infinite;
}

@keyframes groomFloat {
  0%, 100% {
    transform: rotate(-6deg) translateY(0);
  }

  50% {
    transform: rotate(-2deg) translateY(-10px);
  }
}

@keyframes brideFloat {
  0%, 100% {
    transform: rotate(3deg) translateY(0);
  }

  50% {
    transform: rotate(2deg) translateY(8px);
  }
}

.coupleCaption {
  display: none;
}

/* =========================================================
   COMMON SECTIONS
========================================================= */

.dateBand {
  position: relative;
  z-index: 4;
  padding: 34px 0;
}

.dateBandInner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 26px 34px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  border: 1px solid var(--line);
  box-shadow: 0 18px 60px rgba(82, 71, 48, .1);
  backdrop-filter: blur(12px);
}

.dateBandLine {
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent2) 45%, transparent), transparent);
}

.dateBandCenter {
  display: grid;
  gap: 6px;
  text-align: center;
}

.dateBandCenter strong {
  font-family: "Playfair Display", serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  line-height: 1;
}

.dateBandCenter span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.countdownSection,
.story,
.programSection,
.placeSection,
.gallerySection,
.rsvpSection,
.dresscodeSection {
  padding: 96px 0;
}

.sectionHeader {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.sectionHeader small {
  display: block;
  margin-bottom: 12px;
  color: var(--accent2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.sectionHeader h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(42px, 6vw, 78px);
  line-height: .96;
  font-weight: 500;
}

.sectionHeader p {
  margin: 18px auto 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.8;
}

.sectionKickerInline {
  color: var(--accent2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* =========================================================
   COUNTDOWN
========================================================= */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cdItem {
  position: relative;
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--gold) 19%, transparent), transparent 42%),
    color-mix(in srgb, var(--panel) 82%, transparent);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(83, 75, 54, .08);
}

.cdItem strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(48px, 7vw, 76px);
  line-height: .9;
  font-weight: 500;
  color: var(--accent);
}

.cdItem span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* =========================================================
   STORY
========================================================= */

.storyLayout {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 34px;
  align-items: stretch;
}

.storyPhoto {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 42px;
  box-shadow: var(--shadow);
}

.storyPhoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.storyPhoto:hover img {
  transform: scale(1.06);
}

.storyPhoto::after {
  content: "La nostra storia";
  position: absolute;
  left: 30px;
  bottom: 24px;
  font-family: "Great Vibes", cursive;
  font-size: clamp(52px, 7vw, 88px);
  line-height: .9;
  color: rgba(255, 253, 246, .9);
  text-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}

.storyText {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 48px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 34%),
    color-mix(in srgb, var(--panel) 82%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.storyText img {
  width: 96px;
  opacity: .42;
}

.storyText h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(40px, 5vw, 70px);
  line-height: .96;
  font-weight: 500;
}

.storyText p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

/* =========================================================
   PROGRAM
========================================================= */

.timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 70px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent2) 42%, transparent), transparent);
}

.timeRow {
  position: relative;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.timeMark {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  box-shadow: 0 18px 34px color-mix(in srgb, var(--accent) 24%, transparent);
}

.timeCard {
  position: relative;
  width: 100%;
  min-height: 178px;
  padding: 32px 34px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 34%),
    color-mix(in srgb, var(--panel) 84%, transparent);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(83, 75, 54, .08);
  overflow: hidden;
}

.timeCard img {
  width: 58px;
  margin-bottom: 18px;
  opacity: .78;
}

.timeCard h3 {
  margin: 0 0 10px;
  font-family: "Playfair Display", serif;
  font-size: 34px;
  line-height: 1;
  font-weight: 500;
}

.timeCard p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
}

/* =========================================================
   PLACEHOLDERS
========================================================= */

.sharedBlock {
  position: relative;
  width: 100%;
}

.iviImgPh {
  width: 100%;
  min-height: 100%;
  aspect-ratio: 3 / 4;
  border-radius: inherit;
  border: 1px dashed color-mix(in srgb, var(--accent2) 38%, transparent);
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 38%),
    color-mix(in srgb, var(--panel) 84%, var(--cream) 16%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.iviImgPhInner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 24px;
  text-align: center;
  color: color-mix(in srgb, var(--ink) 62%, transparent);
}

.iviImgPhIcon {
  font-family: "Great Vibes", cursive;
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
}

.iviImgPhTxt {
  max-width: 180px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.namesPlaceholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 22px 28px;
  border-radius: 34px;
  border: 1px dashed color-mix(in srgb, var(--accent2) 42%, transparent);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  color: color-mix(in srgb, var(--ink) 52%, transparent);
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1;
}

/* =========================================================
   SHARED GALLERY BLOCK
========================================================= */

.sharedBlock--gallery {
  position: relative;
  z-index: 2;
}

.iviGallery {
  position: relative;
  width: 100%;
}

.iviGalleryHead {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.iviGalleryKicker {
  display: block;
  margin-bottom: 12px;
  color: var(--accent2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.iviGalleryTitle {
  margin: 0;
  font-family: "Playfair Display", "Cormorant Garamond", serif;
  font-size: clamp(42px, 6vw, 78px);
  line-height: .96;
  font-weight: 500;
  color: var(--ink);
}

.iviGalleryGrid {
  position: relative;
  display: grid;
  gap: clamp(12px, 1.6vw, 20px);
}

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

.iviGalleryGrid--grid .iviGalleryItem {
  min-height: 320px;
}

.iviGalleryGrid--grid .iviGalleryItem:nth-child(6n + 1) {
  grid-column: span 7;
  min-height: 560px;
}

.iviGalleryGrid--grid .iviGalleryItem:nth-child(6n + 2) {
  grid-column: span 5;
  min-height: 560px;
}

.iviGalleryGrid--grid .iviGalleryItem:nth-child(6n + 3),
.iviGalleryGrid--grid .iviGalleryItem:nth-child(6n + 4),
.iviGalleryGrid--grid .iviGalleryItem:nth-child(6n + 5) {
  grid-column: span 4;
  min-height: 340px;
}

.iviGalleryGrid--grid .iviGalleryItem:nth-child(6n + 6) {
  grid-column: span 12;
  min-height: 420px;
}

.iviGalleryGrid--masonry {
  display: block;
  column-count: 3;
  column-gap: clamp(12px, 1.6vw, 20px);
}

.iviGalleryGrid--masonry .iviGalleryItem {
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0 0 clamp(12px, 1.6vw, 20px);
  break-inside: avoid;
}

.iviGalleryGrid--masonry .iviGalleryItem img {
  height: auto;
  aspect-ratio: auto;
}

.iviGalleryItem {
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: 36px;
  border: 10px solid color-mix(in srgb, var(--panel) 90%, transparent);
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 42%),
    var(--panel);
  box-shadow:
    0 22px 54px rgba(83, 75, 54, .12),
    0 0 0 1px color-mix(in srgb, var(--ink) 5%, transparent);
  color: inherit;
  transform: translateZ(0);
  isolation: isolate;
}

.iviGalleryItem::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .02) 0%, rgba(0, 0, 0, .04) 48%, rgba(0, 0, 0, .24) 100%),
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, .26), transparent 34%);
  opacity: .72;
  transition: opacity .5s ease;
}

.iviGalleryItem::after {
  content: "Открыть";
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  color: var(--accent2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-8px);
  backdrop-filter: blur(12px);
  transition: opacity .35s ease, transform .35s ease;
}

.iviGalleryItem:hover {
  box-shadow:
    0 28px 70px rgba(83, 75, 54, .16),
    0 0 0 1px color-mix(in srgb, var(--accent2) 16%, transparent);
}

.iviGalleryItem:hover::before {
  opacity: .46;
}

.iviGalleryItem:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.iviGalleryItem img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s ease, filter 1.2s ease;
}

.iviGalleryItem:hover img {
  transform: scale(1.06);
  filter: saturate(1.04) contrast(1.02);
}

.iviGalleryCaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  margin: 0;
  width: fit-content;
  max-width: calc(100% - 36px);
  padding: 10px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  color: var(--accent2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.25;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .08);
}

.fancybox__container {
  --fancybox-bg: rgba(13, 18, 22, .88);
  z-index: 99999;
}

.fancybox__caption {
  font-family: Inter, system-ui, sans-serif;
  color: #fffdf6;
}

/* =========================================================
   SHARED LOCATION BLOCK
========================================================= */

.iviLoc {
  position: relative;
  width: 100%;
  text-align: left;
}

.iviLocHead {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.iviLocKicker {
  display: block;
  margin-bottom: 12px;
  color: var(--accent2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.iviLocTitle {
  margin: 0;
  font-family: "Playfair Display", "Cormorant Garamond", serif;
  font-size: clamp(42px, 6vw, 78px);
  line-height: .96;
  font-weight: 500;
  color: var(--ink);
}

.iviLocGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
  align-items: stretch;
}

.iviLocCard {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  border-radius: 38px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 36%),
    linear-gradient(145deg, color-mix(in srgb, var(--panel) 92%, transparent), color-mix(in srgb, var(--panel2) 80%, transparent));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.iviLocCard::before {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 2;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  pointer-events: none;
}

.iviLocCard::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  z-index: 1;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent2) 13%, transparent);
  pointer-events: none;
}

.iviLocPhoto {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 40%),
    color-mix(in srgb, var(--panel) 78%, var(--cream) 22%);
}

.iviLocPhoto::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .02) 0%, rgba(0, 0, 0, .05) 52%, rgba(0, 0, 0, .24) 100%),
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, .24), transparent 34%);
}

.iviLocPhoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.15s ease, filter 1.15s ease;
}

.iviLocCard:hover .iviLocPhoto img {
  transform: scale(1.06);
  filter: saturate(1.04) contrast(1.02);
}

.iviLocBody {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
}

.iviLocBadge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  box-shadow:
    0 14px 28px color-mix(in srgb, var(--accent) 24%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .25);
}

.iviLocName {
  margin-top: 2px;
  font-family: "Playfair Display", "Cormorant Garamond", serif;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: .98;
  font-weight: 500;
  color: var(--ink);
}

.iviLocAddr {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.iviLocNote {
  margin-top: 2px;
  padding: 14px 16px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--panel) 58%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent2) 20%, transparent);
  color: color-mix(in srgb, var(--ink) 68%, transparent);
  font-size: 14px;
  line-height: 1.7;
}

.iviLocActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* =========================================================
   SHARED DRESSCODE BLOCK
========================================================= */

.iviDress {
  width: 100%;
  text-align: center;
}

.iviDressWrap {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 54px);
  border-radius: 38px;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 38%),
    color-mix(in srgb, var(--panel) 86%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.iviDressKicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.iviDressTitle {
  margin: 0;
  font-family: "Playfair Display", "Cormorant Garamond", serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  font-weight: 500;
  color: var(--ink);
}

.iviDressText {
  max-width: 620px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.iviDressSwatches {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin: 24px auto 0 !important;
  padding: 0 !important;
}

.iviDressDot {
  display: inline-block !important;
  flex: 0 0 auto !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border-radius: 999px !important;
  background: var(--c, #fff) !important;
  border: 2px solid color-mix(in srgb, var(--ink) 22%, transparent) !important;
  box-shadow:
    0 12px 24px rgba(83, 75, 54, .12),
    inset 0 1px 0 rgba(255, 255, 255, .55) !important;
}

/* =========================================================
   SHARED BUTTONS
========================================================= */

.iviBtn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background .25s ease,
    border-color .25s ease,
    color .25s ease;
}

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

.btn.btn-full,
.iviBtnPrimary,
.qlFloatBtn {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
}

.iviBtnPrimary {
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 22%, transparent);
}

.iviBtnPrimary:hover {
  box-shadow: 0 18px 38px color-mix(in srgb, var(--accent) 28%, transparent);
}

.iviBtnGhost {
  background: color-mix(in srgb, var(--panel) 72%, transparent) !important;
  color: var(--accent2) !important;
  border-color: color-mix(in srgb, var(--accent2) 28%, transparent) !important;
}

.iviBtnGhost:hover {
  background: color-mix(in srgb, var(--accent2) 10%, var(--panel) 90%) !important;
  border-color: color-mix(in srgb, var(--accent2) 42%, transparent) !important;
}

/* =========================================================
   RSVP — ITALIAN POSTCARD CUSTOM
========================================================= */

.rsvpSection {
  padding: clamp(64px, 8vw, 110px) 0 !important;
  background: transparent !important;
}

.rsvpSection > .shell {
  width: min(1040px, calc(100% - 40px)) !important;
}

.rsvpCard {
  position: relative;
  overflow: visible;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.rsvpCard::before,
.rsvpCard::after {
  display: none !important;
  content: none !important;
}

.rsvpCard > .form,
.rsvpCard #rsvp {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.rsvpSection .rsvpSectionHead {
  width: min(760px, 100%) !important;
  margin: 0 auto clamp(34px, 5vw, 54px) !important;
  padding: 0 !important;
  text-align: center !important;
}

.rsvpSection .rsvpLabel {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  margin: 0 auto 20px !important;
  padding: 0 24px !important;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--ink) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: .28em !important;
  text-transform: uppercase !important;
}

.rsvpSection .rsvpSectionHead h2 {
  max-width: 720px !important;
  margin: 0 auto 18px !important;
  color: var(--ink) !important;
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: clamp(40px, 6vw, 68px) !important;
  font-weight: 500 !important;
  line-height: .98 !important;
  letter-spacing: -.035em !important;
  text-align: center !important;
}

.rsvpSection .rsvpSectionHead .rsvpHint {
  width: min(600px, 100%) !important;
  margin: 0 auto !important;
  color: var(--muted) !important;
  font-size: clamp(15px, 1.7vw, 18px) !important;
  line-height: 1.7 !important;
  text-align: center !important;
  opacity: 1 !important;
}

.rsvpSection .rsvpGrid {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

.rsvpSection .rsvpFormCard {
  position: relative !important;
  width: min(760px, 100%) !important;
  margin: 0 auto !important;
  padding: clamp(26px, 5vw, 52px) !important;
  border: 1px solid color-mix(in srgb, var(--ink) 13%, transparent) !important;
  border-radius: 34px !important;
  background:
    linear-gradient(145deg,
      color-mix(in srgb, var(--panel) 90%, transparent),
      color-mix(in srgb, var(--panel2) 68%, transparent)
    ) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.rsvpSection #rsvpForm {
  display: grid !important;
  gap: 26px !important;
}

.rsvpSection .row2 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.rsvpSection .formRow,
.rsvpSection #rsvpAttendanceFields,
.rsvpSection #companionsWrap {
  display: grid !important;
  gap: 10px !important;
  margin: 0 !important;
}

.rsvpSection #rsvpAttendanceFields {
  gap: 26px !important;
}

.rsvpSection #companionsWrap {
  gap: 18px !important;
}

.rsvpSection .label,
.rsvpSection label.label,
.rsvpSection .formRow > label,
.rsvpSection .rsvpFormCard label.label {
  display: block !important;
  margin: 0 !important;
  color: var(--ink) !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
}

.rsvpSection .field,
.rsvpSection input.field,
.rsvpSection textarea.field {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 52px !important;
  height: auto !important;
  padding: 13px 16px !important;
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent) !important;
  border-radius: 16px !important;
  background: color-mix(in srgb, var(--paper) 86%, transparent) !important;
  color: var(--ink) !important;
  font: inherit !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  outline: none !important;
  box-shadow: none !important;
}

.rsvpSection textarea.field {
  min-height: 116px !important;
  resize: vertical !important;
}

.rsvpSection .field::placeholder {
  color: color-mix(in srgb, var(--muted) 72%, transparent) !important;
  opacity: 1 !important;
}

.rsvpSection .field:focus {
  border-color: color-mix(in srgb, var(--accent) 68%, transparent) !important;
  background: var(--paper) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent) !important;
}

.rsvpSection .chips {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.rsvpSection .chips[data-group="attendance"],
.rsvpSection .chips[data-group="with_children"] {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.rsvpSection .chip {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  padding: 10px 12px !important;
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent) !important;
  border-radius: 14px !important;
  background: color-mix(in srgb, var(--paper) 74%, transparent) !important;
  color: var(--ink) !important;
  font: inherit !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  box-shadow: none !important;
  transform: none !important;
}

.rsvpSection .chip:hover {
  border-color: color-mix(in srgb, var(--accent) 44%, transparent) !important;
  background: color-mix(in srgb, var(--accent) 7%, var(--paper)) !important;
}

.rsvpSection .chip[data-active="true"],
.rsvpSection .chip.is-active,
.rsvpSection .chip.active {
  border-color: var(--accent) !important;
  background: var(--accent) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.rsvpSection .rsvpTotal {
  width: fit-content !important;
  min-height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 13px !important;
  border: 1px solid color-mix(in srgb, var(--ink) 13%, transparent) !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--paper) 68%, transparent) !important;
  color: var(--ink) !important;
  font-size: 12px !important;
  box-shadow: none !important;
}

.rsvpSection .consent,
.rsvpSection label.consent {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 16px !important;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent) !important;
  border-radius: 16px !important;
  background: color-mix(in srgb, var(--paper) 60%, transparent) !important;
  color: var(--ink) !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
  box-shadow: none !important;
}

.rsvpSection .consent input {
  width: 18px !important;
  height: 18px !important;
  margin: 1px 0 0 !important;
  accent-color: var(--accent) !important;
}

.rsvpSection .consent small {
  font-size: 10px !important;
  line-height: 1.45 !important;
}

.rsvpSection .btn.btn-full,
.rsvpSection #rsvpForm button[type="submit"] {
  width: 100% !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--accent) !important;
  color: #fff !important;
  font: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  transform: none !important;
}

.rsvpSection .btn.btn-full:hover,
.rsvpSection #rsvpForm button[type="submit"]:hover {
  filter: brightness(.95) !important;
  box-shadow: none !important;
  transform: none !important;
}

.rsvpSection .statusBox,
.rsvpSection .previewLockNote {
  box-shadow: none !important;
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
  padding: 42px 0 54px;
  text-align: center;
  color: color-mix(in srgb, var(--ink) 58%, transparent);
  font-size: 13px;
}

/* =========================================================
   DARK THEME
========================================================= */

body[data-dark="1"] .btn,
body[data-dark="1"] .timeMark,
body[data-dark="1"] .iviBtnPrimary,
body[data-dark="1"] .iviLocBadge,
body[data-dark="1"] .btn.btn-full,
body[data-dark="1"] .qlFloatBtn {
  color: color-mix(in srgb, var(--cream) 86%, #000 14%) !important;
}

body[data-dark="1"] .btn--ghost,
body[data-dark="1"] .iviBtnGhost {
  color: var(--ink) !important;
}

body[data-dark="1"] .iviGalleryItem {
  border-color: color-mix(in srgb, var(--sand) 72%, transparent);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, .28),
    0 0 0 1px color-mix(in srgb, var(--gold) 14%, transparent);
}

body[data-dark="1"] .iviGalleryCaption,
body[data-dark="1"] .iviGalleryItem::after {
  background: color-mix(in srgb, var(--cream) 84%, transparent);
  color: var(--ink);
}

body[data-dark="1"] .iviDressDot {
  border-color: color-mix(in srgb, var(--ink) 32%, transparent) !important;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .42) !important;
}

body[data-dark="1"] .iviLocCard {
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 36%),
    linear-gradient(145deg, color-mix(in srgb, var(--panel) 94%, transparent), color-mix(in srgb, var(--panel2) 74%, transparent));
  box-shadow: var(--shadow);
}

body[data-dark="1"] .iviLocNote {
  background: color-mix(in srgb, var(--cream) 72%, transparent);
  border-color: color-mix(in srgb, var(--gold) 18%, transparent);
  color: color-mix(in srgb, var(--ink) 72%, transparent);
}

body[data-dark="1"] .iviBtnGhost {
  background: color-mix(in srgb, var(--cream) 82%, transparent) !important;
  border-color: color-mix(in srgb, var(--ink) 16%, transparent) !important;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 1120px) {
  .hero::after {
    top: 6%;
    right: -18vw;
    width: 72vw;
    height: 72vw;
    transform: none;
  }

  .heroLayout {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 28px;
  }

  .heroLayout::before {
    left: 50%;
    top: 28px;
    transform: translateX(-50%);
  }

  .heroText {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
  }

  .heroLead {
    margin-left: auto;
    margin-right: auto;
  }

  .heroDetails {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .heroActions {
    justify-content: center;
  }

  .heroBoard {
    min-height: 580px;
    width: min(680px, 100%);
    margin: 0 auto;
  }

  .coupleDuo {
    min-height: 580px;
    margin: 0 auto;
  }

  .storyLayout,
  .rsvpCard {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 980px) {
  .iviGalleryGrid--grid .iviGalleryItem:nth-child(n) {
    grid-column: span 6;
    min-height: 340px;
  }

  .iviGalleryGrid--grid .iviGalleryItem:nth-child(5n + 1) {
    grid-column: span 12;
    min-height: 460px;
  }

  .iviGalleryGrid--masonry {
    column-count: 2;
  }

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

  .iviLocCard {
    border-radius: 34px;
  }

  .iviLocPhoto {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, var(--max));
  }

  .hero {
    min-height: auto;
    padding: 34px 0 58px;
  }

  .hero::after {
    top: 42px;
    right: -34vw;
    width: 88vw;
    height: 88vw;
    opacity: .34;
  }

  .heroLayout::before {
    top: 20px;
    width: 78px;
    height: 78px;
    opacity: .18;
  }

  .heroBoard {
    min-height: auto;
    justify-self: center;
    width: min(330px, calc(100vw - 48px));
    max-width: 330px;
    margin: 0 auto;
  }

  .coupleDuo {
    width: 100%;
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0 auto;
  }

  .coupleDuo::after {
    display: none;
  }

  .couplePhoto {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    min-width: 0;
    padding: 8px;
    border-radius: 18px;
    transform: none !important;
    animation: none;
  }

  .couplePhoto::before {
    inset: 8px;
    border-radius: 13px;
  }

  .couplePhoto img {
    height: 300px;
    border-radius: 13px;
  }

  .scriptTitle {
    font-size: 48px;
  }

  .heroNames {
    font-size: 39px;
    line-height: 1.04;
  }

  .eyebrow {
    justify-content: center;
    font-size: 10px;
    letter-spacing: .16em;
  }

  .eyebrow::after {
    width: 42px;
  }

  .heroLead {
    max-width: 300px;
    font-size: 15px;
    line-height: 1.65;
  }

  .heroDetails {
    display: block;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    overflow: visible;
  }

  .heroDetails span {
    display: none;
  }

  .heroDetails span:last-child {
    display: inline-block;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent2);
    font-size: 10px;
    letter-spacing: .16em;
  }

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

  .btn {
    width: 100%;
  }

  .dateBandInner {
    grid-template-columns: 1fr;
    border-radius: 30px;
    padding: 24px;
  }

  .dateBandLine {
    display: none;
  }

  .countdownSection,
  .story,
  .programSection,
  .placeSection,
  .gallerySection,
  .rsvpSection,
  .dresscodeSection {
    padding: 68px 0;
  }

  .sectionHeader {
    margin-bottom: 34px;
  }

  .sectionHeader small {
    font-size: 10px;
    letter-spacing: .22em;
  }

  .sectionHeader h2 {
    font-size: 38px;
  }

  .countdown {
    gap: 12px;
  }

  .cdItem {
    min-height: 112px;
    border-radius: 22px;
  }

  .cdItem strong {
    font-size: 46px;
  }

  .cdItem span {
    font-size: 9px;
    letter-spacing: .12em;
  }

  .storyPhoto {
    min-height: 360px;
    border-radius: 28px;
  }

  .storyText {
    padding: 30px 22px;
    border-radius: 28px;
  }

  .storyText h2 {
    font-size: 38px;
  }

  .timeline::before {
    left: 34px;
    top: 24px;
    bottom: 24px;
  }

  .timeRow {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 14px;
  }

  .timeMark {
    width: 68px;
    height: 68px;
    font-size: 21px;
  }

  .timeCard {
    min-height: auto;
    padding: 22px 18px;
    border-radius: 24px;
  }

  .timeCard img {
    width: 42px;
    margin-bottom: 14px;
  }

  .timeCard h3 {
    font-size: 26px;
  }

  .timeCard p {
    font-size: 14px;
    line-height: 1.6;
  }

  .rsvpSection {
    padding: 58px 0 !important;
  }

  .rsvpCard {
    padding: 28px 18px !important;
    border-radius: 30px !important;
    gap: 24px !important;
  }

  .rsvpText {
    padding-top: 14px !important;
  }

  .rsvpText small {
    margin-bottom: 14px !important;
  }

  .rsvpText h2 {
    font-size: 38px !important;
    margin-bottom: 18px !important;
  }

  .rsvpText p {
    font-size: 14px !important;
  }

  .form,
  .rsvpSection .rsvpGrid,
  .rsvpSection .rsvpFormCard {
    width: 100% !important;
    margin-top: 4px !important;
  }

  .row2,
  .rsvpSection .row2,
  .chips,
  .choices {
    grid-template-columns: 1fr !important;
  }

  .rsvpSection .label,
  .rsvpSection label.label,
  .rsvpSection .formRow > label,
  .rsvpSection .rsvpFormCard label {
    margin: 12px 0 7px !important;
  }

  .rsvpSection .formLabel,
  .rsvpSection .groupLabel,
  .rsvpSection .rsvpLabel {
    margin: 14px 0 8px !important;
  }

  .rsvpSection .field + .label,
  .rsvpSection .field + label,
  .rsvpSection .chips + .label,
  .rsvpSection .chips + label {
    margin-top: 16px !important;
  }

  .iviGalleryHead,
  .iviLocHead {
    margin-bottom: 32px;
  }

  .iviGalleryKicker,
  .iviLocKicker {
    font-size: 10px;
    letter-spacing: .22em;
  }

  .iviGalleryTitle,
  .iviLocTitle {
    font-size: 38px;
  }

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

  .iviGalleryGrid--grid .iviGalleryItem:nth-child(n),
  .iviGalleryGrid--grid .iviGalleryItem:nth-child(5n + 1) {
    grid-column: auto;
    min-height: 300px;
  }

  .iviGalleryGrid--masonry {
    column-count: 1;
  }

  .iviGalleryItem {
    border-width: 7px;
    border-radius: 26px;
  }

  .iviGalleryItem::after {
    display: none;
  }

  .iviGalleryCaption {
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
    font-size: 10px;
    letter-spacing: .1em;
  }

  .iviLocCard {
    border-radius: 28px;
  }

  .iviLocCard::before {
    inset: 10px;
    border-radius: 22px;
  }

  .iviLocPhoto {
    aspect-ratio: 4 / 3;
  }

  .iviLocBody {
    padding: 22px 18px 24px;
    gap: 12px;
  }

  .iviLocName {
    font-size: 32px;
  }

  .iviLocAddr {
    font-size: 14px;
    line-height: 1.65;
  }

  .iviLocNote {
    padding: 12px 14px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.6;
  }

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

  .iviBtn {
    width: 100%;
    min-height: 46px;
  }

  .iviDressWrap {
    padding: 28px 18px;
    border-radius: 28px;
  }

  .iviDressTitle {
    font-size: 34px;
  }

  .iviDressText {
    font-size: 14px;
    line-height: 1.7;
  }

  .iviDressDot {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
  }

  .footer {
    padding-bottom: 88px;
  }

  .decor {
    opacity: .34;
  }

  .d2,
  .d6,
  .d7,
  .d8 {
    display: none;
  }

  .d1,
  .d3,
  .d4,
  .d5,
  .d9 {
    --decor-size: 54px;
  }

  .d1 {
    left: -16px;
    top: 90px;
  }

  .d3 {
    right: -16px;
    top: 760px;
  }

  .d4 {
    left: -14px;
    top: 1220px;
  }

  .d5 {
    right: -12px;
    top: 1760px;
  }
}

@media (max-width: 460px) {
  .couplePhoto img {
    height: 280px;
  }

  .heroNames {
    font-size: 36px;
  }

  .scriptTitle {
    font-size: 52px;
  }
}

@media (max-width: 370px) {
  .couplePhoto {
    padding: 8px;
  }

  .couplePhoto img {
    height: 252px;
  }
}
/* RSVP final responsive overrides */
@media (max-width: 700px) {
  .rsvpSection {
    padding: 54px 0 64px !important;
  }

  .rsvpSection > .shell {
    width: min(100% - 24px, 1040px) !important;
  }

  .rsvpSection .rsvpSectionHead {
    margin-bottom: 28px !important;
  }

  .rsvpSection .rsvpSectionHead h2 {
    font-size: clamp(36px, 11vw, 52px) !important;
  }

  .rsvpSection .rsvpFormCard {
    padding: 22px 14px !important;
    border-radius: 24px !important;
  }

  .rsvpSection .row2,
  .rsvpSection .chips,
  .rsvpSection .chips[data-group="attendance"],
  .rsvpSection .chips[data-group="with_children"] {
    grid-template-columns: 1fr !important;
  }

  .rsvpSection .chip {
    min-height: 46px !important;
  }
}
