/* ========================================
   CAROUSEL STYLES - Desktop & Mobile
======================================== */

/* Carousel Section */
.carousel-section {
    margin-bottom: 60px;
    padding: 0 40px;
}

.carousel-header {
    margin-bottom: 24px;
}

.carousel-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
}

.carousel-description {
    font-size: 1rem;
    color: #666666;
    line-height: 1.5;
}

/* Carousel Container */
.carousel {
    position: relative;
    overflow: hidden;
    padding: 0 60px; /* Space for buttons */
}

/* Carousel Track Container */
.carousel-track-container {
    overflow: hidden;
}

/* Carousel Track */
.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.3s ease;
    cursor: grab;
}

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

/* Carousel Item */
.carousel-item {
    flex: 0 0 300px;
    width: 300px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.carousel-item:hover {
    transform: translateY(-4px);
}

.carousel-item-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    display: block;
}

.carousel-item-info {
    padding: 16px 0;
}

.carousel-item-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #000000;
    margin-bottom: 4px;
    line-height: 1.3;
}

.carousel-item-artist {
    font-size: 0.95rem;
    color: #666666;
    margin-bottom: 4px;
}

.carousel-item-museum {
    font-size: 0.85rem;
    color: #999999;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: white;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover:not(:disabled) {
    background: #000000;
    border-color: #000000;
}

.carousel-btn:hover:not(:disabled) svg {
    stroke: white;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

/* ========================================
   MOBILE RESPONSIVE
======================================== */

@media (max-width: 768px) {
    .carousel-section {
        padding: 0 20px;
        margin-bottom: 50px;
    }
    
    .carousel-title {
        font-size: 1.3rem;
    }
    
    .carousel-description {
        font-size: 0.95rem;
    }
    
    /* Mobile: Smaller items, native scroll, swipe enabled */
    .carousel {
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    .carousel::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .carousel-track-container {
        overflow: visible;
    }
    
    .carousel-track {
        gap: 16px;
        padding: 0 0 20px 0; /* Bottom padding for scroll indicator */
    }
    
    /* Smaller carousel items on mobile */
    .carousel-item {
        flex: 0 0 220px;
        width: 220px;
    }
    
    .carousel-item-image {
        height: 220px;
    }
    
    .carousel-item-info {
        padding: 12px 0;
    }
    
    .carousel-item-title {
        font-size: 1rem;
    }
    
    .carousel-item-artist {
        font-size: 0.9rem;
    }
    
    .carousel-item-museum {
        font-size: 0.8rem;
    }
    
    /* Hide navigation buttons on mobile */
    .carousel-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .carousel-section {
        padding: 0 16px;
    }
    
    /* Even smaller on small phones */
    .carousel-item {
        flex: 0 0 180px;
        width: 180px;
    }
    
    .carousel-item-image {
        height: 180px;
    }
    
    .carousel-track {
        gap: 12px;
    }
}