﻿.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

.gallery-item {
    flex: 0 0 calc(25% - 15px); 
    max-width: calc(25% - 15px);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    /* Sequential animation for items */
    .gallery-item:nth-child(1) {
        transition-delay: 0.1s;
    }

    .gallery-item:nth-child(2) {
        transition-delay: 0.2s;
    }

    .gallery-item:nth-child(3) {
        transition-delay: 0.3s;
    }

    .gallery-item:nth-child(4) {
        transition-delay: 0.4s;
    }

    .gallery-item:nth-child(5) {
        transition-delay: 0.5s;
    }

    .gallery-item:nth-child(6) {
        transition-delay: 0.6s;
    }

    .gallery-item:nth-child(7) {
        transition-delay: 0.7s;
    }

    .gallery-item:nth-child(8) {
        transition-delay: 0.8s;
    }

    .gallery-item:nth-child(9) {
        transition-delay: 0.9s;
    }

    .gallery-item:nth-child(10) {
        transition-delay: 1.0s;
    }
    .gallery-item:nth-child(11) {
        transition-delay: 1.0s;
    }

    /* Class that will be added via JavaScript to trigger animations */
    .gallery-item.animate-in {
        opacity: 1;
        transform: translateY(0);
    }

/* Zoom effect on images */
.pro__img {
    overflow: hidden;
}

    .pro__img img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.5s ease;
    }

    .pro__img:hover img {
        transform: scale(1.05);
    }

/* Responsive adjustments */
@media (max-width: 992px) {
    .gallery-item {
        flex: 0 0 calc(33.333% - 14px);
        max-width: calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 576px) {
    .gallery-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
