/* V36: Mobile cinematic fullscreen without stretching or cropping 16:9 action. */
@media (pointer:coarse), (max-width:700px){
  #expViewer .exp-viewer-screen{isolation:isolate;background:#121212}
  #expViewer .exp-viewer-screen::before{
    content:"";position:absolute;inset:-14%;z-index:0;pointer-events:none;
    background-image:var(--atx-v36-poster,linear-gradient(145deg,#151b21,#4a3924));
    background-position:center;background-size:cover;background-repeat:no-repeat;
    filter:blur(32px) brightness(.43) saturate(.85);
    transform:scale(1.1);
  }
  #expViewer .exp-viewer-screen>video,
  #expViewer .exp-viewer-screen>img{
    position:relative;z-index:1;max-width:100%;max-height:100%;
    width:100%;height:100%;object-fit:contain!important;
  }
  #atxFilmDialog:fullscreen,#atxFilmDialog:-webkit-full-screen{
    background:#111;position:relative;isolation:isolate;
    width:100vw;height:100dvh;padding:0;overflow:hidden;
  }
  #atxFilmDialog:fullscreen::before,#atxFilmDialog:-webkit-full-screen::before{
    content:"";position:absolute;inset:-14%;z-index:0;pointer-events:none;
    background-image:url('/assets/experiences-media/atx-all-16-experiences-poster.jpg');
    background-position:center;background-size:cover;
    filter:blur(38px) brightness(.43) saturate(.85);transform:scale(1.1);
  }
  #atxFilmDialog:fullscreen .atx-film-window,#atxFilmDialog:-webkit-full-screen .atx-film-window{
    position:relative;z-index:1;max-width:none;width:100%;height:100%;min-height:100%;
    justify-content:center;align-items:center;
  }
  #atxFilmDialog:fullscreen video,#atxFilmDialog:-webkit-full-screen video{
    width:100%;height:100%;max-height:100dvh;max-width:100%;aspect-ratio:auto;
    object-fit:contain!important;background:transparent;border:0;border-radius:0;
  }
  .video-stage:fullscreen,.reel-media:fullscreen{
    position:relative;isolation:isolate;background:#151515;width:100vw;height:100dvh;
  }
  .video-stage:fullscreen::before,.reel-media:fullscreen::before{
    content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
    background-size:cover;background-position:center;
    filter:blur(34px) brightness(.38);transform:scale(1.08);
  }
  .video-stage:fullscreen::before{background-image:url('/assets/atx_hero_clean_1920.jpg')}
  .reel-media:fullscreen::before{background-image:url('/assets/experiences-media/v12-9/fast-furious-driving-poster.jpg')}
  .video-stage:fullscreen video,.reel-media:fullscreen video{
    position:relative;z-index:1;width:100%;height:100%;object-fit:contain!important;
  }
}

/* V40: No blurred image duplicates behind fullscreen media.
   Neutral letterbox space preserves entire video and its watermark on phones. */
@media (pointer:coarse), (max-width:700px){
  #expViewer .exp-viewer-screen::before,
  #atxFilmDialog:fullscreen::before,#atxFilmDialog:-webkit-full-screen::before,
  .video-stage:fullscreen::before,.reel-media:fullscreen::before{
    content:none!important;display:none!important;background-image:none!important;
    filter:none!important;transform:none!important;
  }
  #expViewer .exp-viewer-screen,
  #atxFilmDialog:fullscreen,#atxFilmDialog:-webkit-full-screen,
  .video-stage:fullscreen,.reel-media:fullscreen{
    background:#08090b!important;
  }
}
