/* 75 for 75 Grand — archive stylesheet

   Reproduces the original Squarespace design with plain CSS:
   - the same palette and section themes,
   - the same type scale (sizes grow with the window, like the original),
   - the original layout grid: 8 columns on phones, 24 on wider screens,
     with each block placed where it sat on the live site.

   Contents
   1. Fonts          6. Layout grid and blocks   11. Blog: story pages
   2. Settings       7. Buttons                  12. Previous / next
   3. Base & type    8. Section themes           13. Photo viewer
   4. Header & menu  9. Galleries                14. Print
   5. Sections      10. Lists: Stories, Art
*/

/* ---------- 1. Fonts (Archivo and PT Serif, SIL Open Font License) ---------- */

@import url("fonts.css");

/* ---------- 2. Settings ---------- */

:root {
  /* palette */
  --cream: hsl(55 35.29% 93.33%);
  --blue: hsl(220 44.35% 45.1%);
  --sky: hsl(222.22 72.97% 70.98%);
  --yellow: hsl(59.07 86.58% 70.78%);
  --black: hsl(0 0% 0%);
  --white: hsl(0 0% 100%);

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;

  /* page gutters and the widest the content gets */
  --gutter: 4vw;
  --max: 1400px;
  --header-h: calc(4vw + 27px);

  /* type grows with the window: 1.2vw per size step on wide screens */
  --step: 1.2vw;
}

@media (max-width: 767px) {
  :root {
    --gutter: 6vw;
    --header-h: 84px;
    /* on phones the steps follow the window height instead, capped at 900px */
    --step: min(1.2vh, 10.8px);
  }
}

/* ---------- 3. Base and type ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--blue);
  font: 400 1rem/1.5 var(--serif);
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  margin: 2rem 0;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: pre-wrap;
}

/* size = 1rem + (step value - 1) × step; line height tightens as type grows */
h1 { --v: 4; }
h2 { --v: 2.8; }
h3 { --v: 2.2; }
h4 { --v: 1.6; }

h1, h2, h3, h4 {
  font-size: calc((var(--v) - 1) * var(--step) + 1rem);
  line-height: calc(1.1 * (1 + (1 - var(--v)) / 25));
}

p {
  margin: 1rem 0;
  white-space: pre-wrap;
}

p.large {
  font-size: calc(0.4 * var(--step) + 1rem);
  line-height: 1.5;
}

p.small {
  font-size: calc(-0.1 * var(--step) + 1rem);
  line-height: 1.5;
}

ul,
ol {
  margin: 1rem 0;
  padding-left: 1.5em;
}

.align-center { text-align: center; }
.align-right { text-align: right; }
.indent { margin-left: 40px; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: 0.5em 1em;
  background: var(--black);
  color: var(--white);
}

.skip:focus {
  top: 1rem;
}

/* ---------- 4. Header and phone menu ---------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2vw var(--gutter);
  color: var(--nav);
}

.site-title {
  margin: 0;
  font: 400 calc(0.5 * var(--step) + 1rem) / 1.1 var(--sans);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.site-title a {
  color: var(--site-title);
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2vw;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 1px 0;
  color: var(--nav);
  font: 400 1rem/1.5 var(--serif);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background-size: 100% 1px;
}

.menu-toggle {
  display: none;
}

@media (max-width: 767px) {
  .site-header {
    padding: 0 var(--gutter);
    height: var(--header-h);
  }

  /* without JavaScript the links simply wrap under the title */
  .no-js .site-header {
    flex-wrap: wrap;
    height: auto;
    padding-block: 1rem;
  }

  .js .site-nav {
    display: none;
  }

  .js .menu-toggle {
    position: relative;
    z-index: 2;
    display: block;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--nav);
    cursor: pointer;
  }

  .menu-icon,
  .menu-icon::before {
    position: absolute;
    left: 0;
    width: 36px;
    height: 1px;
    background: currentColor;
    transition: transform 0.25s ease, top 0.25s ease;
  }

  .menu-icon {
    top: 11px;
  }

  .menu-icon::before {
    content: "";
    top: 12px;
  }

  .menu-open .menu-icon {
    top: 17px;
    transform: rotate(45deg);
  }

  .menu-open .menu-icon::before {
    top: 0;
    transform: rotate(-90deg);
  }

  /* open menu: full-screen panel in the site's default colours */
  .menu-open {
    overflow: hidden;
  }

  .menu-open .site-header {
    position: fixed;
    inset: 0 0 auto;
    --site-title: var(--blue);
    --nav: var(--blue);
  }

  .menu-open .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    background: var(--cream);
  }

  .menu-open .site-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .menu-open .site-nav a {
    font-size: 8.5vw;
    line-height: 1.7;
    background: none;
  }

  .menu-open .site-title {
    position: relative;
    z-index: 2;
  }
}

/* ---------- 5. Sections ---------- */

.section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--min-h, 0);
  background: var(--bg);
  color: var(--text);
  isolation: isolate;
  overflow: hidden;
}

.section.first {
  padding-top: var(--header-h);
}

.section-content {
  position: relative;
  width: 100%;
  padding-block: var(--pad, 0);
}

.section.valign-bottom {
  justify-content: flex-end;
}

.section.valign-bottom .section-content {
  padding-top: calc(var(--pad, 0px) * 2);
  padding-bottom: 4vw;
}

.section.valign-top {
  justify-content: flex-start;
}

/* background photo or looping video, with the theme colour washed over it */
.section-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.section-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg);
}

/* a section whose bottom edge curves down into the next one */
.section.divider-rounded {
  z-index: 4;
  padding-bottom: var(--divider-h);
  background: none;
}

.section.divider-rounded::before,
.section.divider-rounded::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: -3;
  background: var(--bg);
}

.section.divider-rounded::before {
  top: 0;
  bottom: var(--divider-h);
}

.section.divider-rounded::after {
  bottom: 0;
  height: var(--divider-h);
  clip-path: url(#divider-rounded);
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
}

/* ---------- 6. Layout grid and blocks ---------- */

.fe {
  --grid-gutter: calc(var(--gutter) - 11px);
  --cell: calc((var(--max) - 11px * 7) / 8);
  display: grid;
  grid-template-columns:
    minmax(var(--grid-gutter), 1fr)
    repeat(8, minmax(0, var(--cell)))
    minmax(var(--grid-gutter), 1fr);
  grid-template-rows: repeat(var(--rows-m), minmax(24px, auto));
  gap: 11px;
  overflow-x: clip;
}

@media (min-width: 768px) {
  .fe {
    --cell: calc((var(--max) - 11px * 23) / 24);
    --container: min(var(--max), calc(100vw - var(--gutter) * 2));
    grid-template-columns:
      minmax(var(--grid-gutter), 1fr)
      repeat(24, minmax(0, var(--cell)))
      minmax(var(--grid-gutter), 1fr);
    grid-template-rows: repeat(var(--rows-d), minmax(calc(var(--container) * 0.0215), auto));
  }
}

.block {
  display: flex;
  flex-direction: column;
  justify-content: var(--v-m);
  min-width: 0;
  grid-area: var(--area-m);
  z-index: var(--z);
}

@media (min-width: 768px) {
  .block {
    justify-content: var(--v-d);
    grid-area: var(--area-d);
  }
}

.text > :first-child {
  margin-top: 0;
}

.text > :last-child {
  margin-bottom: 0;
}

.block h1 { color: var(--h1); }
.block h2 { color: var(--h2); }
.block h3 { color: var(--h3); }
.block h4 { color: var(--h4); }
.block p,
.block li { color: var(--text); }
.block a:not(.button) { color: var(--link); }

/* text colours picked in the original editor */
.dark-accent { color: var(--sky); }
.accent { color: var(--yellow); }
.light-accent { color: var(--cream); }
.white { color: var(--white); }
.black { color: var(--black); }

/* a heading scaled to fill its block, as on the Obituary page */
.block--text:has(.scaled) {
  container-type: inline-size;
}

.scaled {
  font-size: 9.39cqi;
  line-height: 1;
  white-space: nowrap;
}

/* images fill their grid area */
.fill {
  position: relative;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius, 0);
}

.block--image {
  justify-content: stretch;
}

.fill img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: var(--fit, cover);
  object-position: var(--focal, 50% 50%);
}

.video {
  aspect-ratio: 16 / 9;
  background: var(--black);
}

.video video {
  width: 100%;
  height: 100%;
}

/* the Share a Memory form, kept as a disabled copy */
.memory-form {
  color: var(--text);
}

.memory-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.memory-form label,
.memory-form legend,
.form-label {
  display: block;
  margin: 0 0 27px;
  padding: 0;
  font-size: 1rem;
}

.memory-form legend {
  margin-bottom: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.form-row label {
  font-size: 0.75rem;
}

.req {
  opacity: 0.7;
  font-size: 0.75rem;
}

.memory-form input,
.memory-form textarea,
.dropzone {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 20px;
  border: 1px solid hsl(220 44.35% 45.1% / 0.55);
  border-radius: 6.4px;
  background: hsl(0 0% 100% / 0.8);
  color: inherit;
  font: inherit;
  font-size: 1rem;
}

.memory-form input {
  height: 46px;
}

.memory-form textarea {
  height: 100px;
  resize: none;
}

.memory-form ::placeholder {
  color: inherit;
  opacity: 0.6;
}

.form-help {
  margin: 0 0 10px;
  font-size: 0.75rem;
}

.dropzone {
  display: grid;
  place-items: center;
  height: 70px;
  border-style: dashed;
  font-size: 0.75rem;
}

.form-file {
  margin-bottom: 27px;
}

.form-submit {
  margin: 0;
  text-align: center;
}

.form-submit button {
  padding: 24px 35.2px;
  border: 1px solid var(--white);
  border-radius: 300px;
  background: var(--black);
  color: var(--white);
  font: 500 1rem/1.2 var(--sans);
  text-transform: uppercase;
}

.form-archived {
  margin: 0 0 1.5rem;
  font-size: 0.75rem;
  font-style: italic;
}



.note {
  font-style: italic;
}

/* ---------- 7. Buttons ---------- */

.block--button {
  align-items: var(--h-m);
}

@media (min-width: 768px) {
  .block--button {
    align-items: var(--h-d);
  }
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 3rem;
  padding: 0 2.2rem;
  border: 1px solid var(--black);
  border-radius: 300px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font: 500 1rem/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.1s linear;
}

/* filled (yellow) buttons fade slightly on hover, as on the original */
.button:hover,
.button:focus-visible {
  opacity: 0.8;
}

/* the home page's outline button fills black on hover */
.button--secondary {
  background: transparent;
  color: var(--black);
  transition: background-color 0.1s linear, color 0.1s linear;
}

.button--secondary:hover,
.button--secondary:focus-visible {
  opacity: 1;
  background: var(--black);
  color: var(--white);
}

/* ---------- 8. Section themes (the same names Squarespace used) ---------- */

body,
.theme-default {
  --bg: var(--cream);
  --text: var(--blue);
  --h1: var(--blue);
  --h2: var(--black);
  --h3: var(--black);
  --h4: var(--black);
  --link: var(--black);
  --btn-bg: var(--yellow);
  --btn-text: var(--black);
  --site-title: var(--black);
  --nav: var(--blue);
}

.theme-light {
  --bg: var(--cream);
  --text: var(--blue);
  --h1: var(--blue);
  --h2: var(--blue);
  --h3: var(--blue);
  --h4: var(--blue);
  --link: var(--black);
  --site-title: var(--blue);
  --nav: var(--blue);
}

.theme-white {
  --bg: var(--white);
  --text: var(--blue);
  --h1: var(--blue);
  --h2: var(--blue);
  --h3: var(--blue);
  --h4: var(--blue);
  --link: var(--black);
  --site-title: var(--blue);
  --nav: var(--blue);
}

.theme-dark {
  --bg: var(--sky);
  --text: var(--white);
  --h1: var(--white);
  --h2: var(--white);
  --h3: var(--white);
  --h4: var(--white);
  --link: var(--yellow);
  --site-title: var(--white);
  --nav: var(--white);
}

.theme-black {
  --bg: var(--blue);
  --text: var(--white);
  --h1: var(--white);
  --h2: var(--white);
  --h3: var(--white);
  --h4: var(--white);
  --link: var(--yellow);
  --site-title: var(--white);
  --nav: var(--white);
}

.theme-bright-inverse {
  --bg: var(--black);
  --text: var(--yellow);
  --h1: var(--yellow);
  --h2: var(--yellow);
  --h3: var(--yellow);
  --h4: var(--yellow);
  --link: var(--yellow);
  --site-title: var(--yellow);
  --nav: var(--yellow);
}

/* the header takes the colours of the first section beneath it */
.site-header.theme-black,
.site-header.theme-dark,
.site-header.theme-bright-inverse {
  background: none;
}

/* ---------- 9. Galleries ---------- */

.gallery-section {
  background: var(--bg);
  padding: var(--gutter);
}

.gallery-section:has(.masonry--full-bleed) {
  padding: 0;
}

.gallery-section.first {
  padding-top: calc(var(--header-h) + var(--gutter));
}

.gallery-section.first:has(.masonry--full-bleed) {
  padding-top: var(--header-h);
}

.gallery-section figure {
  margin: 0;
}

.gallery-section img {
  width: 100%;
  height: auto;
}

.gallery-section figcaption {
  padding-top: 0.6rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}

.masonry {
  display: flex;
  width: 100%;
  gap: var(--gap);
  max-width: var(--max);
  margin: 0 auto;
}

.masonry--full-bleed {
  max-width: none;
  padding: var(--gap);
}

.masonry-col {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: var(--gap);
  min-width: 0;
}

.gallery-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: var(--gap);
  max-width: var(--max);
  margin: 0 auto;
}

.gallery-grid img {
  aspect-ratio: var(--ratio);
  object-fit: cover;
  object-position: var(--focal, 50% 50%);
}

@media (max-width: 767px) {
  .gallery-section:has(.gallery-grid) {
    padding: 4vw;
  }

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

/* slideshow: one photo at a time, arrows at the sides */
.gallery-section:has(.slideshow) {
  padding: var(--gutter) 0;
}

.slideshow {
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  max-width: min(var(--max), calc(var(--slide-w) + 8vw));
  margin: 0 auto;
}

.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.slides::-webkit-scrollbar {
  display: none;
}

.slides figure {
  display: grid;
  flex: 0 0 100%;
  place-items: center;
  height: var(--slide-h);
  scroll-snap-align: center;
}

.slides img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slideshow-btn {
  width: 4vw;
  min-width: 2.5rem;
  padding: 0.5rem;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
}

.slideshow-btn svg {
  display: block;
  width: 18px;
  height: 32px;
  margin: 0 auto;
  stroke: currentColor;
  stroke-width: 1.2px;
}

@media (max-width: 767px) {
  .slideshow {
    display: block;
    position: relative;
    max-width: calc(100vw - var(--gutter) * 2);
  }

  .slides figure {
    height: calc(100vw - var(--gutter) * 2);
  }

  .slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .slideshow-prev {
    left: 0;
  }

  .slideshow-next {
    right: 0;
  }
}

/* ---------- 10. Lists: Stories and Art & Photos ---------- */

.blog-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 100px 50px;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 36px var(--gutter) 4vw;
  background: var(--bg);
}

.card {
  text-align: center;
}

.card-image {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

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

.card-text {
  padding: 0 10%;
}

.card-date {
  margin: 36px 0 25px;
  color: var(--text);
}

.card--no-image .card-date {
  margin-top: 0;
}

.card-title {
  --v: 2.2;
  margin: 0 0 24px;
  color: var(--black);
  line-height: 1.1;
}

.card-title a {
  text-decoration: none;
}

.card-excerpt {
  margin: 0 0 20px;
  font-size: calc(-0.1 * var(--step) + 1rem);
  line-height: 1.5;
}

.card-more {
  display: inline-block;
  padding: 12px 0;
  color: var(--black);
  font-size: calc(-0.1 * var(--step) + 1rem);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.portfolio-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 6.6vw var(--gutter) 7vw;
  background: var(--bg);
}

.tile {
  display: block;
  color: var(--black);
  text-decoration: none;
}

.tile-image {
  aspect-ratio: 1;
  overflow: hidden;
}

.tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.tile:hover img {
  opacity: 0.85;
}

.tile-title {
  --v: 1.6;
  margin: 20px 0 12px;
  line-height: 1.1;
}

@media (max-width: 767px) {
  .blog-list,
  .portfolio-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-list {
    gap: 70px;
    padding-top: 0;
  }

  .portfolio-list {
    padding-bottom: 0;
  }

  .card-date {
    margin: 19px 0 8px;
  }

  .card-title,
  .card-excerpt {
    margin-bottom: 8px;
  }

  .card-more {
    padding: 5px 0;
  }
}

/* ---------- 11. Blog: story pages ---------- */

.blog-item {
  width: min(100%, calc((100vw - var(--gutter) * 2) / 2));
  margin: 0 auto;
  padding: calc(var(--header-h) + var(--gutter)) 0 7vw;
}

.blog-item-header {
  margin: 32px 0 50px;
}

.blog-item-title {
  margin: 0;
  color: var(--black);
  line-height: 1.1;
}

.blog-item-content > * + * {
  margin-top: 34px;
}

.blog-item-content > .classic-text > :first-child { margin-top: 0; }
.blog-item-content > .classic-text > :last-child { margin-bottom: 0; }

.classic-image {
  margin-inline: auto;
}

.classic-image img {
  width: 100%;
  height: auto;
}

.classic-image figcaption,
.blog-item figcaption {
  padding-top: 0.6rem;
  font-size: 1rem;
}

.gallery-block {
  display: grid;
  grid-template-columns: repeat(var(--per-row), minmax(0, 1fr));
  gap: var(--pad);
}

.gallery-block figure {
  margin: 0;
}

.gallery-block img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: var(--focal, 50% 50%);
}

.quote {
  margin-inline: -17px;
  padding: 6%;
}

.quote blockquote {
  margin: 0;
}

.quote p {
  margin: 0;
  font-size: calc(0.4 * var(--step) + 1rem);
  line-height: 1.5;
}

@media (max-width: 767px) {
  .blog-item {
    width: auto;
    margin: 0 var(--gutter);
    padding-top: calc(var(--header-h) + 23px);
    padding-bottom: 57px;
  }

  .quote {
    margin-inline: -17px;
    padding: 17px 22px 22px;
  }
}

/* ---------- 12. Previous / next ---------- */

.item-pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 3vw var(--gutter);
}

.item-pagination a {
  display: flex;
  align-items: center;
  gap: 25px;
  color: var(--blue);
  text-decoration: none;
}

.item-pagination .next {
  margin-left: auto;
  text-align: right;
}

.pag-title {
  font: 400 calc(1.2 * var(--step) + 1rem) / 1 var(--sans);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.item-pagination svg {
  flex: none;
  width: 18px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 1px;
}

.item-pagination a:hover .pag-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

/* ---------- 13. Full-size photo viewer (js/site.js) ---------- */

.viewer {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: hsl(0 0% 0% / 0.92);
  color: var(--white);
}

.viewer::backdrop {
  background: transparent;
}

.viewer[open] {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.viewer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  font: 400 0.9rem/1.4 var(--sans);
}

.viewer-nav {
  display: flex;
  gap: 0.5rem;
}

.viewer button {
  padding: 0.5em 0.9em;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.viewer-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 1rem;
}

.viewer-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.viewer-caption {
  min-height: 3rem;
  margin: 0;
  padding: 0.75rem 1rem 1.25rem;
  text-align: center;
}

/* ---------- 14. Print ---------- */

@media print {
  .site-nav,
  .menu-toggle,
  .site-footer,
  .item-pagination,
  .skip,
  .section-bg,
  .section-overlay {
    display: none;
  }

  .site-header {
    position: static;
  }

  .section,
  .section.first {
    min-height: 0;
    padding-top: 0;
    background: none;
    --text: #000;
    --h1: #000;
    --h2: #000;
    --h3: #000;
    --h4: #000;
  }
}

/* ---------- 15. Page not found ---------- */

.not-found {
  max-width: 40rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
  text-align: center;
}

.not-found h1 {
  color: var(--h1);
}

.not-found a {
  color: var(--link);
}
