/**
 * Gallery Carousel Styles
 * Styling for the gallery carousel mode
 */

/* Carousel Container */
.images-carousel-section {
    padding: 60px 0;
}

.images-carousel-section .container {
    max-width: 100%;
    padding: 0;
}

.images-carousel {
    position: relative;
    width: 100%;
    margin: 0;
}

/* Carousel Track */
.images-carousel__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    cursor: grab;
    user-select: none;
    gap: 20px;
    padding: 10px 0;
}

.images-carousel__track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.images-carousel__track.dragging {
    cursor: grabbing;
    scroll-snap-type: none; /* Disable snap while dragging */
    scroll-behavior: auto; /* Disable smooth scroll while dragging */
}

.images-carousel__track.dragging img {
    pointer-events: none; /* Prevent image drag while sliding */
}

/* Carousel Slides */
.images-carousel__slide {
    flex: 0 0 calc(25% - 15px); /* 4 images on desktop (25% each, minus gap) */
    scroll-snap-align: start;
    padding: 0 5px;
}

.images-carousel__slide img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Square images */
    display: block;
    object-fit: cover;
}

/* Carousel Dots */
.images-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.images-carousel__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.images-carousel__dot:hover {
    background-color: #bbb;
    transform: scale(1.2);
}

.images-carousel__dot.active {
    background-color: #4e8a26;
    transform: scale(1.3);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .images-carousel__slide {
        flex: 0 0 calc(33.333% - 13.33px); /* 3 images on tablet */
    }
}

@media (max-width: 768px) {
    .images-carousel-section {
        padding: 40px 0;
    }

    .images-carousel__slide {
        flex: 0 0 calc(50% - 10px); /* 2 images on small tablet */
    }

    .images-carousel__track {
        gap: 15px;
    }

    .images-carousel__dots {
        gap: 8px;
        margin-top: 20px;
    }

    .images-carousel__dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .images-carousel-section {
        padding: 30px 0;
    }

    .images-carousel__slide {
        flex: 0 0 66.666%; /* 1.5 images on mobile (showing 1 full + half of next) */
    }

    .images-carousel__track {
        gap: 10px;
    }

    .images-carousel__dots {
        gap: 6px;
        margin-top: 15px;
    }

    .images-carousel__dot {
        width: 8px;
        height: 8px;
    }
}

