.ehbv-enabled {
  isolation: isolate;
}

.ehbv-enabled > .ehbv-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ehbv-enabled > .ehbv-layer .ehbv-poster,
.ehbv-enabled > .ehbv-layer .ehbv-media,
.ehbv-enabled > .ehbv-layer .ehbv-video,
.ehbv-enabled > .ehbv-layer iframe,
.ehbv-enabled > .ehbv-layer .ehbv-youtube-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ehbv-enabled > .ehbv-layer .ehbv-poster {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.ehbv-enabled > .ehbv-layer .ehbv-media {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ehbv-enabled.ehbv-hover-active > .ehbv-layer .ehbv-media {
  opacity: 1;
}

.ehbv-enabled.ehbv-hover-active > .ehbv-layer.has-poster .ehbv-poster {
  opacity: 0;
}

.ehbv-enabled > .ehbv-layer video,
.ehbv-enabled > .ehbv-layer iframe {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.ehbv-enabled > .elementor-background-overlay {
  z-index: 1;
}

.ehbv-enabled > *:not(.ehbv-layer):not(.elementor-background-overlay) {
  position: relative;
  z-index: 2;
}
