*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
#gallery{
    /*grid-template-colums: 1fr,1fr,1fr*/
    display: grid;
    /* grid-template-columns: 1fr 1fr 1fr 1fr; */
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

#grid img{
    object-fit: cover;
    aspect-ratio: 9/16;
}

#container figure {
    min-height: 300px;
    background-color: white;
}
@media screen and (max-width:1024px){
    #container {
        grid-template-columns: repeat(4,1fr);}
}
