/**
 * This file adds the blog layout CSS to the Clover theme
 *
 * @package Clover
 * @author  17th Avenue
 * @link    https://17thavenuedesigns.com
 * @subpackage Customizations
 */


/* Global
---------------------------------------------------------------------------- */

.clover-blog-full h1.entry-title,
.clover-blog-grid h1.entry-title,
.clover-blog-list h1.entry-title {
    display: none;
}

/* Full
---------------------------------------------------------------------------- */

.clover-blog-full .content .entry-header .entry-meta {
    text-align: center;
}
.clover-blog-full .content img {
    width: 100%;
    margin-bottom: 0;
}
.clover-blog-full .content .entry-title {
    text-align: center;
    margin-bottom: 0;
}
.clover-blog-full .content a.more-link {
    display: table;
    margin: 0 auto;
    padding: 16px 30px;
}
.clover-blog-full .content .entry {
    margin-bottom: 7%;
}
.clover-blog-full .content .entry-header {
    clear: both;
    border-left: 1px solid #eeeae8;
    border-right: 1px solid #eeeae8;
    padding: 30px 30px 0;
}
.clover-blog-full .content .entry-content {
    padding: 15px 30px;
    border-left: 1px solid #eeeae8;
    border-right: 1px solid #eeeae8;
    border-bottom: 1px solid #eeeae8;
}

/* Grid
---------------------------------------------------------------------------- */

.clover-blog-grid .content .entry-header .entry-meta,
.clover-blog-list .content .entry-header .entry-meta {
    font-size: 12px;
}
.clover-blog-grid .content .entry {
    width: 50%;
    float: left;
}
.clover-blog-grid .content .entry:nth-of-type(odd) {
    padding-right: 24px;
    clear: both;
}
.clover-blog-grid .content .entry:nth-of-type(2n) {
    float: right !important;
}
.clover-blog-grid .content .entry:nth-of-type(even) {
    padding-left: 24px;
}
.clover-blog-grid .content .entry:nth-child(2n+1) {
    clear: both;
}
.clover-blog-grid.posts-page .content .entry:nth-child(2n+1),
.clover-blog-grid.archive .content .entry:nth-child(2n+1) {
    clear: none;
}
.clover-blog-grid.posts-page .content .entry:nth-child(3n+1),
.clover-blog-grid.archive .content .entry:nth-child(3n+1) {
    clear: both;
}
.clover-blog-grid.posts-page .content .entry:nth-child(6n+1),
.clover-blog-grid.posts-page .content .entry:nth-child(9n+1),
.clover-blog-grid.posts-page .content .entry:nth-child(12n+1),
.clover-blog-grid.archive .content .entry:nth-child(6n+1),
.clover-blog-grid.archive .content .entry:nth-child(9n+1),
.clover-blog-grid.archive .content .entry:nth-child(12n+1) {
    clear: none;
}
.clover-blog-grid.posts-page .content .entry:nth-of-type(2n),
.clover-blog-grid.archive .content .entry:nth-of-type(2n) {
    float: right !important;
}
.clover-blog-grid .content .entry-title {
    font-size: 32px;
    margin-bottom: 20px;
}

/* List
---------------------------------------------------------------------------- */

.clover-blog-list .content .post-image {
    width: 50%;
    margin-right: 32px;
    margin-bottom: 0;
}
.clover-blog-list .content .entry-header .entry-meta {
    padding-top: 6%;
}
.clover-blog-list .content .entry {
    border-bottom: 1px solid #eeeae8;
    padding-bottom: 5%;
}
.clover-blog-list .content .entry:last-of-type {
    border-bottom: 0;
    padding-bottom: 2.5%;
}

/* Mobile Styles
---------------------------------------------------------------------------- */

@media only screen and (max-width: 1000px) {
    .clover-blog-list .content .post-image {
        width: 40%;
        margin-right: 32px;
    }
    .clover-blog-list .content .entry-header .entry-meta {
        padding-top: 0;
    }
    .clover-blog-list .content .entry-title {
        font-size: 32px;
    }
}

@media only screen and (max-width: 700px) { 
    .clover-blog-full .content .entry-header,
    .clover-blog-full .content .entry-content  {
        padding-left: 25px;
        padding-right: 25px;
    }
    .clover-blog-list .content .entry:last-of-type {
        padding-bottom: 0;
    }
    .clover-blog-grid .content .entry {
        width: 100%;
        margin-bottom: 6%;
    }
    .clover-blog-list .content .post.has-post-thumbnail img {
        width: 100%;
        margin: 0;
    }
    .clover-blog-list .content .entry-header .entry-meta {
        padding-top: 22px;
        clear: both;
    }
    .clover-blog-grid .content .entry-title,
    .clover-blog-list .content .entry-title {
        clear: both;
        width: 100%;
        font-size: 28px;
    }
    .clover-blog-grid .content .entry:nth-of-type(1n),
    .clover-blog-grid .content .entry:nth-of-type(2n){
        padding: 0 !important;
    }
    .clover-blog-list.full-width-content .content .entry:nth-child(even) img {
        margin-left: 0;
    }
    .clover-blog-list .content .entry-content {
        padding-bottom: 10px;
    }
    .clover-blog-list .content .entry {
        padding: 0 !important;
        margin-bottom: 32px;
    }
    .clover-blog-list .content .entry-header p.entry-meta,
    .clover-blog-list .content .entry:first-of-type .entry-header p.entry-meta,
    .clover-blog-list.full-width-content .content .entry-header p.entry-meta  {
        clear: both;
        padding-top: 15px;
        text-align: left;
    }
}