:root {
  --taupe: #947c69;
  --cream: #f1e1d6;
  --coffee: #4b4031;
  --rose-earth: #b28774;
  --mauve: #b28774;
  --sage: #947c69;
  --peach: #b28774;
  --rust: #4b4031;
  --paper: #f1e1d6;
  --ink: #4b4031;
  --soft-sage: #e5dbd1;
  --soft-mauve: #ead5ca;
  --line: #4b403130;
  --serif: 'Baskervville', Georgia, serif;
  --sans: 'Quicksand', sans-serif;
  --navigation-offset: 84px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--navigation-offset); overflow-x: clip; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--serif); font-size: 17px; line-height: 1.7; }
html[data-invitation-closed], html[data-invitation-closed] body,
html.gallery-open, html.gallery-open body { overflow: hidden; overscroll-behavior: none; }
.page-wrapper { overflow: clip; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; line-height: 1.12; color: var(--rust); }
h2 { font-size: clamp(42px, 4.5vw, 68px); letter-spacing: -0.04em; }
h3 { font-size: clamp(26px, 2.4vw, 38px); letter-spacing: -0.025em; }
em { font-weight: 400; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:where(a, button, input, textarea, summary):focus-visible { outline: 2px solid var(--rust); outline-offset: 5px; }
#cover-title:focus { outline: none; }
.eyebrow { font: 600 10px/1.6 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; }
.section { padding: clamp(64px, 8vw, 112px) max(6vw, calc((100vw - 1200px) / 2)); }
.section-heading { margin-bottom: 56px; }
.section-heading .eyebrow { margin-bottom: 20px; color: var(--peach); }
.section-heading > p:last-child:not(.eyebrow) { margin-top: 16px; font: 12px var(--sans); text-transform: uppercase; letter-spacing: 0.15em; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 48px; border: 1px solid var(--rust); padding: 13px 23px; background: var(--rust); color: var(--paper); font: 500 11px/1.5 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; transition: background 200ms, color 200ms; }
.button:hover { background: var(--peach); border-color: var(--peach); }
.text-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; font: 600 11px/1.4 var(--sans); letter-spacing: 0.06em; }
.text-link svg { width: 20px; transition: transform 200ms; }
.text-link:hover svg { transform: translateX(4px); }

/* Sobre: papel mauve, pliegues discretos y sello sage. */
.pre-page { position: fixed; inset: 0; z-index: 900; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; background: #ede1dc; display: grid; place-items: center; isolation: isolate; }
.pre-page[hidden] { display: none; }
.pre-page::before { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse at 50% 32%, #faf7f0 0%, #ead5ca 65%, #d7bcba 100%); }
.envelope-fold { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fold-left { background: linear-gradient(130deg, #b2877410, #b2877447); clip-path: polygon(0 0, 49% 52%, 0 100%); }
.fold-right { background: linear-gradient(230deg, #b2877410, #b2877447); clip-path: polygon(100% 0, 51% 52%, 100% 100%); }
.fold-bottom { background: linear-gradient(0deg, #b2877429, #faf7f0); clip-path: polygon(0 100%, 50% 53%, 100% 100%); }
.envelope-botanical { position: absolute; width: min(24vw, 330px); max-height: 80%; pointer-events: none; opacity: 0.3; filter: grayscale(1) sepia(1) saturate(0.4); }
.botanical-left { left: -3%; bottom: 0; }
.botanical-right { right: -3%; top: 0; }
.envelope-letter { position: relative; width: min(620px, 100%); padding: 56px 24px; text-align: center; }
.envelope-letter > .eyebrow { color: var(--rust); margin-bottom: 26px; }
.envelope-letter h2 { font-size: clamp(40px, 5vw, 72px); margin-bottom: 24px; }
.envelope-letter h2 em { color: var(--peach); }
.envelope-letter > p:not(.eyebrow) { font-size: 17px; line-height: 1.6; }
.guest-welcome { margin-bottom: 18px; font: 12px/1.5 var(--sans); }
.stamp-button { width: 84px; height: 84px; display: grid; place-items: center; margin: 32px auto 24px; border: 1px solid #f1e1d680; outline: 6px solid #947c6925; border-radius: 50%; background: var(--sage); color: var(--paper); box-shadow: 0 5px 14px #4b403120, inset 0 0 0 6px #947c69, inset 0 0 0 7px #f1e1d655; transition: transform 200ms; }
.stamp-button:hover { transform: rotate(-8deg); }
.seal-monogram { font: 26px var(--serif); letter-spacing: -0.1em; }
.seal-monogram > span { font-size: 15px; margin: 0 4px; }
.btn-pre-page { background: transparent; color: var(--rust); margin-inline: auto; }
.btn-pre-page:hover { color: var(--paper); }
.envelope-date { display: block; margin-top: 24px; font: 10px var(--sans); letter-spacing: 0.2em; color: var(--rust); }
.fade-out { animation: envelope-away 700ms ease both; pointer-events: none; }
@keyframes envelope-away { to { opacity: 0; transform: translateY(-12px); } }

/* Portada: tipografía abierta y una fotografía en arco. */
.hero { position: relative; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 7%; align-items: center; min-height: 760px; padding: 76px max(6vw, calc((100vw - 1200px) / 2)) 68px; }
.hero-copy { padding: 32px 0; }
.hero-copy > .eyebrow { color: var(--peach); margin-bottom: 32px; }
.hero h1 { font-size: clamp(72px, 7vw, 112px); line-height: 0.98; letter-spacing: -0.06em; }
.hero h1 em { color: var(--mauve); }
.hero-date { display: grid; gap: 6px; margin: 36px 0 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-date time { font: 600 12px var(--sans); letter-spacing: 0.05em; text-transform: uppercase; }
.hero-date span { font-size: 16px; color: var(--peach); }
.hero-copy > .text-link { color: var(--rust); }
.hero-photo { position: relative; height: 610px; border-radius: 48% 48% 1px 1px; background: var(--mauve); padding: 10px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 54% center; border-radius: inherit; }
.hero-photo::before { content: ''; position: absolute; inset: -15px 15px 15px -15px; border: 1px solid var(--mauve); border-radius: inherit; pointer-events: none; }
.photo-caption { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; color: #fff; text-shadow: 0 1px 8px #000; font: 10px var(--sans); letter-spacing: 0.2em; text-transform: uppercase; }
.hero-side-note { position: absolute; right: 18px; top: 45%; writing-mode: vertical-rl; font: 10px var(--sans); letter-spacing: 0.22em; color: var(--sage); }

/* Navegación ligera, con espacio reservado en el flujo. */
#myHeader { position: sticky; top: 0; z-index: 500; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#mainNav { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(1200px, 88%); min-height: 72px; margin: auto; }
.nav-monogram { font: 26px var(--serif); color: var(--rust); white-space: nowrap; }
.nav-monogram em { margin-inline: 5px; color: var(--sage); font-size: 18px; }
#navbarResponsive { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.nav-link { display: inline-flex; align-items: center; min-height: 48px; font: 500 10px var(--sans); letter-spacing: 0.055em; }
.nav-link:hover { color: var(--peach); }
.navbar-toggler { display: none; padding: 12px; border: 0; background: transparent; width: 44px; height: 44px; }
.navbar-toggler span { display: block; height: 1px; width: 20px; background: var(--rust); margin: 6px 0; transition: transform 200ms; }

.story-intro { position: relative; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 10%; background: var(--soft-sage); overflow: hidden; }
.story-heading { position: relative; }
.story-heading > .eyebrow { color: var(--rust); margin-bottom: 24px; }
.story-heading h2 { position: relative; z-index: 1; }
.story-botanical { width: 220px; height: 260px; object-fit: contain; margin: 20px 0 -130px -35px; opacity: 0.24; filter: grayscale(1) sepia(1) saturate(0.3); }
.story-copy { max-width: 630px; }
.story-copy p { margin-bottom: 24px; font-size: 17px; line-height: 1.9; }
.story-copy .story-opening { font-size: clamp(20px, 2vw, 26px); line-height: 1.65; color: var(--rust); }
.save-date { padding-block: 74px; background: var(--mauve); color: var(--rust); text-align: center; }
.save-date h2 { margin: 16px 0 38px; font-size: clamp(40px, 4vw, 58px); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 650px; margin: auto; }
.countdown > div { border-right: 1px solid #4b403135; }
.countdown > div:last-child { border: 0; }
.countdown strong { display: block; font-size: clamp(40px, 5vw, 64px); font-weight: 400; line-height: 1.2; font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: 9px; font: 500 9px var(--sans); text-transform: uppercase; letter-spacing: 0.15em; }
.calendar-row { display: flex; justify-content: center; align-items: center; gap: 34px; flex-wrap: wrap; margin-top: 40px; }
.calendar-row > p { font-size: 15px; }
.calendar-row > div { display: flex; gap: 26px; }
.calendar-row .text-link { border-bottom: 1px solid #4b403150; }

.venues-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7%; }
.venue-photo { overflow: hidden; aspect-ratio: 4/3; margin-bottom: 34px; }
.venue-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms; }
.venue:hover .venue-photo img { transform: scale(1.035); }
.venue-1 .venue-photo { border-radius: 50% 50% 0 0; }
.venue-2 { padding-top: 72px; }
.venue-2 .venue-photo { border-radius: 1px 1px 50% 0; }
.venue-copy .eyebrow { color: var(--sage); margin-bottom: 16px; }
.venue-copy h3 { margin-bottom: 22px; }
.venue-time { display: flex; align-items: center; gap: 22px; margin-bottom: 20px; }
.venue-time > span { font-size: 28px; line-height: 1; color: var(--peach); }
.venue-time > time { max-width: 100px; font: 500 10px/1.7 var(--sans); letter-spacing: 0.03em; }
.venue-address { font-size: 15px; max-width: 42ch; line-height: 1.7; }
.venue-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 24px; }
.venue-actions .button { padding: 10px 16px; }

.dress-code { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: 5%; align-items: center; background: var(--soft-mauve); }
.dress-heading .eyebrow { margin-bottom: 20px; }
.dress-heading h2 { font-size: clamp(64px, 6vw, 88px); }
.small-period { color: var(--peach); }
.dress-options { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.dress-options article { display: grid; grid-template-rows: 180px auto; gap: 24px; }
.dress-options img { width: 100%; height: 180px; object-fit: contain; mix-blend-mode: multiply; }
.dress-options h3 { font-size: 26px; margin-bottom: 14px; }
.dress-options p { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.timeline { background: var(--paper); }
.timeline ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.timeline li { position: relative; border-top: 1px solid var(--line); padding-top: 26px; }
.timeline-number { font: 10px var(--sans); color: var(--peach); }
.timeline-time { font: 600 10px/1.7 var(--sans); margin: 22px 0 12px; color: var(--sage); }
.timeline h3 { font-size: 28px; margin-bottom: 12px; }
.timeline li div > p:last-child { font-size: 14px; }
.timeline li > img { width: 30px; height: 30px; margin-top: 24px; opacity: 0.65; }

.gallery { background: var(--sage); color: var(--paper); }
.gallery h2, .gallery .eyebrow { color: var(--paper); }
.gallery-heading { display: flex; justify-content: space-between; align-items: flex-end; }
.gallery-heading > p { font: 11px var(--sans); text-transform: uppercase; letter-spacing: 0.1em; }
.gallery-grid { display: grid; grid-template-columns: 1.1fr 0.9fr 1.1fr 0.9fr; gap: 20px; align-items: start; }
.gallery-grid .register:nth-child(even) { padding-top: 60px; }
.gallery-photo { display: block; position: relative; overflow: hidden; }
.gallery-photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform 600ms; }
.gallery-photo:hover img { transform: scale(1.04); }
.gallery-photo > span { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; font: 10px var(--sans); }
.gallery-photo > span svg { width: 18px; }
.registry { text-align: center; }
.gifts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.gift-link { display: grid; justify-items: center; gap: 16px; padding: 26px 16px; border-block: 1px solid var(--line); transition: background 200ms; }
.gift-link:hover { background: var(--soft-mauve); }
.gift-link img { width: 160px; height: 52px; object-fit: contain; }
.gift-link span { font: 12px var(--sans); color: var(--rust); }
.gift-link svg { width: 20px; }
.rsvp { background: var(--soft-sage); }
.rsvp-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 8%; align-items: start; }
.rsvp-heading { position: relative; overflow: hidden; padding: 30px 0 80px; }
.rsvp-heading > .eyebrow { color: var(--sage); margin-bottom: 22px; }
.rsvp-heading h2 { font-size: clamp(40px, 4vw, 60px); }
.rsvp-heading > p:not(.eyebrow) { margin-top: 26px; font: 12px var(--sans); }
.rsvp-heading > img { position: absolute; right: 0; bottom: -30px; width: 150px; height: 150px; object-fit: contain; opacity: 0.25; filter: grayscale(1) sepia(1) saturate(0.2); }
.rsvp-form { border-top: 1px solid #947c6975; border-bottom: 1px solid #947c6975; padding: 20px 0; min-width: 0; }
#rsvp-frame { display: block; width: 100%; height: 420px; margin: 0; border: 0; transition: none; }
.hotels-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.hotel > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 26px; }
.hotel .eyebrow { font-size: 9px; color: var(--sage); margin-bottom: 14px; }
.hotel h3 { font-size: 28px; margin-bottom: 18px; }
.hotel p:not(.eyebrow) { font-size: 14px; }
.hotel-phone { display: block; width: fit-content; margin: 18px 0 10px; font: 12px var(--sans); }
.app-section { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; border-top: 1px solid var(--line); padding-block: 64px; }
.app-section h2 { font-size: 38px; margin-top: 16px; }
.app-copy { font-size: 15px; }
.app-copy details { margin-top: 16px; }
.app-copy summary { font: 600 11px var(--sans); color: var(--rust); padding: 12px 0; }
.app-copy details p { margin-top: 12px; }
.app-links { display: flex; gap: 28px; margin-top: 20px; }
.site-footer { padding: 70px max(6vw, calc((100vw - 1200px) / 2)) 28px; background: var(--rust); color: var(--paper); }
.site-footer > .eyebrow { text-align: center; font-size: 9px; opacity: 0.8; }
.footer-hashtag { display: block; width: fit-content; margin: 26px auto 58px; font: 500 clamp(26px, 4vw, 42px) var(--sans); letter-spacing: -0.05em; }
.footer-bottom { border-top: 1px solid #f1e1d630; padding-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-bottom img { width: 44px; }
.footer-bottom > span { font: 9px var(--sans); letter-spacing: 0.1em; }
.back-to-top-btn { display: flex; align-items: center; gap: 12px; min-height: 44px; font: 10px var(--sans); }
.back-to-top-btn svg { transform: rotate(-90deg); }
.site-footer :focus-visible { outline-color: var(--paper); }

/* Control de Capital, adaptado únicamente a la paleta de Bosque. */
#music_box { display: block; position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); right: 20px; z-index: 550; }
html[data-invitation-closed] #music_box { display: none; }
#music-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: auto; height: 44px; padding: 0 16px; border: 1px solid #b28774a6; border-radius: 30px; background: var(--rust); color: #fff; box-shadow: 0 3px 15px #4b40311f; }
.music-status { font: 10px/1 var(--sans); }
.music-bars { display: flex; align-items: center; gap: 3px; height: 18px; }
.music-bars span { width: 2px; height: 4px; background: var(--mauve); }
.music-bars span:nth-child(2) { height: 12px; }
.music-bars span:nth-child(3) { height: 8px; }
.music-bars span:nth-child(4) { height: 15px; }
[aria-pressed="true"] .music-bars span { animation: bosque-music 0.8s ease-in-out infinite alternate; }
[aria-pressed="true"] .music-bars span:nth-child(2) { animation-delay: -0.4s; }
[aria-pressed="true"] .music-bars span:nth-child(3) { animation-delay: -0.2s; }
@keyframes bosque-music { to { transform: scaleY(0.3); } }

#gallery-preview { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 64px 70px 44px; border: 0; background: #32291ff7; color: var(--paper); overflow: hidden; overscroll-behavior: none; touch-action: pinch-zoom; }
#gallery-preview[open] { display: grid; place-items: center; }
#gallery-preview::backdrop { background: #32291f; }
#gallery-preview figure { margin: 0; width: 100%; height: 100%; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 16px; }
#gallery-preview-image { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
#gallery-preview-position { text-align: center; font: 11px var(--sans); }
#gallery-preview button { display: grid; place-items: center; touch-action: manipulation; cursor: pointer; position: absolute; width: 44px; height: 44px; padding: 0; border: 1px solid #f1e1d655; border-radius: 50%; color: var(--paper); background: #4b4031; font: 30px/1 sans-serif; z-index: 1; }
#gallery-preview button:focus-visible { outline-color: var(--paper); }
.preview-close { right: max(16px, env(safe-area-inset-right)); top: max(16px, env(safe-area-inset-top)); }
.preview-previous { left: 12px; top: calc(50% - 22px); }
.preview-next { right: 12px; top: calc(50% - 22px); }

@media (max-width: 1000px) {
  #mainNav { width: 90%; }
  .navbar-toggler { display: block; }
  #navbarResponsive { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 16px 5%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 15px 20px #4b403108; max-height: calc(100dvh - 80px); overflow-y: auto; }
  #navbarResponsive.show { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .navbar-toggler[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .navbar-toggler[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .hero { min-height: 650px; }
  .hero-photo { height: 500px; }
  .dress-code { grid-template-columns: 1fr; gap: 40px; }
  .dress-heading h2 { font-size: 68px; }
  .timeline ol { grid-template-columns: 1fr 1fr; gap: 40px; }
  .rsvp-layout { grid-template-columns: 1fr 1.2fr; gap: 5%; }
  .rsvp-heading h2 { font-size: 42px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 62px 24px; }
  h2 { font-size: 42px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading .eyebrow { font-size: 9px; margin-bottom: 18px; }
  .envelope-letter { padding: 48px 22px; }
  .envelope-letter h2 { font-size: 44px; max-width: 290px; margin-inline: auto; }
  .envelope-letter > p:not(.eyebrow) { font-size: 15px; }
  .envelope-botanical { width: 150px; max-height: 40%; }
  .botanical-left { left: -40px; }.botanical-right { right: -40px; }
  .hero { grid-template-columns: 1fr; gap: 34px; min-height: 0; padding: 52px 32px 44px; }
  .hero-copy { padding: 0; text-align: center; }
  .hero-copy > .eyebrow { font-size: 9px; margin-bottom: 26px; }
  .hero h1 { font-size: 76px; }
  .hero h1 br { display: none; }
  .hero h1 em { display: block; font-size: 46px; line-height: 0.95; margin: 4px 0; }
  .hero-date { margin: 26px auto 14px; padding-top: 20px; width: fit-content; }
  .hero-date time { font-size: 10px; }.hero-date span { font-size: 14px; }
  .hero-photo { height: 430px; width: 100%; max-width: 370px; margin: auto; padding: 7px; }
  .hero-photo::before { inset: -10px 10px 10px -10px; }
  .hero-side-note { display: none; }
  #mainNav { min-height: 62px; }
  .nav-link { font-size: 10px; }
  .story-intro { grid-template-columns: 1fr; gap: 36px; }
  .story-heading h2 br { display: none; }
  .story-botanical { position: absolute; right: -95px; top: -38px; margin: 0; width: 155px; height: 160px; opacity: 0.15; }
  .story-copy .story-opening { font-size: 21px; }
  .story-copy p { font-size: 15px; line-height: 1.85; margin-bottom: 20px; }
  .save-date h2 { font-size: 40px; margin-bottom: 30px; }
  .countdown strong { font-size: 39px; }
  .countdown span { font-size: 8px; letter-spacing: 0.08em; }
  .calendar-row { gap: 16px; margin-top: 28px; }
  .calendar-row > div { gap: 20px; }.calendar-row .text-link { font-size: 10px; }
  .venues-grid { grid-template-columns: 1fr; gap: 54px; }
  .venue-2 { padding: 0; }
  .venue-photo { margin-bottom: 26px; }
  .venue-copy h3 { font-size: 34px; }
  .venue-address { font-size: 14px; }
  .venue-actions { gap: 18px; }
  .venue-actions .button { padding-inline: 14px; gap: 12px; font-size: 10px; }
  .dress-heading h2 { font-size: 64px; }
  .dress-options { gap: 24px; }
  .dress-options article { grid-template-rows: 140px auto; gap: 22px; }
  .dress-options img { height: 140px; }
  .dress-options h3 { font-size: 23px; }.dress-options p { font-size: 12px; }
  .dress-options .text-link { font-size: 10px; gap: 7px; }
  .timeline ol { gap: 30px 24px; }
  .timeline h3 { font-size: 26px; }.timeline-time { font-size: 9px; }
  .timeline li div > p:last-child { font-size: 13px; }
  .gallery-heading { display: block; }.gallery-heading > p { margin-top: 20px; }
  .gallery h2 { font-size: 38px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
  .gallery-grid .register:nth-child(even) { padding-top: 30px; }
  .gallery-photo > span { font-size: 9px; }.gallery-photo > span svg { width: 15px; }
  .gifts-grid { grid-template-columns: 1fr; gap: 0; }
  .gift-link { grid-template-columns: 1fr auto 20px; align-items: center; padding: 28px 0; gap: 12px; border-bottom: 0; }
  .gift-link:last-child { border-bottom: 1px solid var(--line); }
  .gift-link img { width: 118px; height: 38px; }.gift-link span { font-size: 10px; }
  .rsvp-layout { grid-template-columns: 1fr; gap: 30px; }
  .rsvp-heading { padding: 0; }
  .rsvp-heading h2 { font-size: 42px; }
  .rsvp-heading img { display: none; }
  .rsvp-heading > p:not(.eyebrow) { margin-top: 20px; }
  .rsvp-form { padding: 16px 0; }
  .hotels-grid { grid-template-columns: 1fr; gap: 42px; }
  .hotel > img { aspect-ratio: 3/2; margin-bottom: 22px; }
  .hotel h3 { font-size: 30px; }.hotel .eyebrow { margin-bottom: 12px; }
  .app-section { grid-template-columns: 1fr; gap: 24px; padding-block: 48px; }
  .app-section h2 { font-size: 34px; }.app-copy { font-size: 14px; }
  .app-links { gap: 20px; }
  .site-footer { padding: 58px 24px 26px; }
  .site-footer > .eyebrow { font-size: 8px; line-height: 1.8; }
  .footer-hashtag { margin-bottom: 40px; }
  .footer-bottom { flex-wrap: wrap; gap: 16px; }.footer-bottom > span { font-size: 8px; }
  .footer-bottom .back-to-top-btn { width: 100%; justify-content: center; }
  #music_box { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  #music-button { width: 44px; padding: 0; }.music-status { display: none; }
  #gallery-preview { padding: 76px 12px 82px; }
  .preview-previous { top: auto; bottom: 16px; left: calc(50% - 70px); }
  .preview-next { top: auto; bottom: 16px; right: calc(50% - 70px); }
}
@media (min-width: 641px) and (max-width: 767px) {
  #music_box { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  #music-button { width: 44px; padding: 0; }
  .music-status { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
