/* The canvas takes exactly the slot the cover's video background occupied. */
.pi-orb-cover .pi-orb-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;          /* same layer as .wp-block-cover__video-background */
  pointer-events: none;
}

/* Hidden until the orb actually starts, so a WebGL failure keeps the video. */
.pi-orb-cover:not(.pi-orb-active) .pi-orb-canvas {
  opacity: 0;
}

.pi-orb-cover.pi-orb-active .wp-block-cover__video-background,
.pi-orb-cover.pi-orb-active .wp-block-cover__image-background {
  display: none;
}
