.gallery-chapter {
  --gallery-ink: #182433;
  --gallery-muted: #665a4e;
  --gallery-brass: #866039;
  --gallery-line: #ded3c5;
  color: var(--gallery-ink);
  padding-block: clamp(62px, 9vw, 142px) clamp(52px, 7vw, 112px);
}

.gallery-heading {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, .8fr);
  align-items: end;
  gap: clamp(18px, 5vw, 72px);
  margin-bottom: clamp(25px, 4vw, 56px);
}

.gallery-kicker, .gallery-controls, .gallery-card-number, .gallery-card small {
  font: 500 11px/1.45 var(--site-mono);
  letter-spacing: .1em;
}

.gallery-kicker { color: var(--gallery-brass); margin: 0 0 18px; }

.gallery-chapter .gallery-heading h2 {
  color: var(--gallery-ink);
  font: 500 clamp(50px, 8.2vw, 124px)/.89 var(--serif);
  letter-spacing: -.055em;
  margin: 0;
}

.gallery-heading h2 em { color: var(--gallery-brass); font-weight: inherit; }

html[lang="zh-CN"] .gallery-chapter .gallery-heading h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 90px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.gallery-intro {
  max-width: 30ch;
  margin: 0 0 4px;
  color: var(--gallery-muted);
  font-size: clamp(15px, 1.4vw, 18px);
}

.gallery-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-block: 12px;
  border-top: 1px solid var(--gallery-line);
  color: var(--gallery-muted);
}

.gallery-buttons { display: flex; align-items: center; gap: 7px; }
.gallery-count { white-space: nowrap; margin-right: 6px; font-variant-numeric: tabular-nums; }

.gallery-buttons button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #ae9e8c;
  border-radius: 50%;
  background: transparent;
  color: var(--gallery-ink);
  font: 21px/1 var(--sans);
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.gallery-buttons button:not([aria-disabled="true"]):is(:hover,:focus-visible) {
  background: var(--gallery-ink);
  border-color: var(--gallery-ink);
  color: #faf7f2;
}

.gallery-buttons button[aria-disabled="true"] { opacity: .53; cursor: default; }

.gallery-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.gallery-track {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 68%;
  gap: clamp(14px, 2.2vw, 34px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: #b2926f #eee6da;
  padding-block: 0 15px;
}

.gallery-track:focus-visible { outline-offset: 5px; }

.gallery-card {
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--gallery-line);
  background: #f6f0e6;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery-card:nth-child(2) img { object-position: center 57%; }

.gallery-card figcaption {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 12px;
  align-items: baseline;
  padding: clamp(12px, 2vw, 24px);
}

.gallery-card-number { color: var(--gallery-brass); }
.gallery-card strong { display: block; font: 500 clamp(24px,3.6vw,44px)/1.02 var(--serif); }
.gallery-card small { display: block; color: var(--gallery-muted); margin-top: 6px; font-size: 9px; }

.gallery-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 25px;
  margin-top: 13px;
  color: var(--gallery-muted);
  font-size: 12px;
}

.gallery-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  color: var(--gallery-ink);
  font-weight: 600;
  text-underline-offset: 4px;
}

.gallery-link:hover { text-decoration: underline; }
.gallery-link span:last-child { color: var(--gallery-brass); font-size: 18px; }

@media (max-width: 700px) {
  .gallery-heading { grid-template-columns: 1fr; }
  .gallery-intro { max-width: 45ch; }
  .gallery-track { grid-auto-columns: 88%; }
}

@media (max-width: 360px) {
  .gallery-hint { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-buttons button { transition: none; }
}

.reviews-chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px clamp(26px, 5vw, 74px);
  padding-block: clamp(48px, 7vw, 100px);
  border-top: 1px solid #ded3c5;
}

.reviews-chapter .gallery-kicker { color: #866039; }
.reviews-chapter h2 { margin: 0; font: 500 clamp(42px, 5vw, 76px)/.95 var(--serif); letter-spacing: -.045em; }
.reviews-sources { border-top: 1px solid #ded3c5; }
.reviews-sources a {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) minmax(0, 1.65fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #ded3c5;
}
.reviews-sources a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.reviews-sources a span:last-child { color: #866039; }

@media (max-width: 700px) {
  .reviews-chapter { grid-template-columns: 1fr; }
}
