.page-hero.memories-hero {
  min-height: 0;
  padding-block: clamp(36px, 4.2vw, 70px);
}
.memories-hero .page-hero-media img { object-position: 54% 46%; }
.wall-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.wall-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.wall-filters button {
  border: 1px solid var(--line, #cddbd6);
  background: var(--white, white);
  color: var(--ink-900);
  border-radius: 30px;
  padding: 7px 15px;
  min-height: 40px;
  font: inherit;
  font-size: .91rem;
  font-weight: 720;
  cursor: pointer;
}
.wall-filters button:hover { border-color: var(--signal-strong); color: var(--signal-strong); }
.wall-filters button[aria-pressed="true"] {
  background: var(--ink-900);
  color: white;
  border-color: var(--ink-900);
}
.wall-count { color: var(--signal-strong); font-weight: 750; font-size: .91rem; white-space: nowrap; }
.wall-surface {
  padding: clamp(8px, 1.4vw, 22px) clamp(8px, 1.7vw, 28px) 30px;
  background: radial-gradient(ellipse at 30% 12%, #f4f6f2, transparent 56%), #e8efeb;
  box-shadow: inset 0 1px #0d262415;
  overflow: clip;
}
.prints {
  max-width: 1560px;
  margin-inline: auto;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
.print {
  box-sizing: border-box;
  display: block;
  background: #fffefb;
  padding: 4px;
  border: 0;
  margin: 0;
  width: min(180px, 42vw);
  box-shadow: 0 1px 2px #12252255, 1px 4px 7px #12252240;
  cursor: zoom-in;
  transform-origin: center;
}
.prints.arranged .print {
  position: absolute;
  left: var(--px);
  top: var(--py);
  width: var(--pw);
  height: var(--ph);
  transform: rotate(var(--rot));
  z-index: var(--depth);
  transition: transform .18s ease-out, box-shadow .18s ease-out;
}
.print img { width: 100%; height: auto; display: block; border-radius: 0; aspect-ratio: auto; }
.print[hidden] { display: none; }
@media (hover:hover) and (pointer:fine) {
  .prints.arranged .print:hover {
    z-index: 1000;
    transform: rotate(var(--rot)) scale(1.08);
    box-shadow: 0 8px 15px #0d262440, 0 18px 30px #0d26243d;
  }
}
.prints.arranged .print:focus-visible {
  z-index: 1001;
  transform: rotate(var(--rot)) scale(1.08);
  outline: 3px solid var(--signal-strong);
  outline-offset: 2px;
}
body.viewing { overflow: hidden; }
#viewer {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0;
  border: none;
  padding: clamp(12px,2vw,28px);
  background: #071210;
  color: #f8faf9;
}
#viewer[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 10px; }
#viewer::backdrop { background: #071210; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; }
.viewer-count { font-variant-numeric: tabular-nums; font-size: .95rem; }
#viewer button {
  display: inline-flex; align-items: center; justify-content: center;
  background: #142e2a; color: white; border: 1px solid #66807b;
  padding: 0 13px; min-width: 44px; min-height: 44px; border-radius: 28px;
  cursor: pointer; font: inherit;
}
#viewer button:hover { background: #234b45; }
.close { gap: 6px; }
.close span { font: 24px/1 sans-serif; }
.stage {
  display: grid; grid-template-columns: 48px minmax(0,1fr) 48px;
  gap: clamp(6px,2vw,32px); align-items: center; justify-items: center;
  container-type: size; width: 100%; height: 100%; min-height: 0;
}
.stage button span { font: 31px/1 sans-serif; }
.stage .large {
  display: block; max-width: 100%; max-height: 100%; object-fit: contain;
  width: min(100%,calc(100cqh * var(--aspect)),var(--width)); height: auto;
  aspect-ratio: var(--aspect); border: 4px solid #fffefb;
}
.viewer-feedback { text-align: center; }
.viewer-feedback:empty { display: none; }
@media (max-width: 650px) {
  .page-hero.memories-hero { padding-block: 32px; }
  .wall-tools { gap: 5px; flex-wrap: wrap; justify-content: flex-start; padding-block: 10px; }
  .wall-filters { display: contents; }
  .wall-filters button { padding: 6px 9px; font-size: .79rem; min-height: 36px; }
  .wall-count { font-size: .8rem; margin-inline-start: auto; }
  .stage { position: relative; display: flex; align-items: center; justify-content: center; }
  .stage button { position: absolute; bottom: 4px; z-index: 1; }
  .prev { left: 2px; }
  .next { right: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .prints.arranged .print { transition: none; }
}

/* Featured prints between the projects cover and case archive. */
.section.projects-collection { padding-top: clamp(32px, 4vw, 64px); }
.projects-album, #case-stories { scroll-margin-top: 96px; }
.projects-album .album-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 36px;
  padding-bottom: clamp(22px, 2.5vw, 36px);
}
.projects-album h2 {
  margin: 0;
  color: var(--ink-900);
  font: 880 clamp(2.25rem, 4.25vw, 4.5rem)/1.05 var(--font-display);
  letter-spacing: -.06em;
}
.projects-album .album-heading p {
  margin: 14px 0 0;
  max-width: 58ch;
  color: var(--ink-700);
  line-height: 1.65;
  word-break: keep-all;
}
.album-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
}
.projects-album .wall-surface { padding-block: clamp(16px, 2vw, 36px); }
.projects-collection #case-stories { padding-top: clamp(52px, 7vw, 108px); }
@media (max-width: 820px) {
  .projects-album .album-heading { align-items: flex-start; flex-direction: column; }
  .album-actions { gap: 12px 18px; }
}
