.image-slider {
  max-width: 560px;
  height: 760px;
  margin: 0 auto;
  position: relative;
}

.main-image {
  text-align: center;
  object-fit: cover;
  background-size: cover;
}

#main-img {
  background-image: url("../images/product/product-card-shari-tukan-slide/tukan-2.webp");
  width: 560px;
  height: 660px;
  border-radius: 8px;
  background-size: cover; /* заполняет контейнер, сохраняя пропорции */
  background-position: center; /* центрирует по горизонтали и вертикали */
  background-repeat: no-repeat; /* предотвращает дублирование */

  /* Дополнительно: плавная смена фона (если нужно) */
  transition: background-image 0.3s ease;
}

.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 0px;
  cursor: pointer;
  font-size: 24px;
  z-index: 10;
  border-radius: 50%;
  width: 36px;
  height: 36px;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.thumbnails {
  padding-top: 10px;
  padding-left: 7px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.thumb-1 {
  width: 100px;
  height: 100px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50%;
  background-image: url("../images/product/product-card-shari-tukan-slide/tukan-2.webp");
}

.thumb-2 {
  width: 100px;
  height: 100px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50%;
  /* background-position: top;*/
  background-image: url("../images/product/product-card-shari-tukan-slide/tukan-1.webp");
}

.thumb-3 {
  width: 100px;
  height: 100px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50%;
  /* background-position: top;*/
  background-image: url("../images/product/product-card-shari-tukan-slide/tukan-3.webp");
}

.thumb-4 {
  width: 100px;
  height: 100px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50%;
  /* background-position: top;*/
  background-image: url("../images/product/product-card-shari-tukan-slide/tukan-4.png");
}

.thumb-5 {
  width: 100px;
  height: 100px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50%;
  /* background-position: top;*/
  background-image: url("../images/product/product-card-shari-tukan-slide/tukan-4.png");
}

.thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 2px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.thumb:hover,
.thumb.active {
  opacity: 1;
  border: 2px solid #007bff;
}

@media (max-width: 768px) {
  .image-slider {
    padding-top: 10px;
    max-width: 400px;
    height: 490px;
  }

  .card__text-slider {
    margin-top: 110px;
  }

  #main-img {
    width: 400px;
    height: 520px;
  }

  .thumb {
    width: 50px;
    height: 50px;
  }

  .prev-btn,
  .next-btn {
    top: 70%;
  }
}

@media (max-width: 430px) {
  .image-slider {
    padding-top: 10px;
    width: 100%;
    height: 390px;
  }

  .card__text-slider {
    margin-top: 220px;
  }

  #main-img {
    width: 100%;
    height: 520px;
  }

  .prev-btn,
  .next-btn {
    top: 80%;
  }

  .container-fon {
    padding: 0;
  }
}

/* Контейнер для видео */
#video-container {
  width: 100%;
  height: 660px;
  display: none; /* Скрываем по умолчанию */
}

/* Стили для видеоэлемента */
#video-player {
  width: 100%;
  height: 660px;
  object-fit: cover;
  border-radius: 5px;

  /* Скрываем элементы управления в WebKit‑браузерах (Chrome, Safari) */
  -webkit-appearance: none;
  -webkit-user-select: none;

  /* Дополнительные меры для скрытия контролов */
  pointer-events: none; /* отключаем взаимодействие с элементами управления */
}

/* Скрываем основной div, когда показываем видео */
.hide-background {
  background-image: none !important;
  display: none;
}

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

.video-label__text {
  display: flex;
  flex-direction: column;
  color: white;
  font-size: 25px;
  align-items: center;
  justify-content: center;
  margin: 10px;
}

@media (max-width: 768px) {
  /* Контейнер для видео */
  #video-container {
    width: 400px;
    height: 520px;
    display: none; /* Скрываем по умолчанию */
  }

  /* Стили для видеоэлемента */
  #video-player {
    width: 400px;
    height: 520px;
    object-fit: cover;
  }

  .video-label__text {
    font-size: 15px;
    margin: 10px;
  }
}

@media (max-width: 430px) {
  /* Контейнер для видео */
  #video-container {
    width: 100%;
    height: 520px;
    display: none; /* Скрываем по умолчанию */
  }

  /* Стили для видеоэлемента */
  #video-player {
    width: 100%;
    height: 520px;
    object-fit: cover;
  }
}
