:root {
  --ink: #342b28;
  --muted: #756b64;
  --paper: #f5eddd;
  --paper-light: #fffaf0;
  --red: #a43f36;
  --red-dark: #74302b;
  --green: #385b49;
  --green-light: #dce6d5;
  --yellow: #e5bc65;
  --pink: #e9c9c2;
  --line: rgba(72, 54, 45, 0.18);
  --shadow: 0 24px 70px rgba(75, 54, 41, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  font-family: "Noto Sans SC", sans-serif;
  background:
    linear-gradient(rgba(103, 77, 58, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 77, 58, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 5% 8%, rgba(229, 188, 101, 0.24), transparent 24rem),
    radial-gradient(circle at 94% 20%, rgba(164, 63, 54, 0.12), transparent 30rem);
  content: "";
  pointer-events: none;
}

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

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

button {
  color: inherit;
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 15px;
  color: white;
  background: var(--green);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.album-header {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  width: min(1180px, calc(100% - 28px));
  min-height: 66px;
  margin: 14px auto 0;
  padding: 9px 12px 9px 16px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 250, 240, 0.72);
  border-radius: 7px;
  background: rgba(255, 250, 240, 0.9);
  box-shadow: 0 12px 34px rgba(75, 54, 41, 0.1);
  backdrop-filter: blur(16px);
}

.album-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.album-brand__seal {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--red);
  color: var(--red);
  font-family: "Ma Shan Zheng", cursive;
  font-size: 1.3rem;
  transform: rotate(-4deg);
}

.album-brand > span:last-child {
  display: grid;
  line-height: 1.25;
}

.album-brand strong {
  font-size: 0.92rem;
}

.album-brand small {
  color: var(--muted);
  font-family: "DM Sans", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.13em;
}

.album-nav {
  display: flex;
  align-items: center;
  gap: 3px;
}

.album-nav a {
  padding: 9px 12px;
  border-radius: 3px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease;
}

.album-nav a:hover,
.album-nav a:focus-visible {
  color: var(--red);
  background: rgba(164, 63, 54, 0.08);
  outline: none;
}

.album-nav .album-nav__home {
  margin-left: 8px;
  color: var(--paper-light);
  background: var(--green);
}

.music-toggle {
  position: fixed;
  top: 96px;
  right: 22px;
  z-index: 28;
  display: flex;
  min-height: 42px;
  padding: 8px 13px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 250, 240, 0.78);
  border-radius: 999px;
  color: #fffaf0;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(56, 91, 73, 0.92);
  box-shadow: 0 8px 24px rgba(66, 45, 34, 0.18);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.music-toggle__icon {
  font-size: 1.1rem;
  line-height: 1;
}

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

.music-toggle:disabled {
  opacity: 0.72;
  cursor: default;
}

@keyframes music-pulse {
  50% {
    transform: scale(1.18);
  }
}

main,
footer {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}

.cover {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.78fr);
  gap: clamp(48px, 8vw, 110px);
  min-height: calc(100vh - 94px);
  padding: 92px 0 100px;
  align-items: center;
}

.cover__copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0;
  color: var(--red);
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.cover h1 {
  margin: 18px 0 0;
  color: var(--red-dark);
  font-family: "Ma Shan Zheng", cursive;
  font-size: clamp(5rem, 7.2vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.9;
  white-space: nowrap;
}

.cover__subtitle {
  max-width: 590px;
  margin: 30px 0 0;
  font-family: serif;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.7;
}

.cover__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 3px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px) rotate(-0.5deg);
}

.button:focus-visible,
.photo-button:focus-visible,
.lightbox-trigger:focus-visible,
.back-to-top:focus-visible,
.lightbox__close:focus-visible {
  outline: 3px solid rgba(164, 63, 54, 0.28);
  outline-offset: 4px;
}

.button--primary {
  color: white;
  background: var(--red);
  box-shadow: 0 12px 26px rgba(116, 48, 43, 0.2);
}

.button--paper {
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.75);
}

.cover__scrapbook {
  position: relative;
  min-height: 570px;
}

.cover-photo {
  position: absolute;
  inset: 25px 38px 60px 16px;
  padding: 16px 16px 58px;
  background: #fffdf6;
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}

.cover-photo::before {
  position: absolute;
  top: -13px;
  left: 38%;
  width: 108px;
  height: 30px;
  background: rgba(216, 185, 123, 0.58);
  content: "";
  transform: rotate(-5deg);
}

.cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 35%;
  background: #e9e0d2;
  filter: saturate(0.82) sepia(0.08);
}

.cover-photo p {
  margin: 15px 0 0;
  font-family: "Ma Shan Zheng", cursive;
  font-size: 1.25rem;
  text-align: center;
}

.cover-note {
  position: absolute;
  right: -8px;
  bottom: 4px;
  z-index: 3;
  width: 250px;
  padding: 22px;
  color: #f9f1df;
  background: var(--green);
  box-shadow: 0 16px 38px rgba(56, 91, 73, 0.22);
  transform: rotate(-5deg);
}

.cover-note span,
.cover-note small {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-family: "DM Sans", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

.cover-note strong {
  display: block;
  margin: 13px 0 18px;
  font-family: serif;
  font-size: 1.18rem;
  line-height: 1.6;
}

.cover-stamp {
  position: absolute;
  top: 15px;
  right: -6px;
  z-index: 4;
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  border: 4px double rgba(164, 63, 54, 0.68);
  border-radius: 50%;
  color: rgba(164, 63, 54, 0.72);
  font-family: "Ma Shan Zheng", cursive;
  font-size: 1.65rem;
  transform: rotate(14deg);
}

.cover__side-note {
  position: absolute;
  right: -175px;
  bottom: 58px;
  margin: 0;
  color: rgba(52, 43, 40, 0.35);
  font-family: "DM Sans", sans-serif;
  font-size: 0.67rem;
  letter-spacing: 0.24em;
  transform: rotate(90deg);
}

.paper-section {
  margin-bottom: 48px;
  padding: clamp(34px, 7vw, 76px);
  border: 1px solid var(--line);
  background: var(--paper-light);
  box-shadow: var(--shadow);
  transform: rotate(-0.35deg);
}

.handwritten {
  margin: 0;
  color: var(--red);
  font-family: "Ma Shan Zheng", cursive;
  font-size: 1.55rem;
}

.paper-section blockquote {
  max-width: 900px;
  margin: 25px 0;
  font-family: serif;
  font-size: clamp(1.55rem, 3.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.6;
}

.paper-section > p:last-child {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  line-height: 2;
}

.section {
  padding: 116px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
  gap: 52px;
  margin-bottom: 56px;
  align-items: end;
}

.section-heading h2 {
  margin: 14px 0 0;
  font-family: serif;
  font-size: clamp(2.7rem, 5.5vw, 5.3rem);
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

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

.member-card {
  position: relative;
  min-height: 780px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.78);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.member-card:nth-child(even) {
  transform: translateY(24px);
}

.member-card:hover {
  box-shadow: 0 18px 45px rgba(75, 54, 41, 0.13);
  transform: translateY(-5px) rotate(-0.5deg);
}

.member-card:nth-child(even):hover {
  transform: translateY(18px) rotate(0.5deg);
}

.member-card::after {
  position: absolute;
  right: -34px;
  bottom: -54px;
  width: 150px;
  height: 150px;
  border: 2px solid rgba(164, 63, 54, 0.14);
  border-radius: 50%;
  content: "";
}

.member-card__photo {
  width: calc(100% + 56px);
  height: 450px;
  margin: -28px -28px 22px;
  background: #eee5d7;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #d9d0c2;
  cursor: zoom-in;
}

.member-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 300ms ease;
}

.member-card:hover .member-card__photo img {
  transform: scale(1.035);
}

.member-card:nth-child(1) .member-card__photo img {
  object-position: 50% 42%;
}

.member-card:nth-child(2) .member-card__photo img {
  object-position: 50% 44%;
}

.member-card:nth-child(3) .member-card__photo img {
  object-position: 50% 45%;
}

.member-card:nth-child(4) .member-card__photo img {
  object-position: 50% 45%;
}

.member-card:nth-child(5) .member-card__photo img {
  object-position: 50% 43%;
}

.member-card:nth-child(6) .member-card__photo img {
  object-fit: cover;
  object-position: 58% 48%;
}

.member-card--red {
  color: white;
  background: var(--red);
}

.member-card--green {
  color: white;
  background: var(--green);
}

.member-card--yellow {
  background: #efd596;
}

.member-card__number {
  color: rgba(164, 63, 54, 0.52);
  font-family: "DM Sans", sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
}

.member-card--red .member-card__number,
.member-card--green .member-card__number {
  color: rgba(255, 255, 255, 0.58);
}

.member-card__role {
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.member-card--red .member-card__role,
.member-card--green .member-card__role,
.member-card--red > p,
.member-card--green > p {
  color: rgba(255, 255, 255, 0.72);
}

.member-card--red > p:not(.member-card__role),
.member-card--green > p:not(.member-card__role) {
  color: rgba(255, 255, 255, 0.82);
}

.member-card h3 {
  margin: 0 0 18px;
  font-family: serif;
  font-size: 2rem;
}

.member-card > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.member-card__line {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  padding-top: 14px;
  border-top: 1px solid currentColor;
  font-family: "Ma Shan Zheng", cursive;
  font-size: 1.05rem;
  opacity: 0.75;
}

.story-section {
  position: relative;
  width: auto;
  margin-left: 0;
  padding-inline: clamp(26px, 5vw, 64px);
  color: #f7efdf;
  background: var(--green);
}

.story-section::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
}

.story-section > * {
  position: relative;
}

.section-heading--light .eyebrow {
  color: #efcc80;
}

.section-heading--light > p {
  color: rgba(255, 255, 255, 0.62);
}

.timeline {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 44px;
  padding: 38px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.timeline-item time {
  color: #efcc80;
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.timeline-item h3 {
  margin: -7px 0 10px;
  font-family: serif;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.timeline-item p {
  max-width: 740px;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.9;
}

.timeline-item--future h3 {
  color: #efcc80;
}

.album-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 72px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.process-card {
  min-height: 260px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.55);
}

.process-card > span {
  color: var(--red);
  font-family: "DM Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
}

.process-card > p {
  margin: 56px 0 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.process-card h3 {
  margin: 0 0 10px;
  font-family: serif;
  font-size: 1.55rem;
}

.process-card small {
  color: var(--muted);
  line-height: 1.7;
}

.photo-ledger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: clamp(40px, 8vw, 110px);
  align-items: center;
}

.memory-gallery {
  display: grid;
  grid-auto-rows: 260px;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 78px;
}

.gallery-photo {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #d8cdbb;
  cursor: zoom-in;
}

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

.gallery-photo--tall {
  grid-row: auto;
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) sepia(0.04);
  transition: filter 240ms ease, transform 320ms ease;
}

.gallery-photo:hover img {
  filter: saturate(1);
  transform: scale(1.035);
}

.gallery-photo span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 9px 11px;
  color: white;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: left;
  background: rgba(43, 34, 30, 0.68);
  backdrop-filter: blur(6px);
}

.photo-ledger__visual {
  padding: 15px 15px 52px;
  background: #fffdf6;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.photo-button {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.photo-button img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 34%;
  filter: saturate(0.84) sepia(0.06);
  transition: transform 300ms ease;
}

.photo-button:hover img {
  transform: scale(1.025);
}

.photo-button span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(52, 43, 40, 0.72);
}

.photo-ledger__visual > p {
  margin: 16px 0 -31px;
  font-family: "Ma Shan Zheng", cursive;
  font-size: 1.15rem;
  text-align: center;
}

.photo-ledger__stats .handwritten {
  margin-bottom: 18px;
}

.stat-row {
  display: flex;
  padding: 18px 0;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.stat-row strong {
  color: var(--red-dark);
  font-family: serif;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 1;
}

.stat-row span {
  color: var(--muted);
  font-weight: 700;
}

.stat-row--total strong {
  color: var(--green);
}

.photo-ledger__note {
  margin: 24px 0 0;
  padding: 18px;
  border-left: 4px solid var(--yellow);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.8;
  background: rgba(255, 250, 240, 0.65);
}

.photo-ledger__quote {
  padding: 38px;
  border: 1px solid var(--line);
  background: var(--paper-light);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.photo-ledger__quote blockquote {
  margin: 24px 0;
  font-family: serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 700;
  line-height: 1.45;
}

.photo-ledger__quote > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.video-section {
  border-top: 1px solid var(--line);
}

.featured-video {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 36px;
  padding: 24px;
  align-items: center;
  color: #f7efdf;
  background: var(--green);
  box-shadow: var(--shadow);
}

.featured-video video {
  width: 100%;
  max-height: 620px;
  background: #161210;
}

.featured-video h3 {
  margin: 18px 0 14px;
  font-family: serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.25;
}

.featured-video > div > p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.85;
}

.video-play-button {
  margin-top: 24px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--green);
  font-weight: 800;
  background: #efcc80;
  cursor: pointer;
}

.video-play-button:hover {
  background: #f6d993;
}

.video-play-button:focus-visible {
  outline: 3px solid rgba(239, 204, 128, 0.38);
  outline-offset: 4px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.video-card {
  padding: 12px 12px 18px;
  border: 1px solid var(--line);
  background: var(--paper-light);
}

.video-card video {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 480px;
  object-fit: contain;
  background: #171310;
}

.video-card h3 {
  margin: 14px 4px 0;
  font-family: serif;
  font-size: 1.2rem;
}

.anniversary-video {
  display: grid;
  grid-template-columns: minmax(260px, 0.48fr) minmax(0, 1.52fr);
  gap: 34px;
  margin-top: 22px;
  padding: 28px;
  align-items: center;
  border: 1px solid rgba(92, 72, 55, 0.2);
  background: rgba(255, 250, 240, 0.72);
}

.anniversary-video h3 {
  margin: 8px 0 16px;
  font-family: serif;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1.12;
}

.anniversary-video > div > p:last-child {
  color: var(--muted);
  line-height: 1.9;
}

.anniversary-video video {
  display: block;
  width: 100%;
  max-height: 600px;
  background: #171310;
}

.voices-section {
  border-top: 1px solid var(--line);
}

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

.voice-note {
  min-height: 260px;
  margin: 0;
  padding: 34px;
  background: var(--paper-light);
  box-shadow: 0 12px 34px rgba(75, 54, 41, 0.08);
}

.voice-note:nth-child(2),
.voice-note:nth-child(3) {
  transform: translateY(18px);
}

.voice-note--pink {
  background: var(--pink);
}

.voice-note--green {
  color: white;
  background: var(--green);
}

.voice-note--yellow {
  background: #efd596;
}

.voice-note blockquote {
  margin: 0;
  font-family: serif;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 700;
  line-height: 1.65;
}

.voice-note figcaption {
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.8rem;
}

.voice-note--green figcaption {
  color: rgba(255, 255, 255, 0.65);
}

.ending {
  margin: 70px 0 120px;
  padding: clamp(44px, 9vw, 100px) 24px;
  color: #f7efdf;
  text-align: center;
  background: var(--red-dark);
  box-shadow: var(--shadow);
}

.ending .handwritten {
  color: #efcc80;
}

.ending h2 {
  max-width: 1040px;
  margin: 26px auto 20px;
  font-family: serif;
  font-size: clamp(2.7rem, 4.5vw, 4.8rem);
  letter-spacing: -0.055em;
  line-height: 1.22;
}

.ending > p:not(.handwritten) {
  color: rgba(255, 255, 255, 0.68);
}

.ending__names {
  display: flex;
  flex-wrap: wrap;
  max-width: 700px;
  margin: 42px auto;
  justify-content: center;
  gap: 10px;
}

.ending__names span {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: "Ma Shan Zheng", cursive;
  font-size: 1.1rem;
}

.ending .button--primary {
  color: var(--red-dark);
  background: #efcc80;
  box-shadow: none;
}

footer {
  display: flex;
  padding: 34px 0 46px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: white;
  background: var(--green);
  box-shadow: 0 12px 28px rgba(56, 91, 73, 0.25);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lightbox {
  width: min(860px, calc(100% - 32px));
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(31, 25, 23, 0.88);
  backdrop-filter: blur(8px);
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #161210;
}

.lightbox p {
  margin: 0;
  padding: 13px 48px 13px 16px;
  color: white;
  background: #161210;
}

.lightbox__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  line-height: 1;
  background: rgba(0, 0, 0, 0.62);
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

@media (max-width: 900px) {
  .cover {
    grid-template-columns: 1fr;
  }

  .cover__scrapbook {
    width: min(560px, 100%);
    margin-inline: auto;
  }

  .cover__side-note {
    display: none;
  }

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

  .member-card:nth-child(even) {
    transform: none;
  }

  .member-card:nth-child(even):hover {
    transform: translateY(-5px);
  }

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

  .photo-ledger {
    grid-template-columns: 0.82fr 1fr;
    gap: 48px;
  }

  .memory-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .featured-video {
    grid-template-columns: 1fr;
  }

  .anniversary-video {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .music-toggle {
    top: 82px;
    right: 10px;
  }

  .album-header {
    top: 7px;
    width: calc(100% - 16px);
    margin-top: 7px;
  }

  .album-brand > span:last-child {
    display: none;
  }

  .album-nav a {
    padding: 8px 7px;
    font-size: 0.75rem;
  }

  .album-nav a:nth-child(2),
  .album-nav a:nth-child(4) {
    display: none;
  }

  .album-nav .album-nav__home {
    margin-left: 2px;
  }

  main,
  footer {
    width: min(100% - 26px, 1120px);
  }

  .cover {
    min-height: auto;
    padding: 74px 0 86px;
  }

  .cover h1 {
    font-size: clamp(4.5rem, 20vw, 6.5rem);
    white-space: nowrap;
  }

  .cover__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cover__scrapbook {
    min-height: 480px;
  }

  .cover-photo {
    inset: 20px 24px 55px 0;
  }

  .cover-note {
    right: 0;
    width: 220px;
  }

  .cover-stamp {
    right: 0;
  }

  .paper-section {
    padding: 34px 24px;
  }

  .section {
    padding: 86px 0;
  }

  .story-section {
    width: auto;
    margin-right: -13px;
    margin-left: -13px;
    padding-inline: 26px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 38px;
  }

  .member-grid,
  .voice-grid {
    grid-template-columns: 1fr;
  }

  .member-card {
    min-height: 760px;
  }

  .member-card__photo {
    height: 430px;
  }

  .voice-note:nth-child(2),
  .voice-note:nth-child(3) {
    transform: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .timeline-item h3 {
    margin-top: 0;
  }

  .album-process,
  .photo-ledger {
    grid-template-columns: 1fr;
  }

  .memory-gallery {
    grid-auto-rows: 190px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .gallery-photo--tall {
    grid-row: span 1;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-card video {
    max-height: 620px;
  }

  .process-card {
    min-height: 220px;
  }

  .photo-ledger__visual {
    width: min(430px, 92%);
    margin-inline: auto;
  }

  .ending {
    margin-bottom: 80px;
  }

  footer {
    gap: 8px;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

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