/*------------------------------------------------------------
SLIDER
====================================*/

/* Variables Custom */
$slider-arrow-width: 50px;
$slider-arrow-height: 50px;
$slider-arrow-bg: $gray-200;

$slider-arrow-icon-width: 16px;
$slider-arrow-icon-height: 16px;
$slider-arrow-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M8,0,6.545,1.455l5.506,5.506H0V9.039H12.052L6.545,14.545,8,16l8-8Z'/%3E%3C/svg%3E%0A");;

$slider-dot-size: 10px;
$slider-dot-color: $gray-600;
$slider-dot-active-color: $primary;
$slider-dot-hover-color: $primary-hover;
/***************************************/

// slide
.slick-slide {
  div {
    display: block !important;
  }
}

// arrow
.slick-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 1;
  top: 50%;
  width: $slider-arrow-width;
  height: $slider-arrow-height;
  margin-top: -($slider-arrow-height/2);
  font-size: 0;
  background: $slider-arrow-bg;
  border: 0;
  opacity: 1;
  transition: 0.3s;
  &:before {
    content: '';
    display: block;
    width: $slider-arrow-icon-width;
    height: $slider-arrow-icon-height;
    background: {
      image: $slider-arrow-icon;
      size: contain;
    }
  }

  &:focus {
    outline: 0;
  }

  &:hover {
    opacity: 0.6;
  }
}
.slick-prev {
  left: 15px;
  transform: rotate(180deg);
}
.slick-next {
  right: 15px;
}

// dots
.slick-dots {
  display: flex;
  justify-content: center;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  z-index: 1;
  margin: 0;
  list-style: none;
  button {
    display: block;
    width: $slider-dot-size;
    height: $slider-dot-size;
    padding: 0;
    margin: 6px;
    font-size: 0;
    background: $slider-dot-color;
    border: 0;
    border-radius: 100%;
    &:hover {
      background: $slider-dot-hover-color;
    }
    &:focus {
      outline: 0;
    }
  }

  .slick-active {
    button {
      background: $slider-dot-active-color;
    }
  }
}

/* RESPONSIVE */
/***************************************/
@include media-breakpoint-down(md) {
  // dots
  .slick-dots {
    bottom: 15px;
  }
}
