*{
    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));
}

#gallery img{
    object-fit: cover;
    width: 100%;
  
}

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