.deferred-video {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 24rem;
  min-width: 0;
  overflow: hidden;
  background: #18191d;
}

.deferred-video-cover {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.deferred-video > video,
.deferred-video-cover > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.deferred-video[data-video-src] > video[hidden],
.deferred-video-cover[hidden] {
  display: none;
}

.deferred-video-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #fff9;
  border-radius: 50%;
  padding: 0;
  color: white;
  background: #111c;
  cursor: pointer;
}

.deferred-video-play:hover,
.deferred-video-play:focus-visible {
  background: #333;
}

.deferred-video-play:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.deferred-video-play::after {
  content: "";
  margin-left: .15rem;
  border: .38rem solid transparent;
  border-right: 0;
  border-left: .58rem solid currentColor;
}

.video-wrapper > .deferred-video-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.vb-history-thumb.deferred-video {
  aspect-ratio: auto;
}

.we-thumb > .deferred-video {
  aspect-ratio: 64 / 47;
}

.we-thumb > .deferred-video > video {
  object-fit: contain;
}

.we-thumb .deferred-video-play,
.vb-history-thumb .deferred-video-play {
  width: 1.5rem;
  height: 1.5rem;
}

.op-portfolio-video-cover > .deferred-video-play {
  pointer-events: none;
}

.th-previews > .deferred-video {
  max-height: 16rem;
}
