body{
    background-color: #807b7b;
}
.gallery{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 15px;
}
img{
    width: 100%;
    height: 220px;
    object-fit: cover;
}
figure{
    margin: 0;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
}
figcaption{
    text-align: center;
    font-family: verdana;
    font-size: 16px;
    padding:8px;
    background-color: black;
    color: white;
}
h2{
    font-family: candara;
    font-size: 24px;
    text-align: center;
    font-style: italic;
    color: azure;
}
figure:hover{
    transform: scale(1.05);
    transition: 0.3s;
}
@media(max-width: 900px){
    .gallery{
        grid-template-columns: repeat(2, 1fr);
        
    }  
}
@media(max-width: 500px){
    .gallery{
        grid-template-columns: 1fr;
        
    }  
}
