.ape_posts_container {
    padding: 20px 0;
    width: 100%;
}

.ape_posts_wrapper {
    display: flex;
    flex-wrap: wrap;
}

.ape_post {
    background: #ffffff;
    border: 1px solid #c6d1d6;
    border-radius: 5px;
    flex-grow: 1;
    margin: 10px;
    overflow: hidden;
    position: relative;
    transition: all .15s ease-in-out;
    width: 30%;
}

.ape_post:hover {
    box-shadow: 0 3px 15px rgba(0,0,0,.05);
}

.ape_post_image_wrapper {
    overflow: hidden;
    padding-bottom: 75%;
    position: relative;
    width: 100%;
}

.ape_post_image_wrapper:before {
    background: rgba(0,0,0,.65) url(img/page-next-outline.png) no-repeat center center;
    background-size: 36px;
    bottom: 0;
    content: "";
    display: block;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    transition: all .15s ease-in-out;
    top: 0;
    z-index: 2;
}

.ape_post_image_wrapper:hover:before {
    opacity: 1;
}

.ape_post_image_wrapper > a {
    display: block;
}

.ape_post_image {
    display: block;
    height: 100%;
    object-fit: cover;
    position: absolute;
    width: 100%;
    z-index: 1;
}

.ape_post_content {
    padding: 15px 15px 25px;
}

.ape_post_content > a,
.ape_post_content .styledbutton {
    border: 2px solid;
    border-radius: 5px;
    bottom: 15px;
    display: block;
    font-weight: 500;
    left: 15px;
    margin-top: 15px;
    padding: 6px;
    position: absolute;
    right: 15px;
    text-align: center;
    display: none;
}

@media only screen and (max-width: 959px) {

    .ape_posts_wrapper {
        display: block;
    }

    .ape_post {
        display: flex;
        margin-bottom:20px;
        width: 100%;
    }

    .ape_post_image_wrapper {
        padding-bottom: 20%;
        width: 35%;
    }

    .ape_post_content {
        padding: 15px 25px 70px;
        position: relative;
        width: 65%;
    }

    .ape_post_content > a,
    .ape_post_content .styledbutton {
        bottom: 25px;
        left: 25px;
        right: auto;
        width: auto;
    }

}

@media only screen and (max-width: 581px) {

    .ape_posts_wrapper {
        display: block;
    }

    .ape_post {
        display: block;
        width: auto;
    }

    .ape_post_image_wrapper {
        padding-bottom: 50%;
        width: 100%;
    }

    .ape_post_content {
        width: 100%;
    }

    .ape_post_content > a,
    .ape_post_content .styledbutton {

    }

}
