/* Full-bleed, full-viewport slideshow (sissa: 100vh, was 80vh) */
.carousel-homepage {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  height: 100vh;
  margin: 0;
  padding: 0;

  .img-wrapper,
  .img-wrapper div,
  .it-hero-wrapper,
  .splide__list,
  .splide__track {
    height: 100%;
  }
}

/* sissa rail: caption and nav align to a 1500px centered rail */
.carousel-homepage .container-lg {
  max-width: 1500px;
}

/*------------------- SISSA -------------------*/

/* caption — sissa big uppercase text between white rules, adapted to the BI
   hero markup emitted by pt_base:slide (sissa styled a bare text div; the dark
   overlay comes from BI's it-overlay on the slide, not a custom ::after) */
.carousel-homepage .it-hero-text-wrapper.bg-dark {
  background-color: transparent !important;
  max-width: none;
}
.carousel-homepage .it-hero-wrapper .it-hero-text-wrapper {
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  padding: 1.2rem 0 4rem;
  margin-bottom: 5rem;
  width: calc(100% - 30px);
  margin-left: auto;
  margin-right: auto;
}

.carousel-homepage .it-hero-text-wrapper h2.big-heading {
  font-size: 2.5rem;
  line-height: 3.125rem;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  margin-bottom: 0px;
}

@media (min-width: 992px) {
  .carousel-homepage .it-hero-text-wrapper {
    padding: 1.8rem 0 4rem;
    margin-bottom: 3rem;
  }
  .carousel-homepage .it-hero-text-wrapper .big-heading {
    font-size: 3.75rem;
    line-height: 4.25rem;
  }
  .carousel-homepage .it-hero-text-wrapper p {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .carousel-homepage .it-hero-text-wrapper h2.big-heading {
    font-size: 3rem;
    line-height: 4rem;
  }

  .carousel-homepage .it-hero-wrapper .container-lg {
    transform: translateX(30px);
  }
  body .carousel-homepage .carousel-wrapper-navigation {
    width: calc(100vw - 200px);
  }
}

@media (min-width: 1400px) {
  .carousel-homepage .it-hero-text-wrapper h2.big-heading {
    font-size: 5rem;
    line-height: 6rem;
  }

  .carousel-homepage .it-hero-text-wrapper .big-heading {
    font-size: 5rem;
    line-height: 5.5rem;
  }
}

@media (min-width: 1500px) {
  body .carousel-homepage .carousel-wrapper-navigation,
  .carousel-homepage .container-lg {
    max-width: none;
    width: calc(100vw - 200px);
  }
}

/* NAV (arrows + dots) — overlaid at the bottom of the slides */
.carousel-homepage .carousel-wrapper-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 0;
  width: 100%;
  margin-bottom: 2rem;
}

.carousel-homepage .splide__pagination {
  position: relative;
  margin-top: 0;
  top: 0;
  bottom: 0;
}

.carousel-homepage .carousel-wrapper-navigation .pagination-wrapper {
  width: auto;
  margin-top: 0;
  bottom: 0;
}

/* white square dots */
.carousel-homepage .carousel-wrapper-navigation {
  .pagination-wrapper li button {
    margin: 4px;
    border-radius: 0;
    background-color: #fff;
    width: 10px;
    height: 10px;
    opacity: 0.4;
  }
  .splide__pagination__page.is-active {
    opacity: 1;
    background-color: #fff;
    width: 10px;
    height: 10px;
    transform: none;
  }
}

/* arrows (scoped to this carousel — the sissa rules hit every .splide__arrow
   on the page) */
.carousel-homepage .splide__arrow {
  position: relative;
  top: 0;
  background-color: transparent;
  transform: none;
  img {
    overflow: visible;
  }
}
.carousel-homepage .splide__arrow.custom-prev {
  transform-origin: center;
  transform: rotate(180deg);
}

@media (min-width: 992px) {
  .carousel-homepage .carousel-wrapper-navigation {
    justify-content: end;
    padding-right: 10px;
    margin-bottom: 7rem;
    left: 50%;
    transform: translateX(-50%);
    margin-left: auto;
    margin-right: auto;
    max-width: 1500px;
  }
}

/* button */
.it-hero-wrapper .it-hero-text-wrapper .btn {
  span {
    color: #000;
  }
  svg {
    fill: #000;
  }
}
