 /* Стили для слайдера */
 .slider-container {
  width: 80%;
  margin: auto;
  overflow: hidden;
  position: relative;
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  overflow: hidden;
}

.slide {
  box-sizing: border-box;
  margin-right: 20px; /* Отступ между слайдами на мобильных устройствах */
  position: relative;
}

.slide img {
  max-width: 100%;
  height: auto;
  cursor: pointer;
}


.caption {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
}

/* Кнопки для навигации по слайдам */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -30px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* При наведении на кнопки изменяется цвет фона */
.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Медиа-запросы для оптимизации под мобильные устройства */
@media only screen and (max-width: 600px) {
  .slide {
    margin-right: 0;
  }
}

/* Стили для модального окна */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.modal-content {
  max-width: 80%;
  max-height: 80%;
  text-align: center;
  background-color: white;
  padding: 20px;
  position: relative;
}

.close {
  color: black;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.download-button {
  background-color: #4CAF50;
  color: white;
  padding: 10px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  margin-top: 20px;
}