/* reset code starts */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* reset code ends */

h1{
    text-align: center;
    font-size: 3rem;

}

.posts{
    width: 100%;
   
    padding: 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.post{
    width: 23%;
    margin: .3rem;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,.2);
    padding: 1rem;
    transition: all 0.4s;
}
.post:hover{
    
    box-shadow: 0 8px 16px 0 rgba(0,0,0,.2);
}

/* responsive parts here  */

@media screen and (max-width:992px){
    .post{
        width: 48%;
    }
}

@media screen and (max-width:600px){
    .post{
        width: 100%;
    }
}