/* Дополнительные стили для блокировки свайпов при зуме */
.carousel.zoom-active {
    touch-action: none !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

.carousel.zoom-active .carousel-inner {
    touch-action: none !important;
}

.carousel.zoom-active .carousel-item {
    touch-action: none !important;
}

.fullscreen-image.zoomed {
    touch-action: none !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Блокировка свайпов для Bootstrap Carousel при активном зуме */
.carousel.zoom-active[data-bs-ride="carousel"] {
    pointer-events: none;
}

.carousel.zoom-active[data-bs-ride="carousel"] .carousel-inner {
    pointer-events: auto;
}

.carousel.zoom-active[data-bs-ride="carousel"] .carousel-control-prev,
.carousel.zoom-active[data-bs-ride="carousel"] .carousel-control-next {
    pointer-events: none;
}

/* Восстановление событий для элементов управления зумом */
.zoom-controls {
    pointer-events: auto !important;
}

.zoom-controls button {
    pointer-events: auto !important;
}
