.custom-video {
  display: flex;
  position: relative;
  .custom-video-cover {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    object-fit: cover;
    z-index: 1;
    cursor: pointer;
    transition: opacity 1s var(--curve);
  }
  .play-button {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    padding-top: 12px;
    background: var(--green);
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 14px;
    line-height: 1;
    color: var(--black);
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 3;
    transition: opacity 1s var(--curve);
    svg {
      width: auto;
      height: 1em;
      margin-left: 8px;
      fill: currentColor;
      position: relative;
      top: -0.05em;
    }
  }
  video, iframe {
    width: 100%;
    z-index: 0;
  }
  iframe {
    aspect-ratio: 16 / 9;
  }
  &.playing {
    .custom-video-cover, .play-button {
      opacity: 0;
      pointer-events: none;
    }
  }
  @media (max-width: 580px) {
    .play-button {
      display: inline-flex;
    }
  }
}