:root {
  --bg: #000;
  --fg: #fff;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  font-family: "Helvetica", sans-serif;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: linear-gradient(to bottom, rgba(0,0,0,.85), rgba(0,0,0,0));
  z-index: 10;
  pointer-events: none;
}

.title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
}

.stage {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  scroll-snap-type: y mandatory;
  overflow-y: auto;
  overflow-x: hidden;

  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.slide {
  flex: 0 0 100svh;
  height: 100svh;
  width: 100%;
  display: grid;
  place-items: center;

  scroll-snap-align: start;
  scroll-snap-stop: always;

  background: #000;
  overflow: hidden;
}

.story {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;

  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

@media (min-aspect-ratio: 9 / 16) {
  .story {
    object-fit: cover;
    object-position: center;
  }
}

@media (min-aspect-ratio: 9 / 16) and (max-aspect-ratio: 9 / 19) {
  .story {
    object-position: 10% 50%;
  }
}


@media (min-width: 900px) {
  .slide {
    flex-basis: 100vh;
    height: 100vh;
  }

  .story {
    height: 100vh;
    width: auto;
    max-width: 100vw;
    max-height: 100vh;

    object-fit: contain;
    background: #000;
  }
}

.off {
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: opacity 220ms ease;
}

@media (max-width: 768px) and (orientation: landscape) {
  .off {
    opacity: 1;
    pointer-events: auto;
  }

  .stage,
  .topbar {
    filter: blur(0px);
  }
}