
.edv-vp-overlay{
  position:fixed;
  inset:0;
  z-index:999999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.edv-vp-overlay.is-open{display:flex;}
.edv-vp-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.78);
}
.edv-vp-dialog{
  position:relative;
  z-index:2;
  width:min(100%, 1100px);
  background:#000;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 20px 70px rgba(0,0,0,.35);
}
.edv-vp-ratio{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  background:#000;
}
.edv-vp-video{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  background:#000;
}
.edv-vp-close{
  position:absolute !important;
  top:10px !important;
  right:12px !important;
  left:auto !important;
  bottom:auto !important;
  z-index:5 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:50% !important;
  background:rgba(0,0,0,.65) !important;
  color:#fff !important;
  font-size:0 !important;
  line-height:1 !important;
  text-indent:0 !important;
  transform:none !important;
  translate:none !important;
  cursor:pointer !important;
}
.edv-vp-close::before,
.edv-vp-close::after{
  content:"";
  position:absolute;
  width:20px;
  height:2px;
  background:#fff;
  border-radius:2px;
  left:50%;
  top:50%;
  transform-origin:center;
}
.edv-vp-close::before{ transform:translate(-50%,-50%) rotate(45deg); }
.edv-vp-close::after{ transform:translate(-50%,-50%) rotate(-45deg); }
body.edv-vp-lock{overflow:hidden;}
@media (max-width:600px){
  .edv-vp-overlay{padding:12px;}
  .edv-vp-close{top:6px !important;right:6px !important;left:auto !important;width:38px !important;height:38px !important;min-width:38px !important;}
}


/* v1.0.3 mobile hardening */
html.edv-vp-lock,
body.edv-vp-lock{
  overflow:hidden !important;
  touch-action:none;
}
#edv-video-popup.edv-vp-overlay{
  position:fixed !important;
  top:0 !important;
  right:0 !important;
  bottom:0 !important;
  left:0 !important;
  width:100% !important;
  height:100% !important;
  height:100dvh !important;
  z-index:2147483647 !important;
  box-sizing:border-box !important;
}
#edv-video-popup.edv-vp-overlay.is-open{
  display:flex !important;
  visibility:visible !important;
  opacity:1 !important;
}
#edv-video-popup .edv-vp-dialog{
  max-width:min(1100px, calc(100vw - 24px)) !important;
  max-height:calc(100dvh - 24px) !important;
}
#edv-video-popup .edv-vp-video{
  max-width:100% !important;
  height:100% !important;
}
@media (max-width:767px){
  #edv-video-popup.edv-vp-overlay{
    padding:10px !important;
    align-items:center !important;
    justify-content:center !important;
  }
  #edv-video-popup .edv-vp-dialog{
    width:100% !important;
    max-width:100% !important;
    border-radius:10px !important;
  }
  #edv-video-popup .edv-vp-ratio{
    width:100% !important;
    aspect-ratio:16/9 !important;
  }
}
