#gallery{
    padding: 20px auto;
    width: auto;
    margin: 40px auto;
}

#gallery .gallery-title{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    margin-top: -50px;
    margin-bottom: 20px;
}

#gallery .gallery-title h2{
    font-size: 3rem;
    margin-top: 30px;
}

.filter-button{
    display: flex;
    justify-content: center;
}

#gallery ul{
    margin-top: 20px;
    display: flex;
    margin-bottom: 20px;
}

#gallery ul li{
    border-radius: 10px;
    background: rgb(216, 216, 216);
    padding: 8px 20px;
    margin: 5px;
    letter-spacing: 1px;
    cursor: pointer;
}

#gallery ul li.active{
    background-color: hsl(43, 49%, 46%);
    color: white;
    font-weight: 500;
}

.products .img-section{
    height: 100%;
    margin: 30px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 10px;
    column-gap: 5px;
}


.products .item-box img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.products img{
    object-fit: cover;
    width: 300px;
    height: 300px;
}

@media screen and (max-width: 768px){
    .products .img-section{
       display: grid;
       grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    #gallery .gallery-title h2{
        font-size: 2.5rem;
    }

    #gallery ul{
        display: block;
    }

    #gallery ul li{
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .products .img-section{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}