.neo-photo-carousel {
    position: relative;
    overflow: hidden;
    margin: 0;
    width: 100%;
    touch-action: pan-y;
    /* height: 100%;*/
}

.neo-photo-carousel[data-ready="0"] {
    min-height: 220px;
}

.carousel-track {
    gap: 20px;
    display: flex;
    transition: transform .6s ease;
    will-change: transform;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel-slide img {
    display: block;
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 40px;
}

.carousel-controls {
    position: absolute;
    left: 52%;
    bottom: 12px;
    transform: translateX(-80%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.neo-carousel-photo-wrapper {
    height: 100%;
}

.carousel-slide img {
    height: 100%;
}

/* ====== PHONE (до 767px) ====== */

@media (max-width: 768px) {

    .neo-photo-carousel[data-ready="0"] {
        min-height: 240px;
    }

    .neo-carousel-photo-wrapper {
        width: 100%;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carousel-slide img {
        width: 100%;
        max-height: 50vh;
        height: 100%;
        max-width: none;
        object-fit: cover;
        padding: 0;
    }

    .carousel-controls {
        bottom: 10px;
        gap: 12px;
    }

    .carousel-btn {
        width: 44px;
        height: 44px;
    }
}

/* ====== TABLET (768px–1024px) ====== */

@media (min-width: 768px) and (max-width: 1200px) {
    .neo-carousel-photo-wrapper {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        max-height: 90vh;
    }

    .carousel-slide img {
        max-height: 90vh;
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: contain;
        padding: 0;
    }

    .carousel-controls {
        bottom: 14px;
        gap: 12px;
    }

    .carousel-btn {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 1200px) {
    .carousel-controls {
        left: 53%;
    }

    .carousel-slide img {
        margin: 0;
    }

    .carousel-track {}
}