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%;
}

.theme-video-media__poster img,
.theme-video-media__poster svg {
  z-index: 2;
  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: 3;
  display: flex;
  width: 48px;
  height: 48px;
  padding: 0;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  transition: transform 0.2s;
}

.theme-video-media__play-button:hover {
  transform: scale(1.05);
}

.theme-video-media__play-button-icon {
  z-index: 3;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

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

.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;
  }
}
