/* Gallery Container */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

/* Gallery Items */
.gallery-item {
    padding: 15px;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

/* Delay animations for each item */
.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.gallery-item img {
    border-radius: 8px;
    width: 100%;
    height: 250px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover img {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Load More Button */
#load-more-gallery {
    background: #4a8af4;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 50px;
    color: white;
    margin-top: 20px;
}

#load-more-gallery:hover {
    background: #2c6be0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 106, 224, 0.3);
}

#load-more-gallery:disabled {
    background: #cccccc;
    transform: none;
    box-shadow: none;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .gallery-item img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .gallery-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .gallery-item img {
        height: 250px;
    }
}