slideshow-component {
  position: relative;
  display: flex;
  flex-direction: column;
}

slideshow-component .slideshow.banner {
  flex-direction: row;
  flex-wrap: nowrap;
  margin: 0;
  gap: 0;
  overflow-y: hidden;
}

.slideshow__slide {
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  visibility: visible;
}

@media screen and (max-width: 749px) {

  .slideshow--placeholder.banner--mobile-bottom.banner--adapt_image .slideshow__media,
  .slideshow--placeholder.banner--adapt_image:not(.banner--mobile-bottom) {
    height: 28rem;
  }
}

@media screen and (min-width: 750px) {
  .slideshow--placeholder.banner--adapt_image {
    height: 56rem;
  }
}

.slideshow__text.banner__box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 54.5rem;
}

.slideshow__text>* {
  max-width: 100%;
}

@media screen and (max-width: 749px) {
  slideshow-component.page-width .slideshow__text {
    border-right: var(--text-boxes-border-width) solid rgba(var(--color-foreground), var(--text-boxes-border-opacity));
    border-left: var(--text-boxes-border-width) solid rgba(var(--color-foreground), var(--text-boxes-border-opacity));
  }

  .banner--mobile-bottom .slideshow__text.banner__box {
    max-width: 100%;
  }

  .banner--mobile-bottom .slideshow__text-wrapper {
    flex-grow: 1;
  }

  .banner--mobile-bottom .slideshow__text.banner__box {
    height: 100%;
  }

  .banner--mobile-bottom .slideshow__text .button {
    flex-grow: 0;
  }

  .slideshow__text.slideshow__text-mobile--left {
    align-items: flex-start;
    text-align: left;
  }

  .slideshow__text.slideshow__text-mobile--right {
    align-items: flex-end;
    text-align: right;
  }
}

@media screen and (min-width: 750px) {
  .slideshow__text.slideshow__text--left {
    align-items: flex-start;
    text-align: left;
  }

  .slideshow__text.slideshow__text--right {
    align-items: flex-end;
    text-align: right;
  }
}

.slideshow:not(.banner--mobile-bottom) .slideshow__text-wrapper {
  height: 100%;
}

@media screen and (min-width: 750px) {
  .slideshow__text-wrapper.banner__content {
    height: 100%;
    padding: 5rem;
  }
}

.slideshow__controls {
  border: 0.1rem solid rgba(var(--color-foreground), 0.08);
}

.slideshow__controls--top {
  order: 2;
  z-index: 1;
}

@media screen and (max-width: 749px) {
  .slideshow__controls--border-radius-mobile {
    border-bottom-right-radius: var(--text-boxes-radius);
    border-bottom-left-radius: var(--text-boxes-radius);
  }
}

.spaced-section--full-width:last-child slideshow-component:not(.page-width) .slideshow__controls {
  border-bottom: none;
}

@media screen and (min-width: 750px) {
  .slideshow__controls {
    position: relative;
  }
}

slideshow-component:not(.page-width) .slider-buttons {
  border-right: 0;
  border-left: 0;
}

.slideshow__control-wrapper {
  display: flex;
}

.slideshow__autoplay {
  position: absolute;
  right: 0;
  border-left: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media screen and (max-width: 749px) {
  slideshow-component.page-width .slideshow__autoplay {
    right: 1.5rem;
  }
}

@media screen and (min-width: 750px) {
  .slideshow__autoplay.slider-button {
    position: inherit;
    margin-left: 0.6rem;
    padding: 0 0 0 0.6rem;
    border-left: 0.1rem solid rgba(var(--color-foreground), 0.08);
  }
}

.slideshow__autoplay .icon.icon-play,
.slideshow__autoplay .icon.icon-pause {
  display: block;
  position: absolute;
  opacity: 1;
  transform: scale(1);
  transition: transform 150ms ease, opacity 150ms ease;
  width: 0.8rem;
  height: 1.2rem;
}

.slideshow__autoplay .icon.icon-play {
  height: 1rem;
}

.slideshow__autoplay path {
  fill: rgba(var(--color-foreground), 1);
}

.slideshow__autoplay:hover path {
  fill: rgb(var(--color-foreground));
}

@media screen and (forced-colors: active) {
  .slideshow__autoplay path,
  .slideshow__autoplay:hover path {
    fill: CanvasText;
  }
}

.slideshow__autoplay:hover .svg-wrapper {
  transform: scale(1.1);
}

.slideshow__autoplay--paused .icon-pause,
.slideshow__autoplay:not(.slideshow__autoplay--paused) .icon-play {
  visibility: hidden;
  opacity: 0;
  transform: scale(0.8);
}

/* custom slideshow styles */
.section-slideshow {
  --slideshow-caption-text: var(--slideshow-text-size-1);
  --slideshow-heading-text: var(--slideshow-text-size-2);
  --slideshow-subheading-text: var(--slideshow-text-size-3);

  @media screen and (width >=750px) and (width < 990px) {
    --slideshow-caption-text: var(--slideshow-text-size-tablet-1);
    --slideshow-heading-text: var(--slideshow-text-size-tablet-2);
    --slideshow-subheading-text: var(--slideshow-text-size-tablet-3);
  }

  @media screen and (width < 750px) {
    --slideshow-caption-text: var(--slideshow-text-size-mobile-1);
    --slideshow-heading-text: var(--slideshow-text-size-mobile-2);
    --slideshow-subheading-text: var(--slideshow-text-size-mobile-3);
  }

  .slideshow-component--radius .slider__slide {
    overflow: hidden;
    border-radius: var(--slideshow-corner-radius);
    -webkit-border-radius: var(--slideshow-corner-radius);
    -moz-border-radius: var(--slideshow-corner-radius);
    -ms-border-radius: var(--slideshow-corner-radius);
    -o-border-radius: var(--slideshow-corner-radius);
  }

  .slideshow__controls {
    &:has(.slider-counter--none) {
      --slideshow-button-opacity: 0;
      --slideshow-button-space: calc(var(--page-width-horizontal-space) - 1rem);
      position: static;
      border: none;

      .slider-button {
        --slideshow-button-size: 4.4rem;
        --slideshow-button-icon-size: 2.2rem;

        position: absolute;
        top: 50%;
        width: var(--slideshow-button-size);
        height: var(--slideshow-button-size);
        transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
        -moz-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        -o-transform: translateY(-50%);
        opacity: var(--slideshow-button-opacity);
        transition: all var(--duration-default) ease;
        -webkit-transition: all var(--duration-default) ease;
        -moz-transition: all var(--duration-default) ease;
        -ms-transition: all var(--duration-default) ease;
        -o-transition: all var(--duration-default) ease;
        z-index: 1;

        &:is(.slider-button--prev) {
          left: var(--slideshow-button-space);
        }

        &:is(.slider-button--next) {
          right: var(--slideshow-button-space);
        }

        .svg-wrapper {
          width: var(--slideshow-button-icon-size);
          height: var(--slideshow-button-icon-size);

          svg {
            height: 100%;
          }
        }

        @media screen and (width < 990px) {
          --slideshow-button-size: 3.4rem;
          --slideshow-button-icon-size: 2rem;
        }
      }

      @media screen and (width < 990px) {
        --slideshow-button-opacity: 1;
        --slideshow-button-space: var(--page-width-horizontal-space);
      }
    }

    .slider-counter--none,
    &:has(.slider-counter--none) .slideshow__autoplay {
      display: none;
    }
  }

  @media screen and (width >=990px) {
    &:has(.slider-counter--none) slideshow-component:has(.slideshow:hover, .slideshow__controls:hover) .slideshow__controls {
      --slideshow-button-opacity: 1;
      --slideshow-button-space: var(--page-width-horizontal-space);
    }
  }

  .slideshow__text-wrapper {
    &:not(.banner--desktop-transparent) .slideshow__text {
      background: rgba(var(--color-background), var(--slideshow-content-box-opacity));
    }

    .slideshow__text {
      padding: 3.5rem;
      overflow: hidden;
      max-width: var(--slideshow-content-box);
      border-radius: var(--slideshow-content-box-radius);
      -webkit-border-radius: var(--slideshow-content-box-radius);
      -moz-border-radius: var(--slideshow-content-box-radius);
      -ms-border-radius: var(--slideshow-content-box-radius);
      -o-border-radius: var(--slideshow-content-box-radius);

      @media screen and (width >= 1440px) {
        padding: 5rem;
      }
      
      @media screen and (width >= 990px) {
        width: 100%;
      }

      @media screen and (width < 990px) {
        width: fit-content;
      }

      @media screen and (width < 750px) {
        padding: 2rem;
      }

      & > * {
        margin-bottom: 0;
      }

      & > *:first-child {
        margin-top: 0;
      }

      & > * + * {
        margin-top: 2rem;
        @media screen and (width < 750px) {
          margin-top: 1.5rem;
        }
      }

      .banner__caption,
      .banner__heading,
      .banner__text {
        line-height: 1;
      }

      .banner__caption {
        font-size: var(--slideshow-caption-text);
        font-weight: var(--font-weight-400);
      }

      .banner__heading  {
        font-size: var(--slideshow-heading-text);
        font-weight: var(--font-weight-700);
        text-transform: uppercase;
        letter-spacing: -2%;
      }

      .banner__text {
        font-size: var(--slideshow-subheading-text);
      }

      .banner__buttons {
        --slideshow-button-inline-gap: .8rem;
        --slideshow-button-inline-space-start: 2.4rem;
        --slideshow-button-inline-space-end: 1.6rem;
        --slideshow-button-icon-wrapper: 2.4rem;

        .button:has(.svg-wrapper) {
          font-size: var(--font-body-size);
          column-gap: var(--slideshow-button-inline-gap);
          padding-inline-start: var(--slideshow-button-inline-space-start);
          padding-inline-end: var(--slideshow-button-inline-space-end);

          .svg-wrapper {
            width: var(--slideshow-button-icon-wrapper);
            height: var(--slideshow-button-icon-wrapper);
          }
        }
      }

      .button {
        font-weight: var(--font-weight-700);
        min-height: calc(5rem + var(--buttons-border-width) * 2);
      }
      
      & > * + .banner__buttons {
        @media screen and (width >= 750px) and (width < 990px) {
          margin-top: 3rem;
        }

        @media screen and (width >= 990px) {
          margin-top: 4rem;
        }

        @media screen and (width >= 1440px) {
          margin-top: 5rem;
        }
      }
    }
  }

  @media screen and (width < 750px) {
    .slideshow {
      &:not(.banner--mobile-bottom):not(.email-signup-banner) .slideshow__text {
        background: rgba(var(--color-background), var(--slideshow-content-box-opacity));
        border-radius: var(--slideshow-content-box-radius);
        -webkit-border-radius: var(--slideshow-content-box-radius);
        -moz-border-radius: var(--slideshow-content-box-radius);
        -ms-border-radius: var(--slideshow-content-box-radius);
        -o-border-radius: var(--slideshow-content-box-radius);
      }

      &:not(.banner--mobile-bottom) .slideshow__text-wrapper {
        padding: 3rem 1.2rem;
      }
    }
  }
}