.slider-container-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 50px; /* Опционально: для центрирования по вертикали */
}

.slider-container {
    position: relative;
    width: 73%;
    overflow: hidden;
}

.slider-wrapper {
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px; /* Добавляем отступ между картинками */
}

.slider img {
    width: calc((100% / 3) - (20px * 2 / 3)); /* Корректируем ширину с учетом отступов */
    flex-shrink: 0;
    cursor: pointer; /* Указатель курсора при наведении на картинку */
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

#prev {
    left: 0;
}

#next {
    right: 0;
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
    .slider-container {
        width: 100%; /* Увеличиваем ширину контейнера до 100% для мобильных устройств */
    }

    .slider img {
        width: calc((100% / 3) - 20px); /* Корректируем ширину изображения с учетом отступов */
    }

    .slider {
        gap: 10px; /* Уменьшаем отступ между изображениями для мобильных устройств */
    }

    .nav-button {
        padding: 5px; /* Уменьшаем размер кнопок навигации для мобильных устройств */
    }
}

/* Стили для модального окна */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;

    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* Затемненный фон */
    z-index: 9999 !important;
}

.modal-content {
    margin: auto;
    margin-top: 5%;
    display: block;
    width: 80%;
    max-width: 700px;
}

.modal-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

#modal-prev {
    left: 10px;
}

#modal-next {
    right: 10px;
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}



@media screen and (max-width: 640px){
.t-title_xs {
    letter-spacing: -1px !important;
  }
.t280__logo__container a:last-child{ right:57px !important;}  
}
