html, body {
  height: 100vh;
}

main {
  height: 100%;
}

#slideshow {
  width: 100%;
  height: 100%;
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#slideshow button {
  width: 50px;
  height: 50px;
  border: none;
  background-color: transparent;
  outline: none;
  cursor: pointer;
  color: #777;
  transition: color 0.1s ease-in-out;
}

#slideshow button:focus,
#slideshow button:hover {
  color: #000;
}

#figures {
  max-width: 700px;
  max-height: 800px;
  width: 100%;
  height: 100%;
  position: relative;
}

#figures figure {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease-in-out;
}

#figures figure picture {
  height: auto;
  min-height: 0;
  width: 100%;
}

#figures figure picture img {
  height: 100%;
  min-height: 0;
  width: 100%;
  object-fit: contain;
}

@media screen and (min-width: 1000px) {
  #slideshow {
    height: 100vh;
    gap: 16px;
    padding: 16px;
  }

  #slideshow button {
    width: 75px;
    height: 75px;
  }
}
