/* Poster overlay: shown until user clicks; then hidden so iframe can play */
/* Make the aspect div fill the wrapper so the poster/iframe have a real area (wrapper gets height from ::before). */
.evc-video-wrapper.evc-video-has-poster .evc-video-aspect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.evc-video-wrapper.evc-video-has-poster .evc-poster-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.evc-video-wrapper.evc-video-has-poster .evc-poster-layer.evc-poster-hidden {
  display: none;
}

.evc-video-wrapper.evc-video-has-poster .evc-poster-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.evc-video-wrapper.evc-video-has-poster .evc-poster-play {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: inline-block;
  pointer-events: none;
}

.evc-video-wrapper.evc-video-has-poster .evc-poster-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  margin-left: 4px;
  border-width: 14px 0 14px 24px;
  border-style: solid;
  border-color: transparent transparent transparent #111;
}

.evc-video-wrapper.evc-video-has-poster iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
