#news-index{
    margin: 0 0 20px 0;
}

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

#news-index .the-post{
    border: solid 1px #e9e9e9;
    width: calc(33.33% - 42px);
    margin: 0 20px 40px 20px;
}

#news-index .image-container{
    position: relative;
}

#news-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;
}

#news-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%;
}

#news-index .image-container img{
    display: block;
    height: auto;
    width: 100%;
}

#news-index .the-post-content{
    padding: 20px 20px 0 20px;
}

#news-index .the-post-content h3 a{
    transition: all 200ms ease-in-out;
    text-decoration: none;
    font-weight: 700;
    font-size: 22px;
    color: inherit;
}

#news-index .the-post-content h3{
    text-transform: uppercase;
}

#news-index .the-post-content p a{
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 400;
    color: #eb307c;
}

#news-index .the-post:hover .the-post-content a{
    color: #009fe3;
}

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


/* pageing */
.pageing{
    text-align: center;
    display: table;
    margin: 0 auto;
}

.pageing a{
    transition: all 200ms ease-in-out;
    background-color: #787C7C;
    margin: 0 5px 10px 5px;
    text-decoration: none;
    display: inline-block;
    padding: 10px 15px;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    color: #ffffff;
}

.pageing a:hover,
.pageing a.active-container{
    background-color: #009fe3;
}

@media screen and (max-width: 1080px) {
    #news-index .the-post{
        width: calc(50% - 42px);
    }
}

@media screen and (max-width: 640px) {
    #news-index .the-post{
        width: calc(100% - 20px);
        margin: 0 0 40px 10px;
    }

    /*
    #news-index .the-post .the-post-content p{
        display: none;
    }
    */

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