:root {
  --bg: #fedee1;
  --ink: #70010f;
  --ink-soft: rgba(112, 1, 15, 0.72);
  --paper: #fff6f2;
  --line: rgba(112, 1, 15, 0.28);
  --maxw: 430px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  /* Full-page shell — dvh tracks Chrome/Safari toolbar chrome.
     JS locks a px value while the soft keyboard is open (vv shrinks then). */
  --page-h: 100vh;
  --page-h: 100dvh;
}
* {
  box-sizing: border-box;
}
* {
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  overscroll-behavior-y: none;
  /* Pin so iOS cannot document-scroll when the keyboard opens. */
  position: fixed;
  inset: 0;
  width: 100%;
  overflow: hidden;
  /* Fill the visible browser UI box (Chrome toolbars included via dvh). */
  height: 100%;
  height: 100dvh;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #e9dcd6;
  color: var(--ink);
  font-family: "Bellota", sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
body.is-paging .page {
  height: var(--page-h);
  max-height: var(--page-h);
  overflow: hidden;
  overscroll-behavior: none;
}
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  background: var(--bg);
  overflow: hidden;
  height: 100%;
}
h1,
h2,
h3 {
  font-family: "Bellota", sans-serif;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}
.script {
  font-family: "Meow Script", cursive;
  font-weight: 400;
}
a {
  color: inherit;
}
button {
  font-family: inherit;
}
p {
  margin: 0;
}
svg {
  display: block;
}
img {
  max-width: 100%;
  display: block;
}

/* ---------- falling hearts ---------- */
#petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
#petals span {
  position: absolute;
  top: -6%;
  color: var(--ink);
  opacity: 0.32;
  animation: drift linear infinite;
}
@keyframes drift {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  100% {
    transform: translateY(9000px) translateX(var(--dx, 20px)) rotate(200deg);
  }
}

/* ---------- open CTA + below-fold reveal ---------- */
.open-cta {
  margin-top: 26px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 12px 30px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  font-family: "Bellota", sans-serif;
  touch-action: manipulation;
  transition: transform 0.15s ease;
  animation: fadeUp 0.9s ease 0.6s both;
}
.open-cta:active {
  transform: scale(0.95);
}
#belowFold {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  transition: max-height 0.9s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.7s ease,
    transform 0.7s ease;
}
#belowFold.shown {
  max-height: none;
  opacity: 1;
  transform: translateY(0);
  overflow: visible;
}
#main {
  position: relative;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
body.is-paging #main {
  transform: translate3d(0, calc(var(--page-i, 0) * -1 * var(--page-h)), 0);
}

/* ---------- floating buttons ---------- */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--ink);
  z-index: 60;
  width: 0%;
  opacity: 0.65;
}
#musicBtn {
  position: fixed;
  top: calc(16px + var(--safe-t));
  right: 16px;
  z-index: 40;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}
#musicBtn.ready {
  opacity: 1;
}
#musicBtn.playing {
  animation: spin 6s linear infinite;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
#navBtn {
  position: fixed;
  bottom: calc(16px + var(--safe-b));
  right: 16px;
  z-index: 41;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: var(--bg);
  font-size: 19px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
#navBtn.open {
  transform: rotate(90deg);
}
#navSheet {
  position: fixed;
  bottom: calc(74px + var(--safe-b));
  right: 16px;
  z-index: 41;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  padding: 10px;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  min-width: 160px;
}
#navSheet.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#navSheet a {
  display: block;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 10px;
}
#navSheet a:active {
  background: var(--bg);
}

section {
  position: relative;
  z-index: 2;
  height: var(--page-h);
  min-height: var(--page-h);
  padding: calc(28px + var(--safe-t)) clamp(20px, 7vw, 30px)
    calc(28px + var(--safe-b));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* "safe" falls back to start when content overflows — otherwise center +
     overflow-y clips the top and scrollTop never reliably hits the bottom */
  justify-content: center;
  justify-content: safe center;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}
.eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

/* ---------- hero ---------- */
#hero {
  padding-top: calc(24px + var(--safe-t));
  padding-bottom: calc(24px + var(--safe-b));
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-photo-frame {
  width: min(300px, 80vw);
  margin: 0 auto;
  position: relative;
  padding: 16px;
  animation: fadeUp 0.9s ease both;
}
@media (max-height: 700px) {
  .hero-photo-frame {
    width: min(220px, 58vw);
    padding: 12px;
  }
  .hero-names-flat {
    margin-top: 12px;
    font-size: clamp(22px, 7vw, 28px);
  }
  .hero-quote {
    margin-top: 14px;
  }
  .open-cta {
    margin-top: 16px;
  }
}
.hero-photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.hero-photo-frame .frame-wavy {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-names-flat {
  text-align: center;
  font-size: clamp(26px, 8vw, 34px);
  color: var(--ink);
  margin-top: 18px;
  line-height: 1.25;
  animation: fadeUp 0.9s ease 0.15s both;
}
.hero-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 14px;
  padding: 0 6px;
  text-align: left;
  animation: fadeUp 0.9s ease 0.3s both;
  width: 100%;
  max-width: 300px;
}
.hero-info-row .right {
  text-align: right;
}
.hero-info-row .big {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
}
.squiggle {
  color: var(--ink);
  margin-top: 4px;
}
.hero-info-row .right .squiggle {
  margin-left: auto;
}
.hero-quote {
  font-size: 13.5px;
  color: var(--ink);
  margin-top: 22px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  animation: fadeUp 0.9s ease 0.45s both;
  text-wrap: balance;
}

/* ---------- countdown ---------- */

.cd-row {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 4vw, 14px);
}
.cd-box {
  background: var(--paper);
  border-radius: 12px;
  min-width: 56px;
  padding: 9px 4px;
}
.countdown-card {
  position: relative;
  border: 1.5px solid var(--ink);
  border-radius: 22px;
  padding: 30px 10px 18px;
  margin-top: 8px;
  width: 100%;
  max-width: 340px;
}
.countdown-card .cd-box {
  background: transparent;
  padding: 4px;
}
.cd-num {
  font-weight: 700;
  font-size: clamp(18px, 5vw, 22px);
  color: var(--ink);
}
.cd-label {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* ---------- lời mời ---------- */

.invite-photo {
  width: min(280px, 72vw);
  margin: 14px auto 8px;
}
.invite-photo img {
  width: 100%;
  height: auto;
}

.ceremony-box {
  position: relative;
  margin-top: 30px;
  border: 1.5px solid var(--ink);
  border-radius: 22px;
  padding: 26px 18px 20px;
  width: 100%;
  max-width: 340px;
}
.ceremony-bow {
  width: 68px;
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
}
.announce-text {
  font-size: 13px;
  color: var(--ink);
  opacity: 0.9;
  text-wrap: balance;
}
.couple-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 16px 0 4px;
}
.cname {
  font-family: "Meow Script", cursive;
  font-size: 25px;
  color: var(--ink);
  line-height: 1.2;
}
.crole {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.cheart {
  width: 32px;
  margin: 8px 0;
}
.ceremony-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink);
  opacity: 0.9;
  text-wrap: balance;
}
.ceremony-time {
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  margin: 6px 0 2px;
}
.lunar {
  font-size: 11px;
  color: var(--ink-soft);
}

/* ---------- timeline ---------- */

.tl-title {
  font-family: "Meow Script", cursive;
  font-size: 28px;
  color: var(--ink);
  margin-bottom: 26px;
  opacity: 0;
}
.timeline {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
  width: 100%;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
  transform: translateX(-50%);
  opacity: 0;
  transform-origin: top center;
}
.tl-row {
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}
.tl-row:last-child {
  margin-bottom: 0;
}
.tl-icon {
  grid-column: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  z-index: 1;
}
.tl-text {
  font-size: 12.5px;
  line-height: 1.4;
}
.tl-text b {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.tl-row.side-right .tl-text {
  grid-column: 3;
  text-align: left;
  padding-left: 10px;
}
.tl-row.side-left .tl-text {
  grid-column: 1;
  text-align: right;
  padding-right: 10px;
}
@keyframes tlLineGrow {
  0% {
    opacity: 1;
    transform: translateX(-50%) scaleY(0);
  }
  20% {
    transform: translateX(-50%) scaleY(0.17);
  }
  41% {
    transform: translateX(-50%) scaleY(0.5);
  }
  62% {
    transform: translateX(-50%) scaleY(0.83);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scaleY(1);
  }
}
#timeline.is-visible .tl-title {
  animation: fadeUp 0.85s ease both;
}
#timeline.is-visible .timeline::before {
  animation: tlLineGrow 2.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ---------- map ---------- */

.map-frame {
  width: 100%;
  max-width: 340px;
  border-radius: 20px;
  border: 1.5px solid var(--ink);
  position: relative;
  margin-top: 16px;
  background: var(--paper);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.map-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-open-btn {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  padding: 11px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  touch-action: manipulation;
  transition: transform 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  z-index: 1;
}
.map-open-btn:active {
  transform: translateX(-50%) scale(0.96);
}
.at-label {
  font-family: "Bellota", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-soft);
  margin-right: 2px;
}
.venue-name {
  font-family: "Meow Script", cursive;
  font-size: 24px;
  color: var(--ink);
  margin-top: 18px;
}
.venue-addr {
  font-size: 12.5px;
  margin-top: 4px;
  color: var(--ink);
  opacity: 0.85;
  text-wrap: balance;
}
.time-row {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 6vw, 26px);
  margin: 14px 0 4px;
}
.time-row .cd-box {
  flex: 0 0 100px;
  min-width: 100px;
  padding: 9px 10px;
}
.time-row .cd-label {
  white-space: nowrap;
}
.venue-note {
  font-size: 10.5px;
  color: var(--ink-soft);
  margin-top: 12px;
}

/* ---------- rsvp ---------- */
#rsvp {
  justify-content: flex-start;
  padding-top: calc(36px + var(--safe-t));
  padding-bottom: calc(72px + var(--safe-b));
}
/* Extra scroll room so focused fields stay reachable above the soft keyboard
   without shrinking --page-h / collapsing other sections. */
body.keyboard-open #rsvp {
  padding-bottom: max(40vh, calc(72px + var(--safe-b)));
}
.rsvp-card {
  /* background: var(--paper); */
  border-radius: 20px;
  /* box-shadow: 0 10px 26px rgba(112, 1, 15, 0.12); */
  padding: 32px 20px 24px;
  text-align: left;
  max-width: 320px;
  width: 100%;
  /* Center when short; collapse to 0 when form overflows so full card scrolls */
  margin-top: auto;
  margin-bottom: auto;
  position: relative;
  flex-shrink: 0;
}
.rsvp-card h3 {
  font-size: 23px;
  text-align: center;
  margin-bottom: 16px;
  font-family: "Meow Script", cursive;
  font-weight: 400;
}
.field {
  margin-bottom: 14px;
}
.field.hidden {
  display: none;
}
.field-error {
  display: none;
  color: #a3271e;
  font-size: 11px;
  margin-top: 6px;
}
.field-error.show {
  display: block;
}
#extraYes {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease;
}
#extraYes.show {
  max-height: 900px;
  opacity: 1;
}
#pickupField.hidden {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}
#pickupField {
  max-height: 120px;
  overflow: visible;
  opacity: 1;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}
label {
  display: block;
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 6px;
  font-weight: 700;
  line-height: 1.4;
}
input[type="text"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 7px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background-color: var(--bg);
  background-image: none;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.4;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2370010f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
input[type="text"]:-webkit-autofill,
input[type="tel"]:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset;
  -webkit-text-fill-color: var(--ink);
  transition: background-color 99999s ease-out;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--ink);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
}
textarea {
  resize: vertical;
  min-height: 50px;
  height: auto;
}
.radio-group {
  display: flex;
  gap: 8px;
}
.radio-opt {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 6px 6px;
  text-align: center;
  font-size: 12.5px;
  cursor: pointer;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
}
.radio-opt:active {
  transform: scale(0.95);
}
.radio-opt input {
  display: none;
}
.radio-opt.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.submit-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.05em;
  cursor: pointer;
  margin-top: 4px;
  font-weight: 700;
  touch-action: manipulation;
  transition: transform 0.15s ease, opacity 0.2s ease;
}
.submit-btn:active {
  transform: scale(0.97);
}
.submit-btn:disabled {
  opacity: 0.6;
}
.rsvp-note {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 12px;
  text-align: center;
  line-height: 1.5;
}

#rsvp-success {
  display: none;
  text-align: center;
  padding: 8px 0;
  position: relative;
}
#rsvp-success h3 {
  font-size: 19px;
  font-family: "Meow Script", cursive;
  font-weight: 400;
}
#rsvp-success p {
  font-size: 12.5px;
  max-width: 270px;
  margin: 8px auto 0;
  color: var(--ink);
  opacity: 0.85;
}
.zalo-btn {
  display: inline-block;
  margin-top: 16px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-size: 12.5px;
  padding: 10px 22px;
  border-radius: 999px;
}
.heart-burst {
  position: absolute;
  left: 50%;
  top: 0;
  pointer-events: none;
}
.heart-burst span {
  position: absolute;
  font-size: 15px;
  color: var(--ink);
  opacity: 0;
  animation: pop 1.3s ease forwards;
}
@keyframes pop {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.4);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--hx, 0), -80px) scale(1);
  }
}

/* ---------- closing ---------- */

#gallery {
  padding: 0;
  justify-content: flex-start;
  align-items: stretch;
}
.gallery-cinema {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(
      ellipse 80% 55% at 50% 48%,
      rgba(112, 1, 15, 0.22) 0%,
      transparent 70%
    ),
    linear-gradient(180deg, #2a0c12 0%, #120508 48%, #2a0c12 100%);
  overflow: hidden;
}
.gallery-letterbox {
  flex: 0 0 auto;
  height: clamp(28px, 5.5vh, 48px);
  background: #050203;
  position: relative;
  z-index: 2;
}
.gallery-letterbox--top {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}
.gallery-letterbox--bottom {
  box-shadow: 0 -16px 36px rgba(0, 0, 0, 0.45);
}
.gallery-scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: clamp(14px, 2.5vh, 22px) clamp(18px, 7vw, 40px);
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.gallery-scroll::-webkit-scrollbar {
  display: none;
}
.gallery-item {
  flex: 0 0 auto;
  width: min(82%, 320px);
  scroll-snap-align: center;
  position: relative;
  transform: scale(0.88);
  opacity: 0.38;
  filter: saturate(0.65) brightness(0.75);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.75s ease,
    filter 0.75s ease;
  will-change: transform, opacity;
}
.gallery-item.is-active {
  transform: scale(1);
  opacity: 1;
  filter: saturate(1.08) brightness(1.03) contrast(1.06);
  z-index: 1;
}
.gallery-frame {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 3 / 4;
  max-height: min(62vh, 520px);
  margin: 0 auto;
  background: #050203;
  box-shadow: 0 0 0 1px rgba(255, 246, 242, 0.12),
    0 22px 50px rgba(0, 0, 0, 0.45);
}
.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transform: scale(1.1);
  transform-origin: center center;
  filter: contrast(1.08) sepia(0.14) saturate(1.05);
}
.gallery-item.is-active .gallery-frame img {
  animation: kenBurns 5.2s ease-out forwards;
}
.gallery-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
      ellipse at center,
      transparent 38%,
      rgba(5, 2, 3, 0.32) 72%,
      rgba(5, 2, 3, 0.62) 100%
    ),
    linear-gradient(
      180deg,
      rgba(5, 2, 3, 0.28) 0%,
      transparent 16%,
      transparent 74%,
      rgba(5, 2, 3, 0.42) 100%
    );
  z-index: 1;
}
.gallery-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 0 0 clamp(12px, 2vh, 20px);
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}
.gallery-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 246, 242, 0.28);
  transition: transform 0.35s ease, background 0.35s ease, width 0.35s ease;
}
.gallery-dots span.is-on {
  width: 16px;
  border-radius: 999px;
  background: #fff6f2;
}
@keyframes kenBurns {
  0% {
    transform: scale(1.1) translate(0, 0);
  }
  100% {
    transform: scale(1.22) translate(-1.6%, -1.2%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-item.is-active .gallery-frame img {
    animation: none;
  }
  .gallery-item {
    transition: none;
  }
}
.closing-photo {
  width: min(280px, 72vw);
  margin: 0 auto 14px;
}
.closing-photo img {
  width: 100%;
  height: auto;
}
#closing .script {
  font-size: clamp(30px, 8vw, 38px);
  color: var(--ink);
}
#closing p {
  font-size: 13px;
  max-width: 290px;
  margin: 10px auto 0;
  color: var(--ink);
  opacity: 0.85;
  text-wrap: balance;
}
.sign {
  margin-top: 16px;
  font-family: "Meow Script", cursive;
  font-size: 20px;
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  #main {
    transition: none !important;
  }
}
