html, body {
  margin: 0;
  background: #000;
  color: #bbb;
  font: 16px/1.4 system-ui, sans-serif;
}

main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.page {
  display: block;
  -webkit-tap-highlight-color: transparent;
}

main img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: calc(100vh * var(--ratio));
  max-width: calc(100svh * var(--ratio));
  height: auto;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  user-select: none;
}

nav a, nav span {
  padding: 12px 10px;
  color: #ddd;
  text-decoration: none;
}

nav span {
  color: #444;
}

nav .count {
  color: #888;
  min-width: 5.5em;
  text-align: center;
}

.empty {
  margin: 40vh 16px 0;
  font-size: 1.25rem;
}
