/* ==========================================================
   CONVERGE BLOG ARCHIVES
   Category + Tag + Author
   ========================================================== */


/* ==========================================================
   ARCHIVE PAGE SPACING
   ========================================================== */

body.category .page_content_wrap,
body.tag .page_content_wrap,
body.author .page_content_wrap {
    padding-top: 65px !important;
    padding-bottom: 90px !important;
}


/* Handle Invetex global "Margins Off" setting */

body.category.remove_margins .page_content_wrap,
body.tag.remove_margins .page_content_wrap,
body.author.remove_margins .page_content_wrap {
    padding-top: 65px !important;
    padding-bottom: 90px !important;
}


/* ==========================================================
   CONTENT WIDTH
   ========================================================== */

body.category .page_content_wrap > .content_wrap,
body.tag .page_content_wrap > .content_wrap,
body.author .page_content_wrap > .content_wrap {
    width: min(1200px, calc(100% - 40px)) !important;
    max-width: 1200px !important;

    margin-left: auto !important;
    margin-right: auto !important;
}


/* ==========================================================
   AUTHOR PROFILE
   ========================================================== */

body.author .author_page {
    max-width: 900px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    margin-bottom: 70px !important;

    text-align: center !important;
}


body.author .author_page .author_bio {
    max-width: 850px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    line-height: 1.65 !important;
}


body.author .author_page .author_title {
    font-family: 'Jost', sans-serif !important;

    font-size: 30px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}


/* ==========================================================
   TWO POSTS PER ROW
   ========================================================== */

body.category .posts_container.columns_wrap,
body.tag .posts_container.columns_wrap,
body.author .posts_container.columns_wrap {
    display: flex !important;
    flex-wrap: wrap !important;

    align-items: stretch !important;

    row-gap: 55px !important;
}


/*
 * Force archive card to 50%.
 */

body.category
.posts_container.columns_wrap
> [class*="column-"],

body.tag
.posts_container.columns_wrap
> [class*="column-"],

body.author
.posts_container.columns_wrap
> [class*="column-"] {
    width: 50% !important;
    flex: 0 0 50% !important;

    box-sizing: border-box !important;
}


/*
 * If archive currently contains only ONE post,
 * center the card instead of leaving it on the left.
 */

body.category
.posts_container.columns_wrap
> [class*="column-"]:only-child,

body.tag
.posts_container.columns_wrap
> [class*="column-"]:only-child,

body.author
.posts_container.columns_wrap
> [class*="column-"]:only-child {
    margin-left: auto !important;
    margin-right: auto !important;
}


/* ==========================================================
   POST CARD
   ========================================================== */

body.category .post_layout_classic_converge,
body.tag .post_layout_classic_converge,
body.author .post_layout_classic_converge {
    height: 100% !important;

    display: flex !important;
    flex-direction: column !important;
}


/* ==========================================================
   TITLE
   ========================================================== */

body.category
.post_layout_classic_converge
.post_title,

body.tag
.post_layout_classic_converge
.post_title,

body.author
.post_layout_classic_converge
.post_title {
    font-family: 'Jost', sans-serif !important;

    font-size: 27px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;

    margin: 0 0 10px !important;
}


body.category
.post_layout_classic_converge
.post_title a,

body.tag
.post_layout_classic_converge
.post_title a,

body.author
.post_layout_classic_converge
.post_title a {
    color: inherit !important;
}


/* ==========================================================
   META
   ========================================================== */

body.category
.post_layout_classic_converge
.post_meta,

body.tag
.post_layout_classic_converge
.post_meta,

body.author
.post_layout_classic_converge
.post_meta {
    margin-top: 0 !important;
    margin-bottom: 18px !important;
}


/* ==========================================================
   FEATURED IMAGE - NO CROP
   ========================================================== */

body.category
.post_layout_classic_converge
.post_featured,

body.tag
.post_layout_classic_converge
.post_featured,

body.author
.post_layout_classic_converge
.post_featured {
    width: 100% !important;

    height: auto !important;

    margin-top: 0 !important;
    margin-bottom: 20px !important;

    overflow: visible !important;

    aspect-ratio: auto !important;
}


body.category
.post_layout_classic_converge
.post_featured img,

body.tag
.post_layout_classic_converge
.post_featured img,

body.author
.post_layout_classic_converge
.post_featured img {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;

    object-fit: contain !important;

    position: static !important;
}


/* ==========================================================
   EXCERPT
   ========================================================== */

body.category
.post_layout_classic_converge
.post_content,

body.tag
.post_layout_classic_converge
.post_content,

body.author
.post_layout_classic_converge
.post_content {
    padding-top: 0 !important;

    flex-grow: 1 !important;

    font-size: 16px !important;
    line-height: 1.6 !important;
}


body.category
.post_layout_classic_converge
.post_content_inner,

body.tag
.post_layout_classic_converge
.post_content_inner,

body.author
.post_layout_classic_converge
.post_content_inner {
    margin-bottom: 20px !important;
}


/* ==========================================================
   READ MORE
   ========================================================== */

body.category
.post_layout_classic_converge
.more-wrap,

body.tag
.post_layout_classic_converge
.more-wrap,

body.author
.post_layout_classic_converge
.more-wrap {
    margin-top: auto !important;
}


body.category
.post_layout_classic_converge
.post-more-link,

body.tag
.post_layout_classic_converge
.post-more-link,

body.author
.post_layout_classic_converge
.post-more-link,

body.category
.post_layout_classic_converge
.more-link,

body.tag
.post_layout_classic_converge
.more-link,

body.author
.post_layout_classic_converge
.more-link {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    background: #ED3939 !important;
    color: #FFFFFF !important;

    padding: 12px 22px !important;

    font-family: 'Jost', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;

    text-decoration: none !important;
}


/* ==========================================================
   GAP BEFORE THE THEME FOOTER
   ========================================================== */

body.category .page_content_wrap::after,
body.tag .page_content_wrap::after,
body.author .page_content_wrap::after {
    content: "";

    display: block;

    width: 100%;
    height: 70px;

    clear: both;
}


/* ==========================================================
   TABLET
   ========================================================== */

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

    body.category .page_content_wrap,
    body.tag .page_content_wrap,
    body.author .page_content_wrap,

    body.category.remove_margins .page_content_wrap,
    body.tag.remove_margins .page_content_wrap,
    body.author.remove_margins .page_content_wrap {
        padding-top: 50px !important;
        padding-bottom: 70px !important;
    }


    body.category .page_content_wrap > .content_wrap,
    body.tag .page_content_wrap > .content_wrap,
    body.author .page_content_wrap > .content_wrap {
        width: calc(100% - 40px) !important;
    }


    body.author .author_page {
        margin-bottom: 55px !important;
    }


    body.category
    .post_layout_classic_converge
    .post_title,

    body.tag
    .post_layout_classic_converge
    .post_title,

    body.author
    .post_layout_classic_converge
    .post_title {
        font-size: 24px !important;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

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

    body.category .page_content_wrap,
    body.tag .page_content_wrap,
    body.author .page_content_wrap,

    body.category.remove_margins .page_content_wrap,
    body.tag.remove_margins .page_content_wrap,
    body.author.remove_margins .page_content_wrap {
        padding-top: 35px !important;
        padding-bottom: 55px !important;
    }


    body.category .page_content_wrap > .content_wrap,
    body.tag .page_content_wrap > .content_wrap,
    body.author .page_content_wrap > .content_wrap {
        width: calc(100% - 32px) !important;
    }


    /*
     * ONE card per row on phones.
     */

    body.category
    .posts_container.columns_wrap
    > [class*="column-"],

    body.tag
    .posts_container.columns_wrap
    > [class*="column-"],

    body.author
    .posts_container.columns_wrap
    > [class*="column-"] {
        width: 100% !important;
        flex: 0 0 100% !important;
    }


    body.author .author_page {
        margin-bottom: 45px !important;
    }


    body.author .author_page .author_title {
        font-size: 26px !important;
    }


    body.category
    .post_layout_classic_converge
    .post_title,

    body.tag
    .post_layout_classic_converge
    .post_title,

    body.author
    .post_layout_classic_converge
    .post_title {
        font-size: 22px !important;
    }

}