@font-face {
  font-family: "Suisse Intl";
  src: url("fonts/SuisseIntlRegular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Suisse Intl", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  --page: #fff;
  --ink: #111111;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--page);
}

body {
  color: var(--ink);
  overflow: hidden;
}

button {
  font: inherit;
}

.page {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  row-gap: 12px;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  padding: 14px;
  isolation: isolate;
}

.intro {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 11px;
  line-height: 1.2;
}

.intro p {
  margin: 0;
  font: inherit;
  font-weight: 400;
  text-transform: uppercase;
}

.intro p {
  width: 100%;
}

.intro a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

.gallery {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  row-gap: 12px;
  align-self: center;
  justify-self: center;
  width: min(56vw, 860px);
  height: 100%;
  max-height: 76vh;
  max-height: 76svh;
  max-width: 860px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: default;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.gallery:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 8px;
}

.gallery__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
}

.gallery__image {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

.gallery__caption {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  text-transform: lowercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px), (max-height: 500px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .page {
    grid-template-rows: auto auto;
    row-gap: 12px;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    padding: 12px;
    padding-bottom: 24px;
  }

  .gallery {
    align-self: start;
    width: 88vw;
    height: auto;
    max-height: none;
    touch-action: pan-y;
  }

  .gallery__stage {
    height: 60vh;
    height: 60svh;
    min-height: 260px;
    max-height: 620px;
  }
}

@media (max-height: 500px) {
  .gallery__stage {
    min-height: 0;
  }
}
