/* Mobile proportions from the 390 × 844 invitation artboards. */
.v2 { --column: 390px; }
.v2 .music-control { color: #fff; mix-blend-mode: normal; opacity: 1; transition: none; }
.v2 .music-control[data-ink="black"] { color: #000; }
.v2 .music-control:hover:not(:disabled) { opacity: 1; }
.cover-tint { background: rgb(82 40 42 / 60%); }
.cover .letter-oval { background: transparent; backdrop-filter: none; border-radius: 0; }
.cover .letter-oval h1 { font-size: clamp(32px, 10.3vw, 40px); line-height: 1.12; }
.cover .dear { font: 25px/30px var(--sans); }
.cover .salutation { margin: 0; }
.cover .open-button { font-weight: 400; }
.cover .short-rule { background: var(--gold); }
.cover .eyebrow { color: white; }
.cover-photo img { filter: grayscale(1); }
.hero-photo img { left: -.77%; top: -4%; }
.hero { min-height: 100svh; }
.hero-tint { background: linear-gradient(to bottom,#0006 16%,transparent 52%,transparent 72%,#0006), rgb(0 0 0 / 25%); }
.hero-scroll { position: absolute; inset-inline: 0; bottom: max(4svh,calc(env(safe-area-inset-bottom) + 10px)); margin-inline: auto; width: fit-content; min-height: 48px; padding: 4px 16px; display: grid; justify-items: center; align-content: center; gap: 8px; color: #fff; text-shadow: 0 1px 4px #0009; font: 500 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.hero-title { inset: 10.2% 0 auto; padding: 0; }
.hero-title h2, .family-signature { font: 600 48px/1.09 var(--serif); letter-spacing: .055em; }
.hero-title h2 .amp { font-size: inherit; }
.hero-kicker { margin-top: 3px; }
.hands-photo img { left: -89%; top: -5.5%; }
.family-photo img { top: 5%; left: -15%; }
.family-tint { background: linear-gradient(180deg, rgb(40 46 42 / 90%) 3%, transparent 83%); }
.family-signature span { display: block; }
.families { min-height: 650px; }
.family-content .marriage-verse { width: min(326px, 100%); }
.marriage-verse img { width: 100%; height: auto; }
.day-intro { min-height: 136px; margin-bottom: 0; }
.wedding-day { padding-bottom: 46px; background: #f0ede6; }
.paper-edge::after { background: linear-gradient(transparent,#f0ede6); }
.moment { grid-template-columns: minmax(0,1fr) 58px minmax(0,1fr); height: 219px; min-height: 219px; grid-template-areas: "painting spine copy"; }
.moment-right { height: 198px; min-height: 198px; grid-template-areas: "copy spine painting"; }
.moment-spine { grid-area: spine; height: 100%; left: 0; }
.moment-spine > img { width: 58px; height: 260px; }
.star-halo { z-index: -1; }
.moment-art { grid-area: painting; justify-self: center; display: flex; flex-direction: column; align-items: center; padding-top: 21px; width: 100%; }
.moment-art > img { width: min(100%,124px); height: auto; aspect-ratio: 124/164; object-fit: contain; }
.moment-art .location { margin: 0; min-height: 30px; font: 500 10px/1.2 var(--sans); letter-spacing: .07em; color: var(--muted); }
.moment .moment-copy { grid-area: copy; align-self: center; justify-self: stretch; padding: 0; gap: 4px; color: var(--muted); }
.moment-left .moment-copy { align-items: flex-start; text-align: left; }
.moment-right .moment-copy { align-items: flex-end; text-align: right; }
.moment .wax-seal { width: 70px; height: 70px; object-fit: contain; }
.moment .moment-time { font: 700 12px/15px var(--sans); letter-spacing: .04em; color: var(--muted); min-height: 0; }
.moment h3 { font: 600 20px/1.08 var(--serif); color: var(--olive); min-height: 0; }
.moment .venue { font: 400 12px/17px 'Montserrat',var(--sans); color: var(--muted); min-height: 0; }
.timeline-progress { height: calc(100% - 219px); }
.rsvp-section { min-height: max(844px,100svh); padding-bottom: 22px; }
.reply-photo { opacity: 1; }
.reply-photo img { inset: 0; width: 100%; height: 100%; }
.reply-photo::after { content: ''; position: absolute; inset: 0; background: rgb(74 82 40 / 60%); }
.draft-tools button:first-of-type { margin-top: 30px; }

.gallery-chapter { position: relative; height: 348svh; isolation: isolate; background: #52282a; color: #fffaf4; }
.gallery-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; container-type: size; isolation: isolate; }
.gallery-backgrounds, .gallery-wash, .gallery-backgrounds img { position: absolute; inset: 0; width: 100%; height: 100%; }
.gallery-backgrounds { z-index: -2; }
.gallery-backgrounds img { object-fit: cover; object-position: center; opacity: 0; }
.gallery-backgrounds img.is-current { opacity: 1; }
.gallery-wash { z-index: -1; background: rgb(82 40 42 / 60%); }
.gallery-intro { position: absolute; top: 5.45%; width: 100%; text-align: center; }
.gallery-intro img { width: auto; height: min(5.22cqh,44px); margin: 0 auto min(2.84cqh,24px); }
.gallery-intro h2 { padding-inline: 12px; font: 400 min(8.72cqw,4.15cqh,38px)/1.118 var(--serif); color: #fffaf4; }
.gallery-deck { --print-width: min(73cqw,33.7cqh); position: absolute; left: 0; right: 0; top: 29.7%; height: 50.6%; outline-offset: -4px; touch-action: pan-y; }
.gallery-cards { position: absolute; inset: 0; isolation: isolate; pointer-events: none; }
.gallery-card { position: absolute; width: var(--print-width); aspect-ratio: 2 / 3; left: 50%; top: 50%; border-radius: 11px; overflow: hidden; margin: 0; backface-visibility: hidden; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; }
.gallery-side { position: absolute; top: 14%; bottom: 14%; width: calc((100% - var(--print-width)) / 2); min-width: 44px; z-index: 1; }
.side-prev { right: 0; }
.side-next { left: 0; }
.gallery-caption { position: absolute; top: 83%; left: 12px; right: 12px; text-align: center; color: #eee8dd; font: 400 clamp(12px,3.65cqw,16px)/1.4 var(--sans); }
.gallery-footer { position: absolute; bottom: max(1.4%,env(safe-area-inset-bottom)); width: 100%; min-height: 44px; display: grid; place-items: center; }
.gallery-counter { color: #f8e1c3; font: 500 12px/1.2 var(--sans); letter-spacing: .17em; }
.gallery-continue { min-height: 44px; padding: 8px 16px; color: white; font: 500 11px/1.2 var(--sans); letter-spacing: .18em; }
.gallery-continue span { padding-left: 9px; font-size: 19px; vertical-align: -1px; }
@media(max-height: 500px) {
  .gallery-intro { top: 4%; }
  .gallery-intro img { display: none; }
  .gallery-intro h2 { font-size: min(7.6cqw,5cqh); }
  .gallery-caption { top: 81%; }
  .gallery-footer { bottom: env(safe-area-inset-bottom); min-height: 32px; }
  .gallery-continue { min-height: 32px; }
}
