/* Portfolio Video Background 1.4 — one fixed video for the entire site */
html { background-color: #140407; }
body.pvb-video-active {
  position: relative;
  isolation: isolate;
  background: transparent !important;
}
#pvb-video-background {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #140407 url('poster.jpg') center / cover no-repeat;
  contain: layout paint;
}
#pvb-video {
  display: block;
  position: absolute;
  width: calc(100% + 120px);
  height: calc(100% + 120px);
  top: -60px;
  left: -60px;
  max-width: none;
  object-fit: cover;
  object-position: var(--pvb-video-x, 57%) center;
  transform: translate3d(var(--pvb-shift-x, 0px), var(--pvb-shift-y, 0px), 0);
  will-change: transform;
  backface-visibility: hidden;
  pointer-events: none;
}
#pvb-video-background .pvb-darken {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--pvb-darkness, .45));
  pointer-events: none;
}
/* Transparent wrappers/sections make video visible behind the page. */
body.pvb-video-active .pvb-transparent-section,
body.pvb-video-active .pvb-unmask-hero,
body.pvb-video-active .pvb-unmask-hero-overlay,
body.pvb-video-active .pvb-transparent-bg {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}
/* Remove theme-generated full-hero backgrounds, but only for selected overlay surfaces. */
body.pvb-video-active .pvb-unmask-hero::before,
body.pvb-video-active .pvb-unmask-hero::after,
body.pvb-video-active .pvb-unmask-hero-overlay::before,
body.pvb-video-active .pvb-unmask-hero-overlay::after {
  background: transparent !important;
  background-image: none !important;
  opacity: 0 !important;
  box-shadow: none !important;
}
body.pvb-video-active .pvb-unmask-hero > .elementor-background-overlay,
body.pvb-video-active .pvb-unmask-hero .elementor-background-overlay,
body.pvb-video-active .pvb-unmask-hero .wp-block-cover__background,
body.pvb-video-active .pvb-unmask-hero .wp-block-cover__image-background {
  background: transparent !important;
  background-image: none !important;
  opacity: 0 !important;
}
/* Only full-bleed decorative image/video/canvas layers are hidden. Portraits survive. */
body.pvb-video-active .pvb-unmask-hero-media {
  opacity: 0 !important;
  visibility: hidden !important;
}
body.pvb-video-active #da-aurora { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  #pvb-video { display: none !important; }
}
@media (max-width: 767px) {
  body.pvb-disable-mobile-video #pvb-video { display: none !important; }
  #pvb-video { width: calc(100% + 64px); height: calc(100% + 64px); top: -32px; left: -32px; }
}
