.posts-grid {
    margin: 40px 0 60px;
}

.posts-grid-inner {
    display: flex;
    justify-content: center;
    flex-flow: row wrap;
    margin: -10px;
}

.posts-grid .item {
    position: relative;
    display: block;
    flex: 0 1 100%;
    color: #fff;
    text-decoration: none;
    margin: 10px;
}

.posts-grid .item:hover,
.posts-grid .item:focus,
.posts-grid .item:active,
.posts-grid .item:visited {
    color: #fff;
}

.posts-grid .item > .image-wrap {
    position: relative;
    height: 250px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}


.posts-grid .item > .image-wrap:after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.15);
    opacity: 0;
    transition: opacity 0.3s linear;
}

.posts-grid .item:hover > .image-wrap:after {
    opacity: 1;
}

.posts-grid .item > .image-wrap > img {
    position: absolute;
    top: -1px;
    left: -1px;
    width: 1px;
    height: 1px;
}

.posts-grid .item > .text-wrap {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 55, 97, 0.7);
    text-align: center;
    padding: 20px;
}

.posts-grid .item > .text-wrap > .title {
    color: inherit;
    margin: 0;
}

.posts-grid .item > .text-wrap > .teaser {
    display: none;
    margin-bottom: 0;
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {

    .posts-grid {
        margin-bottom: 80px;
    }

    .posts-grid .item {
        flex-basis: calc(50% - 20px);
    }

}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {

    .posts-grid .item > .image-wrap {
        height: 300px;
    }

}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {

    .posts-grid {
        margin-top: 60px;
        margin-bottom: 100px;
    }

    .posts-grid .item > .text-wrap {
        position: relative;
        width: 80%;
        height: calc(100% - 200px);
        min-height: 100px;
        text-align: left;
        margin-top: -100px;
        margin-left: auto;
    }

    .posts-grid .item > .text-wrap > .title {
        margin-bottom: 10px;
    }

    .posts-grid .item > .text-wrap > .teaser {
        display: block;
    }

}

/* (large desktops, 1600 and up) */
@media (min-width: 1600px) {

    .posts-grid.alignwide .item > .image-wrap {
        height: 400px;
    }

    .posts-grid.alignwide .item > .text-wrap {
        width: 60%;
        height: calc(100% - 250px);
        min-height: 150px;
        margin-top: -150px;
    }

}