html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #fdfaf3;
  color: #2b2a24;
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

figure {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

img {
  max-height: calc(100% - 46px);
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

figcaption {
  margin-top: 12px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
}

@media (max-width: 600px) {
  figcaption {
    font-size: 17px;
  }
}
