/* Modern CSS Carousel with Scroll Snap */
.pure-carousel {
    max-width: 1000px;
    margin: 0 auto 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 100%;
    position: relative;
    height: auto;
    display: block;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Carousel container with horizontal scrolling */
.pure-carousel .carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    height: auto;
}

/* Slides container with scroll snap */
.pure-carousel .carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar in WebKit browsers */
.pure-carousel .carousel-slides::-webkit-scrollbar {
    display: none;
}

/* Individual slides */
.pure-carousel .carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
    height: 100%;
}

/* Images inside slides */
.pure-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Special case for gallery pages */
.gallery-carousel-large .carousel-slide img {
    object-fit: contain;
}

/* Caption styling */
.pure-carousel .carousel-slide .carousel-caption {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 15px;
    text-align: center;
    font-size: 0.9rem;
}

/* Navigation dots container */
.pure-carousel .carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
    gap: 8px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    height: 30px;
    z-index: 100;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    /* Prevent top positioning */
    transform: none;
    /* Reset any transforms */
    margin: 0;
}

/* Navigation dot style */
.pure-carousel .carousel-nav .carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
    display: block;
}

/* Active dot state */
.pure-carousel .carousel-nav .carousel-dot:hover,
.pure-carousel .carousel-nav .carousel-dot:focus {
    background-color: #999;
    transform: scale(1.1);
}

.pure-carousel .carousel-nav .carousel-dot.active {
    background-color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pure-carousel .carousel-slide .carousel-caption {
        padding: 6px 10px;
        font-size: 0.8rem;
        bottom: 24px;
    }

    .pure-carousel .carousel-nav {
        padding: 6px 0;
        height: 24px;
        gap: 6px;
    }
}