/*!
* chiefSlider
*   site: https://itchief.ru/javascript/slider
*   github: https://github.com/itchief/how-to
*
* Copyright 2018-2021 Alexander Maltsev
* Licensed under MIT (https://github.com/itchief/chiefSlider/blob/main/LICENSE)
*/

.container {
  max-width: 1102px;
  margin: 0 auto;
}

.slider__container {
  padding-left: 0;
  padding-right: 0;
}

.slider__item {
  flex: 0 0 100%;
  max-width: 100%;
}

.slider__item-container {
  height: 522px;
}

.slider {
  position: relative;
}

.slider__container {
  overflow: hidden;
}

.slider__wrapper {
  /*overflow: hidden;*/
}

.slider__items {
  display: flex;
  transition: transform 0.5s ease;
}

.slider_disable-transition {
  transition: none;
}

.slider__item {
  flex: 0 0 100%;
  max-width: 100%;
  user-select: none;
}

/* кнопки влево и вправо */

.slider__control {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  color: #fff;
  text-align: center;
  height: 300px;
  transform: translateY(-50%);
}

.slider__control_hide {
  display: none;
}

.slider__control[data-slide='prev'] {
  left: -60px;
}

.slider__control[data-slide='next'] {
  right: -60px;
}

.slider__control:hover,
.slider__control:focus {
  color: #fff;
  text-decoration: none;
  outline: 0;
}

.slider__control::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 300px;
  background: transparent no-repeat center center;
  background-size: 100% 100%;
}

.slider__control[data-slide='prev']::before {
  background-image: url("../img/b3-arrow-left.png");
}

.slider__control[data-slide='next']::before {
  background-image: url("../img/b3-arrow-right.png");
}

/* индикаторы */

.slider__indicators {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 15;
  display: flex;
  justify-content: center;
  padding-left: 0;
  margin-right: 15%;
  margin-left: 15%;
  list-style: none;
  margin-top: 0;
  margin-bottom: 0;
}

.slider__indicators li {
  box-sizing: content-box;
  flex: 0 1 auto;
  width: 40px;
  height: 300px;
  margin-right: 3px;
  margin-left: 3px;
  text-indent: -999px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.5);
  background-clip: padding-box;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
}

.slider__indicators li.active {
  background-color: rgba(255, 255, 255, 0.9);
}

@media screen and (min-width : 1px) and (max-width : 1279px) {

  .container {
    max-width: 280px;
    margin: 0 auto;
  }

  .slider__container {
    padding-left: 0;
    padding-right: 0;
  }

  .slider__item {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .slider__item-container {
    height: 670px;
  }

  .slider__control[data-slide='prev'] {
    left: -20px;
  }
  
  .slider__control[data-slide='next'] {
    right: -20px;
  }

  .slider__indicators li {
    box-sizing: content-box;
    flex: 0 1 auto;
    width: 20px;
    height: 150px;
    margin-right: 3px;
    margin-left: 3px;
    text-indent: -999px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.5);
    background-clip: padding-box;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
  }

  .slider__control::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 150px;
    background: transparent no-repeat center center;
    background-size: 100% 100%;
  }

}
