.image-with-text-slideshow__slider-wrapper {
  position: relative;
}

.image-with-text-slideshow__slide {
  display: flex;
  position: relative;
}

@media only screen and (max-width: 767px) {
  .image-with-text-slideshow__slide {
    flex-direction: column;
  }
}

@media only screen and (min-width: 768px) {
  .image-with-text-slideshow__media-content,
  .image-with-text-slideshow__text-content {
    box-sizing: border-box;
  }

  .image-with-text-slideshow__slide--small
    .image-with-text-slideshow__media-content {
    width: 41.6666666667%;
  }

  .image-with-text-slideshow__slide--small
    .image-with-text-slideshow__text-content {
    width: 58.3333333333%;
  }

  .image-with-text-slideshow__slide--medium
    .image-with-text-slideshow__media-content,
  .image-with-text-slideshow__slide--medium
    .image-with-text-slideshow__text-content {
    width: 50%;
  }

  .image-with-text-slideshow__slide--large
    .image-with-text-slideshow__media-content {
    width: 58.3333333333%;
  }

  .image-with-text-slideshow__slide--large
    .image-with-text-slideshow__text-content {
    width: 41.6666666667%;
  }
}

.image-with-text-slideshow__slide-link {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.image-with-text-slideshow__media-content .icon--placeholder {
  border: 0 !important;
  height: auto;
}

.image-with-text-slideshow__media-content video {
  max-width: 100%;
}

.image-with-text-slideshow__media-content .ytp-autohide {
  cursor: default;
}

.image-with-text-slideshow__media-content:not(
    .image-with-text-slideshow__aspect-ratio--natural
  )
  .image-with-text-slideshow__video-wrapper {
  position: relative;
  height: 100%;
  width: 100%;
}

.image-with-text-slideshow__media-content:not(
    .image-with-text-slideshow__aspect-ratio--natural
  )
  .image-with-text-slideshow__video-wrapper
  .image-with-text-slideshow__video {
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.image-with-text-slideshow__media-content:not(
    .image-with-text-slideshow__aspect-ratio--natural
  )
  .image-with-text-slideshow__video-wrapper
  .image-with-text-slideshow__video
  .embed-container {
  position: static;
  padding-bottom: unset;
}

.image-with-text-slideshow__media-content:not(
    .image-with-text-slideshow__aspect-ratio--natural
  )
  .image-with-text-slideshow__video-wrapper
  .image-with-text-slideshow__video
  .embed-container
  iframe {
  position: absolute;
  max-width: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500%;
  height: 200%;
}

.image-with-text-slideshow__media-content:not(
    .image-with-text-slideshow__aspect-ratio--natural
  )
  .image-with-text-slideshow__video-wrapper
  .image-with-text-slideshow__video.type-mp4
  .hero-video-mp4 {
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.image-with-text-slideshow__aspect-ratio--tall img,
.image-with-text-slideshow__aspect-ratio--tall svg {
  aspect-ratio: 2/3;
}

.image-with-text-slideshow__aspect-ratio--wide img,
.image-with-text-slideshow__aspect-ratio--wide svg {
  aspect-ratio: 4/3;
}

.image-with-text-slideshow__aspect-ratio--square img,
.image-with-text-slideshow__aspect-ratio--square svg {
  aspect-ratio: 1/1;
}

.image-with-text-slideshow__aspect-ratio--circle img,
.image-with-text-slideshow__aspect-ratio--circle svg {
  aspect-ratio: 1/1;
  border-radius: 50%;
}

.image-with-text-slideshow__aspect-ratio--natural img,
.image-with-text-slideshow__aspect-ratio--natural svg {
  aspect-ratio: auto;
}

.image-with-text-slideshow__text-content {
  display: flex;
  padding: 15px;
}

@media only screen and (min-width: 768px) {
  .image-with-text-slideshow__text-content {
    padding: 30px;
  }
}

.image-with-text-slideshow__text-content-inner {
  width: 100%;
}

@media only screen and (min-width: 768px) {
  .image-with-text-slideshow__text-content-inner {
    width: 100%;
    padding-left: 50px;
  }
}

.image-with-text-slideshow__text-content-inner > :last-child {
  margin-bottom: 0;
}

.image-with-text-slideshow__subheading {
  font-size: max(var(--heading-size-mobile) / 2, 12px);
  padding-bottom: 20px;
  padding-left: 20px;
}

@media only screen and (min-width: 768px) {
  .image-with-text-slideshow__subheading {
    font-size: max(var(--heading-size-desktop) / 2, 12px);
    padding-bottom: 20px;
  }
}

.image-with-text-slideshow__heading {
  font-size: var(--heading-size-mobile);
}

@media only screen and (min-width: 768px) {
  .image-with-text-slideshow__heading {
    font-size: var(--heading-size-desktop);
  }
}

.image-with-text-slideshow__text {
  font-size: var(--text-size-mobile);
}

@media only screen and (min-width: 768px) {
  .image-with-text-slideshow__text {
    font-size: var(--text-size-desktop);
  }
}

@media only screen and (min-width: 768px) {
  .image-with-text-slideshow__desktop-position--top {
    align-items: flex-start;
  }

  .image-with-text-slideshow__desktop-position--center {
    align-items: center;
  }

  .image-with-text-slideshow__desktop-position--bottom {
    align-items: flex-end;
  }

  .image-with-text-slideshow__desktop-alignment--left {
    text-align: left;
  }

  .image-with-text-slideshow__desktop-alignment--left
    .image-with-text-slideshow__buttons {
    justify-content: flex-start;
  }

  .image-with-text-slideshow__desktop-alignment--center {
    text-align: center;
  }

  .image-with-text-slideshow__desktop-alignment--center
    .image-with-text-slideshow__buttons {
    justify-content: center;
  }

  .image-with-text-slideshow__desktop-alignment--right {
    text-align: right;
  }

  .image-with-text-slideshow__desktop-alignment--right
    .image-with-text-slideshow__buttons {
    justify-content: flex-end;
  }
}

@media only screen and (max-width: 767px) {
  .image-with-text-slideshow__mobile-flex-reverse {
    flex-direction: column-reverse;
  }

  .image-with-text-slideshow__mobile-alignment--left {
    text-align: left;
  }

  .image-with-text-slideshow__mobile-alignment--left
    .image-with-text-slideshow__buttons {
    justify-content: flex-start;
  }

  .image-with-text-slideshow__mobile-alignment--center {
    text-align: center;
  }

  .image-with-text-slideshow__mobile-alignment--center
    .image-with-text-slideshow__buttons {
    justify-content: center;
  }

  .image-with-text-slideshow__mobile-alignment--right {
    text-align: right;
  }

  .image-with-text-slideshow__mobile-alignment--right
    .image-with-text-slideshow__buttons {
    justify-content: flex-end;
  }
}

.image-with-text-slideshow .rte > :last-child {
  margin-bottom: 0;
}

.image-with-text-slideshow__buttons {
  display: flex;
  gap: 10px;
}

@media only screen and (min-width: 768px) {
  .image-with-text-slideshow__buttons {
    gap: 20px;
  }
}
