/* Image/Video block — ported from CMS11 _image-video.scss and _hero-image-video.scss for career pages */

body.career-template .image-video__background-video {
  overflow: hidden;
}

body.career-template .image-video__mute-btn {
  position: absolute;
  cursor: pointer;
  top: 0;
  display: block;
  z-index: 2;
}

body.career-template .image-video {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-wrap: wrap;
  align-content: center;
  overflow: unset;
  position: relative;
  width: 100%;
}

body.career-template .image-video.bg-dark {
  background-color: #121212;
}

body.career-template .image-video.bg-primary-light {
  background-color: #083a70;
}

body.career-template .image-video.bg-primary-dark {
  background-color: #062e58;
}

body.career-template .image-video.bg-secondary-light {
  background-color: #083a70;
}

body.career-template .image-video.bg-secondary-dark {
  background-color: #062e58;
}

body.career-template .image-video iframe {
  border: 0;
}

body.career-template .image-video__background-image {
  position: relative;
  width: 100%;
}

body.career-template .image-video__background-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

body.career-template .image-video__background-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  width: 100%;
}

body.career-template .image-video__background-video {
  height: 0;
  overflow: hidden;
  padding-top: calc(9 / 16 * 100%);
  position: relative;
}

body.career-template .image-video__background-video iframe,
body.career-template .image-video__background-video video,
body.career-template .image-video__background-video video-js {
  height: 100%;
  left: 0;
  min-height: initial;
  min-width: initial;
  padding: 0;
  position: absolute;
  top: 0;
  transform: initial;
  width: 100%;
}

@media screen and (min-width: 64em) {
  body.career-template .row.row--2-column > .column-item .image-video {
    height: 100%;
  }

  body.career-template .row.row--2-column > .column-item .image-video__background-image {
    height: 100%;
  }
}

body.career-template .image-video .play-pause-btn {
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  bottom: 1rem;
  color: #ffffff;
  display: flex;
  font-size: 0.875rem;
  height: 2rem;
  justify-content: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  z-index: 2;
}

body.career-template .image-video .play-pause-btn__icon--pause {
  display: none;
}

body.career-template .image-video .play-pause-btn--playing .play-pause-btn__icon--play {
  display: none;
}

body.career-template .image-video .play-pause-btn--playing .play-pause-btn__icon--pause {
  display: flex;
}

body.career-template .image-video .play-pause-btn__icon--play span::after {
  border-color: transparent transparent transparent #ffffff;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  content: '';
  display: inline-block;
  margin-left: 0.1875rem;
}

body.career-template .image-video .play-pause-btn__icon--pause span::before {
  border: 1px solid #ffffff;
  content: '';
  display: inline-block;
  height: 1.25rem;
  margin-right: 0.3rem;
  width: 0.25rem;
}
