/* Gallery Carousel Styles */

.gallery-container {
    width: 100%;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.gallery-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.gallery-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-card img {
    height: 300px;
    width: 100%;
    object-fit: cover;
}

.gallery-nav-button {
    position: absolute;
    top: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    z-index: 10;
    /* Ensure buttons are above carousel */
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .gallery-container {
        padding: 0 15px;
    }
    
    .gallery-slide {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .gallery-card img {
        height: 250px;
    }
}

@media (max-width: 1150px) {
    .gallery-container {
        padding: 0 15px;
        max-width: 600px;
    }
    
    .gallery-slide {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .gallery-card {
        width: 100%;
    }
    
    .gallery-card img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .gallery-container {
        padding: 0 12px;
    }
    
    .gallery-slide {
        gap: 12px;
    }
    
    .gallery-card img {
        height: 250px;
    }
}

@media (max-width: 600px) {
    .gallery-container {
        padding: 0 10px;
    }
    
    .gallery-slide {
        gap: 10px;
    }
    
    .gallery-card img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        padding: 0 8px;
    }
    
    .gallery-slide {
        gap: 8px;
    }
    
    .gallery-card img {
        height: 150px;
    }
    
    .gallery-nav-button {
        font-size: 1rem;
        padding: 8px;
    }
}