/**
 * ItcSlider
 * @version 1.0.1
 * @author https://github.com/itchief
 * @copyright Alexander Maltsev 2020 - 2023
 * @license MIT (https://github.com/itchief/ui-components/blob/master/LICENSE)
 * @tutorial https://itchief.ru/javascript/slider
 */

.itc-slider {
  position: relative;
}

.itc-slider-wrapper {
  overflow: hidden;
  background-color: #f0f0f0;
  width: 1140px;
}

.itc-slider-items {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.itc-slider-transition-none {
  transition: none;
}

.itc-slider {
  margin-top: 60px;
}

.itc-slider-item {
  flex: 0 0 300px;
  max-width: 100%;
  user-select: none;
  will-change: transform;
}

.container-block8-1 .itc-slider-item img {
  width: 370px;
  object-fit: cover;
  border-radius: 10px;
  height: 370px;
}

.container-block8-1 .itc-slider-btn {
  top: 145px;
}

.container-block8-1 .itc-slider-item {
  flex: 0 0 380px;
}

.itc-slider-item img {
  width: 90%;
}

/* кнопки влево и вправо */
.slider-button-1 {
  display: flex;
  width: 100%;
  height: auto;
  align-items: center;
  justify-content: end;
  gap: 10px;
  padding: 30px;
}

.itc-slider-btn {
  display: flex;
  justify-content: center;
  background: none;
  align-items: center;
  cursor: pointer;
  border: none;
}

.itc-slider-btn::before {
  content: "";
  display: flex;
  width: 60px;
  height: 60px;
  background: no-repeat center;
  background-size: contain;
}

.itc-slider-btn-prev::before {
  background-image: url("images/icon-arrow.svg");
}

.itc-slider-btn-next::before {
  background-image: url("images/icon-arrow-right.svg");
}

@media only screen and (min-width: 768px) and (max-width: 1439px) {
  .itc-slider-wrapper {
    overflow: hidden;
    background-color: #f0f0f0;
    width: 720px;
  }
}

@media only screen and (max-width: 768px) {
  .itc-slider-wrapper {
    overflow: hidden;
    background-color: #f0f0f0;
    width: 240px;
  }

  .itc-slider-item {
    flex: 0 0 300px;
    max-width: 100%;
    user-select: none;
    will-change: transform;
  }

  .slider-button-1 {
    display: flex;
    width: 100%;
    height: auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
  }

}