/* Only the decorative layer changes; the theme owns all page layout. */
.sidebar-bg > .home-background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  filter: saturate(1.04) brightness(1.02);
  opacity: 0;
  transition: opacity 1200ms ease;
}

.sidebar-bg > .home-background-video.is-playing {
  opacity: 1;
}

/* Preserve the original treatment of the atmospheric mountain scene. */
.sidebar-bg > .home-background-video[data-scene="mist"] {
  filter: saturate(.7) brightness(.8);
}

.home-background-next {
  position: absolute;
  top: clamp(.85rem, 2.2vw, 1.5rem);
  right: clamp(.85rem, 2.2vw, 1.5rem);
  z-index: 5;
  display: grid;
  width: 3rem;
  height: 3rem;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  color: #fff;
  background: rgba(12, 35, 48, .24);
  box-shadow: 0 .35rem 1.2rem rgba(0, 0, 0, .12);
  font: 400 1.25rem/1 sans-serif;
  cursor: pointer;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.home-background-next:hover {
  border-color: rgba(255, 255, 255, .7);
  background: rgba(12, 35, 48, .42);
  transform: translateX(.12rem);
}

.home-background-next:disabled {
  opacity: .5;
  cursor: wait;
}

.home-background-next > span {
  transform: translateY(-.04rem);
}

/* Center the drawer gesture hint below the home-page navigation. */
#_drawer.cover #_swipe {
  top: auto;
  right: auto;
  bottom: clamp(1rem, 4vh, 2.25rem);
  left: 50%;
  transform: translateX(-50%) scale(.8);
}

@media screen and (max-width: 42em) {
  #_drawer.cover #_swipe {
    bottom: 1rem;
    transform: translateX(-50%) scale(.67);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-bg > .home-background-video,
  .home-background-next {
    display: none;
  }
}
