:root {
  --ink: #171a22;
  --ink-soft: #5d6170;
  --ink-muted: #85818a;
  --night: #141927;
  --night-soft: #20283b;
  --paper: #f7f0e6;
  --paper-strong: #fffaf3;
  --paper-glass: rgba(255, 250, 243, 0.76);
  --cream: #fff7ea;
  --champagne: #d8b46f;
  --rose: #c98382;
  --rose-soft: #ead0cc;
  --sage: #748778;
  --violet-gray: #7d778a;
  --line: rgba(24, 26, 34, 0.13);
  --line-strong: rgba(24, 26, 34, 0.2);
  --shadow: 0 22px 64px rgba(23, 26, 34, 0.13);
  --shadow-soft: 0 12px 34px rgba(23, 26, 34, 0.08);
  --radius: 8px;
  --container: min(1160px, calc(100% - 44px));
  --font-serif: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  --site-bg-photo: url("photo/trips/trip-01/trip-01-020.jpg?v=20260612-photo-bg");
  --hero-bg-photo: url("photo/trips/trip-01/trip-01-020.jpg?v=20260612-photo-bg");
  --section-bg-photo: url("photo/trips/trip-02/trip-02-010.jpg?v=20260612-photo-bg");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.86), rgba(247, 240, 230, 0.94) 440px, rgba(247, 240, 230, 0.9)),
    linear-gradient(125deg, rgba(216, 180, 111, 0.2), rgba(125, 119, 138, 0.16) 45%, rgba(116, 135, 120, 0.14)),
    var(--site-bg-photo) center top / cover no-repeat fixed,
    var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.65;
  letter-spacing: 0;
}

body[data-section="diary"] {
  --site-bg-photo: url("photo/trips/trip-03/trip-03-010.jpg?v=20260612-photo-bg");
  --hero-bg-photo: url("photo/trips/trip-03/trip-03-018.jpg?v=20260612-photo-bg");
  --section-bg-photo: url("photo/trips/trip-04/trip-04-021.jpg?v=20260612-photo-bg");
}

body[data-section="travel"] {
  --site-bg-photo: url("photo/trips/trip-11/trip-11-010.jpg?v=20260612-photo-bg");
  --hero-bg-photo: url("photo/trips/trip-15/trip-15-035.jpg?v=20260612-photo-bg");
  --section-bg-photo: url("photo/trips/trip-15/trip-15-001.jpg?v=20260612-photo-bg");
}

body[data-section="anniversary"] {
  --site-bg-photo: url("photo/trips/trip-05/trip-05-010.jpg?v=20260612-photo-bg");
  --hero-bg-photo: url("photo/trips/trip-05/trip-05-001.jpg?v=20260612-photo-bg");
  --section-bg-photo: url("photo/trips/trip-07/trip-07-004.jpg?v=20260612-photo-bg");
}

body[data-section="daily"] {
  --site-bg-photo: url("photo/trips/trip-06/trip-06-002.jpg?v=20260612-photo-bg");
  --hero-bg-photo: url("photo/trips/trip-06/trip-06-001.jpg?v=20260612-photo-bg");
  --section-bg-photo: url("photo/trips/trip-08/trip-08-003.jpg?v=20260612-photo-bg");
}

body.page-shandong {
  --site-bg-photo: url("photo/shandong-web/shandong-020.jpg?v=20260612-photo-bg");
  --hero-bg-photo: url("photo/shandong-web/shandong-001.jpg?v=20260612-photo-bg");
  --section-bg-photo: url("photo/shandong-web/shandong-045.jpg?v=20260612-photo-bg");
}

body.page-nanchong {
  --site-bg-photo: url("photo/nanchong-web/nanchong-010.jpg?v=20260612-photo-bg");
  --hero-bg-photo: url("photo/nanchong-web/nanchong-001.jpg?v=20260612-photo-bg");
  --section-bg-photo: url("photo/nanchong-web/nanchong-017.jpg?v=20260612-photo-bg");
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(115deg, rgba(20, 25, 39, 0.04), transparent 34%),
    linear-gradient(22deg, transparent, rgba(201, 131, 130, 0.07) 62%, transparent);
  pointer-events: none;
}

.page-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    repeating-linear-gradient(0deg, rgba(20, 25, 39, 0.06) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 6px);
  mix-blend-mode: multiply;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  width: min(760px, 100%);
  margin: 0;
  font-size: 4.25rem;
}

h2 {
  margin: 0;
  font-size: 2.35rem;
}

h3 {
  margin: 0;
  font-size: 1.28rem;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid rgba(216, 180, 111, 0.74);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--rose);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.section-copy {
  width: min(460px, 100%);
  color: var(--ink-soft);
}

.hero,
.subsite-hero {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  isolation: isolate;
}

.hero {
  min-height: 88vh;
}

.hero::before,
.subsite-hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(90deg, rgba(20, 25, 39, 0.9), rgba(20, 25, 39, 0.58) 44%, rgba(20, 25, 39, 0.14)),
    var(--hero-bg-photo) center / cover no-repeat;
}

.hero::after,
.subsite-hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 42%;
  content: "";
  background: linear-gradient(0deg, var(--paper), rgba(247, 240, 230, 0));
}

.museum-hero__content {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.74fr);
  gap: 54px;
  align-items: center;
}

.hero__content,
.subsite-hero__content,
.subsite-main,
.stats-band,
.private-entry,
.timeline-section,
.gallery-section,
.workspace,
.diary-section,
.travel-section,
.anniversary-section,
.letter-section,
.bucket-section,
.daily-section,
.site-footer {
  width: var(--container);
  margin: 0 auto;
}

.hero__content {
  padding: 72px 0 130px;
}

.hero__story {
  animation: revealUp 620ms ease both;
}

.hero .eyebrow,
.subsite-hero .eyebrow {
  color: #ead0a0;
}

.hero h1,
.subsite-hero h1 {
  color: var(--cream);
}

.hero__copy,
.subsite-hero p:not(.eyebrow) {
  width: min(620px, 100%);
  margin: 20px 0 0;
  color: rgba(255, 247, 234, 0.82);
  font-size: 1.06rem;
}

.site-nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
  margin: 0 auto;
  padding: 22px 0;
  gap: 22px;
}

.brand,
.site-nav__links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  min-width: max-content;
  color: var(--cream);
  font-weight: 850;
}

.brand__mark {
  display: grid;
  min-width: 40px;
  height: 40px;
  place-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 247, 234, 0.34);
  border-radius: var(--radius);
  background: rgba(255, 247, 234, 0.12);
  color: #f7dfad;
  font-size: 0.82rem;
  backdrop-filter: blur(18px);
}

.site-nav__links {
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 5px;
  border: 1px solid rgba(255, 247, 234, 0.16);
  border-radius: var(--radius);
  background: rgba(20, 25, 39, 0.26);
  color: rgba(255, 247, 234, 0.82);
  backdrop-filter: blur(18px);
}

.site-nav__links a {
  min-height: 36px;
  padding: 8px 11px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 760;
}

.site-nav__links a:hover,
.site-nav__links a.is-active {
  background: rgba(255, 247, 234, 0.13);
}

.site-nav__links a.is-active {
  color: var(--cream);
  box-shadow: inset 0 -2px 0 rgba(216, 180, 111, 0.72);
}

.hero__actions,
.form-actions,
.archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__actions {
  margin-top: 34px;
}

.home-overview {
  padding: 86px 0;
}

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

.module-card {
  position: relative;
  display: grid;
  min-height: 260px;
  align-content: space-between;
  gap: 18px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(216, 180, 111, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 250, 243, 0.9), rgba(234, 208, 204, 0.42)),
    var(--card-photo, var(--section-bg-photo)) center / cover no-repeat;
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.module-card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.18), rgba(255, 250, 243, 0.9)),
    rgba(255, 250, 243, 0.32);
  content: "";
}

.module-card > * {
  position: relative;
  z-index: 1;
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 131, 130, 0.34);
  box-shadow: var(--shadow);
}

.module-card__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(216, 180, 111, 0.32);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.76);
  color: var(--rose);
}

.module-card__icon svg {
  width: 18px;
  height: 18px;
}

.module-card h3 {
  margin: 12px 0 8px;
  font-size: 1.45rem;
}

.module-card p {
  color: var(--ink-soft);
  line-height: 1.72;
}

.module-card .button {
  width: fit-content;
}

body.is-viewer .edit-only,
body.is-editor .viewer-only {
  display: none !important;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 840;
  line-height: 1.2;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

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

.button svg,
.icon-button svg,
.mobile-dock svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button--primary {
  background: linear-gradient(135deg, #d8b46f, #c98382);
  color: #211a17;
  box-shadow: 0 18px 42px rgba(201, 131, 130, 0.28);
}

.button--ghost {
  border-color: rgba(255, 247, 234, 0.34);
  background: rgba(255, 247, 234, 0.12);
  color: var(--cream);
  backdrop-filter: blur(18px);
}

.button--quiet {
  border-color: var(--line);
  background: rgba(255, 250, 243, 0.72);
  color: var(--night);
}

.button--dark {
  background: var(--night);
  color: var(--cream);
}

.button--danger {
  border-color: rgba(158, 70, 70, 0.24);
  background: #9e4646;
  color: var(--cream);
  box-shadow: 0 18px 38px rgba(158, 70, 70, 0.2);
}

.access-note {
  width: fit-content;
  max-width: min(560px, 100%);
  margin: 16px 0 0;
  padding: 9px 12px;
  border: 1px solid rgba(255, 247, 234, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 247, 234, 0.11);
  color: rgba(255, 247, 234, 0.76);
  font-size: 0.9rem;
  backdrop-filter: blur(14px);
}

.hero-collage {
  position: relative;
  min-height: 580px;
  animation: revealUp 740ms 100ms ease both;
}

.collage-card {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 247, 234, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 247, 234, 0.12);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.collage-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-card--large {
  inset: 20px 70px 86px 0;
}

.collage-card--small {
  right: 0;
  bottom: 24px;
  width: 43%;
  aspect-ratio: 4 / 5;
}

.collage-card--note {
  top: 0;
  right: 12px;
  display: grid;
  width: 190px;
  min-height: 154px;
  padding: 20px;
  align-content: center;
  background: rgba(255, 250, 243, 0.84);
  color: var(--night);
}

.collage-card--note span,
.collage-card--note em {
  color: var(--ink-soft);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 820;
}

.collage-card--note strong {
  margin: 6px 0;
  color: var(--night);
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
}

.collage-card figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(255, 247, 234, 0.18);
  border-radius: var(--radius);
  background: rgba(20, 25, 39, 0.46);
  color: var(--cream);
  backdrop-filter: blur(14px);
}

.collage-card figcaption span {
  color: #ead0a0;
  font-size: 0.78rem;
  font-weight: 850;
}

.collage-card figcaption strong {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 500;
}

.stats-band {
  position: relative;
  z-index: 4;
  margin-top: -62px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 250, 243, 0.72);
  border-radius: var(--radius);
  background: var(--paper-glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.stat {
  min-height: 118px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat__label {
  display: block;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 760;
}

.stat strong {
  display: block;
  color: var(--night);
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1.1;
}

.private-entry,
.timeline-section,
.gallery-section,
.workspace,
.diary-section,
.travel-section,
.anniversary-section,
.letter-section,
.bucket-section,
.daily-section {
  position: relative;
  isolation: isolate;
  padding: 74px 0;
}

.timeline-section::before,
.gallery-section::before,
.workspace::before,
.diary-section::before,
.travel-section::before,
.anniversary-section::before,
.letter-section::before,
.bucket-section::before,
.daily-section::before {
  position: absolute;
  inset: 14px 50%;
  z-index: -1;
  width: 100vw;
  margin-left: -50vw;
  content: "";
  border-block: 1px solid rgba(255, 250, 243, 0.56);
  background:
    linear-gradient(90deg, rgba(247, 240, 230, 0.95), rgba(255, 250, 243, 0.76) 46%, rgba(247, 240, 230, 0.94)),
    var(--section-bg-photo) center / cover no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 250, 243, 0.48);
}

.timeline-section {
  --section-bg-photo: url("photo/trips/trip-02/trip-02-010.jpg?v=20260612-photo-bg");
}

.gallery-section {
  --section-bg-photo: url("photo/trips/trip-15/trip-15-035.jpg?v=20260612-photo-bg");
}

.workspace {
  --section-bg-photo: url("photo/trips/trip-03/trip-03-010.jpg?v=20260612-photo-bg");
}

.diary-section {
  --section-bg-photo: url("photo/trips/trip-04/trip-04-021.jpg?v=20260612-photo-bg");
}

.travel-section {
  --section-bg-photo: url("photo/trips/trip-11/trip-11-010.jpg?v=20260612-photo-bg");
}

.anniversary-section {
  --section-bg-photo: url("photo/trips/trip-05/trip-05-010.jpg?v=20260612-photo-bg");
}

.letter-section {
  --section-bg-photo: url("photo/trips/trip-07/trip-07-004.jpg?v=20260612-photo-bg");
}

.bucket-section {
  --section-bg-photo: url("photo/trips/trip-12/trip-12-014.jpg?v=20260612-photo-bg");
}

.daily-section {
  --section-bg-photo: url("photo/trips/trip-06/trip-06-001.jpg?v=20260612-photo-bg");
}

.private-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 22px;
  align-items: end;
  margin-top: 32px;
  padding: 28px;
  border: 1px solid rgba(216, 180, 111, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.82), rgba(234, 208, 204, 0.38)),
    url("photo/trips/trip-05/trip-05-003.jpg?v=20260612-photo-bg") center / cover no-repeat;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.private-entry__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.section-head,
.workspace__intro {
  margin-bottom: 26px;
}

.section-head--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-head__side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.section-open {
  min-width: max-content;
}

.section-tools {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 6px;
  border: 1px solid rgba(24, 26, 34, 0.1);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.68);
  box-shadow: 0 12px 28px rgba(23, 26, 34, 0.07);
  backdrop-filter: blur(16px);
}

.section-tools button {
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 840;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.section-tools button:hover {
  transform: translateY(-1px);
  background: rgba(216, 180, 111, 0.18);
  color: var(--night);
}

.timeline-list {
  display: grid;
  gap: 28px;
}

.timeline-month {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px;
}

.timeline-month__label {
  position: sticky;
  top: 18px;
  align-self: start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.72);
  color: var(--violet-gray);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 860;
}

.timeline-month__cards,
.section-grid {
  display: grid;
  gap: 16px;
}

.timeline-card,
.memory-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 176px 40px;
  gap: 18px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.84);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

body.is-viewer .memory-card {
  grid-template-columns: 112px minmax(0, 1fr) 176px;
}

.timeline-card:hover,
.memory-card:hover,
.trip-card:hover,
.featured-photo:hover,
.letter-card:hover,
.bucket-card:hover {
  transform: translateY(-3px);
  border-color: rgba(216, 180, 111, 0.42);
  box-shadow: var(--shadow);
}

.timeline-card__stamp,
.memory-card__date {
  display: grid;
  min-height: 124px;
  place-items: center;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(20, 25, 39, 0.92), rgba(32, 40, 59, 0.92)),
    var(--night);
  color: var(--cream);
  text-align: center;
}

.timeline-card__stamp strong,
.memory-card__date strong {
  display: block;
  color: #ead0a0;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1;
}

.timeline-card__stamp span,
.memory-card__date span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 247, 234, 0.72);
  font-size: 0.78rem;
}

.timeline-card__body,
.memory-card > div:nth-child(2) {
  align-self: center;
}

.timeline-card p,
.memory-card p {
  margin-top: 8px;
  color: var(--ink-soft);
}

.timeline-card__media,
.memory-thumb {
  display: grid;
  min-height: 124px;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(116, 135, 120, 0.9), rgba(125, 119, 138, 0.82)),
    var(--sage);
  color: var(--cream);
  font-weight: 860;
}

.timeline-card__media img,
.memory-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.timeline-card:hover .timeline-card__media img,
.memory-card:hover .memory-thumb img {
  transform: scale(1.035);
}

.memory-thumb {
  width: 176px;
}

.memory-thumb--food {
  background: linear-gradient(135deg, rgba(201, 131, 130, 0.9), rgba(216, 180, 111, 0.78));
}

.memory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(20, 25, 39, 0.08);
  border-radius: 999px;
  background: rgba(116, 135, 120, 0.12);
  color: var(--night);
  font-size: 0.8rem;
  font-weight: 840;
}

.pill--author {
  border-color: rgba(216, 180, 111, 0.28);
  background: rgba(216, 180, 111, 0.16);
  color: var(--night);
}

.pill--author-lover {
  border-color: rgba(201, 131, 130, 0.28);
  background: rgba(234, 208, 204, 0.42);
}

.pill--author-me {
  border-color: rgba(125, 119, 138, 0.26);
  background: rgba(125, 119, 138, 0.14);
}

.attachment-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.attachment-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(20, 25, 39, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.72);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 820;
}

.attachment-chip:hover {
  border-color: rgba(216, 180, 111, 0.4);
  color: var(--night);
}

.attachment-chip svg {
  width: 16px;
  height: 16px;
}

.attachment-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-chip em {
  color: var(--ink-muted);
  font-size: 0.74rem;
  font-style: normal;
}

.attachment-chip small {
  grid-column: 2 / -1;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 0.76rem;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-chip--pdf {
  background: rgba(234, 208, 204, 0.4);
}

.attachment-chip--text {
  background: rgba(116, 135, 120, 0.12);
}

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

.album-help-grid span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(20, 25, 39, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.7);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 760;
}

.album-help-grid strong {
  color: var(--night);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
}

.featured-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 112px;
  gap: 14px;
}

.featured-photo {
  position: relative;
  grid-column: span 2;
  grid-row: span 3;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--night);
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.featured-photo--wide {
  grid-column: span 3;
  grid-row: span 4;
}

.featured-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.featured-photo:hover img {
  transform: scale(1.04);
}

.featured-photo figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(255, 247, 234, 0.18);
  border-radius: var(--radius);
  background: rgba(20, 25, 39, 0.58);
  color: var(--cream);
  backdrop-filter: blur(14px);
}

.featured-photo figcaption span {
  color: #ead0a0;
  font-size: 0.78rem;
  font-weight: 820;
}

.featured-photo figcaption strong {
  font-weight: 720;
}

.workspace__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(310px, 0.68fr);
  gap: 22px;
  align-items: start;
}

.memory-form,
.settings-panel,
.photo-category,
.anniversary-card,
.letter-card,
.bucket-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.memory-form,
.settings-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(23, 26, 34, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink);
  outline: 0;
}

input,
select {
  height: 46px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(216, 180, 111, 0.78);
  box-shadow: 0 0 0 4px rgba(216, 180, 111, 0.16);
}

.prompt-box {
  padding: 18px;
  border: 1px solid rgba(216, 180, 111, 0.42);
  border-radius: var(--radius);
  background: rgba(255, 247, 234, 0.82);
}

.prompt-box span {
  display: block;
  color: var(--rose);
  font-size: 0.82rem;
  font-weight: 850;
}

.prompt-box p {
  margin-top: 8px;
  color: var(--ink);
  font-weight: 760;
}

.archive-actions .button {
  flex: 1 1 140px;
}

.anniversary-layout {
  display: grid;
  gap: 18px;
}

.milestone-section {
  padding: 72px 0;
}

.milestone-module {
  display: grid;
  gap: 22px;
}

.main-anniversary-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(216, 180, 111, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(20, 25, 39, 0.92), rgba(56, 54, 75, 0.82)),
    var(--hero-bg-photo) center / cover no-repeat;
  color: var(--cream);
  box-shadow: var(--shadow);
}

.main-anniversary-card h3 {
  color: var(--cream);
}

.main-anniversary-card strong {
  color: #ead0a0;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1;
}

.main-anniversary-card p:last-child {
  max-width: 660px;
  color: rgba(255, 247, 234, 0.78);
  line-height: 1.8;
}

.milestone-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 24px;
  padding: 24px;
  border: 1px solid rgba(216, 180, 111, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.92), rgba(234, 208, 204, 0.34)),
    var(--paper-glass);
  box-shadow: var(--shadow-soft);
}

.milestone-intro__body {
  display: grid;
  gap: 11px;
  color: var(--ink-soft);
  line-height: 1.88;
}

.milestone-timeline {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 24px;
}

.milestone-timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, rgba(216, 180, 111, 0.12), rgba(216, 180, 111, 0.82), rgba(216, 180, 111, 0.12));
}

.milestone-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(20, 25, 39, 0.09);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.94), rgba(255, 247, 234, 0.78)),
    var(--paper-glass);
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.milestone-card::before {
  position: absolute;
  top: 26px;
  left: -23px;
  width: 11px;
  height: 11px;
  border: 2px solid rgba(255, 250, 243, 0.94);
  border-radius: 999px;
  background: var(--rose);
  content: "";
  box-shadow: 0 0 0 5px rgba(201, 131, 130, 0.16);
}

.milestone-card:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 180, 111, 0.42);
  box-shadow: var(--shadow);
}

.milestone-card__head {
  display: grid;
  width: 100%;
  gap: 9px;
  padding: 20px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.milestone-card__date,
.milestone-card__badge,
.milestone-card__type,
.milestone-card__place {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 880;
}

.milestone-card__date {
  padding: 6px 11px;
  border: 1px solid rgba(216, 180, 111, 0.34);
  background: rgba(216, 180, 111, 0.14);
  color: var(--night);
}

.milestone-card__date.is-unconfirmed {
  border-color: rgba(125, 119, 138, 0.28);
  background: rgba(125, 119, 138, 0.12);
  color: var(--ink-soft);
}

.milestone-card__badge {
  padding: 4px 9px;
  background: rgba(116, 135, 120, 0.12);
  color: #314737;
}

.milestone-card__date.is-unconfirmed + .milestone-card__badge {
  background: rgba(234, 208, 204, 0.34);
  color: var(--rose);
}

.milestone-card__type {
  color: var(--rose);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.milestone-card__head h3 {
  font-size: 1.45rem;
}

.milestone-card__place {
  color: var(--ink-muted);
}

.milestone-card__head p {
  color: var(--ink-soft);
  line-height: 1.75;
}

.milestone-card__detail {
  display: grid;
  gap: 14px;
  padding: 0 20px 20px;
  color: var(--ink-soft);
  line-height: 1.85;
}

.milestone-card__related {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(216, 180, 111, 0.25);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.72);
}

.milestone-card__related span {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 760;
}

.anniversary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.anniversary-card {
  display: grid;
  grid-template-rows: auto 178px;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.anniversary-card__date {
  padding: 20px;
}

.anniversary-card span,
.anniversary-card__date span {
  color: var(--ink-soft);
}

.anniversary-card strong,
.anniversary-card__date strong {
  display: block;
  margin-top: 16px;
  color: var(--night);
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.05;
}

.anniversary-card__photo {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-top: 1px solid rgba(24, 26, 34, 0.1);
  background:
    linear-gradient(135deg, rgba(20, 25, 39, 0.72), rgba(116, 135, 120, 0.62)),
    var(--section-bg-photo) center / cover no-repeat;
  color: var(--cream);
}

.anniversary-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.letter-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.letter-card::before {
  position: absolute;
  inset: 14px;
  content: "";
  border: 1px solid rgba(216, 180, 111, 0.22);
  border-radius: var(--radius);
  pointer-events: none;
}

.letter-card__seal {
  display: grid;
  width: 100%;
  min-height: 112px;
  padding: 18px;
  border: 0;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(20, 25, 39, 0.94), rgba(32, 40, 59, 0.92)),
    var(--night);
  color: var(--cream);
  cursor: pointer;
  text-align: left;
}

.letter-card__seal span {
  align-self: end;
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.letter-card__seal em {
  color: #ead0a0;
  font-style: normal;
  font-size: 0.84rem;
}

.letter-card p {
  max-height: 0;
  overflow: hidden;
  color: var(--ink-soft);
  transition:
    max-height 260ms ease,
    margin-top 260ms ease;
}

.letter-card.is-open p {
  max-height: 220px;
  margin-top: 16px;
}

.bucket-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(216, 180, 111, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 250, 243, 0.94), rgba(255, 247, 234, 0.78)),
    rgba(255, 250, 243, 0.88);
}

.bucket-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition:
    filter 220ms ease,
    transform 220ms ease;
}

.bucket-card > div {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.bucket-card__status {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid rgba(201, 131, 130, 0.28);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.78);
  color: var(--rose);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 840;
}

.bucket-card__status svg {
  width: 15px;
  height: 15px;
}

.bucket-card.is-complete {
  border-color: rgba(116, 135, 120, 0.68);
  background:
    linear-gradient(145deg, rgba(235, 242, 232, 0.94), rgba(255, 250, 243, 0.8)),
    rgba(255, 250, 243, 0.88);
}

.bucket-card.is-complete::after {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid rgba(255, 250, 243, 0.74);
  border-radius: 999px;
  background: rgba(20, 25, 39, 0.72);
  color: var(--cream);
  content: "Completed";
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.bucket-card.is-complete .bucket-card__status {
  border-color: rgba(116, 135, 120, 0.48);
  background: rgba(116, 135, 120, 0.2);
  color: #314737;
}

.bucket-card.is-complete img {
  filter: saturate(0.72) brightness(0.9);
}

.bucket-card.is-complete h3 {
  color: rgba(23, 26, 34, 0.58);
  text-decoration: line-through;
  text-decoration-color: rgba(116, 135, 120, 0.58);
  text-decoration-thickness: 2px;
}

.bucket-card__stamp {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(216, 180, 111, 0.14);
  color: var(--night);
  font-size: 0.78rem;
  font-weight: 900;
}

.bucket-card.is-complete .bucket-card__stamp {
  background: rgba(116, 135, 120, 0.16);
  color: #314737;
}

.bucket-card span {
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-weight: 760;
}

.bucket-card p {
  color: var(--ink-soft);
}

.bucket-card__author {
  color: var(--rose);
  font-weight: 840;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.88);
  color: var(--rose);
  cursor: pointer;
}

.gallery,
.photo-category-grid {
  display: grid;
  gap: 16px;
}

.photo-category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.photo-category {
  padding: 18px;
}

.photo-category__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.photo-category__head span {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

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

.gallery-item {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--night);
  color: var(--cream);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item__fallback {
  display: grid;
  height: 100%;
  min-height: 220px;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(32, 40, 59, 0.82), rgba(116, 135, 120, 0.78)),
    url("photo/trips/trip-01/trip-01-020.jpg?v=20260612-photo-bg") center / cover no-repeat;
}

.gallery-item__fallback--food {
  background:
    linear-gradient(145deg, rgba(201, 131, 130, 0.82), rgba(216, 180, 111, 0.72)),
    url("photo/trips/trip-05/trip-05-010.jpg?v=20260612-photo-bg") center / cover no-repeat;
}

.gallery-item__caption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(20, 25, 39, 0.64);
  backdrop-filter: blur(12px);
}

.gallery-item__caption strong,
.gallery-item__caption span {
  display: block;
}

.gallery-item__caption span {
  color: rgba(255, 247, 234, 0.76);
  font-size: 0.84rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 92px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  gap: 18px;
}

.empty-state {
  padding: 36px;
  border-style: dashed;
  color: var(--ink-soft);
}

.section-page {
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.82), rgba(247, 240, 230, 0.92) 420px),
    var(--site-bg-photo) center top / cover no-repeat fixed,
    var(--paper);
}

.subsite-hero {
  min-height: 430px;
}

.subsite-hero::before {
  background:
    linear-gradient(90deg, rgba(20, 25, 39, 0.9), rgba(20, 25, 39, 0.46)),
    var(--hero-bg-photo) center / cover no-repeat;
}

.shandong-hero::before {
  background:
    linear-gradient(90deg, rgba(20, 25, 39, 0.82), rgba(20, 25, 39, 0.3)),
    var(--hero-bg-photo) center / cover no-repeat;
}

.nanchong-hero::before {
  background:
    linear-gradient(90deg, rgba(20, 25, 39, 0.82), rgba(20, 25, 39, 0.3)),
    var(--hero-bg-photo) center / cover no-repeat;
}

.trip-hero::before {
  background:
    linear-gradient(90deg, rgba(20, 25, 39, 0.82), rgba(20, 25, 39, 0.3)),
    var(--trip-cover, var(--hero-bg-photo)) center / cover no-repeat;
}

.subsite-hero__content {
  padding: 72px 0 96px;
}

.subsite-hero h1 {
  font-size: 4rem;
}

.subsite-main {
  display: grid;
  gap: 34px;
  padding: 42px 0 70px;
}

.subsite-block {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 243, 0.56);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.9), rgba(247, 240, 230, 0.78)),
    var(--section-bg-photo) center / cover no-repeat;
  box-shadow: var(--shadow-soft);
}

.section-local-tools {
  padding: 18px;
  border: 1px solid rgba(216, 180, 111, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.86), rgba(234, 208, 204, 0.28)),
    var(--paper-glass);
  box-shadow: var(--shadow-soft);
}

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

.trip-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.86);
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.trip-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.trip-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.trip-card:hover .trip-card__media img {
  transform: scale(1.04);
}

.trip-card__body {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.trip-card__body strong {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.1;
}

.trip-card__date,
.trip-card__count,
.trip-card__body span:last-child {
  color: var(--ink-soft);
  font-weight: 760;
}

.travel-gallery {
  display: grid;
  gap: 34px;
}

.photo-wall-section {
  display: grid;
  gap: 22px;
}

.photo-wall-tabs {
  display: inline-flex;
  width: fit-content;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(216, 180, 111, 0.26);
  border-radius: 999px;
  background: rgba(20, 25, 39, 0.72);
  box-shadow: 0 18px 40px rgba(23, 26, 34, 0.14);
  backdrop-filter: blur(18px);
}

.photo-wall-tabs button {
  min-height: 38px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 247, 234, 0.76);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 860;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.photo-wall-tabs button:hover,
.photo-wall-tabs button.is-active {
  background: rgba(255, 250, 243, 0.92);
  color: var(--night);
}

.photo-wall-tabs button.is-active {
  box-shadow: 0 10px 24px rgba(255, 250, 243, 0.14);
}

.photo-wall-panel {
  display: grid;
  gap: 24px;
}

.section-head--compact {
  margin-top: 4px;
}

.all-photo-wall {
  display: grid;
  gap: 18px;
}

.all-photo-wall__summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(216, 180, 111, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.92), rgba(234, 208, 204, 0.44)),
    var(--paper-glass);
  box-shadow: var(--shadow-soft);
}

.all-photo-wall__summary h2 {
  margin-top: 4px;
}

.all-photo-wall__summary strong {
  flex: 0 0 auto;
  color: var(--rose);
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
}

.all-photo-wall__grid {
  padding: 20px;
  border: 1px solid rgba(24, 26, 34, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.74), rgba(255, 253, 248, 0.56)),
    var(--paper-glass);
  box-shadow: var(--shadow-soft);
}

.travel-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  padding: 28px;
  border: 1px solid rgba(216, 180, 111, 0.26);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.94), rgba(234, 208, 204, 0.38)),
    var(--paper-glass);
  box-shadow: var(--shadow-soft);
}

.travel-intro__head h3 {
  margin-top: 6px;
  font-size: 2.35rem;
}

.travel-intro__body {
  display: grid;
  gap: 12px;
  color: var(--ink-soft);
  line-height: 1.9;
}

.travel-album-section {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(24, 26, 34, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.9), rgba(234, 208, 204, 0.5) 52%, rgba(255, 250, 243, 0.8)),
    var(--album-bg, var(--section-bg-photo)) center / cover no-repeat;
  box-shadow: var(--shadow-soft);
}

.travel-album-section::before {
  position: absolute;
  top: 18px;
  right: -28px;
  width: 180px;
  height: 30px;
  content: "";
  opacity: 0.28;
  background:
    repeating-linear-gradient(90deg, var(--night) 0 12px, transparent 12px 20px),
    linear-gradient(var(--night), var(--night));
  transform: rotate(12deg);
}

.travel-album-section__head {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.travel-album-section__head h3 {
  margin-top: 4px;
  font-size: 2.3rem;
}

.travel-album-section__place {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 5px 10px;
  border: 1px solid rgba(216, 180, 111, 0.3);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.66);
  color: var(--rose);
  font-size: 0.82rem;
  font-weight: 880;
}

.travel-album-section__meta {
  display: grid;
  min-width: 220px;
  gap: 5px;
  padding: 15px;
  border: 1px solid rgba(216, 180, 111, 0.34);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.72);
  color: var(--ink-soft);
  box-shadow: 0 12px 30px rgba(23, 26, 34, 0.08);
}

.travel-album-section__meta strong {
  color: var(--night);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.travel-album-section__meta em {
  color: var(--rose);
  font-style: normal;
  font-weight: 840;
}

.travel-story {
  position: relative;
  display: grid;
  gap: 12px;
  max-width: 900px;
  padding: 18px 20px;
  border: 1px solid rgba(24, 26, 34, 0.09);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.86), rgba(255, 247, 234, 0.64)),
    rgba(255, 250, 243, 0.74);
  box-shadow: 0 12px 28px rgba(23, 26, 34, 0.08);
}

.travel-story__label {
  width: fit-content;
  color: var(--rose);
  font-size: 0.8rem;
  font-weight: 900;
}

.travel-story__body,
.travel-story__more {
  display: grid;
  gap: 10px;
  color: var(--ink-soft);
  line-height: 1.82;
}

.travel-story__toggle {
  width: fit-content;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(216, 180, 111, 0.34);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.78);
  color: var(--night);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 860;
}

.travel-album-section__photos {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 84px;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.photo-card {
  position: relative;
  grid-column: span 3;
  grid-row: span 2;
  overflow: hidden;
  padding: 8px 8px 34px;
  border: 1px solid rgba(255, 250, 243, 0.82);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: 0 14px 32px rgba(23, 26, 34, 0.13);
  transform: rotate(var(--tilt, 0deg));
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.photo-card:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: var(--shadow);
}

.photo-card__link {
  display: block;
  height: 100%;
  color: inherit;
}

.photo-card img {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius) - 2px);
  object-fit: cover;
}

.photo-card__fallback {
  display: grid;
  height: 100%;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border-radius: calc(var(--radius) - 2px);
  background:
    linear-gradient(145deg, rgba(32, 40, 59, 0.84), rgba(125, 119, 138, 0.72)),
    var(--section-bg-photo) center / cover no-repeat;
  color: var(--cream);
  text-align: center;
}

.photo-card__fallback strong {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.photo-card__fallback em {
  color: rgba(255, 247, 234, 0.78);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 780;
}

.photo-card--missing {
  border-color: rgba(216, 180, 111, 0.28);
}

.photo-card span {
  position: absolute;
  right: 10px;
  bottom: 9px;
  left: 10px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-card--1,
.photo-card--6 {
  grid-column: span 4;
  grid-row: span 3;
}

.photo-card--3 {
  grid-column: span 2;
}

.photo-card--4 {
  grid-column: span 3;
  grid-row: span 3;
}

.photo-card--5 {
  grid-column: span 4;
}

.album-photo-manager {
  display: grid;
  gap: 14px;
}

body:not(.is-editor) .album-manager-controls,
body:not(.is-editor) .bulk-photo-toolbar,
body:not(.is-editor) .photo-card__delete,
body:not(.is-editor) .photo-card__check {
  display: none !important;
}

.album-manager-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(216, 180, 111, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.84), rgba(234, 208, 204, 0.5)),
    rgba(255, 250, 243, 0.72);
  box-shadow: 0 12px 30px rgba(23, 26, 34, 0.08);
}

.album-manager-controls > div:first-child {
  display: grid;
  gap: 2px;
}

.album-manager-controls strong {
  color: var(--night);
  font-size: 0.92rem;
}

.album-manager-controls span {
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.album-manager-controls__actions,
.bulk-photo-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.album-manager-controls button,
.bulk-photo-toolbar button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(216, 180, 111, 0.3);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.82);
  color: var(--night);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 860;
  box-shadow: 0 10px 22px rgba(23, 26, 34, 0.08);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.album-manager-controls button:hover,
.bulk-photo-toolbar button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(201, 131, 130, 0.48);
  background: rgba(255, 247, 234, 0.96);
}

.album-manager-controls button svg,
.bulk-photo-toolbar button svg,
.photo-card__delete svg,
.photo-card__check svg,
.album-upload-dropzone svg {
  width: 16px;
  height: 16px;
}

.bulk-photo-toolbar {
  position: sticky;
  top: 12px;
  z-index: 4;
  align-items: center;
  justify-content: flex-start;
  padding: 10px;
  border: 1px solid rgba(201, 131, 130, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.9);
  box-shadow: 0 18px 42px rgba(23, 26, 34, 0.14);
  backdrop-filter: blur(16px);
}

.bulk-photo-toolbar strong {
  margin-right: auto;
  color: var(--rose);
  font-size: 0.88rem;
}

.bulk-photo-toolbar button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.selectable-photo-card {
  isolation: isolate;
}

.selectable-photo-card.is-select-mode {
  cursor: pointer;
}

.selectable-photo-card.is-selected {
  border-color: rgba(201, 131, 130, 0.74);
  box-shadow: 0 18px 38px rgba(201, 131, 130, 0.22);
  transform: rotate(0deg) translateY(-2px) scale(0.985);
}

.selectable-photo-card.is-selected::after {
  position: absolute;
  inset: 8px 8px 34px;
  z-index: 1;
  border-radius: calc(var(--radius) - 2px);
  background: rgba(125, 81, 96, 0.22);
  content: "";
  pointer-events: none;
}

.photo-card__check {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: none;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 250, 243, 0.86);
  border-radius: 999px;
  background: rgba(20, 25, 39, 0.52);
  color: var(--cream);
  box-shadow: 0 12px 26px rgba(20, 25, 39, 0.22);
  backdrop-filter: blur(10px);
}

.is-select-mode .photo-card__check,
.selectable-photo-card.is-select-mode .photo-card__check {
  display: grid;
}

.photo-card__delete {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 250, 243, 0.78);
  border-radius: 999px;
  background: rgba(158, 70, 70, 0.76);
  color: var(--cream);
  cursor: pointer;
  opacity: 0;
  box-shadow: 0 12px 26px rgba(20, 25, 39, 0.2);
  backdrop-filter: blur(12px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

body.is-editor .photo-card:hover .photo-card__delete,
body.is-editor .photo-card:focus-within .photo-card__delete,
body.is-editor .photo-card__delete:focus {
  opacity: 1;
}

.photo-card__delete:hover {
  transform: translateY(-1px) scale(1.03);
  background: #9e4646;
}

.album-empty {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed rgba(216, 180, 111, 0.36);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.74);
  color: var(--ink-muted);
  font-weight: 820;
}

.album-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(20, 25, 39, 0.58), rgba(125, 119, 138, 0.28)),
    rgba(20, 25, 39, 0.34);
  backdrop-filter: blur(12px);
}

.album-modal__surface {
  position: relative;
  display: grid;
  width: min(520px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(255, 250, 243, 0.76);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 250, 243, 0.96), rgba(247, 240, 230, 0.92)),
    var(--paper-strong);
  box-shadow: 0 30px 90px rgba(20, 25, 39, 0.34);
  animation: revealUp 240ms ease both;
}

.album-modal__surface--wide {
  width: min(820px, 100%);
}

.album-modal__surface h2 {
  padding-right: 36px;
  font-size: 1.65rem;
}

.album-picker {
  display: grid;
  gap: 7px;
}

.album-picker select {
  width: 100%;
}

.album-upload-dropzone {
  display: grid;
  min-height: 168px;
  place-items: center;
  gap: 8px;
  padding: 24px;
  border: 1.5px dashed rgba(201, 131, 130, 0.44);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.78), rgba(234, 208, 204, 0.34));
  color: var(--ink-soft);
  cursor: pointer;
  text-align: center;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.album-upload-dropzone.is-dragging {
  transform: translateY(-2px);
  border-color: rgba(201, 131, 130, 0.78);
  background: rgba(255, 247, 234, 0.94);
}

.album-upload-dropzone strong {
  color: var(--night);
}

.album-upload-dropzone span {
  color: var(--ink-muted);
  font-size: 0.85rem;
  font-weight: 760;
}

.album-upload-dropzone input {
  display: none;
}

.upload-preview-list {
  display: grid;
  gap: 10px;
}

.upload-preview-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(24, 26, 34, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.72);
}

.upload-preview-card img,
.upload-preview-card__fallback {
  width: 92px;
  height: 92px;
  border-radius: calc(var(--radius) - 4px);
  object-fit: cover;
}

.upload-preview-card__fallback {
  display: grid;
  place-items: center;
  background: rgba(20, 25, 39, 0.76);
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 820;
}

.upload-preview-card > div {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.upload-preview-card strong,
.upload-preview-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delete-preview-grid,
.restore-photo-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.delete-preview-grid figure {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.delete-preview-grid img,
.delete-preview-grid__fallback,
.restore-photo-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: calc(var(--radius) - 4px);
  object-fit: cover;
  background: rgba(20, 25, 39, 0.72);
}

.delete-preview-grid figcaption,
.restore-photo-card span {
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delete-preview-grid__fallback,
.delete-preview-more {
  display: grid;
  place-items: center;
  color: var(--cream);
  font-weight: 860;
}

.delete-preview-more {
  min-height: 88px;
  border-radius: calc(var(--radius) - 4px);
  background: rgba(20, 25, 39, 0.72);
}

.restore-photo-card {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(216, 180, 111, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.72);
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.restore-photo-card.is-selected {
  border-color: rgba(201, 131, 130, 0.66);
  background: rgba(234, 208, 204, 0.38);
  box-shadow: 0 14px 32px rgba(201, 131, 130, 0.18);
}

.album-toast-region {
  position: fixed;
  right: 22px;
  bottom: 86px;
  z-index: 80;
  pointer-events: none;
}

.album-toast {
  max-width: min(360px, calc(100vw - 44px));
  padding: 11px 14px;
  border: 1px solid rgba(255, 250, 243, 0.74);
  border-radius: 999px;
  background: rgba(32, 40, 59, 0.86);
  color: var(--cream);
  font-size: 0.84rem;
  font-weight: 840;
  box-shadow: 0 18px 48px rgba(20, 25, 39, 0.26);
  backdrop-filter: blur(14px);
  animation: revealUp 200ms ease both;
}

.album-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.9), rgba(234, 208, 204, 0.58)),
    var(--trip-cover, var(--section-bg-photo)) center / cover no-repeat;
  box-shadow: var(--shadow-soft);
}

.album-overview .stat {
  border-bottom: 0;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.album-item {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--rose-soft);
  cursor: zoom-in;
}

.album-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.album-item:hover img {
  transform: scale(1.035);
}

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

.video-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.86);
}

.video-item video {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--night);
  object-fit: cover;
}

.video-item span {
  color: var(--ink-soft);
  font-weight: 800;
}

.lightbox {
  width: min(94vw, 1100px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(12, 14, 20, 0.78);
}

.lightbox img {
  width: 100%;
  max-height: 92vh;
  border-radius: var(--radius);
  object-fit: contain;
  background: rgba(0, 0, 0, 0.34);
}

.lightbox__close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2;
}

.mobile-dock {
  position: fixed;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 20;
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 250, 243, 0.64);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.86);
  box-shadow: 0 18px 48px rgba(23, 26, 34, 0.18);
  backdrop-filter: blur(18px);
}

.mobile-dock a {
  display: grid;
  min-height: 48px;
  place-items: center;
  gap: 2px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 820;
}

.mobile-dock a:hover {
  color: var(--night);
}

.private-entry-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 31;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 250, 243, 0.74);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.74);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 840;
  box-shadow: 0 16px 42px rgba(23, 26, 34, 0.12);
  backdrop-filter: blur(18px);
  transition:
    transform 180ms ease,
    color 180ms ease,
    background 180ms ease;
}

.private-entry-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 250, 243, 0.92);
  color: var(--night);
}

body.is-editor .private-entry-button {
  display: none;
}

.private-entry-button svg,
.edit-toolbar svg,
.soft-upload svg {
  width: 17px;
  height: 17px;
}

.passcode-modal {
  width: min(430px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
}

.passcode-modal::backdrop {
  background:
    linear-gradient(135deg, rgba(20, 25, 39, 0.58), rgba(125, 119, 138, 0.28)),
    rgba(20, 25, 39, 0.34);
  backdrop-filter: blur(10px);
}

.passcode-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid rgba(255, 250, 243, 0.78);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 250, 243, 0.94), rgba(234, 208, 204, 0.58)),
    var(--paper-strong);
  box-shadow: 0 28px 80px rgba(20, 25, 39, 0.28);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.form-error {
  min-height: 22px;
  color: #9e4646;
  font-size: 0.86rem;
  font-weight: 820;
}

.microcopy {
  color: var(--ink-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.edit-toolbar {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 31;
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 250, 243, 0.74);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.82);
  box-shadow: 0 18px 48px rgba(23, 26, 34, 0.18);
  backdrop-filter: blur(18px);
}

.edit-toolbar button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 840;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.edit-toolbar button:hover {
  transform: translateY(-1px);
  background: rgba(216, 180, 111, 0.18);
  color: var(--night);
}

.editor-panel {
  position: fixed;
  inset: 0;
  z-index: 32;
  display: grid;
  align-items: end;
  justify-items: end;
  padding: 20px;
  background: rgba(20, 25, 39, 0.18);
  backdrop-filter: blur(8px);
}

.editor-panel[hidden] {
  display: none;
}

.editor-panel__surface {
  position: relative;
  width: min(430px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 250, 243, 0.74);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 250, 243, 0.96), rgba(247, 240, 230, 0.9)),
    var(--paper-strong);
  box-shadow: 0 28px 80px rgba(20, 25, 39, 0.26);
  animation: revealUp 260ms ease both;
}

.editor-panel-card {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.editor-panel-card code {
  padding: 1px 5px;
  border: 1px solid rgba(24, 26, 34, 0.08);
  border-radius: 6px;
  background: rgba(255, 250, 243, 0.78);
  color: var(--night);
  font-size: 0.9em;
}

.editor-panel-card label {
  display: grid;
  gap: 7px;
}

.editor-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.soft-upload {
  display: grid;
  min-height: 120px;
  place-items: center;
  gap: 8px;
  padding: 18px;
  border: 1px dashed rgba(20, 25, 39, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.72);
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 840;
  text-align: center;
}

.soft-upload input {
  display: none;
}

.reveal-item {
  animation: revealUp 580ms ease both;
  animation-delay: var(--stagger, 0ms);
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 980px) {
  h1 {
    font-size: 3.1rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .museum-hero__content,
  .private-entry,
  .workspace__grid {
    grid-template-columns: 1fr;
  }

  .hero-collage {
    min-height: 460px;
  }

  .stats-grid,
  .anniversary-grid,
  .trip-grid,
  .home-overview__grid,
  .album-grid,
  .video-grid,
  .letter-grid,
  .bucket-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .timeline-month {
    grid-template-columns: 1fr;
  }

  .timeline-month__label {
    position: static;
    width: fit-content;
  }

  .travel-intro {
    grid-template-columns: 1fr;
  }

  .section-head__side {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .travel-album-section__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .travel-album-section__meta {
    width: 100%;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100% - 28px, 1160px);
  }

  body {
    padding-bottom: 78px;
  }

  .hero {
    min-height: auto;
  }

  .site-nav {
    align-items: center;
    flex-direction: row;
  }

  .site-nav__links {
    display: none;
  }

  .hero__content {
    padding: 38px 0 82px;
  }

  .museum-hero__content {
    gap: 28px;
  }

  h1 {
    font-size: 2.48rem;
  }

  h2 {
    font-size: 1.62rem;
  }

  .hero__copy {
    font-size: 1rem;
  }

  .hero-collage {
    min-height: 320px;
  }

  .collage-card--large {
    inset: 0 30px 60px 0;
  }

  .collage-card--small {
    width: 46%;
  }

  .collage-card--note {
    width: 148px;
    min-height: 118px;
  }

  .stats-grid,
  .field-row,
  .section-grid,
  .gallery,
  .home-overview__grid,
  .album-help-grid,
  .anniversary-grid,
  .trip-grid,
  .album-overview,
  .album-grid,
  .video-grid,
  .letter-grid,
  .bucket-grid,
  .photo-category-grid,
  .private-entry__form {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .private-entry,
  .timeline-section,
  .gallery-section,
  .workspace,
  .diary-section,
  .travel-section,
  .anniversary-section,
  .letter-section,
  .bucket-section,
  .daily-section {
    padding: 52px 0;
  }

  .private-entry {
    padding: 20px;
  }

  .section-head--split {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head__side,
  .section-open {
    width: 100%;
  }

  .section-tools {
    width: 100%;
    border-radius: var(--radius);
  }

  .section-tools button {
    flex: 1 1 68px;
  }

  .timeline-card,
  .memory-card,
  body.is-viewer .memory-card {
    grid-template-columns: 1fr;
  }

  .timeline-card__stamp,
  .memory-card__date {
    min-height: 88px;
  }

  .timeline-card__media,
  .memory-thumb {
    width: 100%;
    min-height: 210px;
  }

  .featured-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .photo-wall-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .photo-wall-tabs button {
    flex: 1 0 118px;
  }

  .all-photo-wall__summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .all-photo-wall__summary strong {
    font-size: 1.7rem;
  }

  .featured-photo,
  .featured-photo--wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 320px;
  }

  .travel-gallery {
    gap: 24px;
  }

  .travel-album-section {
    padding: 18px;
  }

  .travel-album-section__head h3 {
    font-size: 1.82rem;
  }

  .travel-intro {
    padding: 20px;
  }

  .travel-intro__head h3 {
    font-size: 1.85rem;
  }

  .travel-album-section__photos {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 14px;
  }

  .photo-card,
  .photo-card--1,
  .photo-card--3,
  .photo-card--4,
  .photo-card--5,
  .photo-card--6 {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 5;
    min-height: 0;
    transform: none;
  }

  .album-manager-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .album-manager-controls__actions {
    width: 100%;
  }

  .album-manager-controls button {
    flex: 1 1 110px;
    justify-content: center;
  }

  .bulk-photo-toolbar {
    position: fixed;
    right: 14px;
    bottom: 92px;
    left: 14px;
    top: auto;
    z-index: 33;
    border-radius: var(--radius);
  }

  .bulk-photo-toolbar strong {
    width: 100%;
    margin-right: 0;
  }

  .bulk-photo-toolbar button {
    flex: 1 1 92px;
    justify-content: center;
  }

  body.is-editor .photo-card__delete {
    opacity: 1;
  }

  .album-modal {
    align-items: end;
    padding: 14px 14px 92px;
  }

  .album-modal__surface {
    width: 100%;
    max-height: min(760px, calc(100vh - 116px));
    padding: 22px;
  }

  .upload-preview-card {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .upload-preview-card img,
  .upload-preview-card__fallback {
    width: 78px;
    height: 78px;
  }

  .delete-preview-grid,
  .restore-photo-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .album-toast-region {
    right: 14px;
    bottom: 162px;
    left: 14px;
  }

  .album-toast {
    max-width: 100%;
    border-radius: var(--radius);
  }

  .subsite-hero h1 {
    font-size: 2.5rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .mobile-dock {
    display: grid;
  }

  .private-entry-button {
    right: 14px;
    bottom: 92px;
  }

  .edit-toolbar {
    right: 14px;
    bottom: 92px;
    left: 14px;
    overflow-x: auto;
    justify-content: space-between;
    border-radius: var(--radius);
  }

  .edit-toolbar button {
    flex: 1 0 58px;
    justify-content: center;
    padding: 8px 7px;
  }

  .editor-panel {
    align-items: end;
    padding: 14px 14px 92px;
  }

  .editor-panel__surface,
  .passcode-card {
    padding: 24px;
  }
}
