/* NIR tap-to-show fullscreen control. Does not change page layout. */
.nir-fs-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 6;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 11px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
  transition: opacity 0.4s ease, visibility 0.4s ease;
  appearance: none;
  -webkit-appearance: none;
}
.nir-fs-btn svg {
  display: block;
  width: 22px;
  height: 22px;
  pointer-events: none;
}
.nir-fs-btn.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nir-fs-btn:focus {
  outline: none;
}
.nir-fs-btn:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

/* Fullscreen-only: letterbox the film. Does not apply in page layout. */
.nir-fs-host:fullscreen,
.nir-fs-host:-webkit-full-screen,
.nir-fs-host:-ms-fullscreen {
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nir-fs-host:fullscreen video,
.nir-fs-host:-webkit-full-screen video,
.nir-fs-host:-ms-fullscreen video,
video.mux-film:fullscreen,
video.mux-film:-webkit-full-screen,
video.mux-film:-ms-fullscreen {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
