.ce_youtube {
  margin-bottom: 2rem;

  .video_container {
    position: relative;
    padding-bottom: 56.25%;
    width: 100%;
    height: auto;
  }

  img,
  iframe {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    height: 100% !important;
  }

  &.spwn-youtube {
    position: relative;
    display: flex;
    justify-content: flex-end;
    min-height: 300px;
    margin-bottom: 6rem;

    &:before {
      content: "";
      position: absolute;
      left: 0;
      top: 50%;
      z-index: -1;
      transform: translate(0, -50%);
      width: 100%;
      height: 268px;
      background: $secondary;
      border-radius: 30px;
    }

    h2, h3 {
      color: #fff;
      position: absolute;
      left: 50px;
      top: 50%;
      transform: translate(0, -50%);
      padding-bottom: 0;
    }

    .video_container {
      width: 717px;
      padding-bottom: 0;
      margin-right: 85px;

      .responsive {
        position: relative;
        padding-bottom: 56.25%;
        width: 100%;
        height: auto;
      }

      a {
        display: block;

        &:after {
          content: "";
          position: absolute;
          left: 50%;
          top: 50%;
          transform: translate(-50%, -50%);
          width: 77px;
          height: 78px;
          mask-image: url("../images/elements/youtube-play-icon.svg");
          mask-repeat: no-repeat;
          mask-position: left top;
          mask-size: 100% auto;
          background-color: #fff;
        }

        &:hover {
          &:after {
            background-color: $youtube-red;
          }
        }
      }

      img,
      iframe {
        border-radius: 20px;
      }
    }

    .caption {
      position: absolute;
      left: 30px;
      bottom: 30px;
      padding-right: 30px;
      font-size: size(24);
      line-height: size(30);
      color: #fff;
    }
  }
}