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

.theme-video-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

@supports not (aspect-ratio: 1 / 1) {
  .theme-video-media {
    height: 0;
    padding-top: 56.25%;
  }

  .theme-video-media__poster,
  .theme-video-media__media {
    position: absolute;
    top: 0;
    left: 0;
  }
}

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

.theme-video-media__poster {
  position: relative;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.theme-video-media__poster img,
.theme-video-media__poster svg {
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-video-media__play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: flex;
  width: 15%;
  min-width: 36px;
  max-width: 88px;
  aspect-ratio: 1;
  padding: 0;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  transition: transform 0.2s;
  transform: translate(-50%, -50%);
}

.theme-video-media__play-button:hover {
  transform: translate(-50%, -50%) scale(1.11);
}

.theme-video-media__play-button-icon {
  z-index: 3;
  width: 100%;
  height: 100%;
}

.theme-video-media__media {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  background-color: transparent;
}

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

.theme-video-media--no-poster .theme-video-media__media {
  z-index: 1;
}

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

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