@import '../../_global/styles/mixins';
@import '../../_global/styles/vars';

.video {
  width: 100%;
  margin: var(--section-margin) 0;
}

.video-box {
  position: relative;
  display: block;
  width: 100%;

  &:before {
    content: "";
    position: relative;
    display: block;
    padding-top: 56.25%;
  }

  iframe, video {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  video {
    object-fit: cover;
  }

  .copyright {
    @include copyright;
    width: 56.25%;
    text-align: right;
    padding-right: 14px;
  }
}

.teaser .video-in-teaser {
  .video-box {
    position: absolute;
    top: 0;
    height: 100%;
  }

  &:after {
    display: none;
  }

  .poster-wrapper .icon-fa-play {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    width: auto;
    transform: translate(-50%, -50%);

    &:before {
      font-family: "IHK24FontAwesome", sans-serif;
      right: auto;
      transform: translateX(-50%);
      left: 50%;
    }
  }

  &:hover {
    .btn {
      box-shadow: 0 0 0 5px rgba(var(--theme-color-primary-rgb), 0.3);
    }
  }
}