/* ------------------------------------------------------------------ */
/* VIDEO modal — port of the legacy modalVideo factory                */
/* (ng-src/components/modal-video.factory.html + modal.factory.js     */
/* over Foundation Reveal): rgba(0,0,0,.45) reveal-overlay, a         */
/* top-anchored (data-v-offset=30) .reveal.large player box (width    */
/* 90%, max $global-width 1200px), the autoplay YouTube iframe, and   */
/* the round × .close-button. Scoped under .videomodal so the generic  */
/* names do not collide — same convention as .createmodal.            */
/*                                                                    */
/* Lives in its own sheet (not dashboard-student.css) so the          */
/* templates/dashboards/_video_modal.html include works on any        */
/* page — the partial links this file itself.                         */
/* ------------------------------------------------------------------ */
.videomodal {
  --z-modal: 9999;
}
.videomodal[hidden] .underlay {
  display: none;
}
.videomodal .underlay {
  z-index: var(--z-modal);
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.45);
  overflow-y: scroll;
  overscroll-behavior: contain;
}
.videomodal .player {
  position: relative;
  top: 30px;
  margin-right: auto;
  margin-left: auto;
  width: 90%;
  max-width: 1200px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  overflow: visible;
  background-color: #ffffff;
}
.videomodal .player__frame {
  display: block;
  width: 100%;
  height: 674px;
  border: 0;
  margin-bottom: -5px; /* legacy .reveal--video white-bar fix */
}
.videomodal .close-button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  color: #dddddd;
  display: inline-block;
  text-align: center;
  line-height: 30px;
  font-weight: 600;
  font-size: 24px;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .videomodal .close-button:hover {
    color: #ffffff;
    background-color: #000000;
  }
}
/* Foundation medium+: the × floats half-outside the player corner. */
@media (min-width: 640px) {
  .videomodal .close-button {
    top: -15px;
    right: -15px;
  }
}
/* Foundation zero-breakpoint: reveal goes fullscreen. */
@media (max-width: 639.98px) {
  .videomodal .player {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    border-radius: 0;
  }
}
.videomodal .close-button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}
