*{
    margin: 0;
    padding: 0;
}

.img-gallery {
    display: flex;
    gap: 1rem;
    margin: 2vw;

}
/*----------------gallery-item1--------------------*/
.gallery-item1 {
    flex: 33%;
    padding: 1rem;
    animation-name: translate;
    animation-duration: 2.5s;
    animation-delay: 0s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.gallery-item1,.gallery-item2,.gallery-item3, img {
    object-fit: cover;
    width: 100%;
    height: 30vw;
}

@keyframes translate {
    0% {
        transform: translate(none);
    }

    25% {
        transform: translate(0,-25px);
    }

    50% {
        transform: translate(0,25);
    }

    100% {
        transform: translate(none);
    }
}

/*----------------gallery-item2--------------------*/
.gallery-item2 {
    flex: 33%;
    padding: 1rem;
    animation-name: translate;
    animation-duration: 2.5s;
    animation-delay: .5s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

/*----------------gallery-item3--------------------*/
.gallery-item3 {
    flex: 33%;
    padding: 1rem;
    animation-name: translate;
    animation:"translate" 2.5s ease-in-out 1s infinite;
}
