theme-video-media {
  position: relative;
  display: block;
  width: 100%;
}

.theme-video-media video,
.theme-video-media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
}

.theme-video-media__poster {
  position: relative;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.theme-video-media__poster img,
.theme-video-media__poster svg {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: var(--poster-image-fit-type);
}

.theme-video-media__play-button {
  position: absolute;
  inset-block-end: 20px;
  inset-inline-end: 20px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid #fff;
  border-radius: 50%;
  outline: none;
  transition: background 0.2s;
}

.theme-video-media__play-button:hover {
  background: rgba(0, 0, 0, 0.7);
}

.theme-video-media__play-button svg {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  margin-left: 6px;
}

@media (max-width: 991px) {
  .theme-video-media__play-button {
    width: 40px;
    height: 40px;
    inset-block-end: 12px;
    inset-inline-end: 12px;
  }

  .theme-video-media__play-button svg {
    width: 20px;
    height: 20px;
  }
}

.theme-video-media__media {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  background-color: rgba(var(--color-image-background));
}

.theme-video-media {
  cursor: pointer;
}

.theme-video-media__media.active {
  z-index: 2;
}

.theme-video-media--empty {
  width: 100%;
  height: 848px;
}

@media (max-width: 991px) {
  .theme-video-media--empty {
    height: 188px;
  }
}
