/* GENERAL */

.home-carousel * {
  font-family: "Herokid", sans-serif;
  font-weight: 500;
  font-stretch: semi-condensed;
  color: var(--colorTextNegative);
}

.home-carousel .view-content {
  position: relative;
}

.home-carousel .owl-stage {
  padding-left: 0 !important;
}

.home-carousel .owl-item {
  background-color: #000;
}

/* SLIDESHOW CONTROLS */

.home-carousel .owl-dots {
  position: absolute;
  bottom: var(--verticalSpacing);
  right: var(--horizontalSpacing);
}

.home-carousel .owl-nav {
  position: absolute;
  /* center and fill rest of distance with auto margin */
  top: 0;
  bottom: 0;
  margin: auto var(--horizontalSpacing) auto auto;
  /*  */
  right: 0;
  height: fit-content;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  flex-direction: row-reverse;
  padding: 0;
}

.home-carousel.owl-carousel .owl-nav button.owl-next,
.home-carousel.owl-carousel .owl-nav button.owl-prev,
.home-carousel.owl-carousel button.owl-dot {
  margin: 0;
}

/* next / previous / pause / resume */

.home-carousel .owl-prev,
.home-carousel .owl-next {
  font-size: 0;
  z-index: 4;
}

.home-carousel .owl-nav .owl-prev:hover,
.home-carousel .owl-nav .owl-next:hover {
  background: unset;
  color: unset;
  text-decoration: unset;
}

.home-carousel .owl-next::before,
.home-carousel .owl-prev::before {
  content: "";
  width: 46.4px;
  height: 32px;
  display: block;
  background-color: var(--colorTextNegative);
  mask-image: url(../../img/arrow.svg);
  -webkit-mask-image: url(../../img/arrow.svg);
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.home-carousel .owl-prev::before {
  transform: rotate(180deg);
}

.home-carousel .owl-nav .owl-prev{
  display: none;
}

/* pager */

.home-carousel .owl-dots .owl-dot > span {
  display: inline-block;
  border-radius: 7px;
  width: 14px;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  margin-left: 3px;
  margin-right: 3px;
  transition: var(--transitionDuration) var(--transitionTimingFunction);
  -moz-transition: var(--transitionDuration) var(--transitionTimingFunction);
}

.home-carousel .owl-dots .owl-dot.active > span {
  width: 32px;
  background-color: var(--colorTextNegative);
}

/* SLIDESHOW CONTENT */

.home-carousel .owl-item .subtitle,
.home-carousel .owl-item .text,
.home-carousel .owl-item .read-on-link {
  transition: opacity var(--transitionDuration);
  -moz-transition: opacity var(--transitionDuration);
}

.home-carousel .owl-item .subtitle,
.home-carousel .owl-item .read-on-link,
.home-carousel .owl-item .text {
  opacity: 0;
}

.home-carousel .owl-item.active .subtitle,
.home-carousel .owl-item.active .read-on-link,
.home-carousel .owl-item.active .text {
  opacity: 1;
}

.home-carousel .subtitle {
  position: absolute;
  top: 50%;
  /* purpose is to center the text so we account for its own height*/
  max-width: 60%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  padding-left: var(--horizontalSpacing);
  font-size: 60px;
  line-height: 130%;
  opacity: 0;
}

.home-carousel .text {
  position: absolute;
  bottom: var(--verticalSpacing);
  right: 38px;
  width: 32%;
  font-size: 20px;
  font-weight: 400;
  line-height: 140%;
  font-stretch: normal;
}

.home-carousel .owl-item img {
  object-fit: cover;
  opacity: 0.8;
  height: 800px;
}

.home-carousel .subtitle,
.home-carousel .text,
.home-carousel .read-on-link {
  margin: 0;
  z-index: 1;
}

/* MORE LINK */

.home-carousel .read-on-link::after {
  display: block;
  content: " ";
  width: 25%;
  height: 3px;
  background-color: var(--colorAccent);
  margin-top: 4px;
}

.home-carousel .read-on-link {
  position: absolute;
  bottom: var(--verticalSpacing);
  left: var(--horizontalSpacing);
  font-size: 20px;
  line-height: 130%;
  z-index: 3;
  text-transform: uppercase;
}

/* RESPONSIVE */

@media (max-width: 1399px) {
  .home-carousel .owl-item img {
    height: 720px;
  }
}

@media (max-width: 1199px) {
  .home-carousel .subtitle {
    font-size: 36px;
    top: 40%;
  }

  .home-carousel .text {
    font-size: 14px;
  }

  .home-carousel .owl-next {
    display: none;
  }

  .home-carousel .owl-dots {
    left: 0;
    right: 0;
    bottom: 20px;
  }
}

@media (max-width: 991px) {
  .home-carousel .owl-nav {
    padding: var(--verticalSpacing) 15px var(--verticalSpacing) 15px;
  }

  .home-carousel .text,
  .home-carousel .owl-nav,
  .home-carousel .read-on-link {
    display: none;
  }
  
  .home-carousel .owl-item .subtitle {
    max-width: unset;
    top: unset;
    bottom: 75px;
    padding-left: var(--horizontalSpacing);
    padding-right: var(--horizontalSpacing);
    transform: none;
    -webkit-transform: none;
  }
}

@media (max-width: 768px) {
}
