/* Background Video Pro */

#bgvp-video-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  /* z-index set via JS from settings (default 0) */
}

/* Keep page content above the video layer when z-index is 0 */
body.bgvp-has-bg-video > *:not(#bgvp-video-layer):not(#wpadminbar) {
  position: relative;
  z-index: 1;
}

#wpadminbar {
  z-index: 99999;
}

#bgvp-video,
#bgvp-youtube-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#bgvp-video {
  object-fit: cover;
  object-position: center;
  transform: translateZ(0);
}

#bgvp-youtube-wrap {
  overflow: hidden;
}

/* Cover-style YouTube iframe (16:9 scaled to fill) */
#bgvp-youtube {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 of viewport width */
  min-height: 100vh;
  min-width: 177.77vh; /* 16:9 of viewport height */
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

#bgvp-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
}

@media (max-width: 768px) {
  #bgvp-video {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #bgvp-video-layer {
    display: none !important;
  }
}
