/**
  * Variables
 */
.hero-section .f-carousel {
  --f-carousel-max-height: 33vh;
}

.hero-section .f-carousel img {
  object-fit: cover;
  object-position: center;
}

.f-carousel {
  --f-button-bg: #fff;
  --f-button-color: #000;
  --f-carousel-spacing: 1.5em;
  --f-carousel-border-radius: 0.5em;
  --f-carousel-border-size: 1px;
  --f-info-bg-rgba: 255, 255, 255, 1;
  --f-button-toggle-pos: 0.5em;
}

.f-carousel.f-layout-bottom-inside {
  --f-button-next-pos: calc(7%);
  --f-button-toggle-pos: calc(7% + 42px);
  --f-button-prev-pos: calc(7% + 42px * 2);
  --f-button-bottom-pos: 1.1em;
}

.f-carousel.f-layout-bottom {
  --f-carousel__info-margin-top: 1em;
}

.f-carousel.has-thumbs {
  --f-carousel-dots-height: 0;
}
.f-carousel.has-thumbs .f-carousel__dots {
  display: none;
}

/**
  * Carousel Styles
 */
.f-carousel .f-carousel__slide {
  border-radius: var(--f-carousel-border-radius);
  border: var(--f-carousel-border-size) solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.f-carousel .f-carousel__slide img {
  margin: auto;
  width: 100%;
  height: auto;
  max-height: var(--f-carousel-max-height);
}

.f-carousel__track {
  align-items: center;
}

.f-progress {
  background-color: var(--f-progress-color);
}

/**
  * Buttons
 */

.f-button.is-toggle {
  bottom:0.5em;
  right: var(--f-button-toggle-pos);
  position: absolute;
  z-index: 1;
}

.f-button.is-toggle .icon-pause {
  display: none;
}
.f-carousel.has-autoplay {
  .is-toggle .icon-play {
    display: none;
  }
  .is-toggle .icon-pause {
    display: block;
  }
}

.f-layout-bottom-inside .f-button.is-next,
.f-layout-bottom-inside .f-button.is-prev,
.f-layout-bottom-inside .f-button.is-toggle

{
  top: unset!important;
  left: unset!important;
  transform: unset!important;
  bottom:var(--f-button-bottom-pos);
}
.f-layout-bottom-inside .f-button.is-prev,
.f-layout-bottom .f-button.is-prev{
 right: var(--f-button-prev-pos);
}

.f-layout-bottom-inside .f-carousel__info {
  width: 90%;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(var(--f-info-bg-rgba));
  padding: 0.75rem calc(42px * 3 + 0.75em) 0.75rem 1rem;

  p {
    font-size: 2em;
    margin: 0;
  }
}

.f-layout-bottom{
  text-align: center;
  p {
    margin:auto;
  }
  .f-carousel__info {
    margin-top: var(--f-carousel__info-margin-top);
  }
}

/**
  * Media Queries
 */

@media (min-width: 1024px) {
  .f-layout-default .f-carousel__info {
    max-width: 25em;
    min-width: 20em;
    padding: 2em;
    position: absolute;
    right: 3em;
    bottom: 3em;
    z-index: 10;

    background: rgba(var(--f-info-bg-rgba));
    color: var(--f-info-color);
  }
}


@media (min-width: 768px) {
  .f-carousel[data-slides="2"] .f-carousel__slide {
    width: calc(100% / 2 - var(--f-carousel-spacing));
  }

  .f-carousel[data-slides="3"] .f-carousel__slide {
    width: calc(100% / 3 - var(--f-carousel-spacing));
  }

  .f-carousel .f-carousel__slide[data-slides="4"] {
    width: calc(100% / 4 - var(--f-carousel-spacing));
  }

  .f-carousel .f-carousel__slide[data-slides="5"] {
    width: calc(100% / 5 - var(--f-carousel-spacing));
  }
}
