/**
 * MetricSherpa.
 *
 * This file adds Archives styles to the MetricSherpa Theme.
 *
 * @package MetricSherpa
 * @author  5.12 Design Lab
 * @license GPL-2.0-or-later
 * @link    https://512designlab.com/
 */

/* Defaults
---------------------------------------------------------------------------- */

body.archive .site-inner {
    padding-top: 0;
}

body.archive .archive-header {
    flex-basis: 100%;
    padding: 60px 0 80px;
    position: relative;
    text-align: center;
}
/*
body.archive .archive-header::before {
    background-color: #268d94;
    content: '';
    display: block;
    height: 100%;
    left: 50%;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 100vw;
    z-index: 0;
}

body.blog.archive .archive-header::before,
body.archive.category .archive-header::before {
    background-color: #a1bf5f;
}
*/
body.search.archive .archive-header {
    padding-bottom: 60px;
}

body.archive .archive-header > * {
    position: relative;
}

body.archive .archive-header .post-type {
    text-transform: uppercase;
}

body.archive .archive-header h1.archive-title {
    font-size: 56px;
    font-weight: 800;
    margin: 0;
}

body.archive .archive-header .archive-description {
    font-size: 21px;
    font-weight: 700;
    margin: 10px 0 0;
}

body.archive .latest-posts,
body.archive .main-loop {
    display: flex;
    flex-wrap: wrap;
    grid-gap: 0 3%;
    position: relative;
}

body.archive .latest-posts {
    margin-bottom: 40px;
}

body.archive .main-loop {
    padding: 100px 0 60px;
}

body.archive .main-loop::before {
    background-color: #F1EFF0;
    content: '';
    display: block;
    height: 100%;
    left: 50%;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 100vw;
    z-index: 0;
}

body.archive .latest-posts article,
body.archive .main-loop article {
    flex: 0 0 31.33%;
    position: relative;
}

body.archive article .single-feature {
    margin-bottom: 25px;
}

body.archive article .single-feature img {
    border-radius: 15px;
    margin: 0;
    transition: opacity .2s ease-in-out;
}

body.archive article .single-feature a:focus img,
body.archive article .single-feature a:hover img {
    opacity: .85;
}

body.archive article .entry-title,
body.archive article .entry-title a {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
}

body.archive .latest-posts .entry-title,
body.archive .latest-posts .entry-title a {
    font-size: 24px;
}

body.archive article .entry-title a:focus,
body.archive article .entry-title a:hover {
    color: #268d94;
}

body.archive .entry p:last-child {
    margin: 0;
}

body.archive .entry-header .category .cat {
    color: #268d94;
    font-size: 12px;
    font-weight: 700;
    position: relative;
    text-transform: uppercase;
}

body.archive .entry-header .category .cat::before {
    content: ',\00a0';
    display: inline-block;
}

body.archive .entry-header .category .cat:first-child::before {
    display: none;
}

body.archive .entry-header .category .cat a {
    color: #268d94;
    text-decoration: none;
}

body.archive .entry-header .category .cat a:focus,
body.archive .entry-header .category .cat a:hover {
    text-decoration: underline;
}

body.archive .content a.arrow {
    color: #268d94;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
}

body.archive .content a.arrow:focus,
body.archive .content a.arrow:hover {
    color: #a1bf5f;
}

body.archive .content .latest-posts a.arrow {
    background-color: #268d94;
    border-radius: 30px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0;
    padding: 14px 20px 15px;
}

body.archive .content .latest-posts a.arrow:focus,
body.archive .content .latest-posts a.arrow:hover {
    background-color: #a1bf5f;
}

body.archive .content a.arrow::after {
    content: "\f061";
    display: inline-block;
    font-family: 'fontawesome';
    font-weight: 700;
    margin-left: 5px;
    position: relative;
    top: 0;
}

body.archive .content .latest-posts a.arrow::after {
    display: none;
}

body.archive .archive-pagination {
    flex-basis: 100%;
    position: relative;
}


/* Search Bar
---------------------------------------------------------------------------- */

.search-posts {
    border-bottom: 1px solid #ddd;
    flex-basis: 100%;
    margin-bottom: 40px;
    padding: 0 0 40px;
    position: relative;
    z-index: 1;
}

.search-posts::before {
    background-color: #F1EFF0;
    content: '';
    display: block;
    height: 100%;
    left: 50%;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 100vw;
    z-index: 0;
}

.search-posts > * {
    position: relative;
}

.search-posts .widget {
    margin: 0;
}

.search-posts h2 {
    font-weight: 800;
}

.search-posts div.gform_wrapper.gravity-theme select {
    padding: 13px;
}


/* Main Loop
---------------------------------------------------------------------------- */

body.archive .main-loop article {
    background-color: #fff;
    color: #7d7d7d;
    font-weight: 400;
}

body.archive .main-loop article .single-feature,
body.archive .main-loop article .single-feature img {
    border-radius: 0;
    margin: 0;
}

body.archive .main-loop article .entry-header,
body.archive .main-loop article .entry-content {
    padding: 20px;
}

body.archive .main-loop article .entry-content {
    line-height: 1.25;
    margin-top: -15px;
    padding-top: 0;
}


/* Reports & Guides
---------------------------------------------------------------------------- */
/*
body.post-type-archive-reports_guides .content,
body.tax-rg_category .content {
    display: flex;
    flex-wrap: wrap;
    grid-gap: 0 5%;
}

body.post-type-archive-reports_guides .content article,
body.tax-rg_category .content article {
    flex: 0 0 20%;
}
*/
body.archive.post-type-archive-reports_guides .single-feature img,
body.archive.tax-rg_category .single-feature img {
    border-radius: 0;
    box-shadow: 0 2px 7px rgba(0,0,0,0.5);
}


/* Blog
---------------------------------------------------------------------------- 

body.blog .content {
    display: grid;
    grid-auto-flow: column;
    grid-gap: 0 7.5%;
    grid-template-columns: 2.75fr 1.25fr;
    grid-template-rows: auto;
}

body.blog .content article:nth-child(3n-2) {
    grid-column: 1;
    grid-row: 1 / span 3;
}

body.blog .content article:nth-child(3n-1) {
    grid-column: 2;
}

body.blog .content article:nth-child(3n) {
    grid-column: 2;
}


/* Podcasts
---------------------------------------------------------------------------- */
/*
body.post-type-archive-podcasts .content,
body.tax-pod_category .content {
    display: flex;
    flex-wrap: wrap;
    grid-gap: 0 5%;
}

body.post-type-archive-podcasts .content article,
body.tax-pod_category .content article {
    flex: 0 0 20%;
}
*/
body.archive.post-type-archive-podcasts .single-feature img,
body.archive.tax-pod_category .single-feature img {
    border-radius: 15px;
}


/* Videos
---------------------------------------------------------------------------- */
/*
body.post-type-archive-videos .content,
body.tax-vid_category .content {
    display: flex;
    flex-wrap: wrap;
    grid-gap: 0 5%;
}

body.post-type-archive-videos .content article,
body.tax-vid_category .content article {
    flex: 0 0 45%;
}
*/
body.archive .content article .wpvl_auto_thumb_box_wrapper {
    height: 0;
    padding-bottom: 56%;
    position: relative;
}

body.archive .content article .wpvl_auto_thumb_box {
    position: absolute;
}

body.archive .content article .wpvl_auto_thumb_box,
body.archive .content article .video_lightbox_auto_anchor_image {
    height: 100%;
    width: 100%;
}

body.archive .content article .video_lightbox_auto_anchor_image {
    object-fit: cover;
}


/* Media Queries
---------------------------------------------------------------------------- */

@media only screen and (max-width: 1023px) {
    
    h1.page-title {
        font-size: 54px;
    }
    
}

@media only screen and (max-width: 768px) {
    
    body.archive .latest-posts article {
        flex-basis: 47%;
    }
/*    
    body.post-type-archive-reports_guides .content article, 
    body.tax-rg_category .content article,
    body.post-type-archive-podcasts .content article,
    body.tax-pod_category .content article {
        flex-basis: 45%;
    }
*/    
    body.archive .latest-posts article:first-child {
        flex-basis: 100%;
    } 
    
}

@media only screen and (max-width: 600px) {
    
	body.archive .latest-posts article,
    body.archive .main-loop article {
        flex-basis: 100%;
    }

}

@media only screen and (max-width: 550px) {
    
    h1.page-title {
        font-size: 42px;
    }
    
}