/* Current video dialogs only. Desktop layout and background films stay unchanged. */
@media (max-width: 820px), (hover: none) and (pointer: coarse) {
  html body :is(.cinema-popup[data-site-film-popup], .school-introduction-film-popup[data-school-introduction-film-popup]).is-open {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  html body :is(.cinema-popup[data-site-film-popup], .school-introduction-film-popup[data-school-introduction-film-popup]).is-open
  :is(.cinema-popup-stage, .school-introduction-film-popup__stage) {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    gap: 0;
    opacity: 1;
    filter: none;
    transform: none;
    clip-path: none;
    -webkit-clip-path: none;
    transition: none;
    will-change: auto;
  }
  html body :is(.cinema-popup[data-site-film-popup], .school-introduction-film-popup[data-school-introduction-film-popup]).is-open
  :is(.cinema-popup-player, .school-introduction-film-popup__player) {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    border-radius: 0;
    background: #000;
  }
  html body :is(.cinema-popup[data-site-film-popup], .school-introduction-film-popup[data-school-introduction-film-popup]).is-open video {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
    object-fit: contain;
    background: #000;
    box-shadow: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
  html body :is(.cinema-popup[data-site-film-popup], .school-introduction-film-popup[data-school-introduction-film-popup]).is-open
  :is(.cinema-popup-close, .school-introduction-film-popup__close) {
    position: absolute;
    z-index: 5;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 50%;
    color: #fff;
    background: rgba(0,0,0,.55);
    opacity: 1;
    transform: none;
    transition: none;
  }
  html body .school-introduction-film-popup.is-open .school-introduction-film-popup__header {
    position: absolute;
    z-index: 5;
    inset: 0 0 auto;
    margin: 0;
  }
  html body .school-introduction-film-popup.is-open .school-introduction-film-popup__header > div {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  html body .school-introduction-film-popup.is-open .school-introduction-film-popup__close span {
    top: 21px;
    left: 7px;
    width: 28px;
  }
  html body .school-introduction-film-popup.is-open :is(.school-introduction-film-popup__status, .school-introduction-film-popup__error) {
    position: absolute;
    z-index: 4;
    inset: auto 20px max(84px, calc(env(safe-area-inset-bottom) + 64px));
    margin: 0;
    padding: 10px;
    background: rgba(0,0,0,.75);
  }
}
