/* =========================================================
   Sweet Polaroid
   /templates/sweet_polaroid/assets/editorial.css
========================================================= */

:root {
  --sp-bg: #fff9fb;
  --sp-paper: #ffffff;
  --sp-ink: #4a4a4a;
  --sp-muted: #7b6f75;
  --sp-line: #ffd3e2;
  --sp-accent: #ff5c8a;
  --sp-accent-hover: #f13f75;
  --sp-accent-soft: #ffe4ee;
  --sp-blue: #a2d2ff;
  --sp-yellow: #ffde7d;
  --sp-green: #e2f0cb;

  --sp-radius-xl: 56px;
  --sp-radius-lg: 42px;
  --sp-radius-md: 28px;
  --sp-radius-sm: 20px;

  --sp-shadow-soft: 0 24px 70px rgba(120, 73, 92, 0.12);
  --sp-shadow-card: 0 18px 42px rgba(120, 73, 92, 0.14);
  --sp-shadow-pop: 10px 10px 0 rgba(255, 92, 138, 0.22);

  --sp-font-main: "Comfortaa", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sp-font-display: "Lobster", cursive;
}

/* =========================
   BASE
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.spBody {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--sp-ink);
  background:
    radial-gradient(circle at 12% 10%, color-mix(in srgb, var(--sp-accent-soft) 70%, transparent), transparent 30%),
    radial-gradient(circle at 90% 18%, color-mix(in srgb, var(--sp-blue) 36%, transparent), transparent 34%),
    radial-gradient(circle at 60% 92%, color-mix(in srgb, var(--sp-yellow) 32%, transparent), transparent 36%),
    var(--sp-bg);
  font-family: var(--sp-font-main);
  line-height: 1.65;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body.spBody img {
  max-width: 100%;
  height: auto;
}

body.spBody a {
  color: inherit;
}

.spPage {
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.spAmbient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.spBubble {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(1px);
  opacity: 0.65;
  animation: spBubbleFloat 14s ease-in-out infinite;
}

.spBubbleA {
  width: 160px;
  height: 160px;
  left: 3vw;
  top: 18vh;
  background: color-mix(in srgb, var(--sp-accent) 18%, transparent);
}

.spBubbleB {
  width: 220px;
  height: 220px;
  right: -70px;
  top: 38vh;
  background: color-mix(in srgb, var(--sp-blue) 26%, transparent);
  animation-delay: -4s;
}

.spBubbleC {
  width: 130px;
  height: 130px;
  left: 16vw;
  bottom: 6vh;
  background: color-mix(in srgb, var(--sp-yellow) 30%, transparent);
  animation-delay: -8s;
}

@keyframes spBubbleFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -26px, 0) scale(1.05);
  }
}

/* =========================
   REVEAL
========================= */

.reveal-item {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.85s ease,
    transform 0.85s ease;
  will-change: opacity, transform;
}

.reveal-item.from-left {
  transform: translate3d(-34px, 18px, 0) rotate(-1deg);
}

.reveal-item.from-right {
  transform: translate3d(34px, 18px, 0) rotate(1deg);
}

.reveal-item.from-bottom {
  transform: translate3d(0, 34px, 0);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.delay-1 {
  transition-delay: 0.08s;
}

.delay-2 {
  transition-delay: 0.16s;
}

.delay-3 {
  transition-delay: 0.24s;
}

.delay-4 {
  transition-delay: 0.32s;
}

.delay-5 {
  transition-delay: 0.4s;
}

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

.spHero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(82px, 10vw, 132px) 20px clamp(110px, 12vw, 160px);
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--sp-accent) 36%, white) 0%,
      color-mix(in srgb, var(--sp-blue) 42%, white) 100%
    );
}

.spHero::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 2px dashed rgba(255, 255, 255, 0.72);
  border-radius: 46px;
  pointer-events: none;
}

.spHero::after {
  content: "♡";
  position: absolute;
  right: clamp(24px, 6vw, 96px);
  top: clamp(92px, 12vw, 150px);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--sp-font-display);
  font-size: clamp(60px, 9vw, 120px);
  line-height: 1;
  transform: rotate(14deg);
  pointer-events: none;
}

.spHeroContainer {
  position: relative;
  z-index: 3;
  width: min(1200px, 100%);
  display: grid;
  grid-template-columns: minmax(190px, 0.82fr) minmax(320px, 1.25fr) minmax(190px, 0.82fr);
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
}

.spHeroSide {
  display: flex;
  justify-content: center;
}

.spHeroSideLeft {
  transform: translateY(18px);
}

.spHeroSideRight {
  transform: translateY(52px);
}

.spHeroCard {
  position: relative;
  width: min(460px, 100%);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 54px) clamp(22px, 4vw, 38px);
  border: 4px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--sp-radius-xl);
  background: rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 28px 80px rgba(79, 61, 69, 0.12);
  text-align: center;
}

.spHeroSticker {
  position: absolute;
  left: 50%;
  top: -18px;
  transform: translateX(-50%) rotate(-2deg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--sp-yellow);
  color: color-mix(in srgb, var(--sp-ink) 86%, black);
  box-shadow: 0 10px 24px rgba(120, 73, 92, 0.12);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spHeroTitle {
  margin: 0;
  color: #ffffff;
  font-family: var(--sp-font-display);
  font-size: clamp(52px, 8vw, 86px);
  font-weight: 400;
  line-height: 0.95;
  text-shadow: 2px 3px 10px rgba(72, 54, 62, 0.16);
}

.spHeroSubtitle {
  max-width: 34em;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 700;
  line-height: 1.8;
}

.spHeroNames {
  margin-top: 24px;
  color: var(--sp-accent);
  font-family: var(--sp-font-display);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1;
}

.spDateBadge {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(120, 73, 92, 0.13);
}

.spDateBadge span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 46px;
  border-radius: 18px;
  background: var(--sp-accent-soft);
  color: var(--sp-accent);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
}

.spHeroMeta {
  display: grid;
  gap: 4px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  font-weight: 700;
}

.spHeroMeta strong {
  font-size: 16px;
}

.spHeroBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  min-height: 56px;
  padding: 15px 30px;
  border-radius: 999px;
  background: var(--sp-accent);
  color: #ffffff;
  box-shadow:
    0 9px 0 color-mix(in srgb, var(--sp-accent-hover) 88%, black),
    0 18px 32px rgba(88, 49, 63, 0.14);
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.spHeroBtn:hover {
  background: var(--sp-accent-hover);
  transform: translateY(3px);
  box-shadow:
    0 6px 0 color-mix(in srgb, var(--sp-accent-hover) 88%, black),
    0 14px 26px rgba(88, 49, 63, 0.12);
}

.spHeroWaveBottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  height: 180px;
  pointer-events: none;
}

.spHeroWaveBottom svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* =========================
   POLAROID
========================= */

.spPolaroid {
  --tilt-x: 0deg;
  --tilt-y: 0deg;

  position: relative;
  width: min(260px, 100%);
  padding: 14px 14px 34px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--sp-shadow-card);
  transform:
    perspective(900px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.spPolaroid:hover {
  box-shadow: 0 24px 60px rgba(120, 73, 92, 0.2);
}

.spPolaroidGroom {
  transform:
    perspective(900px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    rotate(-5deg);
  animation: spFloatGroom 6.5s ease-in-out infinite;
}

.spPolaroidBride {
  transform:
    perspective(900px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    rotate(5deg);
  animation: spFloatBride 6.5s ease-in-out infinite;
}

.spPolaroidStory {
  width: min(390px, 100%);
  padding: 16px 16px 42px;
  transform:
    perspective(900px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    rotate(-3deg);
}

.spPolaroidTape {
  position: absolute;
  left: 50%;
  top: -17px;
  z-index: 3;
  width: 92px;
  height: 34px;
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.28)),
    color-mix(in srgb, var(--sp-yellow) 72%, white);
  box-shadow: 0 8px 18px rgba(120, 73, 92, 0.08);
  transform: translateX(-50%) rotate(-3deg);
  opacity: 0.92;
}

.spPolaroidPhoto {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(72, 50, 60, 0.08);
  border-radius: 6px;
  background: var(--sp-accent-soft);
}

.spPolaroidPhotoTall {
  aspect-ratio: 4 / 5;
}

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

.spPolaroid:hover .spPolaroidPhoto img {
  transform: scale(1.045);
}

.spPolaroidCaption {
  margin-top: 14px;
  color: var(--sp-accent);
  font-family: var(--sp-font-display);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1;
  text-align: center;
}

@keyframes spFloatGroom {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -18px;
  }
}

@keyframes spFloatBride {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -22px;
  }
}

/* =========================
   PLACEHOLDER
========================= */

.spPlaceholder {
  display: grid;
  min-height: 100%;
  place-items: center;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.64), transparent 34%),
    linear-gradient(135deg, var(--sp-accent-soft), color-mix(in srgb, var(--sp-blue) 32%, white));
}

.spPlaceholderInner {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 22px;
  text-align: center;
}

.spPlaceholderMark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px dashed rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  color: #ffffff;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.spPlaceholderText {
  color: rgba(70, 53, 61, 0.72);
  font-size: 13px;
  font-weight: 800;
}

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

.spSection {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(74px, 9vw, 118px) 0;
  text-align: center;
}

.spEyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 0;
  height: 36px;
  padding: 0 18px;
  border: 1px solid var(--sp-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--sp-accent);
  box-shadow: 0 10px 26px rgba(120, 73, 92, 0.06);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.spSectionTitle {
  margin: 18px auto 0;
  color: var(--sp-accent);
  font-family: var(--sp-font-display);
  font-size: clamp(44px, 7vw, 74px);
  font-weight: 400;
  line-height: 0.96;
}

.spSectionText {
  max-width: 680px;
  margin: 18px auto 0;
  color: var(--sp-muted);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 600;
}

/* =========================
   TIMER
========================= */

.spTimerGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 16px;
  max-width: 760px;
  margin: 38px auto 0;
}

.spTimerItem {
  position: relative;
  overflow: hidden;
  padding: 26px 14px 22px;
  border: 2px solid var(--sp-line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--sp-shadow-soft);
}

.spTimerItem::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 80%;
  background: radial-gradient(circle, color-mix(in srgb, var(--sp-accent-soft) 78%, transparent), transparent 68%);
  pointer-events: none;
}

.spTimerNum {
  position: relative;
  color: var(--sp-accent);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  line-height: 1;
}

.spTimerLabel {
  position: relative;
  margin-top: 8px;
  color: var(--sp-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.spStoryGrid {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(280px, 1.08fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
  margin-top: 46px;
}

.spStoryPhoto {
  display: flex;
  justify-content: center;
}

.spStoryCard {
  position: relative;
  padding: clamp(28px, 4vw, 46px);
  border: 2px solid var(--sp-line);
  border-radius: var(--sp-radius-lg);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--sp-shadow-soft);
  text-align: left;
}

.spStoryCard::before {
  content: "♡";
  position: absolute;
  right: 24px;
  top: -34px;
  color: var(--sp-yellow);
  font-family: var(--sp-font-display);
  font-size: 72px;
  line-height: 1;
  transform: rotate(12deg);
}

.spStoryCard p {
  margin: 0;
  color: var(--sp-ink);
  font-size: clamp(16px, 1.65vw, 19px);
  font-weight: 600;
  line-height: 1.9;
}

.spStoryCard p + p {
  margin-top: 18px;
}

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

.spProgramSection {
  width: min(1160px, calc(100% - 32px));
}

.spProgramGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.spProgramCard {
  --tilt-x: 0deg;
  --tilt-y: 0deg;

  position: relative;
  min-height: 250px;
  padding: 32px 24px;
  border: 3px dashed color-mix(in srgb, var(--sp-blue) 78%, white);
  border-radius: var(--sp-radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--sp-shadow-card);
  transform:
    perspective(900px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.spProgramCard:nth-child(3n + 1) {
  background:
    radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--sp-yellow) 28%, transparent), transparent 34%),
    rgba(255, 255, 255, 0.86);
}

.spProgramCard:nth-child(3n + 2) {
  background:
    radial-gradient(circle at 12% 20%, color-mix(in srgb, var(--sp-accent-soft) 72%, transparent), transparent 36%),
    rgba(255, 255, 255, 0.86);
}

.spProgramCard:nth-child(3n + 3) {
  background:
    radial-gradient(circle at 82% 78%, color-mix(in srgb, var(--sp-blue) 32%, transparent), transparent 36%),
    rgba(255, 255, 255, 0.86);
}

.spProgramCard:hover {
  box-shadow: 0 24px 58px rgba(120, 73, 92, 0.16);
}

.spProgramIcon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: var(--sp-yellow);
  color: var(--sp-accent);
  font-size: 26px;
  font-weight: 900;
}

.spProgramTime {
  color: var(--sp-accent);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.spProgramName {
  margin: 16px 0 0;
  color: var(--sp-ink);
  font-family: var(--sp-font-main);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.25;
}

.spProgramDesc {
  margin: 12px 0 0;
  color: var(--sp-muted);
  font-size: 14px;
  font-weight: 600;
}

/* =========================
   SHARED BLOCK SHELLS
========================= */

.spBlockShell,
.spGalleryShell {
  position: relative;
  margin-top: 40px;
  padding: clamp(18px, 3vw, 30px);
  border: 2px solid var(--sp-line);
  border-radius: var(--sp-radius-xl);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--sp-shadow-soft);
  text-align: initial;
}

.spRsvpShell {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  background:
    radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--sp-yellow) 28%, transparent), transparent 34%),
    rgba(255, 255, 255, 0.78);
  box-shadow: var(--sp-shadow-pop), var(--sp-shadow-soft);
}

.spBlockShell input,
.spBlockShell select,
.spBlockShell textarea,
.spRsvpShell input,
.spRsvpShell select,
.spRsvpShell textarea {
  border-radius: 20px !important;
  font-family: var(--sp-font-main) !important;
}

.spBlockShell button,
.spBlockShell .btn,
.spRsvpShell button,
.spRsvpShell .btn {
  border-radius: 999px !important;
}

/* =========================
   GALLERY FALLBACK
========================= */

.spFallbackGallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin-top: 42px;
}

.spFallbackGalleryCard {
  --tilt-x: 0deg;
  --tilt-y: 0deg;

  min-height: 280px;
  padding: 12px 12px 34px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--sp-shadow-card);
  transform:
    perspective(900px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    rotate(-2deg);
}

.spFallbackGalleryCard:nth-child(even) {
  transform:
    perspective(900px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    rotate(2deg);
}

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

.spFooter {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
  text-align: center;
}

.spFooterHeart {
  color: var(--sp-accent);
  font-family: var(--sp-font-display);
  font-size: 62px;
  line-height: 1;
}

.spFooter p {
  margin: 10px 0 0;
  color: var(--sp-muted);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================
   DARK OPTION
========================= */

html[data-dark="1"] body.spBody {
  color: var(--sp-ink);
}

html[data-dark="1"] .spHeroTitle {
  color: var(--sp-paper);
}

html[data-dark="1"] .spHeroCard,
html[data-dark="1"] .spBlockShell,
html[data-dark="1"] .spGalleryShell,
html[data-dark="1"] .spStoryCard,
html[data-dark="1"] .spTimerItem,
html[data-dark="1"] .spProgramCard {
  background: color-mix(in srgb, var(--sp-paper) 86%, transparent);
}

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

@media (max-width: 980px) {
  .spHero {
    padding-top: 94px;
  }

  .spHeroContainer {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .spHeroCenter {
    order: -1;
  }

  .spHeroSideLeft,
  .spHeroSideRight {
    transform: none;
  }

  .spHeroSide {
    width: 100%;
  }

  .spHeroSideLeft {
    justify-content: flex-start;
    padding-left: clamp(12px, 8vw, 88px);
  }

  .spHeroSideRight {
    justify-content: flex-end;
    padding-right: clamp(12px, 8vw, 88px);
  }

  .spPolaroid {
    width: min(230px, 74vw);
  }

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

  .spStoryCard {
    text-align: center;
  }
}

@media (max-width: 760px) {
  .spHero::before {
    inset: 14px;
    border-radius: 34px;
  }

  .spHeroCard {
    border-width: 3px;
    border-radius: 40px;
  }

  .spDateBadge {
    gap: 6px;
    padding: 10px;
  }

  .spDateBadge span {
    min-width: 48px;
    min-height: 42px;
    font-size: 18px;
  }

  .spTimerGrid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .spBlockShell,
  .spGalleryShell {
    border-radius: 36px;
  }
}

@media (max-width: 520px) {
  .spHero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .spHeroTitle {
    font-size: 52px;
  }

  .spHeroSubtitle {
    font-size: 14px;
  }

  .spHeroBtn {
    width: 100%;
  }

  .spHeroSideLeft,
  .spHeroSideRight {
    justify-content: center;
    padding: 0;
  }

  .spPolaroidGroom,
  .spPolaroidBride {
    animation: none;
  }

  .spTimerGrid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .spTimerItem {
    padding: 22px 10px 18px;
    border-radius: 26px;
  }

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

  .spSection {
    width: min(100% - 24px, 1120px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   SWEET POLAROID SHARED BLOCKS FIX
   gallery.php + dresscode.php
========================================================= */

/* ---------- Gallery shared block ---------- */

.spGalleryShell {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(14px, 2.4vw, 24px);
}

.spGalleryShell .gallery,
.spGalleryShell .galleryBlock,
.spGalleryShell .gallery-section,
.spGalleryShell .gallery-grid,
.spGalleryShell .galleryGrid,
.spGalleryShell .gallery-list,
.spGalleryShell [class*="galleryGrid"],
.spGalleryShell [class*="GalleryGrid"] {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  min-height: 0 !important;
}

.spGalleryShell a,
.spGalleryShell figure,
.spGalleryShell .gallery-item,
.spGalleryShell .galleryItem,
.spGalleryShell [class*="galleryItem"],
.spGalleryShell [class*="GalleryItem"] {
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 7px 7px 20px !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 12px 26px rgba(120, 73, 92, 0.13) !important;
  transform: rotate(-1.5deg);
}

.spGalleryShell a:nth-child(even),
.spGalleryShell figure:nth-child(even),
.spGalleryShell .gallery-item:nth-child(even),
.spGalleryShell .galleryItem:nth-child(even),
.spGalleryShell [class*="galleryItem"]:nth-child(even),
.spGalleryShell [class*="GalleryItem"]:nth-child(even) {
  transform: rotate(1.5deg);
}

.spGalleryShell img {
  display: block !important;
  width: 100% !important;
  height: clamp(96px, 13vw, 138px) !important;
  min-height: 0 !important;
  max-height: 150px !important;
  object-fit: cover !important;
  border-radius: 5px !important;
}

.spGalleryShell section,
.spGalleryShell div {
  min-height: 0;
}

.spGalleryShell h2,
.spGalleryShell h3,
.spGalleryShell .gallery-title,
.spGalleryShell .galleryTitle,
.spGalleryShell [class*="galleryTitle"],
.spGalleryShell [class*="GalleryTitle"] {
  display: none !important;
}

.spGalleryShell p,
.spGalleryShell .gallery-text,
.spGalleryShell .galleryText,
.spGalleryShell [class*="galleryText"],
.spGalleryShell [class*="GalleryText"] {
  display: none !important;
}

.spGalleryShell:empty {
  display: none !important;
}

/* ---------- Fallback gallery ---------- */

.spFallbackGallery {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.spFallbackGalleryCard {
  min-height: 166px;
  padding: 8px 8px 22px;
}

.spFallbackGalleryCard .spPlaceholder {
  min-height: 132px;
}

/* ---------- Dresscode shared block ---------- */

.spDressSection .spBlockShell {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.spDressSection .spBlockShell,
.spDressSection .spBlockShell * {
  box-sizing: border-box;
}

.spDressSection .dresscodeColors,
.spDressSection .dresscode-colors,
.spDressSection .dcColors,
.spDressSection .dc-colors,
.spDressSection .palette,
.spDressSection .paletteColors,
.spDressSection [class*="dresscode"][class*="colors"],
.spDressSection [class*="Dresscode"][class*="Colors"],
.spDressSection [class*="palette"],
.spDressSection [class*="Palette"] {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin: 22px auto 0 !important;
  max-width: 640px !important;
}

.spDressSection .color-dot,
.spDressSection .dcDot,
.spDressSection .dc-dot,
.spDressSection .dresscodeColor,
.spDressSection .dresscode-color,
.spDressSection .paletteColor,
.spDressSection .palette-color,
.spDressSection [class*="colorDot"],
.spDressSection [class*="ColorDot"],
.spDressSection [class*="dresscodeColor"],
.spDressSection [class*="DresscodeColor"],
.spDressSection [class*="paletteColor"],
.spDressSection [class*="PaletteColor"] {
  display: inline-flex !important;
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  min-height: 58px !important;
  border-radius: 999px !important;
  border: 5px solid #ffffff !important;
  box-shadow:
    0 10px 22px rgba(120, 73, 92, 0.14),
    0 0 0 1px rgba(80, 60, 70, 0.08) !important;
  overflow: hidden !important;
}

.spDressSection .spBlockShell span[style*="background"],
.spDressSection .spBlockShell div[style*="background"] {
  border-radius: 999px;
}

.spDressSection .spBlockShell h2,
.spDressSection .spBlockShell h3 {
  color: var(--sp-accent) !important;
  font-family: var(--sp-font-display) !important;
  font-size: clamp(34px, 5vw, 54px) !important;
  font-weight: 400 !important;
  line-height: 1 !important;
}

.spDressSection .spBlockShell p {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  color: var(--sp-muted) !important;
  font-family: var(--sp-font-main) !important;
  font-weight: 600 !important;
  line-height: 1.75 !important;
}

@media (max-width: 640px) {
  .spGalleryShell .gallery,
  .spGalleryShell .galleryBlock,
  .spGalleryShell .gallery-section,
  .spGalleryShell .gallery-grid,
  .spGalleryShell .galleryGrid,
  .spGalleryShell .gallery-list,
  .spGalleryShell [class*="galleryGrid"],
  .spGalleryShell [class*="GalleryGrid"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .spGalleryShell img {
    height: 112px !important;
  }

  .spDressSection .color-dot,
  .spDressSection .dcDot,
  .spDressSection .dc-dot,
  .spDressSection .dresscodeColor,
  .spDressSection .dresscode-color,
  .spDressSection .paletteColor,
  .spDressSection .palette-color,
  .spDressSection [class*="colorDot"],
  .spDressSection [class*="ColorDot"],
  .spDressSection [class*="dresscodeColor"],
  .spDressSection [class*="DresscodeColor"],
  .spDressSection [class*="paletteColor"],
  .spDressSection [class*="PaletteColor"] {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    border-width: 4px !important;
  }
}

/* Dresscode shared block for Sweet Polaroid */

.spDressSection .iviDress {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

.spDressSection .iviDressWrap {
  max-width: 760px !important;
  margin: 0 auto !important;
  padding: clamp(18px, 3vw, 32px) !important;
  text-align: center !important;
}

.spDressSection .iviDressKicker {
  color: var(--sp-accent) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
}

.spDressSection .iviDressTitle {
  margin: 12px auto 0 !important;
  color: var(--sp-accent) !important;
  font-family: var(--sp-font-display) !important;
  font-size: clamp(36px, 5vw, 56px) !important;
  font-weight: 400 !important;
  line-height: 1 !important;
}

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

.spDressSection .iviDressDot {
  display: inline-flex !important;
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  min-height: 58px !important;
  border-radius: 999px !important;
  background: var(--c, #ffffff) !important;
  border: 5px solid #ffffff !important;
  box-shadow:
    0 10px 22px rgba(120, 73, 92, 0.14),
    0 0 0 1px rgba(80, 60, 70, 0.08) !important;
}

.spDressSection .iviDressText {
  max-width: 620px !important;
  margin: 22px auto 0 !important;
  color: var(--sp-muted) !important;
  font-family: var(--sp-font-main) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.75 !important;
}

@media (max-width: 640px) {
  .spDressSection .iviDressDot {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    border-width: 4px !important;
  }
}

/* =========================================================
   SWEET POLAROID RSVP SHARED BLOCK
   /views/blocks/rsvp.php
========================================================= */

.spRsvpSection .spRsvpShell {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(18px, 3vw, 34px);
  border: 2px solid var(--sp-line);
  border-radius: var(--sp-radius-xl);
  background:
    radial-gradient(circle at 16% 8%, color-mix(in srgb, var(--sp-yellow) 34%, transparent), transparent 34%),
    radial-gradient(circle at 92% 18%, color-mix(in srgb, var(--sp-blue) 24%, transparent), transparent 32%),
    rgba(255, 255, 255, 0.82);
  box-shadow:
    12px 12px 0 color-mix(in srgb, var(--sp-accent) 22%, transparent),
    0 24px 70px rgba(120, 73, 92, 0.12);
  text-align: initial;
}

.spRsvpSection .rsvpSection {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: var(--sp-ink) !important;
  font-family: var(--sp-font-main) !important;
}

.spRsvpSection .rsvpSection > h2,
.spRsvpSection .rsvpSection > .rose-line-svg {
  display: none !important;
}

.spRsvpSection .rsvpGrid {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.spRsvpSection .rsvpFormCard {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.spRsvpSection .rsvpHint {
  margin: 0 0 24px !important;
  padding: 16px 18px !important;
  border: 1px dashed color-mix(in srgb, var(--sp-accent) 32%, white) !important;
  border-radius: 26px !important;
  background: color-mix(in srgb, var(--sp-accent-soft) 54%, white) !important;
  color: var(--sp-muted) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.65 !important;
  text-align: center !important;
}

.spRsvpSection form {
  display: grid !important;
  gap: 18px !important;
}

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

.spRsvpSection .formRow {
  display: grid !important;
  gap: 8px !important;
  margin: 0 !important;
}

.spRsvpSection .label {
  display: block !important;
  color: var(--sp-ink) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em !important;
}

.spRsvpSection .field,
.spRsvpSection input.field,
.spRsvpSection textarea.field,
.spRsvpSection select.field {
  width: 100% !important;
  min-height: 56px !important;
  padding: 15px 17px !important;
  border: 2px solid color-mix(in srgb, var(--sp-line) 78%, white) !important;
  border-radius: 22px !important;
  outline: none !important;
  background: rgba(255, 255, 255, 0.88) !important;
  color: var(--sp-ink) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 10px 22px rgba(120, 73, 92, 0.06) !important;
  font-family: var(--sp-font-main) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease !important;
}

.spRsvpSection textarea.field {
  min-height: 118px !important;
  resize: vertical !important;
}

.spRsvpSection .field::placeholder {
  color: color-mix(in srgb, var(--sp-muted) 68%, white) !important;
  font-weight: 600 !important;
}

.spRsvpSection .field:focus {
  border-color: var(--sp-accent) !important;
  background: #ffffff !important;
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--sp-accent) 14%, transparent),
    0 14px 30px rgba(120, 73, 92, 0.09) !important;
  transform: translateY(-1px) !important;
}

.spRsvpSection .field.is-invalid {
  border-color: rgba(176, 54, 54, 0.42) !important;
  background: rgba(176, 54, 54, 0.04) !important;
}

.spRsvpSection .chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 0 !important;
}

.spRsvpSection .chip {
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 11px 16px !important;
  border: 2px solid color-mix(in srgb, var(--sp-line) 76%, white) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  color: var(--sp-muted) !important;
  box-shadow: 0 10px 22px rgba(120, 73, 92, 0.06) !important;
  font-family: var(--sp-font-main) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease !important;
}

.spRsvpSection .chip:hover {
  transform: translateY(-2px) rotate(-1deg) !important;
  border-color: color-mix(in srgb, var(--sp-accent) 42%, white) !important;
  color: var(--sp-accent) !important;
  box-shadow: 0 14px 28px rgba(120, 73, 92, 0.1) !important;
}

.spRsvpSection .chip[data-active="true"] {
  border-color: var(--sp-accent) !important;
  background: var(--sp-accent) !important;
  color: #ffffff !important;
  box-shadow:
    0 7px 0 color-mix(in srgb, var(--sp-accent-hover) 86%, black),
    0 14px 28px rgba(120, 73, 92, 0.14) !important;
}

.spRsvpSection .chip.is-invalid {
  border-color: rgba(176, 54, 54, 0.42) !important;
}

.spRsvpSection .rsvpTotal {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  min-height: 38px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--sp-yellow) 34%, white) !important;
  color: var(--sp-ink) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 22px rgba(120, 73, 92, 0.08) !important;
}

.spRsvpSection .rsvpTotal b {
  color: var(--sp-accent) !important;
}

.spRsvpSection .consent {
  display: grid !important;
  grid-template-columns: 22px 1fr !important;
  gap: 12px !important;
  align-items: flex-start !important;
  margin: 2px 0 0 !important;
  padding: 16px 18px !important;
  border: 1px solid color-mix(in srgb, var(--sp-line) 80%, white) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.62) !important;
  color: var(--sp-muted) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.55 !important;
  cursor: pointer !important;
}

.spRsvpSection .consent input[type="checkbox"] {
  appearance: none !important;
  width: 22px !important;
  height: 22px !important;
  margin: 1px 0 0 !important;
  border: 2px solid color-mix(in srgb, var(--sp-accent) 48%, white) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 16px rgba(120, 73, 92, 0.08) !important;
  cursor: pointer !important;
  position: relative !important;
}

.spRsvpSection .consent input[type="checkbox"]:checked {
  border-color: var(--sp-accent) !important;
  background: var(--sp-accent) !important;
}

.spRsvpSection .consent input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.spRsvpSection .consent small {
  display: inline-block !important;
  margin-top: 5px !important;
  color: color-mix(in srgb, var(--sp-muted) 86%, white) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
}

.spRsvpSection .consent a {
  color: var(--sp-accent) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

.spRsvpSection .btn,
.spRsvpSection .btn-full,
.spRsvpSection button[type="submit"] {
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 60px !important;
  margin-top: 4px !important;
  padding: 16px 28px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--sp-accent) !important;
  color: #ffffff !important;
  box-shadow:
    0 9px 0 color-mix(in srgb, var(--sp-accent-hover) 88%, black),
    0 18px 32px rgba(88, 49, 63, 0.14) !important;
  font-family: var(--sp-font-main) !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease !important;
}

.spRsvpSection .btn:hover,
.spRsvpSection .btn-full:hover,
.spRsvpSection button[type="submit"]:hover {
  background: var(--sp-accent-hover) !important;
  transform: translateY(3px) !important;
  box-shadow:
    0 6px 0 color-mix(in srgb, var(--sp-accent-hover) 88%, black),
    0 14px 26px rgba(88, 49, 63, 0.12) !important;
}

.spRsvpSection .btn:disabled,
.spRsvpSection button[type="submit"]:disabled {
  opacity: 0.72 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.spRsvpSection .statusBox {
  border-radius: 24px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: rgba(255, 255, 255, 0.76) !important;
  box-shadow: 0 12px 24px rgba(120, 73, 92, 0.08) !important;
}

.spRsvpSection .statusBox.ok {
  border-color: rgba(46, 125, 80, 0.18) !important;
  background: rgba(46, 125, 80, 0.08) !important;
}

.spRsvpSection .statusBox.bad {
  border-color: rgba(176, 54, 54, 0.16) !important;
  background: rgba(176, 54, 54, 0.08) !important;
}

.spRsvpSection .previewLockNote {
  border-radius: 26px !important;
  border: 1px dashed color-mix(in srgb, var(--sp-accent) 32%, white) !important;
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--sp-yellow) 30%, transparent), transparent 34%),
    rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 14px 28px rgba(120, 73, 92, 0.08) !important;
}

.spRsvpSection .previewLockNote::before {
  background: linear-gradient(180deg, var(--sp-accent), color-mix(in srgb, var(--sp-accent) 42%, transparent)) !important;
}

.spRsvpSection .previewLockBadge {
  background: color-mix(in srgb, var(--sp-accent-soft) 72%, white) !important;
  border-color: color-mix(in srgb, var(--sp-accent) 18%, white) !important;
  color: var(--sp-accent) !important;
}

.spRsvpSection .previewLockDot {
  background: var(--sp-accent) !important;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--sp-accent) 14%, transparent) !important;
}

.spRsvpSection .previewLockTitle {
  color: var(--sp-ink) !important;
  font-family: var(--sp-font-main) !important;
  font-weight: 900 !important;
}

.spRsvpSection .previewLockText {
  color: var(--sp-muted) !important;
  font-weight: 600 !important;
}

html[data-dark="1"] .spRsvpSection .spRsvpShell {
  background:
    radial-gradient(circle at 16% 8%, color-mix(in srgb, var(--sp-yellow) 18%, transparent), transparent 34%),
    color-mix(in srgb, var(--sp-paper) 88%, transparent) !important;
}

html[data-dark="1"] .spRsvpSection .field,
html[data-dark="1"] .spRsvpSection .chip,
html[data-dark="1"] .spRsvpSection .consent,
html[data-dark="1"] .spRsvpSection .rsvpHint {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--sp-ink) !important;
}

html[data-dark="1"] .spRsvpSection .field::placeholder {
  color: rgba(255, 255, 255, 0.44) !important;
}

html[data-dark="1"] .spRsvpSection .consent small {
  color: rgba(255, 255, 255, 0.62) !important;
}

@media (max-width: 760px) {
  .spRsvpSection .spRsvpShell {
    padding: 18px 14px;
    border-radius: 36px;
    box-shadow:
      7px 7px 0 color-mix(in srgb, var(--sp-accent) 18%, transparent),
      0 18px 44px rgba(120, 73, 92, 0.1);
  }

  .spRsvpSection .row2 {
    grid-template-columns: 1fr !important;
  }

  .spRsvpSection .chips {
    gap: 8px !important;
  }

  .spRsvpSection .chip {
    min-height: 42px !important;
    padding: 10px 13px !important;
    font-size: 12px !important;
  }

  .spRsvpSection .field,
  .spRsvpSection input.field,
  .spRsvpSection textarea.field {
    min-height: 52px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
  }

  .spRsvpSection .consent {
    grid-template-columns: 20px 1fr !important;
    padding: 14px !important;
    border-radius: 22px !important;
  }

  .spRsvpSection .consent input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
  }
}

/* =========================================================
   SWEET POLAROID LOCATION SHARED BLOCK
   /views/blocks/location.php
========================================================= */

.spBlockShell .iviLoc {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: var(--sp-ink) !important;
  font-family: var(--sp-font-main) !important;
}

.spBlockShell .iviLocHead {
  display: none !important;
}

.spBlockShell .iviLocGrid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: clamp(18px, 3vw, 28px) !important;
  width: 100% !important;
  max-width: 980px !important;
  margin: 0 auto !important;
}

.spBlockShell .iviLocCard {
  position: relative !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-rows: auto 1fr !important;
  min-height: 100% !important;
  border: 2px solid var(--sp-line) !important;
  border-radius: 34px !important;
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--sp-yellow) 30%, transparent), transparent 34%),
    radial-gradient(circle at 94% 12%, color-mix(in srgb, var(--sp-blue) 22%, transparent), transparent 34%),
    rgba(255, 255, 255, 0.86) !important;
  box-shadow:
    10px 10px 0 color-mix(in srgb, var(--sp-accent) 16%, transparent),
    0 22px 60px rgba(120, 73, 92, 0.12) !important;
  isolation: isolate !important;
}

.spBlockShell .iviLocCard::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 4;
  width: 82px;
  height: 24px;
  border-radius: 999px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.72),
      rgba(255, 255, 255, 0.36)
    );
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(120, 73, 92, 0.12);
  transform: translateX(-50%) rotate(-2deg);
  pointer-events: none;
}

.spBlockShell .iviLocCard:nth-child(even)::before {
  transform: translateX(-50%) rotate(2deg);
}

.spBlockShell .iviLocPhoto {
  position: relative !important;
  overflow: hidden !important;
  margin: 14px 14px 0 !important;
  border-radius: 26px !important;
  background: var(--sp-accent-soft) !important;
  aspect-ratio: 16 / 10 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.64) !important;
}

.spBlockShell .iviLocPhoto img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: scale(1.02);
}

.spBlockShell .iviLocBody {
  display: flex !important;
  flex-direction: column !important;
  gap: 13px !important;
  padding: clamp(20px, 3vw, 28px) !important;
  text-align: left !important;
}

.spBlockShell .iviLocBadge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  min-height: 34px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  border: 1px dashed color-mix(in srgb, var(--sp-accent) 38%, white) !important;
  background: color-mix(in srgb, var(--sp-accent-soft) 72%, white) !important;
  color: var(--sp-accent) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}

.spBlockShell .iviLocName {
  color: var(--sp-ink) !important;
  font-family: var(--sp-font-display) !important;
  font-size: clamp(30px, 4.4vw, 46px) !important;
  font-weight: 400 !important;
  line-height: 1.02 !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

.spBlockShell .iviLocAddr {
  color: var(--sp-ink) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.55 !important;
}

.spBlockShell .iviLocNote {
  padding: 14px 16px !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.62) !important;
  border: 1px solid color-mix(in srgb, var(--sp-line) 78%, white) !important;
  color: var(--sp-muted) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.65 !important;
}

.spBlockShell .iviLocActions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: auto !important;
  padding-top: 4px !important;
}

.spBlockShell .iviBtn,
.spBlockShell .iviLocActions a {
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  padding: 12px 18px !important;
  border-radius: 999px !important;
  font-family: var(--sp-font-main) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease !important;
}

.spBlockShell .iviBtnPrimary {
  border: 0 !important;
  background: var(--sp-accent) !important;
  color: #ffffff !important;
  box-shadow:
    0 7px 0 color-mix(in srgb, var(--sp-accent-hover) 88%, black),
    0 14px 26px rgba(88, 49, 63, 0.12) !important;
}

.spBlockShell .iviBtnPrimary:hover {
  background: var(--sp-accent-hover) !important;
  transform: translateY(3px) !important;
  box-shadow:
    0 4px 0 color-mix(in srgb, var(--sp-accent-hover) 88%, black),
    0 10px 20px rgba(88, 49, 63, 0.1) !important;
}

.spBlockShell .iviBtnGhost {
  border: 2px solid color-mix(in srgb, var(--sp-line) 82%, white) !important;
  background: rgba(255, 255, 255, 0.76) !important;
  color: var(--sp-accent) !important;
  box-shadow: 0 10px 22px rgba(120, 73, 92, 0.06) !important;
}

.spBlockShell .iviBtnGhost:hover {
  border-color: color-mix(in srgb, var(--sp-accent) 42%, white) !important;
  background: #ffffff !important;
  transform: translateY(-2px) rotate(-1deg) !important;
}

.spBlockShell .iviLocCard:not(:has(.iviLocPhoto)) .iviLocBody {
  min-height: 260px !important;
  justify-content: center !important;
}

html[data-dark="1"] .spBlockShell .iviLocCard {
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--sp-yellow) 16%, transparent), transparent 34%),
    color-mix(in srgb, var(--sp-paper) 88%, transparent) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-dark="1"] .spBlockShell .iviLocNote,
html[data-dark="1"] .spBlockShell .iviBtnGhost {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-dark="1"] .spBlockShell .iviLocAddr,
html[data-dark="1"] .spBlockShell .iviLocName {
  color: var(--sp-ink) !important;
}

@media (max-width: 760px) {
  .spBlockShell .iviLocGrid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .spBlockShell .iviLocCard {
    border-radius: 30px !important;
    box-shadow:
      7px 7px 0 color-mix(in srgb, var(--sp-accent) 14%, transparent),
      0 18px 42px rgba(120, 73, 92, 0.1) !important;
  }

  .spBlockShell .iviLocPhoto {
    margin: 12px 12px 0 !important;
    border-radius: 22px !important;
  }

  .spBlockShell .iviLocBody {
    padding: 20px 16px 18px !important;
  }

  .spBlockShell .iviLocName {
    font-size: clamp(28px, 9vw, 38px) !important;
    line-height: 1.04 !important;
  }

  .spBlockShell .iviLocActions {
    flex-direction: column !important;
  }

  .spBlockShell .iviBtn,
  .spBlockShell .iviLocActions a {
    width: 100% !important;
  }
}

/* =========================================================
   SWEET POLAROID FINAL HERO CONTRAST FIX
========================================================= */

html[data-dark="0"] .spHeroTitle {
  color: var(--sp-accent) !important;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.92),
    0 10px 24px color-mix(in srgb, var(--sp-accent) 24%, transparent) !important;
}

html[data-dark="0"] .spHeroSubtitle {
  color: var(--sp-muted) !important;
  text-shadow: none !important;
}

html[data-dark="0"] .spHeroNames {
  color: var(--sp-accent) !important;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.86),
    0 10px 22px color-mix(in srgb, var(--sp-accent) 18%, transparent) !important;
}

html[data-dark="0"] .spHeroMeta {
  color: var(--sp-muted) !important;
  text-shadow: none !important;
}

html[data-dark="0"] .spHeroMeta strong {
  color: var(--sp-ink) !important;
}

html[data-dark="0"] .spHeroMeta span {
  color: var(--sp-muted) !important;
}

html[data-dark="0"] .spHeroCard {
  background:
    radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--sp-yellow) 22%, transparent), transparent 32%),
    radial-gradient(circle at 88% 14%, color-mix(in srgb, var(--sp-blue) 18%, transparent), transparent 30%),
    color-mix(in srgb, var(--sp-paper) 78%, transparent) !important;
  border-color: rgba(255, 255, 255, 0.92) !important;
}

html[data-dark="0"] .spDateBadge {
  background: rgba(255, 255, 255, 0.92) !important;
}

html[data-dark="0"] .spDateBadge span {
  background: var(--sp-accent-soft) !important;
  color: var(--sp-accent) !important;
}

html[data-dark="0"] .spHeroSticker {
  color: var(--sp-ink) !important;
}

html[data-dark="1"] .spHeroTitle {
  color: var(--sp-ink) !important;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.32) !important;
}

html[data-dark="1"] .spHeroSubtitle {
  color: var(--sp-muted) !important;
  text-shadow: none !important;
}

html[data-dark="1"] .spHeroNames {
  color: var(--sp-accent) !important;
}

html[data-dark="1"] .spHeroMeta {
  color: var(--sp-muted) !important;
  text-shadow: none !important;
}

html[data-dark="1"] .spHeroMeta strong {
  color: var(--sp-accent) !important;
}

html[data-dark="1"] .spHeroMeta span {
  color: var(--sp-muted) !important;
}

/* =========================================================
   SWEET POLAROID BUTTON TEXT CONTRAST
========================================================= */

html[data-dark="0"] .spHeroBtn,
html[data-dark="0"] .spBlockShell .iviBtnPrimary,
html[data-dark="0"] .spRsvpSection .btn,
html[data-dark="0"] .spRsvpSection .btn-full,
html[data-dark="0"] .spRsvpSection button[type="submit"] {
  color: #ffffff !important;
}

html[data-theme="mint_album"] .spHeroBtn,
html[data-theme="pistachio_cloud"] .spHeroBtn {
  color: #244236 !important;
  text-shadow: none !important;
  box-shadow:
    0 9px 0 color-mix(in srgb, var(--sp-accent-hover) 74%, #315c42),
    0 18px 32px rgba(43, 83, 58, 0.18) !important;
}

/* =========================================================
   SWEET POLAROID — EYEBROW DARK FIX
   маленькие верхние плашки: Ответ / Дресс-код / Галерея
========================================================= */

html[data-dark="1"] .spEyebrow {
  display: flex !important;
  width: fit-content !important;
  margin-left: auto !important;
  margin-right: auto !important;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--sp-paper) 86%, #ffffff 6%),
      color-mix(in srgb, var(--sp-paper) 74%, #000000 10%)
    ) !important;
  border-color: color-mix(in srgb, var(--sp-accent) 34%, rgba(255, 255, 255, 0.22)) !important;
  color: var(--sp-accent) !important;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* На всякий случай центрируем все заголовочные блоки секций */
.spSection {
  text-align: center !important;
}

.spSection > .spEyebrow {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* =========================================================
   SWEET POLAROID — EYEBROW ALIGN FIX
========================================================= */

.spSection > .spEyebrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  height: 36px !important;
  min-height: 0 !important;
  padding: 0 18px !important;
  line-height: 1 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.spEyebrow {
  transform: translateY(0);
}

html[data-dark="1"] .spEyebrow {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--sp-paper) 86%, #ffffff 6%),
      color-mix(in srgb, var(--sp-paper) 74%, #000000 10%)
    ) !important;
  border-color: color-mix(in srgb, var(--sp-accent) 34%, rgba(255, 255, 255, 0.22)) !important;
  color: var(--sp-accent) !important;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* =========================================================
   SWEET POLAROID — HERO STICKER DARK FIX
   плашка "save the date / сохрани эту дату"
========================================================= */

html[data-dark="1"] .spHeroSticker {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--sp-paper) 86%, #ffffff 8%),
      color-mix(in srgb, var(--sp-paper) 72%, #000000 12%)
    ) !important;
  border: 1px solid color-mix(in srgb, var(--sp-accent) 42%, rgba(255, 255, 255, 0.18)) !important;
  color: var(--sp-accent) !important;
  text-shadow: none !important;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

/* На светлых темах тоже чуть улучшаем читаемость */
html:not([data-dark="1"]) .spHeroSticker {
  color: color-mix(in srgb, var(--sp-ink) 88%, #000000) !important;
  text-shadow: none !important;
}

/* =========================================================
   SWEET POLAROID — RSVP TOTAL DARK FIX
   "Итого гостей"
========================================================= */

html[data-dark="1"] .spRsvpSection .rsvpTotal {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--sp-paper) 88%, #ffffff 7%),
      color-mix(in srgb, var(--sp-paper) 76%, #000000 12%)
    ) !important;
  border: 1px solid color-mix(in srgb, var(--sp-accent) 38%, rgba(255, 255, 255, 0.18)) !important;
  color: var(--sp-ink) !important;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

html[data-dark="1"] .spRsvpSection .rsvpTotal b,
html[data-dark="1"] .spRsvpSection #rsvpTotalNum {
  color: var(--sp-accent) !important;
}

/* На светлых темах тоже делаем чуть чище */
html:not([data-dark="1"]) .spRsvpSection .rsvpTotal {
  background: color-mix(in srgb, var(--sp-yellow) 38%, #ffffff) !important;
  border: 1px solid color-mix(in srgb, var(--sp-line) 78%, #ffffff) !important;
  color: var(--sp-ink) !important;
}

html:not([data-dark="1"]) .spRsvpSection .rsvpTotal b,
html:not([data-dark="1"]) .spRsvpSection #rsvpTotalNum {
  color: var(--sp-accent) !important;
  margin-left: 5px;
}

/* =========================================================
   SWEET POLAROID V7 — LOCATION DARK CONTRAST FIX
========================================================= */

/* Общая читаемость карточек в тёмных темах */
html[data-dark="1"] .spBlockShell .iviLocCard {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--sp-paper) 94%, #ffffff 3%),
      color-mix(in srgb, var(--sp-paper) 86%, #000000 5%)
    ) !important;
  border-color: color-mix(in srgb, var(--sp-accent) 36%, #ffffff 16%) !important;
}

/* Лейблы "Церемония / Банкет" */
html[data-dark="1"] .spBlockShell .iviLocBadge {
  background: color-mix(in srgb, var(--sp-accent) 22%, #ffffff 10%) !important;
  border-color: color-mix(in srgb, var(--sp-accent) 62%, #ffffff 24%) !important;
  color: #f5f8f2 !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.28) !important;
}

/* Заголовок, адрес и подписи */
html[data-dark="1"] .spBlockShell .iviLocName {
  color: #f6f8f3 !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.24) !important;
}

html[data-dark="1"] .spBlockShell .iviLocAddr {
  color: #eef3eb !important;
}

html[data-dark="1"] .spBlockShell .iviLocNote {
  color: #dce5da !important;
  background: rgba(255,255,255,.075) !important;
  border-color: rgba(255,255,255,.16) !important;
}

/* Основная кнопка */
html[data-dark="1"] .spBlockShell .iviBtnPrimary {
  background: color-mix(in srgb, var(--sp-accent) 88%, #ffffff 12%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.22) !important;
}

/* Вторая кнопка: теперь точно читается */
html[data-dark="1"] .spBlockShell .iviBtnGhost {
  background: rgba(255,255,255,.10) !important;
  border: 2px solid rgba(255,255,255,.28) !important;
  color: #f3f7f1 !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.22) !important;
}

html[data-dark="1"] .spBlockShell .iviBtnGhost:hover {
  background: rgba(255,255,255,.17) !important;
  border-color: rgba(255,255,255,.42) !important;
  color: #ffffff !important;
}

/* Декоративный скотч сверху */
html[data-dark="1"] .spBlockShell .iviLocCard::before {
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.88),
      rgba(231,235,229,.64)
    ) !important;
  border-color: rgba(255,255,255,.82) !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.18) !important;
}

/* Светлые темы тоже получают более уверенный ghost-контраст */
html[data-dark="0"] .spBlockShell .iviBtnGhost {
  color: color-mix(in srgb, var(--sp-accent) 78%, #231f20) !important;
  border-color: color-mix(in srgb, var(--sp-accent) 36%, white) !important;
  background: rgba(255,255,255,.90) !important;
}

html[data-dark="0"] .spBlockShell .iviLocBadge {
  color: color-mix(in srgb, var(--sp-accent) 86%, #231f20) !important;
}


/* =========================================================
   SWEET POLAROID V8 — SLIGHTLY LARGER GALLERY
========================================================= */

.spGalleryShell{
  max-width:1040px!important;
  padding:clamp(16px,2.6vw,28px)!important;
}

.spGalleryShell .gallery,
.spGalleryShell .galleryBlock,
.spGalleryShell .gallery-section,
.spGalleryShell .gallery-grid,
.spGalleryShell .galleryGrid,
.spGalleryShell .gallery-list,
.spGalleryShell [class*="galleryGrid"],
.spGalleryShell [class*="GalleryGrid"]{
  grid-template-columns:repeat(auto-fit,minmax(132px,1fr))!important;
  gap:14px!important;
  max-width:860px!important;
}

.spGalleryShell a,
.spGalleryShell figure,
.spGalleryShell .gallery-item,
.spGalleryShell .galleryItem,
.spGalleryShell [class*="galleryItem"],
.spGalleryShell [class*="GalleryItem"]{
  padding:8px 8px 23px!important;
}

.spGalleryShell img{
  height:clamp(108px,14vw,154px)!important;
  max-height:166px!important;
}

@media(max-width:640px){
  .spGalleryShell{
    padding:14px!important;
  }

  .spGalleryShell .gallery,
  .spGalleryShell .galleryBlock,
  .spGalleryShell .gallery-section,
  .spGalleryShell .gallery-grid,
  .spGalleryShell .galleryGrid,
  .spGalleryShell .gallery-list,
  .spGalleryShell [class*="galleryGrid"],
  .spGalleryShell [class*="GalleryGrid"]{
    gap:10px!important;
  }

  .spGalleryShell img{
    height:124px!important;
  }
}
