/* Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    overflow: hidden;
    border-radius: 8px;
}

/* Slides Wrapper */
.carousel-slides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* For iOS momentum scrolling */
    scrollbar-width: none; /* Firefox */
    gap: 0;
}

.carousel-slides::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

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

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* Optional: Limit height if needed, e.g., max-height: 600px; */
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background 0.2s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
    left: 10px;
    padding-right: 4px; /* Optical adjustment for arrow */
}

.carousel-btn.next {
    right: 10px;
    padding-left: 4px; /* Optical adjustment for arrow */
}

/* Hide buttons on touch devices if preferred, or keep them for accessibility */
@media (hover: none) {
    .carousel-btn {
        opacity: 0.8; 
    }
}
