.ptah-video-background { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh; overflow: hidden; z-index: var(--ptah-vbg-z-index, -1); pointer-events: none; }
.ptah-video-background__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: var(--ptah-vbg-object-fit, cover); object-position: var(--ptah-vbg-object-position, center center); opacity: var(--ptah-vbg-opacity, 1); }
.ptah-video-background__overlay { position: absolute; inset: 0; background: var(--ptah-vbg-overlay-color, #000); opacity: var(--ptah-vbg-overlay-opacity, .25); }

body > .ptah-video-background--portaled { position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100vh !important; height: 100dvh !important; max-width: none !important; max-height: none !important; overflow: hidden !important; pointer-events: none !important; }
body > .ptah-video-background--portaled > .ptah-video-background__video { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; object-fit: var(--ptah-vbg-object-fit, cover) !important; object-position: var(--ptah-vbg-object-position, center center) !important; }

/* V3.1: viewport-wide layer, independent of Drupal's block region. */
body > .ptah-video-background--portaled {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-width: 100vw !important;
  min-height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  transform: none !important;
  overflow: hidden !important;
  z-index: 1 !important;
}
body > .ptah-video-background--portaled > video {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  transform: none !important;
  object-fit: cover !important;
  object-position: var(--ptah-vbg-object-position, center center) !important;
}
body.ptah-vbg-page-transparent > .dialog-off-canvas-main-canvas {
  position: relative !important;
  z-index: 2 !important;
  background: transparent !important;
}
