.history-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: clamp(32rem, 52vw, 44rem);
  background: var(--canvas);
}
.history-hero-copy {
  align-self: center;
  justify-self: end;
  width: min(100%, 36rem);
  padding: clamp(2.5rem, 6vw, 6rem) clamp(1.4rem, 4vw, 4.5rem);
}
.history-hero .eyebrow {
  font-size: .875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.history-hero h1 { font-size: clamp(4rem, 7.5vw, 8rem); }
.history-hero h1 span:last-child { color: var(--red); }
.history-hero-copy > p:not(.eyebrow) {
  max-width: 33ch;
  margin: 1.4rem 0 1.6rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.42vw, 1.28rem);
}
.history-cover { position: relative; min-height: 24rem; margin: 0; overflow: hidden; background: var(--night); }
.history-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 53% 64%; }
.history-cover figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: .65rem 1.15rem;
  background: rgb(37 35 26 / .88);
  color: var(--light);
  font-size: .88rem;
}
.history-article {
  max-width: 43rem;
  padding-block: clamp(2.75rem, 6vw, 5.5rem);
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.45vw, 1.2rem);
  line-height: 1.72;
}
.history-article section, .history-closing { margin-top: clamp(2.5rem, 5vw, 4rem); }
.history-article h2 {
  margin-bottom: 1.15rem;
  color: var(--ink);
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  line-height: 1.08;
  text-wrap: balance;
}
.history-closing { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.history-closing > p { font-weight: 650; color: var(--ink); }
.history-closing blockquote {
  margin: 1.5rem 0 0;
  color: var(--red);
  font: italic 400 clamp(1.45rem, 3vw, 2.15rem)/1.25 var(--display);
}
.history-closing blockquote p { margin: 0; }
.history-section-head h1, .history-visit h2 {
  font-size: clamp(2.65rem, 5.25vw, 5.5rem);
  line-height: 1;
}
.history-archive { border-top: 1px solid var(--line); background: var(--canvas); padding-block: clamp(3.5rem, 7vw, 7rem); }
.history-section-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.history-section-head > p:not(.eyebrow) { max-width: 49ch; margin: .9rem 0 0; color: var(--muted); }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem clamp(.75rem, 2vw, 1.75rem); }
.archive-grid figure, .archive-dialog figure { margin: 0; }
.archive-grid figcaption { color: var(--ink); padding-top: .44rem; font-size: .95rem; font-weight: 650; }
.archive-grid .archive-wide { grid-column: span 2; }
.archive-photo {
  position: relative;
  display: block;
  overflow: hidden;
  height: clamp(10.5rem, 22vw, 18.5rem);
  background: var(--night);
}
.archive-photo img { width: 100%; height: 100%; object-fit: cover; }
.archive-zoom {
  position: absolute;
  right: .55rem;
  bottom: .55rem;
  display: grid;
  width: 2.3rem;
  aspect-ratio: 1;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
}
.archive-photo:hover .archive-zoom, .archive-photo:focus-visible .archive-zoom { background: var(--red); color: var(--paper); }
html:has(.archive-dialog[open]) { overflow: hidden; }
.archive-dialog {
  box-sizing: border-box;
  width: min(calc(100% - 1.5rem), 69rem);
  max-height: calc(100% - 1.5rem);
  padding: clamp(.8rem, 2vw, 1.5rem);
  border: 1px solid var(--muted);
  background: var(--night);
  color: var(--light);
}
.archive-dialog::backdrop { background: rgb(17 13 10 / .88); }
.archive-dialog-head, .archive-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
}
.archive-dialog-head { margin-bottom: .6rem; }
.archive-count { margin: 0; color: var(--dim); font-size: .95rem; }
.archive-dialog button {
  min-height: 44px;
  padding: .35rem .85rem;
  border: 1px solid var(--dim);
  background: transparent;
  color: var(--light);
  font-weight: 650;
}
.archive-dialog button:hover { background: var(--light); color: var(--ink); }
.archive-full { width: 100%; height: min(63dvh, 43rem); object-fit: contain; }
.archive-dialog figcaption { margin-block: .65rem .8rem; text-align: center; }
.album-return { padding-block: 1rem; }
.history-visit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.3rem 2rem;
  padding-block: clamp(2.8rem, 6vw, 6rem);
}
.history-visit h2 { font-size: clamp(2.4rem, 4vw, 4rem); }
.history-visit-actions { display: flex; flex-wrap: wrap; gap: .65rem; }

@media (max-width: 740px) {
  .history-hero { grid-template-columns: 1fr; }
  .history-hero-copy {
    justify-self: center;
    width: min(100% - 2.5rem, 38rem);
    padding: 2.75rem 0 2.2rem;
  }
  .history-hero h1 { font-size: clamp(3.95rem, 13vw, 6.25rem); }
  .history-cover { min-height: clamp(14rem, 52vw, 22rem); }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-photo { height: clamp(7rem, 27vw, 12rem); }
  .archive-wide .archive-photo { height: clamp(9rem, 43vw, 17rem); }
  .archive-grid figure:last-child { grid-column: 1 / -1; }
  .archive-grid figure:last-child .archive-photo { height: clamp(9rem, 43vw, 17rem); }
  .history-visit { align-items: flex-start; flex-direction: column; }
}
