:root {
  color-scheme: light;
  --poster-bg: #8f6f4f;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100svh;
  overflow-x: hidden;
}

.poster {
  --poster-pad: clamp(10px, 2.5vw, 18px);

  display: grid;
  height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
  padding: var(--poster-pad);
  place-items: center;
  background: var(--poster-bg);
}

.poster img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - (var(--poster-pad) * 2));
  max-height: calc(100dvh - (var(--poster-pad) * 2));
  border-radius: 8px;
  box-shadow:
    0 18px 44px rgb(58 36 18 / 16%),
    0 2px 10px rgb(58 36 18 / 10%);
  object-fit: contain;
  object-position: center center;
}

@media (min-width: 760px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .poster {
    --poster-pad: clamp(28px, 6vw, 80px);

    height: 100svh;
    min-height: 100svh;
  }

  .poster img {
    max-height: calc(100svh - (var(--poster-pad) * 2));
  }
}
