/* Стили для карусели */
.about-carousel-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.about-carousel {
    width: 100%;
    height: auto;
}

.carousel-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Контейнер для карусели, чтобы он подстраивался под высоту изображения */
.swiper {
    width: 100%;
    height: auto;
}

.swiper-wrapper {
    width: 100%;
    height: auto;
}

.swiper-slide {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img, .swiper-slide picture {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Стили для мобильной версии - ГОРИЗОНТАЛЬНАЯ */
@media (max-width: 767.98px) and (orientation: landscape) {
    .swiper-slide {
        background-position: center;
        background-size: cover;
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* Стили для мобильной версии - ВЕРТИКАЛЬНАЯ */
@media (max-width: 555px) and (orientation: portrait) {
    .swiper-slide {
        background-position: center;
        background-size: cover;
        transition: transform 0.5s ease, opacity 0.5s ease;
        opacity: 0.7;
    }

    .swiper-slide-active {
        opacity: 1;
        transform: scale(1.1);
    }

    .swiper-slide-prev, .swiper-slide-next {
        transform: scale(0.9);
    }
}