* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: #000;
  color: #f4f1ea;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
}

html.idle,
html.idle * {
  cursor: none;
}

body {
  overflow: hidden;
  overscroll-behavior: none;
}

main {
  height: 100dvh;
  display: grid;
}

#photo,
#empty {
  grid-area: 1 / 1;
}

#photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 700ms ease;
}

#photo.show {
  opacity: 1;
}

#empty {
  display: grid;
  place-content: center;
  gap: 0.4rem;
  text-align: center;
  padding: 2rem;
}

#empty[hidden] {
  display: none;
}

#empty p {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  line-height: 1.4;
}

#empty p + p {
  color: #b7b1a6;
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
}

#caption {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3.5rem 1.5rem 1.25rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  text-align: center;
}

#when {
  margin: 0 auto;
  max-width: 46rem;
  color: #f4f1ea;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(1.05rem, 2.4vw, 1.7rem);
  letter-spacing: 0.03em;
}
