
:root {
  --scale: 0.7;
  --cm: calc(var(--scale) * 1cm);
  --px: calc(var(--scale) * 1px);
  --serif: 'Times New Roman', Times, serif;
}

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

html {

  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--serif);
  color: #000;
}

img {
  display: block;
}



.banner {
  position: sticky;
  top: 0;
  z-index: 10;
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  column-gap: calc(2 * var(--cm));
  padding: calc(0.9 * var(--cm)) calc(2.3 * var(--cm)) calc(0.5 * var(--cm)) calc(2.3 * var(--cm));
  background: #fff;
}

.banner__title {
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: calc(49 * var(--px));
  line-height: 0.8;
  color: #000;
  text-decoration: none;
}

.banner__nav {
  display: flex;
  gap: calc(1.5 * var(--cm));
  margin-left: auto;
  white-space: nowrap;
}

.banner__link {
  color: #000;
  font-family: Georgia, serif;
  font-size: calc(26 * var(--px));
  text-decoration: none;
}

.banner__link:hover,
.banner__link:focus-visible {
  text-decoration: underline;
}


.plain-link,
.plain-link:link,
.plain-link:visited,
.plain-link:hover,
.plain-link:active,
.plain-link:focus {
  color: inherit;
  font: inherit;
  text-decoration: none;
}



.prose {
  max-width: 44em;
  margin: 0 auto;
  padding: calc(4 * var(--cm)) calc(1.5 * var(--cm)) calc(6 * var(--cm));
  font-size: min(calc(32 * var(--px)), 5vw);
  line-height: 1.5;
}

.prose__title {
  margin: 0 0 calc(1 * var(--cm));
  font-size: min(calc(100 * var(--px)), 11vw);
  line-height: 1.1;
}

.prose__back {
  display: inline-block;
  margin-top: calc(2 * var(--cm));
}


.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(2 * var(--cm));
  align-items: center;
  margin: calc(2 * var(--cm)) 0;
}


.split__figure {
  justify-self: center;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 18em;
}


.split--reverse .split__figure {
  grid-column: 2;
  grid-row: 1;
}

.split--reverse p {
  grid-column: 1;
  grid-row: 1;
}

.split--figure {
  grid-template-columns: 1fr;
  justify-items: center;
}

.split--figure .split__figure {
  max-height: 12em;
}


.split--stack {
  grid-template-columns: 1.2fr 1fr;
}

.split__figures {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(1 * var(--cm));
}

.split--stack .split__figure {
  max-height: 14em;
}

@media (max-width: 700px), (max-height: 520px) {
  .split {
    grid-template-columns: 1fr;
    gap: calc(1 * var(--cm));
  }

  .split--reverse .split__figure,
  .split--reverse p {
    grid-column: auto;
    grid-row: auto;
  }
}


.link-button {
  display: inline-block;
  padding: 0.45em 1.2em;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font: inherit;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}


.button-row {
  display: block;
  margin-top: 0.6em;
}



.gallery {
  --label-w-left: calc(10 * var(--cm));
  --label-w-right: calc(10 * var(--cm));
  --label-gap-left: calc(3 * var(--cm));
  --label-gap-right: calc(1 * var(--cm));
  --label-font-narrow: 5.4vw;
  --label-max-narrow: 26em;
  --label-margin-left: 0 auto calc(0.8 * var(--cm));
  --label-margin-right: calc(0.8 * var(--cm)) auto 0;
}

.gallery__item {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}

.gallery__track {
  height: 100vh;
}

.gallery__photo {
  width: calc(12 * var(--cm));
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery__photo--low {
  object-position: center 60%;
}

.gallery__label {
  --label-shift: 0px;
  position: absolute;
  top: 50%;
  transform: translate(var(--label-shift), -50%);
  margin: 0;
  max-width: none;
  font-size: calc(32 * var(--px));
  text-align: left;
  white-space: pre-line;
  pointer-events: auto;
}

.gallery__label--left {
  right: calc(100% + var(--label-gap-left));
  width: min(var(--label-w-left), calc(100vw - 2 * var(--cm)));
}

.gallery__label--right {
  left: calc(100% + var(--label-gap-right));
  width: min(var(--label-w-right), calc(100vw - 2 * var(--cm)));
}

.gallery__panel {
  overflow: hidden;
}

@media (max-width: 700px), (max-height: 520px) {

  .banner {
    column-gap: calc(0.8 * var(--cm));
    padding: calc(0.5 * var(--cm)) calc(1 * var(--cm)) calc(0.4 * var(--cm)) calc(1 * var(--cm));
  }

  .banner__title {
    font-size: 26px;
    line-height: 0.85;
  }

  .banner__nav {
    gap: calc(0.7 * var(--cm));
  }

  .banner__link {
    font-size: 14px;
  }

  .gallery__item {
    left: 0;
    width: 100%;
  }

  .gallery__photo {
    width: min(calc(12 * var(--cm)), 68vw, 42vh);
    margin-inline: auto;
  }

  .gallery__label {
    position: static;
    top: auto;
    transform: none;
    width: calc(100vw - 2 * var(--cm));
    max-width: var(--label-max-narrow);
    font-size: min(calc(32 * var(--px)), var(--label-font-narrow));
    text-align: center;
  }

  .gallery__label--left {
    right: auto;
    margin: var(--label-margin-left);
  }

  .gallery__label--right {
    left: auto;
    margin: var(--label-margin-right);
  }

  .gallery__panel {
    height: auto;
    overflow: visible;
  }

  .gallery--flow .gallery__item {
    position: static;
    width: auto;
    opacity: 1;
  }

  .gallery--flow .gallery__track {
    height: 10vh;
  }
}
