:root {
  color-scheme: dark;
  --ink: #fff7f1;
  --muted: #d9c3ba;
  --rose: #ff6f9c;
  --rose-soft: #ff9ebb;
  --plum: #140b16;
  --gold: #ffd28c;
  --line: rgba(255, 247, 241, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 111, 156, 0.32), transparent 28rem),
    radial-gradient(circle at 82% 80%, rgba(255, 210, 140, 0.19), transparent 24rem),
    radial-gradient(circle at 60% 8%, rgba(168, 140, 255, 0.18), transparent 20rem),
    linear-gradient(135deg, #100910 0%, #2a121d 52%, #120b16 100%);
  color: var(--ink);
  overflow-x: hidden;
}

button {
  font: inherit;
}

.story-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px;
  position: relative;
  isolation: isolate;
}

.ambient {
  position: fixed;
  width: 38vmax;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotate(24deg);
  z-index: -2;
}

.ambient-one {
  left: -14vmax;
  top: 8vh;
}

.ambient-two {
  right: -16vmax;
  bottom: 0;
}

.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(circle, rgba(255, 158, 187, 0.42) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255, 210, 140, 0.3) 0 1px, transparent 2px);
  background-position: 10% 20%, 70% 30%;
  background-size: 140px 180px, 190px 210px;
  animation: drift 18s linear infinite;
  opacity: 0.7;
}

@keyframes drift {
  from {
    transform: translateY(-20px);
  }
  to {
    transform: translateY(40px);
  }
}

.stage {
  width: min(920px, 100%);
  max-height: calc(100svh - 96px);
  overflow: auto;
  min-height: min(720px, calc(100svh - 104px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: clamp(24px, 6vw, 64px);
  background:
    linear-gradient(180deg, rgba(255, 247, 241, 0.12), rgba(255, 247, 241, 0.055)),
    rgba(16, 9, 16, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  transform-origin: center;
  animation: pageIn 680ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.turning-forward .stage {
  animation-name: pageForward;
}

body.turning-back .stage {
  animation-name: pageBack;
}

.stage[hidden] {
  display: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  align-items: center;
}

.letter-cover {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1fr);
  align-items: center;
}

.envelope-scene {
  min-height: 420px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.envelope {
  position: relative;
  width: min(340px, 82vw);
  height: 230px;
  border: 1px solid rgba(255, 210, 140, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 247, 241, 0.18), rgba(255, 111, 156, 0.12)),
    rgba(255, 247, 241, 0.08);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  overflow: visible;
}

.envelope::before,
.envelope::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 72%;
  background:
    linear-gradient(145deg, rgba(255, 210, 140, 0.16), rgba(255, 111, 156, 0.13)),
    rgba(255, 247, 241, 0.05);
  clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 0 8px 8px;
  z-index: 3;
}

.flap {
  position: absolute;
  inset: 0 0 auto;
  height: 132px;
  transform-origin: top;
  transform: rotateX(0deg);
  background:
    linear-gradient(180deg, rgba(255, 210, 140, 0.22), rgba(255, 111, 156, 0.14)),
    rgba(255, 247, 241, 0.1);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-radius: 8px 8px 0 0;
  animation: openFlap 1.5s 320ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  z-index: 4;
}

.letter-card {
  position: absolute;
  left: 50%;
  top: 36px;
  width: 78%;
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  border: 1px solid rgba(255, 210, 140, 0.42);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 247, 241, 0.98), rgba(255, 235, 224, 0.92));
  color: #351421;
  text-align: center;
  transform: translateX(-50%) translateY(46px);
  animation: liftLetter 1.5s 620ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  z-index: 2;
}

.letter-card span {
  font: 700 0.74rem/1.2 Arial, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.letter-card strong {
  font-size: clamp(1.35rem, 4vw, 2.1rem);
  line-height: 1.05;
}

.letter-copy {
  display: grid;
  gap: 20px;
}

.media-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  padding: 6px;
  border: 1px solid rgba(255, 210, 140, 0.46);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 210, 140, 0.18), rgba(255, 111, 156, 0.12)),
    rgba(255, 247, 241, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(255, 247, 241, 0.08),
    0 18px 44px rgba(0, 0, 0, 0.24);
  display: grid;
  place-items: center;
  align-self: start;
}

.media-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 5px;
}

.media-card video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.media-card video {
  background: #09070a;
}

.stage > video {
  width: min(100%, 560px);
  height: auto;
  max-height: min(46svh, 360px);
  display: block;
  align-self: center;
  object-fit: contain;
  border: 1px solid rgba(255, 210, 140, 0.36);
  border-radius: 8px;
  background: #050506;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

@keyframes openFlap {
  to {
    transform: rotateX(168deg);
  }
}

@keyframes liftLetter {
  to {
    transform: translateX(-50%) translateY(-86px) rotate(-2deg);
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes pageForward {
  from {
    opacity: 0;
    transform: translateX(44px) rotateY(-8deg) scale(0.98);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes pageBack {
  from {
    opacity: 0;
    transform: translateX(-44px) rotateY(8deg) scale(0.98);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotateY(0) scale(1);
    filter: blur(0);
  }
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font: 700 0.78rem/1.2 Arial, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.55rem, 8vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  max-width: 13ch;
  font-size: clamp(2.25rem, 6.8vw, 4.8rem);
}

p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.24rem);
  line-height: 1.65;
}

.primary,
.topic-buttons button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary {
  width: fit-content;
  padding: 0 24px;
  background: linear-gradient(135deg, var(--rose), var(--gold));
  color: #210913;
  font: 700 0.95rem/1 Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.primary:hover,
.topic-buttons button:hover {
  transform: translateY(-2px);
}

.photo-frame,
.text-space,
.proposal,
.music-card,
blockquote {
  border: 1px solid rgba(255, 210, 140, 0.28);
  border-radius: 8px;
  background: rgba(255, 210, 140, 0.08);
}

.photo-frame {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 111, 156, 0.16), rgba(255, 210, 140, 0.1)),
    rgba(255, 247, 241, 0.06);
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(255, 247, 241, 0.28);
  border-radius: 6px;
}

.photo-frame::after {
  content: attr(data-photo);
  position: relative;
  max-width: 70%;
  color: var(--gold);
  font: 700 0.85rem/1.35 Arial, sans-serif;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.hero-photo,
.tall-photo {
  min-height: 440px;
}

.album-photo {
  min-height: 420px;
}

.proposal-photo {
  min-height: 260px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  align-items: start;
  gap: clamp(10px, 2vw, 16px);
}

.photo-grid .photo-frame {
  min-height: 220px;
}

.photo-grid .media-card {
  align-self: start;
}

.photo-grid .media-card img {
  height: auto;
}

.gallery-page .photo-grid .photo-frame {
  min-height: 160px;
}

.gallery-page .photo-grid .media-card {
  align-self: start;
}

.gallery-page .photo-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.wide-photo {
  grid-column: auto;
}

.final-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  width: 100%;
}

.elapsed {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.elapsed div {
  position: relative;
  min-height: 128px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 210, 140, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 247, 241, 0.12), rgba(255, 247, 241, 0.04)),
    rgba(255, 111, 156, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  overflow: hidden;
}

.elapsed div::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0, rgba(255, 210, 140, 0.18), transparent 60%);
  pointer-events: none;
}

.elapsed span,
.elapsed small,
.text-space span,
.music-card span,
.proposal span {
  color: var(--gold);
  font: 700 0.78rem/1.2 Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.elapsed strong {
  max-width: 100%;
  font: 700 clamp(1.85rem, 5.6vw, 3.8rem)/0.9 Arial, sans-serif;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.gold-line {
  color: var(--gold);
}

.text-space {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.text-space strong {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.2;
}

.topic-layout,
.reminds-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.topic-buttons {
  display: grid;
  gap: 12px;
}

.topic-buttons button {
  padding: 18px 14px;
  border: 1px solid rgba(255, 247, 241, 0.24);
  background: rgba(255, 247, 241, 0.08);
  color: var(--ink);
  font: 700 1rem/1 Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.topic-buttons button.active {
  background: rgba(255, 111, 156, 0.28);
  border-color: rgba(255, 111, 156, 0.65);
}

.topic-photo {
  margin: 0;
  padding: 6px;
  border: 1px solid rgba(255, 210, 140, 0.46);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 210, 140, 0.18), rgba(255, 111, 156, 0.12)),
    rgba(255, 247, 241, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(255, 247, 241, 0.08),
    0 18px 44px rgba(0, 0, 0, 0.24);
}

.topic-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(255, 111, 156, 0.16), rgba(255, 210, 140, 0.1)),
    rgba(255, 247, 241, 0.06);
}

.topic-photo img.is-missing {
  opacity: 0;
}

.topic-photo figcaption {
  min-height: 70px;
  padding: 18px 12px 12px;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.45;
}

.music-page {
  position: relative;
  width: min(1080px, 100%);
  justify-content: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 92px;
}

.spotify-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1.35fr) minmax(260px, 0.85fr);
  gap: 22px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid rgba(30, 215, 96, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(30, 215, 96, 0.26), rgba(8, 13, 10, 0.92) 42%, rgba(0, 0, 0, 0.72)),
    rgba(0, 0, 0, 0.46);
  box-shadow: 0 30px 85px rgba(0, 0, 0, 0.36);
}

.album-cover {
  align-self: start;
  width: 100%;
  aspect-ratio: 16 / 9;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

.album-cover img {
  border-radius: 7px;
}

.portrait-media {
  align-self: start;
}

.portrait-media img {
  height: auto;
}

.likes-media-stack {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.likes-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  align-items: start;
  gap: clamp(8px, 2vw, 12px);
}

.likes-gallery .media-card {
  align-self: start;
}

.likes-gallery .media-card img {
  height: auto;
}

.future-photo {
  align-self: center;
}

.finale {
  width: min(980px, 100%);
  min-height: min(620px, calc(100svh - 104px));
  justify-content: center;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}

.final-video-card {
  width: min(100%, 820px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 210, 140, 0.28);
  border-radius: 8px;
  background: #050506;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  display: grid;
  place-items: center;
}

.final-video-card video {
  width: 100%;
  height: auto;
  max-height: min(62svh, 460px);
  display: block;
  object-fit: contain;
  background: #050506;
}

.final-action {
  margin-top: 2px;
}

.finale-revealed {
  justify-content: center;
}

.finale-revealed > .eyebrow {
  display: none;
}

.love-ending {
  width: min(100%, 820px);
  min-height: 210px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid rgba(255, 210, 140, 0.46);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 210, 140, 0.22), transparent 54%),
    linear-gradient(145deg, rgba(255, 111, 156, 0.18), rgba(16, 9, 16, 0.72));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  text-align: center;
}

.love-ending[hidden] {
  display: none;
}

.love-ending p {
  margin: 0;
  max-width: 18ch;
  color: var(--ink);
  font-size: clamp(2rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 0.98;
  text-wrap: balance;
}

.love-ending p + p {
  max-width: 28ch;
  color: var(--gold);
  font-size: clamp(1.15rem, 3vw, 2.1rem);
  line-height: 1.18;
}

.love-ending p::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.8em;
  margin-left: 0.08em;
  background: currentColor;
  animation: caretBlink 780ms steps(1) infinite;
  vertical-align: -0.08em;
}

.love-ending p.is-done::after {
  display: none;
}

.track-panel {
  display: grid;
  align-content: center;
  gap: 16px;
  min-width: 0;
  padding: clamp(4px, 2vw, 16px) 0;
}

.track-kicker,
.track-panel small {
  color: #87f0aa;
  font: 700 0.78rem/1.2 Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.track-panel strong {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.94;
}

.track-panel p {
  color: rgba(255, 247, 241, 0.74);
}

audio {
  width: 100%;
  accent-color: #1ed760;
  border-radius: 999px;
}

.spotify-progress {
  display: grid;
  grid-template-columns: auto minmax(72px, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: rgba(255, 247, 241, 0.62);
  font: 700 0.76rem/1 Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spotify-progress i {
  position: relative;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 247, 241, 0.18);
}

.spotify-progress i::before {
  content: "";
  position: absolute;
  inset: 0 58% 0 0;
  border-radius: inherit;
  background: #1ed760;
}

.emoji-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.emoji-rain button {
  position: absolute;
  left: var(--left);
  top: -48px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 247, 241, 0.22);
  border-radius: 999px;
  background: rgba(16, 9, 16, 0.52);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.35rem;
  pointer-events: auto;
  animation: emojiFall 7s var(--delay) linear infinite;
  backdrop-filter: blur(10px);
}

@keyframes emojiFall {
  to {
    transform: translateY(calc(100svh + 90px)) rotate(360deg);
  }
}

@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}

.verse-dock {
  display: grid;
  gap: 12px;
  opacity: 0.72;
  transition: opacity 220ms ease, transform 220ms ease;
}

.verse-dock.highlight {
  opacity: 1;
  transform: translateY(-4px);
}

.verse-popover {
  position: sticky;
  bottom: 16px;
  z-index: 5;
  max-width: 620px;
  margin-inline: auto;
  padding: 10px;
  border: 1px solid rgba(255, 210, 140, 0.42);
  border-radius: 8px;
  background: rgba(16, 9, 16, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}

.verse-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 247, 241, 0.22);
  border-radius: 999px;
  background: rgba(255, 247, 241, 0.08);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.music-card {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.music-card strong {
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.2;
}

.music-card small {
  color: var(--muted);
  font: 700 0.82rem/1.3 Arial, sans-serif;
}

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

blockquote {
  margin: 0;
  padding: 22px;
  color: var(--ink);
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
  line-height: 1.55;
}

cite {
  display: block;
  margin-top: 14px;
  color: var(--gold);
  font: 700 0.9rem/1.2 Arial, sans-serif;
}

.proposal {
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 111, 156, 0.18), rgba(255, 210, 140, 0.1)),
    rgba(255, 247, 241, 0.06);
}

.proposal strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1.02;
}

.pager {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  max-width: min(92vw, 720px);
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 9, 16, 0.72);
  backdrop-filter: blur(12px);
  overflow-x: auto;
}

.pager button {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 247, 241, 0.34);
  cursor: pointer;
}

.pager button.active {
  width: 30px;
  background: var(--rose);
}

@media (max-width: 860px) {
  .split,
  .letter-cover,
  .topic-layout,
  .reminds-layout,
  .spotify-layout,
  .verse-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid,
  .final-grid {
    grid-template-columns: 1fr;
  }

  .elapsed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stage {
    width: min(100%, 760px);
  }

  .media-card,
  .topic-photo {
    padding: 5px;
  }
}

@media (max-width: 620px) {
  .story-shell {
    padding: 16px 16px 78px;
    align-items: start;
  }

  .stage {
    max-height: calc(100svh - 96px);
    min-height: calc(100svh - 112px);
    padding: 28px 22px;
  }

  .finale {
    min-height: calc(100svh - 112px);
    gap: 12px;
    padding: 18px 14px 72px;
    justify-content: start;
  }

  .final-video-card {
    width: 100%;
  }

  .final-video-card video {
    max-height: calc(100svh - 240px);
  }

  .stage > video {
    width: 100%;
    max-height: 34svh;
  }

  .love-ending {
    min-height: 240px;
    padding: 24px 18px;
  }

  .primary {
    width: 100%;
  }

  h1,
  h2 {
    max-width: 100%;
  }

  .photo-grid,
  .final-grid,
  .elapsed {
    grid-template-columns: 1fr;
  }

  .wide-photo {
    grid-column: auto;
  }

  .photo-grid,
  .likes-gallery {
    gap: 10px;
  }

  .media-card,
  .topic-photo {
    padding: 4px;
  }

  .hero-photo,
  .tall-photo,
  .album-photo {
    min-height: 300px;
  }

  .envelope-scene {
    min-height: 330px;
  }
}

@media (max-width: 390px) {
  .story-shell {
    padding-inline: 10px;
  }

  .stage {
    padding-inline: 14px;
  }

  .media-card,
  .topic-photo {
    padding: 3px;
    border-radius: 7px;
  }

  .media-card img,
  .topic-photo img {
    border-radius: 4px;
  }
}
