.carousel-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    margin-top: 30px;
    padding: 30px 0;
    /* max-height removed to allow content to dictate height */
}

/* Track holding the items */
.carousel-track {
    display: inline-flex;
    display: inline-flex;
    /* animation: scroll 20s linear infinite; REMOVED for JS control */
    cursor: grab;
}

.carousel-track:active {
    cursor: grabbing;
}

/* Individual Carousel Item */
.carousel-card {
    width: 310px; /* Increased from 280px */
    height: 420px; /* Increased from 380px */
    margin: 0 10px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 2px solid var(--primary-pink);
}

/* Tablet Scaling */
@media (min-width: 768px) {
    .carousel-card {
        width: 360px; /* Increased from 300px */
        height: 480px; /* Increased from 400px */
        margin: 0 12px;
    }
}

/* Desktop Scaling (1080p and above) */
@media (min-width: 1440px) {
    .carousel-card {
        width: 340px;
        height: 480px;
        margin: 0 10px;
    }
    .carousel-container {
        padding: 50px 0;
    }
}

/* Ultra Wide Scaling */
@media (min-width: 1900px) {
    .carousel-card {
        width: 400px;
        height: 560px;
        margin: 0 12px;
    }
}

/* Hover Effect: Center and Scale */
.carousel-card:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 10;
}

/* Image Styling */
.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
}

/* Placeholder for missing images */
.carousel-placeholder {
    width: 100%;
    height: 100%;
    background: #ffe6ea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

/* Text Overlay */
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-pink);
    text-align: center;
    padding: 12px;
    font-weight: 800;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-top: 1px solid var(--primary-pink);
}

.carousel-card:hover .carousel-caption {
    background: white;
    padding: 15px;
    font-size: 1.1rem;
    color: #ff1493; /* Shifting to a deeper pink */
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.3);
}

/* Infinite Scroll Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
