/* This stylesheet customizes appearance of SplideJS sliders (https://splidejs.com). */

/* Image should always fill the available space */

.splide__slide img:not(.unzoomed) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Arrows (right/left) */

.splide__arrow {
  background-color: transparent;

  &:hover {
    background-color: var(--color-gray-100);
  }
}

.splide__arrows {
  display: none;
}

.splide__arrow.splide__arrow--prev {
  left: -3rem !important;
}

.splide__arrow.splide__arrow--next {
  right: -3rem !important;
}

/* Controls */

.splide__controls {
  display: flex;
  align-items: center;
  justify-content: center;
}

.splide__controls button.splide__toggle {
  height: 2rem;
  width: 2rem;
  margin-left: -6rem;
  border-radius: 50%;
  background-color: var(--color-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.splide__controls > button.splide__toggle > svg {
  height: 0.75rem;
  width: 0.75rem;
}

/* Little pagination dots */

.splide__pagination__page.is-active{
  background-color: var(--color-sky-300);
  transform: none;
}

/* Progress bar */

.splide__progress__bar {
  margin-top: 0.5rem;
  height: 2px;
  background: var(--color-gray-200);
}

/* MEDIA QUERIES */

/*XL*/
@media (width >= 1280px) {
  .splide:not(.splide--no-arrows) .splide__arrows {
    display: unset;
  }
}
