/* Carousel wrapper - LOCKED */
.carousel {
    position: relative;
    width: 700px;
    height: 200px;
    margin: 40px 0;
    overflow: hidden;
}

/* Edge fades */
.carousel::before,
.carousel::after {
    content: '';
    position: absolute;
    top: 0;
    height: 200px;
    width: 60px;
    z-index: 10;
    pointer-events: none;
}

.carousel::before {
    left: 0;
    background: linear-gradient(90deg, #f5f5f5 0%, rgba(245,245,245,0.7) 50%, transparent 100%);
}

.carousel::after {
    right: 0;
    background: linear-gradient(270deg, #f5f5f5 0%, rgba(245,245,245,0.7) 50%, transparent 100%);
}

/* Scrolling track */
.carousel-track {
    display: flex;
    gap: 15px;
    animation: slide 40s linear infinite;
}

/* Images */
.carousel-track img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity 0.3s;
}

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

/* Infinite scroll animation */
@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1890px); }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

#liquidGlassContainer {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#liquidGlassContainer canvas {
    width: 100% !important;
    height: 100% !important;
}

#lightboxImg {
    position: relative;
    z-index: 2;
    max-width: 85%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.close-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
    font-weight: 300;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: rotate(90deg);
}

/* Mobile */
@media (max-width: 768px) {
    .carousel {
        width: 100%;
        max-width: 600px;
    }
    
    .carousel-track img {
        width: 250px;
        height: 170px;
    }
    
    @keyframes slide {
        0% { transform: translateX(0); }
        100% { transform: translateX(-1590px); }
    }
}
