/**
 * 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
 */

.doctors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

 .doctor {
  margin-bottom: 20px;
  max-width: 320px;
}

 .itc-slider {
  position: relative;
  max-width: 100vw; 
  margin: 0 auto;
  overflow: hidden; /* Скрываем содержимое, выходящее за границы */
}

.itc-slider-wrapper {
  overflow: hidden;
  background-color: #EADAC5;
}

.itc-slider-items {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.itc-slider-transition-none {
  transition: none;
}

.itc-slider-item {
  flex: 0 0 100%;
  max-width: 100%;
  user-select: none;
  will-change: transform;
  padding: 5px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 400px; /* Минимальная высота слайда */
}

.itc-slider-item .image-container {
  flex-grow: 1; 
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.itc-slider-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* кнопки влево и вправо */
.itc-slider-btn {
  display: none;
}

.itc-slider-btn-prev {
  left: 10px;
}

.itc-slider-btn-next {
  right: 10px;
}

.itc-slider-btn:hover,
.itc-slider-btn:focus {
  color: #fff;
  text-decoration: none;
  background: rgb(0 0 0 / 30%);
  outline: 0;
}

.itc-slider-btn::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: transparent no-repeat center center;
  background-size: 100% 100%;
}

.itc-slider-btn-prev::before {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E");
}

.itc-slider-btn-next::before {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E");
}

/* индикаторы */
.itc-slider-indicators {
  position: absolute;
  right: 0;
  bottom: 10px;
  left: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin: 0 15%;
  padding-left: 0;
  list-style: none;
}

.itc-slider-indicator {
  flex: 0 1 auto;
  box-sizing: content-box;
  width: 30px;
  height: 5px;
  margin-right: 3px;
  margin-left: 3px;
  text-indent: -999px;
  background-color: rgba(17, 216, 133, 0.1);
  background-clip: padding-box;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  cursor: pointer;
}

.itc-slider-indicator-active {
  background-color: #ff6600;
}

.doctor_name {
  max-width: 100%;
  /* padding: 0 10px; */
  /* line-height: ; */
  text-align: center;
  display: flex;
  justify-content: center;
  margin: 10px;
}

@media (min-width:768px) {
.itc-slider-btn {
  position: absolute;
  top: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 50px;
  color: #fff;
  text-align: center;
  background: rgb(0 0 0 / 20%);
  border: none;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 1;
}
}

@media (min-width: 830px) {
.doctors {
 gap: 20px;
}

.doctor {
  margin-bottom: 40px;
  max-width: 400px;
}
}

@media (min-width: 1400px) {
.doctors {
 justify-content: space-around;
}
}

.fullscreen-slider {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fullscreen-slider.active {
  opacity: 1;
  visibility: visible;
}

.fullscreen-slider .slider-container {
  width: 95%;
  height: 80%;
  max-width: 1200px;
}

.fullscreen-slider .itc-slider {
  height: 100%;
}

.fullscreen-slider .itc-slider-wrapper {
  height: 100%;
}

.fullscreen-slider .itc-slider-items {
  height: 100%;
}

.fullscreen-slider .itc-slider-item {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fullscreen-slider .image-container {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-slider .image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.fullscreen-doctor-name {
  color: white;
  margin-bottom: 15px;
  padding: 0 15px;
  text-align: center;
  font-size: 24px;
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.unscroll {
  overflow: hidden;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  .fullscreen-slider .slider-container {
    width: 100%;
  }
  
  .fullscreen-doctor-name {
    font-size: 18px;
    top: 10px;
  }
  
  .close-btn {
    top: 10px;
    right: 10px;
    font-size: 30px;
    width: 30px;
    height: 30px;
  }
}