.hover-video{
  position: relative;
  display: block;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}

.hover-video__image{
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  vertical-align: top;
  opacity: 1;
  transition: opacity .18s ease;
}

.hover-video__video{
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  pointer-events: none;
  background: transparent;
  transition: opacity .18s ease;
}

.hover-video.is-ready.is-hovered .hover-video__image,
.hover-video.is-ready.is-finished .hover-video__image{
  opacity: 0;
}

.hover-video.is-ready.is-hovered .hover-video__video,
.hover-video.is-ready.is-finished .hover-video__video{
  opacity: 1;
}

.hover-video--video-only .hover-video__video{
  position: relative;
  inset: auto;
  opacity: 1;
  pointer-events: auto;
  height: auto;
}

.hover-video::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  box-shadow:
    inset 0 0 0 10px #fff,
    inset 0 0 0 1px rgba(0,0,0,0.12);
}

/* Editor */
.bhv-editor__slot{ min-width: 240px; }
.bhv-editor__label{ font-weight: 600; margin-bottom: 8px; }
.bhv-editor__empty{
  width: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  font-weight: 300;
  line-height: 1;
  color: #b42318;
  border: 2px dashed #b42318;
  background: #fff5f5;
  box-shadow:
    inset 0 0 0 10px #fff,
    inset 0 0 0 1px rgba(180,35,24,0.25);
}
.bhv-editor__filled{ border: 1px solid #ddd; padding: 8px; background: #fff; }
.bhv-editor__preview-image,
.bhv-editor__preview-video,
.bhv-editor__static-image,
.bhv-editor__static-video{ display:block; width:100%; height:auto; }
.bhv-editor__actions{ display:flex; gap:8px; margin-top:8px; }
.bhv-editor__settings{ margin-top: 16px; max-width: 480px; }
.bhv-editor__static-preview{ margin-top: 16px; max-width: 480px; }
