#videoTemplateDetail .video-template-preview-shell {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: inherit;
}

#videoTemplateDetail .video-template-preview-shell > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#videoTemplateDetail .video-template-fullscreen-trigger {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#videoTemplateDetail .video-template-fullscreen-close {
  display: none;
}

body.video-template-preview-open {
  overflow: hidden !important;
}

#videoTemplateDetail .video-template-preview-shell.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  background: #000;
}

#videoTemplateDetail .video-template-preview-shell.is-fullscreen > video {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
}

#videoTemplateDetail .video-template-preview-shell.is-fullscreen .video-template-fullscreen-trigger {
  display: none;
}

#videoTemplateDetail .video-template-preview-shell.is-fullscreen .video-template-fullscreen-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font: 400 28px/1 sans-serif;
}
