/* Carousel Styles */

/* Section Container */
.carousel-section {
    position: relative;
    width: 100%;
    background-color: black;
    padding: 10px 0;
    overflow: hidden;
    /* Hide overflow for the infinite effect */
}

/* Track for the sliding items */
.carousel-track {
    display: flex;
    width: max-content;
    /* Ensure width fits all items */
    gap: 30px;
    /* Space between items */
    /* animation: scroll 30s linear infinite; REMOVED FOR JS HANDLING */
    will-change: transform;
    /* Hint for browser performance */
    cursor: grab;
}

.carousel-track:active {
    cursor: grabbing;
}



/* Individual Item */
.carousel-item {
    position: relative;
    width: 300px;
    height: 450px;
    flex-shrink: 0;
    /* Prevent shrinking */
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.carousel-item:hover {
    transform: scale(1.02);
    border-color: white;
}

/* Image styling */
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    user-select: none;
    /* Prevent image selection/dragging */
    -webkit-user-drag: none;
}

.carousel-item:hover img {
    opacity: 0.8;
}

/* Overlay Text (Optional, if we want title on hover) */
.carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    /* Let clicks pass through */
}

.carousel-item:hover .carousel-caption {
    opacity: 1;
}

/* Infinite Scroll Animation - REMOVED */