
#posts-index{
    margin: 0 0 40px 0;
}

#posts-index .flex-container{
    align-items: flex-start;
    display: inline-flex;
    flex-wrap: wrap;
    width: 100%;
}

#posts-index .the-post{
    width: calc(25% - 40px);
    margin: 0 20px 40px 20px;
}

#posts-index .the-post:after{
    transition: all 200ms ease-in-out;
    background-color: #009FE3;
    display: block;
    content: "";
    height: 1px;
    opacity: 0;
    width: 0;
}

#posts-index .image-container{
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

#posts-index .image-container .mask{
    transition: all 200ms ease-in-out;
    background-color: rgba(0,0,0,0.7);
    position: absolute;
    height: 100%;
    width: 100%;
    opacity: 0;
    left: 0;
    top: 0;
}

#posts-index .image-container .mask span{
    transform: translate(-50%, -50%);
    text-transform: uppercase;
    text-decoration: none;
    position: absolute;
    text-align: center;
    font-weight: 700;
    color: #ffffff;
    left: 50%;
    top: 50%;
}

#posts-index .image-container img{
    display: block;
    height: auto;
    width: 100%;
}#posts-index .the-post-content a{
    transition: all 200ms ease-in-out;
    text-decoration: none;
    font-weight: 700;
    font-size: 22px;
    color: inherit;
}

#posts-index .the-post:hover:after{
    width: 100%;
    opacity: 1;
}

#posts-index .the-post:hover .the-post-content a{
    color: #009FE3;
}

#posts-index .the-post:hover .image-container .mask{
    opacity: 1;
}

#posts-index .the-post:hover .lazy.show-image img{
    transform: scale(1.2);
}

@media screen and (max-width: 1440px) {
    #posts-index .wrap{
        width: 100%;
    }
}@media screen and (max-width: 1080px) {
    #posts-index .the-post{
        width: calc(50% - 40px);
    }
}

@media screen and (max-width: 640px) {
    #posts-index .wrap{
        width: calc(100% - 20px);
    }

    #posts-index .the-post{
        width: calc(100% - 20px);
        margin: 0 0 40px 10px;
    }

    #posts-index .the-post .the-post-content p{
        display: none;
    }

    #posts-index .the-post{
        margin-bottom: 20px;
    }
}