/* Общий контейнер */
.gallery-container {
    display: flex;
    gap: 1rem;
    max-width: 650px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .gallery-container {
        max-width: 100%;
    }
}

/* Превью-слайдер */
.thumbs {
    height: 400px;
}
.thumbs .swiper-slide {
    opacity: 0.5;
    cursor: pointer;
    max-width: 50px;
    max-height: 50px;
}
.thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid #FEC40E;
    border-radius: 6px;
    border-radius: 50%;
    overflow: hidden;
}
.thumbs img {
    display: block;
    width: 100%;
    height: auto;
}

/* Основной слайдер */
.main-slider {
    height: 400px;
    flex: 1;
}
.main-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-slider img {
    display: block;
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

@media (max-width: 600px) {
    .main-slider img {
        max-height: 350px;
    }
}

/* Ленивая загрузка */
.swiper-lazy-preloader {
    width: 30px;
    height: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Адаптив: превью внизу на мобильных */
@media (max-width: 768px) {
    .gallery-container {
        flex-direction: column;
    }
    .thumbs {
        order: 2;
        width: 100%;
        height: auto;
    }
    .thumbs .swiper-wrapper {
        flex-direction: row;
    }
    .thumbs .swiper-slide {
        width: 25% !important;
        height: auto !important;
    }
    .main-slider {
        order: 1;
        width: 100%;
        height: auto;
    }
}

/* Пагинация (точки) */
.swiper-pagination {
    display: none; /* по умолчанию скрыта */
    text-align: center;
    margin-top: 10px;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc; /* серые */
    opacity: 1;
    margin: 0 4px !important;
}

.swiper .swiper-pagination-bullet-active {
    background: #C81D1D; /* активная красная */
}

/* Только на мобильных показываем точки */
@media (max-width: 768px) {
    .swiper-pagination {
        display: block;
    }
}

/* Основной слайдер: отключаем переходы */
.main-slider .swiper-slide,
.thumbs .swiper-slide {
    transition: none !important;
}