/* The negative background layer stays inside the row's isolated stack. */
.tsvb-row {
  position: relative;
  isolation: isolate;
  min-height: var(--tsvb-min-height, 480px);
}

.tsvb-row > .tsvb-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background-image: var(--tsvb-poster, none);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.tsvb-row > .tsvb-background::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
  opacity: var(--tsvb-overlay, 0.25);
  pointer-events: none;
}

.tsvb-row > .tsvb-background > iframe.tsvb-player {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.tsvb-row > .tsvb-background.tsvb-has-video > iframe.tsvb-player {
  opacity: 1;
}


@media (max-width: 767px) {
  .tsvb-row {
    min-height: var(--tsvb-mobile-height, 320px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tsvb-row > .tsvb-background > iframe.tsvb-player {
    transition: none;
  }
}
