:root {
  color-scheme: light;
  --ivory: #F6F1E9;
  --paper: #FFFCF7;
  --espresso: #382B2D;
  --secondary: #796F69;
  --berry: #985568;
  --rose: #DAB8AB;
  --sage: #A8AE98;
  --gold: #D9C9AA;
  --display: "Playfair Display", Georgia, serif;
  --body: "Inter", Arial, sans-serif;
  --hand: "Caveat", cursive;
  --content: 1160px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-space: clamp(76px, 11vw, 136px);
  --progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--espresso);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.has-modal {
  overflow: hidden;
}

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

button,
a {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 4px;
}

::selection {
  background: var(--rose);
  color: var(--espresso);
}

.reading-progress {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: 2px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--berry);
  transform: scaleX(var(--progress));
  transform-origin: left center;
}

.site-header {
  position: sticky;
  z-index: 15;
  top: 0;
  display: flex;
  width: 100%;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  border-bottom: 1px solid rgba(56, 43, 45, .12);
  background: rgba(246, 241, 233, .94);
  backdrop-filter: blur(12px);
}

.wordmark {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .17em;
}

.wordmark span {
  color: var(--berry);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.4vw, 48px);
}

.primary-nav a {
  position: relative;
  padding: 4px 0;
  color: var(--secondary);
  font-size: 11px;
  letter-spacing: .07em;
  transition: color .2s ease;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: var(--berry);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.primary-nav a:hover {
  color: var(--espresso);
}

.primary-nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
}

.section-shell {
  width: min(100% - var(--gutter) * 2, var(--content));
  margin-inline: auto;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, calc(100svh - 70px));
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
  padding-block: clamp(72px, 10vw, 112px);
}

.hero-copy {
  z-index: 1;
  grid-column: 1 / span 6;
  padding-block: 36px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--berry);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.closing h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(58px, 8.5vw, 112px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .99;
}

.hero h1 em,
.section-heading h2 em,
.closing h2 em {
  color: var(--berry);
  font-weight: 400;
}

.hero-deck {
  max-width: 390px;
  margin: 28px 0 0;
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.8;
}

.hero-birthday {
  margin: 32px 0 0;
  font-family: var(--display);
  font-size: clamp(18px, 2.2vw, 24px);
}

.hero-birthday span,
.closing h2 span {
  color: var(--berry);
  font-family: var(--body);
  font-size: .72em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 42px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold);
  color: var(--secondary);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: color .2s ease, border-color .2s ease;
}

.text-link:hover {
  border-color: var(--berry);
  color: var(--berry);
}

.text-link span {
  font-size: 15px;
}

.hero-photo {
  grid-column: 8 / span 5;
  width: 100%;
  max-width: 440px;
  justify-self: end;
  margin: 0;
}

.hero-photo img,
.chapter-photo img,
.photo-card img,
.closing-photo img {
  width: 100%;
  height: 100%;
  object-fit: var(--image-fit, contain);
  object-position: var(--image-position, 50% 50%);
}

.hero-photo img {
  aspect-ratio: 9 / 16;
  height: auto;
  background: #e8e1d8;
}

.hero-photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  color: var(--secondary);
  font-size: 9px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.hero-photo figcaption span:last-child {
  color: var(--berry);
}

.hero-margin-note {
  position: absolute;
  right: 0;
  bottom: 14%;
  margin: 0;
  color: var(--berry);
  font-family: var(--hand);
  font-size: 20px;
  transform: rotate(-5deg);
}

.story,
.archive,
.moving,
.little-things,
.letter-section {
  padding-block: var(--section-space);
  border-top: 1px solid rgba(56, 43, 45, .12);
}

.story {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(40px, 9vw, 126px);
  align-items: start;
}

.section-heading {
  max-width: 460px;
}

.section-heading .eyebrow {
  margin-bottom: 18px;
}

.section-heading h2,
.closing h2 {
  font-size: clamp(44px, 6vw, 76px);
  letter-spacing: -.045em;
  line-height: 1.06;
}

.section-heading > p:last-child {
  max-width: 390px;
  margin: 22px 0 0;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.9;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.timeline::before {
  position: absolute;
  top: 12px;
  bottom: 18px;
  left: 19px;
  width: 1px;
  background: var(--gold);
  content: "";
}

.story-chapter {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) minmax(120px, 180px);
  gap: 18px;
  align-items: center;
  min-height: 126px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(56, 43, 45, .1);
}

.chapter-index {
  z-index: 1;
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--ivory);
  color: var(--berry);
  font-size: 9px;
  letter-spacing: .06em;
}

.chapter-copy {
  grid-column: 2 / -1;
}

.chapter-photo + .chapter-copy {
  grid-column: 2;
}

.chapter-kicker {
  margin: 0 0 3px;
  color: var(--secondary);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.chapter-copy h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(20px, 2.1vw, 26px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.25;
}

.chapter-copy > p:last-child {
  margin: 6px 0 0;
  color: var(--secondary);
  font-size: 11px;
  line-height: 1.7;
}

.chapter-photo {
  grid-column: 3;
  grid-row: 1;
  width: 100%;
  margin: 0;
  padding: 5px;
  background: var(--paper);
}

.chapter-photo img {
  aspect-ratio: 4 / 5;
  background: #e8e1d8;
}

.story-chapter--text-only .chapter-copy {
  grid-column: 2 / -1;
}

.archive {
  background: var(--paper);
  box-shadow: 0 0 0 100vmax var(--paper);
  clip-path: inset(0 -100vmax);
}

.section-heading-wide {
  max-width: 720px;
  margin-bottom: 48px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 30px 24px;
  align-items: start;
}

.photo-card {
  grid-column: span 4;
  min-width: 0;
  margin: 0;
  cursor: zoom-in;
}

.photo-card:nth-child(4n + 1) {
  grid-column: span 5;
}

.photo-card:nth-child(4n + 2) {
  grid-column: span 3;
  margin-top: 46px;
}

.photo-card:nth-child(4n + 3) {
  grid-column: span 4;
  margin-top: 18px;
}

.photo-card:nth-child(4n) {
  grid-column: span 4;
}

.photo-card img {
  aspect-ratio: var(--aspect-ratio, 9 / 16);
  background: #e8e1d8;
  transition: filter .25s ease;
}

.photo-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}

.photo-card:hover img {
  filter: saturate(1.04);
}

.photo-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
  color: var(--secondary);
  font-size: 10px;
  line-height: 1.5;
}

.photo-card figcaption span:last-child {
  color: var(--berry);
  font-size: 9px;
}

.archive-note {
  margin: 45px 0 0;
  color: var(--berry);
  font-family: var(--hand);
  font-size: 24px;
  text-align: center;
}

.moving {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(40px, 8vw, 110px);
  align-items: start;
}

.moving .section-heading {
  position: sticky;
  top: 112px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 26px 22px;
}

.video-card {
  grid-column: span 3;
  min-width: 0;
  margin: 0;
}

.video-card--featured {
  grid-column: 2 / span 4;
}

.video-frame {
  position: relative;
  overflow: hidden;
  background: #e8e1d8;
}

.video-frame video {
  width: 100%;
  height: auto;
  max-height: 620px;
  aspect-ratio: var(--video-ratio, 9 / 16);
  background: var(--espresso);
  object-fit: contain;
}

.video-expand {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 252, 247, .7);
  background: rgba(56, 43, 45, .66);
  color: white;
  cursor: pointer;
  opacity: .8;
  transition: opacity .2s ease, background .2s ease;
}

.video-expand:hover {
  background: var(--berry);
  opacity: 1;
}

.video-card figcaption {
  margin-top: 12px;
  color: var(--secondary);
  font-family: var(--display);
  font-size: 16px;
}

.little-things {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 10vw, 140px);
  align-items: start;
}

.little-things-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.little-things-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid rgba(56, 43, 45, .13);
}

.little-things-list li > span {
  color: var(--berry);
  font-size: 9px;
  letter-spacing: .08em;
}

.little-things-list p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.letter-section {
  background: #efe8e0;
  box-shadow: 0 0 0 100vmax #efe8e0;
  clip-path: inset(0 -100vmax);
}

.letter-heading {
  margin: 0 auto 46px;
  text-align: center;
}

.letter-heading .eyebrow,
.letter-heading h2 {
  text-align: center;
}

.letter-paper {
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 76px) clamp(32px, 8vw, 86px);
  border: 1px solid rgba(56, 43, 45, .12);
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 35px,
      rgba(121, 111, 105, .13) 36px,
      transparent 37px
    ),
    var(--paper);
  box-shadow: 2px 3px 0 rgba(56, 43, 45, .035), 0 18px 55px rgba(56, 43, 45, .08);
}

.letter-paper::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(18px, 5vw, 48px);
  width: 1px;
  background: rgba(152, 85, 104, .24);
  content: "";
  pointer-events: none;
}

.letter-date {
  margin: 0 0 42px;
  color: var(--berry);
  font-family: var(--hand);
  font-size: 19px;
  text-align: right;
}

.letter-salutation {
  margin: 0 0 22px;
  color: var(--espresso);
  font-family: var(--hand);
  font-size: clamp(32px, 4vw, 42px);
}

.letter-copy {
  color: #423638;
  font-family: var(--hand);
  font-size: clamp(21px, 2.2vw, 25px);
  line-height: 1.48;
}

.letter-copy p {
  margin: 0 0 18px;
}

.letter-signature {
  margin: 38px 0 0;
  color: var(--berry);
  font-family: var(--hand);
  font-size: 27px;
  text-align: right;
}

.letter-seal {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--rose);
  font-size: 13px;
}

.closing {
  display: grid;
  grid-template-columns: minmax(220px, 4fr) minmax(0, 6fr);
  gap: clamp(40px, 9vw, 120px);
  align-items: center;
  padding-block: var(--section-space);
}

.closing-photo {
  width: 100%;
  max-width: 340px;
  margin: 0;
  padding: 7px;
  background: var(--paper);
}

.closing-photo img {
  aspect-ratio: 9 / 16;
  background: #e8e1d8;
}

.closing-copy {
  max-width: 620px;
}

.closing-copy .eyebrow {
  margin-bottom: 18px;
}

.closing h2 {
  font-size: clamp(42px, 6.2vw, 78px);
}

.closing-copy > p:not(.eyebrow):not(.closing-signoff) {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.95;
}

.closing-signoff {
  margin: 28px 0 0;
  color: var(--berry);
  font-family: var(--hand);
  font-size: 27px;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .4s ease, transform .4s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lightbox,
.video-modal {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  visibility: hidden;
  place-items: center;
  padding: 54px 24px 28px;
  background: rgba(34, 27, 28, .94);
  opacity: 0;
  transition: opacity .25s ease, visibility .25s ease;
}

.lightbox.is-open,
.video-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.lightbox-close,
.video-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 252, 247, .35);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.lightbox-figure {
  display: grid;
  max-width: min(100%, 760px);
  max-height: 100%;
  justify-items: center;
  margin: 0;
}

.lightbox-figure img {
  display: block;
  max-width: min(75vw, 700px);
  max-height: calc(100svh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-figure figcaption {
  margin-top: 12px;
  color: var(--paper);
  font-size: 11px;
  text-align: center;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 252, 247, .35);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transform: translateY(-50%);
}

.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }

.video-modal video {
  width: auto;
  height: auto;
  max-width: min(88vw, 1040px);
  max-height: calc(100svh - 110px);
  background: #171315;
  object-fit: contain;
}

@media (max-width: 800px) {
  :root {
    --gutter: 28px;
    --section-space: 88px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 18px;
    padding-block: 78px 88px;
  }

  .hero-copy {
    grid-column: 1 / span 4;
  }

  .hero h1 {
    font-size: clamp(54px, 10vw, 82px);
  }

  .hero-photo {
    grid-column: 5 / span 4;
    max-width: 340px;
  }

  .hero-margin-note {
    bottom: 8%;
  }

  .story,
  .moving {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .story .section-heading,
  .moving .section-heading {
    max-width: 580px;
  }

  .moving .section-heading {
    position: static;
  }

  .timeline {
    max-width: 660px;
  }

  .photo-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 24px 18px;
  }

  .photo-card,
  .photo-card:nth-child(4n + 1),
  .photo-card:nth-child(4n + 2),
  .photo-card:nth-child(4n + 3),
  .photo-card:nth-child(4n) {
    grid-column: span 4;
    margin-top: 0;
  }

  .photo-card:nth-child(3n + 1) {
    grid-column: span 5;
  }

  .photo-card:nth-child(3n + 2) {
    grid-column: span 3;
    margin-top: 26px;
  }

  .video-card--featured {
    grid-column: 2 / span 4;
  }

  .little-things {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .closing {
    grid-template-columns: minmax(180px, 4fr) minmax(0, 6fr);
    gap: 38px;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 20px;
    --section-space: 76px;
  }

  html {
    scroll-padding-top: 72px;
  }

  .site-header {
    min-height: 62px;
  }

  .menu-toggle {
    display: grid;
    width: 38px;
    height: 38px;
    align-content: center;
    justify-items: center;
    gap: 5px;
    border: 1px solid rgba(56, 43, 45, .2);
    background: transparent;
  }

  .menu-toggle span {
    width: 15px;
    height: 1px;
    background: var(--espresso);
    transition: transform .2s ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 8px var(--gutter) 14px;
    border-bottom: 1px solid rgba(56, 43, 45, .12);
    background: var(--ivory);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-5px);
    transition: opacity .2s ease, transform .2s ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(56, 43, 45, .08);
  }

  .primary-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 14px;
    padding-block: 62px 70px;
  }

  .hero-copy {
    grid-column: 1 / -1;
    padding-block: 0;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 9px;
  }

  .hero h1 {
    font-size: clamp(58px, 15vw, 82px);
  }

  .hero-deck {
    max-width: 330px;
    margin-top: 18px;
    font-size: 14px;
  }

  .hero-birthday {
    margin-top: 19px;
    font-size: 19px;
  }

  .text-link {
    margin-top: 24px;
  }

  .hero-photo {
    grid-column: 1 / -1;
    width: min(78%, 340px);
    justify-self: center;
  }

  .hero-photo img {
    max-height: 520px;
  }

  .hero-margin-note {
    right: 0;
    bottom: 9%;
    font-size: 17px;
  }

  .story {
    gap: 28px;
  }

  .section-heading h2,
  .closing h2 {
    font-size: clamp(43px, 12vw, 62px);
  }

  .section-heading > p:last-child {
    font-size: 12px;
  }

  .timeline::before {
    left: 15px;
  }

  .story-chapter {
    grid-template-columns: 32px minmax(0, 1fr) 98px;
    gap: 10px;
    min-height: 108px;
    padding-block: 17px;
  }

  .chapter-index {
    width: 31px;
    height: 31px;
    font-size: 8px;
  }

  .chapter-copy h3 {
    font-size: 19px;
  }

  .chapter-kicker {
    font-size: 8px;
  }

  .chapter-copy > p:last-child {
    font-size: 10px;
  }

  .chapter-photo {
    grid-column: 3;
  }

  .story-chapter--text-only .chapter-copy {
    grid-column: 2 / -1;
  }

  .section-heading-wide {
    margin-bottom: 30px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }

  .photo-card,
  .photo-card:nth-child(3n + 1),
  .photo-card:nth-child(3n + 2),
  .photo-card:nth-child(4n + 1),
  .photo-card:nth-child(4n + 2),
  .photo-card:nth-child(4n + 3),
  .photo-card:nth-child(4n) {
    grid-column: span 1;
    margin-top: 0;
  }

  .photo-card:nth-child(3n + 1) {
    grid-column: 1 / -1;
    width: min(78%, 340px);
    justify-self: center;
  }

  .photo-card figcaption {
    display: block;
    font-size: 9px;
  }

  .photo-card figcaption span:last-child {
    display: block;
    margin-top: 3px;
  }

  .archive-note {
    margin-top: 32px;
    font-size: 21px;
  }

  .moving {
    gap: 28px;
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
  }

  .video-card,
  .video-card--featured {
    grid-column: span 1;
  }

  .video-card--featured {
    grid-column: 1 / -1;
    width: min(75%, 320px);
    justify-self: center;
  }

  .video-card figcaption {
    font-size: 14px;
  }

  .video-expand {
    right: 6px;
    bottom: 6px;
    width: 30px;
    height: 30px;
  }

  .little-things {
    gap: 26px;
  }

  .little-things-list li {
    grid-template-columns: 28px minmax(0, 1fr);
    padding-block: 13px;
  }

  .little-things-list p {
    font-size: 19px;
  }

  .letter-heading {
    margin-bottom: 30px;
  }

  .letter-paper {
    padding: 38px 23px 34px 32px;
  }

  .letter-paper::before {
    left: 17px;
  }

  .letter-date {
    margin-bottom: 30px;
    font-size: 17px;
  }

  .letter-copy {
    font-size: 21px;
    line-height: 1.5;
  }

  .letter-copy p {
    margin-bottom: 17px;
  }

  .closing {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .closing-photo {
    width: min(72%, 300px);
    justify-self: center;
  }

  .closing-copy {
    text-align: center;
  }

  .closing-copy > p:not(.eyebrow):not(.closing-signoff) {
    margin-inline: auto;
  }

  .lightbox {
    padding-inline: 52px;
  }

  .lightbox-figure img {
    max-width: 100%;
    max-height: calc(100svh - 160px);
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

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

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

@media print {
  .site-header,
  .reading-progress,
  .lightbox,
  .video-modal,
  .video-expand {
    display: none !important;
  }

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