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


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

.listing {
    padding: 100px 0;
}

.listing:nth-child(even) {
    background-color: #ebebeb;
}

.listing-header {
    border-bottom: 1px solid #e1e1e1;
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.listing-header h2 {
    flex-basis: calc(100% - 150px);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
}

.listing-header a.pointer {
    border: none;
    color: #000;
    flex-basis: 150px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
}

.listing-header a.pointer:focus,
.listing-header a.pointer:hover {
    color: #a1bf5f;
}

#post .category-article-wrap {
    display: grid;
    grid-auto-flow: column;
    grid-gap: 0 7.5%;
    grid-template-columns: 2.75fr 1.25fr;
    grid-template-rows: auto;
}

#post .category-article-wrap article:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 3;
}

#post .category-article-wrap article:nth-child(2) {
    grid-column: 2;
}

#post .category-article-wrap article:nth-child(3) {
    grid-column: 2;
}

#reports_guides .category-article-wrap,
#videos .category-article-wrap,
#podcasts .category-article-wrap {
    display: flex;
    flex-wrap: wrap;
    grid-gap: 0 4%;
}

#videos .category-article-wrap article {
    flex: 0 0 48%;
}

#reports_guides .category-article-wrap article,
#podcasts .category-article-wrap article {
    flex: 0 0 22%;
}

.listing article:last-child {
    margin-bottom: 0;
}

.listing img.feature {
    border-radius: 25px;
    transition: opacity .2s ease-in-out;
}

#reports_guides.listing img.feature {
    border-radius: 0;
    box-shadow: 0 2px 7px rgba(0,0,0,0.5);
}

#podcasts.listing img.feature {
    border-radius: 15px;
}

.listing img.feature:focus,
.listing img.feature:hover {
    opacity: .85;
}

.listing .single-feature {
    margin-bottom: 25px;
}

#post .category-article-wrap article:nth-child(n+2) .single-feature {
    height: 200px;
    object-fit: cover;
    position: relative;
}

#post .category-article-wrap article:nth-child(n+2) .single-feature img {
    height: 100%;
    left: 0;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    width: 100%;
}

.listing .entry-content p {
    color: #7d7d7d;
    font-weight: 400;
    line-height: 1.4;
}

#post article:nth-child(1) .entry-content p {
    font-size: 18px;
}

#post article:nth-child(1) img.feature {
    margin-bottom: 0;
}

#post.listing .entry:nth-child(n+2) img.feature {
    border-radius: 15px;
}

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

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

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

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

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

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

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

#post.listing article:nth-child(1) .entry-title,
#post.listing article:nth-child(1) .entry-title a {
    color: #2c2d33;
    font-size: 36px;
    margin-top: 5px;
}

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

#videos article .wpvl_auto_thumb_box_wrapper {
    height: 0;
    padding-bottom: 56%;
    position: relative;
}

#videos article .wpvl_auto_thumb_box {
    position: absolute;
}

#videos article .wpvl_auto_thumb_box,
#videos article .video_lightbox_auto_anchor_image {
    height: 100%;
    width: 100%;
}

#videos article .video_lightbox_auto_anchor_image {
    border-radius: 25px;
    object-fit: cover;
}



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

@media only screen and (min-width: 601px) {
    
    .listing-header a.pointer {
        text-align: right;
    }
    
}

@media only screen and (max-width: 1023px) {
    
    #post .category-article-wrap {
        grid-template-columns: 1fr 1fr;
    }
    
    #post .category-article-wrap article:nth-child(1) {
        grid-column: 1 / span 2;
        grid-row: 1;
    }
    
    #post .category-article-wrap article:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }
    
    #post .category-article-wrap article:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }
    
    #reporst_guides .category-article-wrap article,
    #podcasts .category-article-wrap article {
        flex-basis: 48%;
    }
    
}

@media only screen and (max-width: 767px) {
    
    .listing-header {
        display: block;
    }
    
}

@media only screen and (max-width: 600px) {
    
    .listing img.feature,
    #videos article .video_lightbox_auto_anchor_image {
        border-radius: 15px;
    }
    
    #reports_guides .category-article-wrap,
    #post .category-article-wrap,
    #podcasts .category-article-wrap,
    #videos .category-article-wrap {
        display: block;
    }
    
    .listing article:nth-child(1) .entry-title,
    .listing article:nth-child(1) .entry-title a {
        font-size: 24px;
    }
    
}