.gallery-module {
    padding: 4rem 0;
    background-color: #2a2a2a;
    background: linear-gradient(180deg, #2a2a2a 0%, #1f1f1f 100%);
    overflow: hidden;
}

.gallery-container {
    width: 100%;
}

.gallery-carousel {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.gallery-carousel:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.gallery-item {
    position: relative;
    width: 350px;
    height: 350px;
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
    border: 8px solid #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    border-color: #cd7f32;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(205, 127, 50, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 3rem;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1.2);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #ffffff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #cd7f32;
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    z-index: 10000;
}

.lightbox-prev,
.lightbox-next {
    background-color: rgba(205, 127, 50, 0.8);
    color: #ffffff;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: #cd7f32;
    transform: scale(1.1);
}

/* Make carousel infinite by duplicating items */
.gallery-carousel::after {
    content: '';
    display: block;
    width: 2rem;
}

@media (max-width: 768px) {
    .gallery-item {
        width: 280px;
        height: 280px;
        border-width: 5px;
    }
    
    .gallery-overlay i {
        font-size: 2.5rem;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 40px;
    }
    
    .lightbox-nav {
        padding: 0 20px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        padding: 0.8rem 1.2rem;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-module {
        padding: 3rem 0;
    }
    
    .gallery-carousel {
        gap: 1.5rem;
    }
    
    .gallery-item {
        width: 220px;
        height: 220px;
    }
    
    .gallery-overlay i {
        font-size: 2rem;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 35px;
    }
    
    .lightbox-nav {
        padding: 0 10px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        padding: 0.6rem 1rem;
        font-size: 1.2rem;
    }
}
