:root {
  --ivory: #f7efe4;
  --ivory-light: #fffaf3;
  --paper: #f1e3d1;
  --ink: #261f1b;
  --muted: #75665c;
  --soft: #a99584;
  --gold: #b1844d;
  --gold-soft: #dfc49c;
  --red: #9f2f2e;
  --line: rgba(87, 65, 47, .15);
  --shadow: 0 18px 54px rgba(54, 38, 26, .14);
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --font-serif: "STSong", "Songti SC", "SimSun", serif;
  --font-en: Georgia, "Times New Roman", serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #ded2c4;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.6), transparent 32rem),
    linear-gradient(180deg, #efe3d4, #d7c7b5);
}

body.modal-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

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

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

.invitation-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,250,243,.9), rgba(247,239,228,.96)),
    url("assets/paper-texture.jpg") center top / 640px auto repeat;
  box-shadow: 0 28px 80px rgba(42, 30, 22, .18);
  isolation: isolate;
}

.auto-scroll-pill {
  position: fixed;
  left: 50%;
  bottom: calc(18px + var(--safe-bottom));
  z-index: 36;
  width: max-content;
  max-width: calc(100vw - 34px);
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  color: #fff;
  background: rgba(38,31,27,.66);
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
  backdrop-filter: blur(14px);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .28s ease, transform .28s ease;
}

.auto-scrolling .auto-scroll-pill {
  opacity: 1;
  transform: translate(-50%, 0);
}

.invitation-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  max-width: 430px;
  margin: 0 auto;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(74,52,36,.08), transparent 14%, transparent 86%, rgba(74,52,36,.08)),
    repeating-linear-gradient(96deg, rgba(87,65,47,.025) 0 1px, transparent 1px 14px);
  mix-blend-mode: multiply;
  z-index: 1;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(22px + env(safe-area-inset-top, 0px)) 22px calc(94px + var(--safe-bottom));
  color: #fff;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  margin: 0;
  background: url("assets/cover.jpg") center top / cover no-repeat;
  transform: scale(1.01);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,15,12,.06) 0%, rgba(20,15,12,.08) 34%, rgba(21,15,12,.74) 100%),
    linear-gradient(90deg, rgba(16,12,10,.42), transparent 36%, rgba(16,12,10,.18));
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: start;
}

.brand-mark {
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  border-radius: 50%;
  object-fit: cover;
  padding: 6px;
  background: rgba(255,250,243,.9);
  box-shadow: 0 16px 34px rgba(0,0,0,.14);
}

.micro-label,
.section-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font: 700 .74rem/1 var(--font-en);
  letter-spacing: .24em;
  text-transform: uppercase;
}

.hero .micro-label {
  color: rgba(255,255,255,.78);
}

.hero h1 {
  margin: 0;
  display: grid;
  gap: 2px;
  color: #fff;
  font: 500 clamp(3rem, 14vw, 4.7rem)/.96 var(--font-serif);
  letter-spacing: 0;
  text-shadow: 0 8px 26px rgba(0,0,0,.28);
}

.hero h1 i {
  color: var(--gold-soft);
  font: italic 1.6rem/1 var(--font-en);
}

.hero__line {
  margin: 14px 0 18px;
  color: rgba(255,255,255,.88);
  font-size: .96rem;
  letter-spacing: .22em;
}

.hero__details {
  display: grid;
  grid-template-columns: auto auto;
  gap: 6px 14px;
  align-items: center;
  padding-left: 14px;
  border-left: 1px solid rgba(223,196,156,.7);
  color: rgba(255,255,255,.86);
}

.hero__details strong {
  color: #fff;
  font: 600 1.34rem/1 var(--font-en);
}

.hero__details span:last-child {
  grid-column: 1 / -1;
  color: rgba(255,255,255,.92);
  font-weight: 700;
}

.open-invitation {
  position: relative;
  display: inline-grid;
  justify-items: center;
  gap: 4px;
  min-width: 188px;
  margin-top: 22px;
  padding: 13px 20px 12px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.14);
  box-shadow: 0 18px 42px rgba(0,0,0,.18);
  backdrop-filter: blur(14px);
  font: inherit;
  letter-spacing: .08em;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.open-invitation::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(223,196,156,.5);
  border-radius: inherit;
  pointer-events: none;
}

.open-invitation__halo {
  position: absolute;
  inset: -14px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(223,196,156,.42), transparent 58%);
  opacity: .42;
  animation: openHalo 2.4s ease-in-out infinite;
}

.open-invitation__text,
.open-invitation small {
  position: relative;
  z-index: 1;
}

.open-invitation__text {
  font-weight: 800;
  font-size: .9rem;
}

.open-invitation small {
  color: rgba(255,255,255,.72);
  font-size: .68rem;
  letter-spacing: .06em;
}

.open-invitation:active {
  transform: translateY(1px) scale(.99);
}

.open-invitation[disabled] {
  opacity: .72;
}

.invitation-opened .open-invitation {
  animation: invitationOpen .68s cubic-bezier(.19, 1, .22, 1) both;
}

.hero__actions {
  position: absolute;
  z-index: 3;
  left: 20px;
  right: 20px;
  bottom: calc(38px + var(--safe-bottom));
  display: flex;
  gap: 9px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(88, 65, 46, .18);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,250,243,.76);
  backdrop-filter: blur(12px);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 10px 28px rgba(54,38,26,.08);
  -webkit-tap-highlight-color: transparent;
}

.hero__actions .button {
  flex: 1;
  color: #fff;
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.14);
}

.button--dark,
.hero__actions .button--dark {
  color: #fff;
  border-color: rgba(38,31,27,.92);
  background: var(--ink);
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: calc(100px + var(--safe-bottom));
  width: 26px;
  height: 42px;
}

.scroll-cue span {
  display: block;
  width: 15px;
  height: 15px;
  border-right: 1px solid rgba(255,255,255,.78);
  border-bottom: 1px solid rgba(255,255,255,.78);
  transform: rotate(45deg);
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { opacity: .35; transform: translateY(0) rotate(45deg); }
  50% { opacity: .9; transform: translateY(8px) rotate(45deg); }
}

@keyframes openHalo {
  0%, 100% { transform: scale(.86); opacity: .24; }
  48% { transform: scale(1.04); opacity: .54; }
}

@keyframes invitationOpen {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  45% { opacity: 1; transform: translateY(-4px) scale(1.04); }
  100% { opacity: 0; transform: translateY(14px) scale(.94); }
}

.paper-section,
.date-board,
.editorial,
.poster-section,
.gallery-section {
  position: relative;
  z-index: 2;
  padding: 42px 26px;
}

.paper-section::before,
.date-board::before,
.poster-section::before,
.gallery-section::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(177,132,77,.45), transparent);
}

h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font: 500 1.78rem/1.25 var(--font-serif);
  letter-spacing: 0;
}

h3 {
  margin: 0;
}

.letter,
.paper-section > p:not(.section-kicker):not(.signature),
.editorial__copy p,
.poster-section p,
.gallery-section .note,
.gallery-empty p,
.venue-list p,
.timeline p,
.note {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.9;
}

.letter {
  padding: 22px 0 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.letter p {
  margin-bottom: 12px;
}

.letter strong {
  color: var(--red);
}

.signature {
  margin: 16px 0 0;
  color: var(--ink);
  font: 500 1.12rem/1.4 var(--font-serif);
  text-align: right;
}

.date-board {
  text-align: center;
}

.date-board__grid {
  display: grid;
  gap: 16px;
}

.date-card {
  position: relative;
  width: min(100%, 284px);
  margin: 0 auto;
  padding: 24px 18px 22px;
  border: 1px solid rgba(177,132,77,.38);
  background:
    linear-gradient(180deg, rgba(255,250,243,.72), rgba(255,250,243,.46)),
    url("assets/paper-texture.jpg") center / 520px auto;
  box-shadow: var(--shadow);
}

.date-card::before,
.date-card::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(177,132,77,.24);
  pointer-events: none;
}

.date-card span {
  color: var(--gold);
  font: 600 .88rem/1 var(--font-en);
  letter-spacing: .22em;
  text-transform: uppercase;
}

.date-card strong {
  display: block;
  margin: 8px 0 7px;
  color: var(--ink);
  font: 500 5rem/.9 var(--font-en);
}

.date-card em {
  color: var(--muted);
  font: italic .88rem/1 var(--font-en);
}

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

.countdown div {
  padding: 13px 8px 12px;
  border: 1px solid rgba(177,132,77,.18);
  background: rgba(255,250,243,.52);
}

.countdown b {
  display: block;
  color: var(--red);
  font: 500 1.92rem/1 var(--font-en);
}

.countdown span {
  color: var(--muted);
  font-size: .78rem;
}

.date-board .note {
  margin: 13px 0 0;
}

.editorial {
  display: grid;
  gap: 18px;
  padding-inline: 0;
}

.editorial__copy {
  padding: 0 26px;
}

.editorial-photo {
  margin: 0;
  overflow: hidden;
  background: var(--ivory-light);
}

.editorial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-photo--wide {
  height: 286px;
}

.editorial__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
}

.editorial__pair .editorial-photo {
  height: 246px;
}

.map-card-link,
.map-card,
.poster-section img {
  width: 100%;
  border: 1px solid rgba(177,132,77,.22);
  background: rgba(255,250,243,.58);
  box-shadow: var(--shadow);
}

.map-card-link {
  position: relative;
  display: block;
  margin: 4px 0 24px;
  padding: 6px;
  overflow: hidden;
  transform-origin: center;
  transition: transform .32s ease, box-shadow .32s ease;
  -webkit-tap-highlight-color: transparent;
}

.map-card-link::after {
  content: "";
  position: absolute;
  inset: 6px;
  pointer-events: none;
  border: 1px solid rgba(255,250,243,.5);
}

.map-card-link:active {
  transform: scale(.985);
  box-shadow: 0 12px 34px rgba(54,38,26,.12);
}

.map-card-link span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  color: #fff;
  background: rgba(38,31,27,.72);
  font-size: .78rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.map-card {
  border: 0;
  padding: 0;
  box-shadow: none;
}

.venue-list {
  display: grid;
  gap: 22px;
}

.venue-list article {
  padding: 0 0 0 16px;
  border-left: 1px solid rgba(177,132,77,.5);
}

.venue-list span {
  display: inline-flex;
  margin-bottom: 7px;
  color: var(--gold);
  font: 700 .72rem/1 var(--font-en);
  letter-spacing: .2em;
  text-transform: uppercase;
}

.venue-list h3 {
  color: var(--ink);
  font: 500 1.32rem/1.25 var(--font-serif);
}

.venue-list p {
  margin: 8px 0 13px;
}

.venue-list .venue-address {
  margin: 8px 0 13px;
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.7;
}

.venue-list p em {
  margin: 0 8px;
  color: var(--soft);
  font-style: normal;
}

.timeline {
  position: relative;
  display: grid;
  gap: 19px;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: rgba(177,132,77,.55);
}

.timeline div {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
}

.timeline div::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 8px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--ivory);
}

.timeline time {
  color: var(--gold);
  font: 700 .76rem/1.45 var(--font-en);
  letter-spacing: .08em;
}

.timeline p {
  margin: 0;
}

.poster-section {
  text-align: center;
}

.poster-section img {
  margin: 6px 0 16px;
}

.poster-section p {
  margin: 0;
  text-align: left;
}

.poster-section strong {
  color: var(--red);
  font-weight: 700;
}

.gallery-section .note {
  margin: -6px 0 20px;
}

.album-click-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -5px 0 18px;
  padding: 7px 12px;
  border: 1px solid rgba(177,132,77,.24);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255,250,243,.62);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.album-click-hint i {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(177,132,77,.42);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--gold) 0 3px, transparent 4px);
  animation: tapHint 1.7s ease-in-out infinite;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.album-card {
  position: relative;
  min-height: 202px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #1d1815;
  text-align: left;
  box-shadow: var(--shadow);
  -webkit-tap-highlight-color: transparent;
}

.album-card img {
  width: 100%;
  height: 100%;
  min-height: 202px;
  object-fit: cover;
  transition: transform .45s ease;
}

.album-card__hint {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  color: #fff;
  background: rgba(38,31,27,.54);
  backdrop-filter: blur(10px);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  animation: albumHintPulse 2.4s ease-in-out infinite;
}

.album-card:active img {
  transform: scale(1.03);
}

.album-card__content {
  position: absolute;
  inset: auto 0 0;
  padding: 48px 12px 12px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(18,14,12,.78));
}

.album-card__content b {
  display: block;
  font: 500 1rem/1.2 var(--font-serif);
}

.album-card__content small {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.72);
  font-size: .72rem;
}

.gallery-empty {
  text-align: center;
}

.gallery-empty div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.gallery-empty span {
  padding: 6px 10px;
  border: 1px solid rgba(177,132,77,.2);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,250,243,.48);
  font-size: .76rem;
}

.after .button {
  margin-top: 8px;
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 42px 24px calc(48px + var(--safe-bottom));
  color: var(--muted);
  text-align: center;
  font-size: .78rem;
}

.site-footer img {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 50%;
  opacity: .82;
}

.site-footer p {
  margin-bottom: 10px;
}

.site-footer a {
  color: var(--red);
  font-weight: 700;
}

.music-toggle {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: max(14px, calc((100vw - 430px) / 2 + 14px));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px 0 10px;
  border: 1px solid rgba(177,132,77,.32);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,250,243,.74);
  box-shadow: 0 12px 30px rgba(54,38,26,.12);
  backdrop-filter: blur(14px);
  font-size: .78rem;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
}

.music-toggle__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--gold);
  font: 700 1rem/1 var(--font-en);
}

.music-toggle.is-playing .music-toggle__icon {
  animation: musicPulse 1.5s ease-in-out infinite;
}

@keyframes musicPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

@keyframes tapHint {
  0%, 100% { transform: scale(.82); opacity: .48; }
  46% { transform: scale(1.08); opacity: 1; }
}

@keyframes albumHintPulse {
  0%, 100% { transform: translateY(0); opacity: .86; }
  45% { transform: translateY(-2px); opacity: 1; }
}

.album-modal,
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,250,243,.98), rgba(241,227,209,.98)),
    url("assets/paper-texture.jpg") center / 640px auto repeat;
}

.album-modal.is-open,
.lightbox.is-open {
  display: block;
}

.album-modal.is-open {
  animation: veilIn .28s ease both;
}

.album-modal.is-open .modal-bar {
  animation: sheetDown .58s cubic-bezier(.19, 1, .22, 1) both;
}

.album-modal.is-open .photo-tile {
  animation: tilePop .52s cubic-bezier(.19, 1, .22, 1) both;
}

.album-modal.is-open .photo-tile:nth-child(2n) {
  animation-delay: .04s;
}

.album-modal.is-open .photo-tile:nth-child(3n) {
  animation-delay: .08s;
}

.album-modal.is-open .photo-tile:nth-child(4n) {
  animation-delay: .12s;
}

.album-modal {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 14px;
  border-bottom: 1px solid rgba(87,65,47,.12);
  background: rgba(247,239,228,.88);
  backdrop-filter: blur(14px);
}

.modal-bar h2 {
  margin: 0;
  font: 500 1.22rem/1.2 var(--font-serif);
}

.modal-bar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .76rem;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(87,65,47,.2);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255,250,243,.7);
  font-size: 1.35rem;
  line-height: 1;
}

.photo-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 16px 12px 80px;
}

.photo-tile {
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #1d1815;
  box-shadow: var(--shadow);
}

.photo-tile img {
  width: 100%;
  aspect-ratio: 1 / 1.22;
  object-fit: cover;
}

.lightbox {
  z-index: 50;
  padding: calc(58px + env(safe-area-inset-top, 0px)) 14px calc(100px + var(--safe-bottom));
  text-align: center;
}

.lightbox.is-open {
  animation: veilIn .24s ease both;
}

.lightbox.is-open .lightbox__body img {
  animation: imagePop .38s cubic-bezier(.19, 1, .22, 1) both;
}

.lightbox.is-open .lightbox__counter,
.lightbox.is-open .lightbox__close,
.lightbox.is-open .lightbox__arrow,
.lightbox.is-open .lightbox__nav {
  animation: controlPop .44s cubic-bezier(.19, 1, .22, 1) both;
}

.lightbox__close {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: 14px;
  z-index: 4;
}

.lightbox__counter {
  position: fixed;
  top: calc(18px + env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: 4;
  transform: translateX(-50%);
  padding: 7px 12px;
  border: 1px solid rgba(87,65,47,.16);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,250,243,.72);
  font: 600 .78rem/1 var(--font-en);
  backdrop-filter: blur(12px);
}

.lightbox__arrow {
  position: fixed;
  top: 50%;
  z-index: 4;
  width: 42px;
  height: 58px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  color: #fff;
  background: rgba(38,31,27,.38);
  font: 300 2rem/1 var(--font-en);
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.lightbox__arrow--prev {
  left: 12px;
}

.lightbox__arrow--next {
  right: 12px;
}

.lightbox__body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  gap: 10px;
  height: 100%;
}

.lightbox__body img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  margin: 0 auto;
  box-shadow: var(--shadow);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__hint,
.lightbox__tips {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.lightbox__nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(14px + var(--safe-bottom));
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 8px;
  max-width: 410px;
  margin: 0 auto;
}

.lightbox__nav .button {
  padding: 0 10px;
}

.is-hidden {
  display: none !important;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(.985);
  filter: blur(6px);
  transition:
    opacity .76s cubic-bezier(.19, 1, .22, 1),
    transform .76s cubic-bezier(.19, 1, .22, 1),
    filter .76s cubic-bezier(.19, 1, .22, 1);
}

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

.motion-ready [data-reveal] .pop-item {
  opacity: 0;
  transform: translateY(18px) scale(.985);
}

.motion-ready [data-reveal] .pop-item--media {
  transform: translateY(25px) scale(1.035);
}

.motion-ready [data-reveal].is-visible .pop-item {
  animation: lineRise .74s cubic-bezier(.19, 1, .22, 1) both;
  animation-delay: calc(.05s + var(--pop-order, 0) * .075s);
}

.motion-ready [data-reveal].is-visible .pop-item--media {
  animation-name: photoUnveil;
  animation-duration: .94s;
}

.hero h1 .pop-item {
  display: inline-block;
}

.story.is-visible .editorial-photo img {
  animation: stillDrift 8s cubic-bezier(.22, .6, .36, 1) .9s both;
}

@keyframes lineRise {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes photoUnveil {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(1.045);
    filter: saturate(.82) brightness(1.06);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: none;
  }
}

@keyframes stillDrift {
  from { transform: scale(1.035); }
  to { transform: scale(1); }
}

@keyframes veilIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sheetDown {
  0% {
    opacity: 0;
    transform: translateY(-18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tilePop {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(.94);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes imagePop {
  0% {
    opacity: 0;
    transform: scale(.94);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes controlPop {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media (min-width: 700px) {
  .invitation-shell {
    margin-block: 24px;
  }
}

@media (max-width: 380px) {
  .hero,
  .paper-section,
  .date-board,
  .poster-section,
  .gallery-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .timeline div {
    grid-template-columns: 60px 1fr;
  }

  .editorial-photo--wide {
    height: 250px;
  }
}

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