/*
	* CSS for Truncated Post Previews
	*
	* @package      streetsmartnutrition
	* @author       Lindsay Humes
	* @since        1.0.0
	* @license      GPL-2.0+
*/
/*--------------------------------------------------------------
## Post Type - Post Abbreviated Universal
--------------------------------------------------------------*/
.post-abbr {
    background: #ffffff;
    position: relative;
}

.bg-1 .post-abbr {
    background: #FCFAFA;
}

.abbr-content {
    position: relative;
}

.post-abbr img {
    display: block;
}

.post-abbr a, .post-abbr a:visited {
    color: #121A18;
    text-decoration: none;
}

.post-abbr a:hover, .post-abbr a:visited:hover {
    color: #48675F;
}

/*Post Meta*/
.abbr-content .post-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.abbr-content .post-meta .wprm-recipe-details-unit {
    font-size: 1em!important;
}
.abbr-content .post-meta .svg-icon {
    margin-right: 3px;
}

.read-more {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: fit-content;
    margin: 15px 0 0;
    color: #121A18;
    line-height: 1;
}

.read-more .sm-caps {
    line-height: 1;
    display: block;
}

a.read-more, a.read-more:visited, a.read-more:hover, a.read-more:visited:hover {
    color: #121A18;
}

.read-more .svg-icon {
    transform: rotate(-90deg);
    margin-left: 3px;
}

a.read-more:hover {
    color: #48675F;
}

/*Taxonomy Terms*/
.taxonomy-terms {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    position: absolute;
    top: -20px;
}
.post-latest .taxonomy-terms {
    position: static;
}
.term-link {
    background: #E6E5E5;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
}

.term-link .sm-caps {
    font-size: 11px;
}

.term-link:hover {
    background: #48675F;
    color: #FFFFFF !important;
}

/*--------------------------------------------------------------
## Post Type - Latest
--------------------------------------------------------------*/
.post-latest {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: calc(70% - 20px);
    margin-right: 20px;
}
.latest-post-image {
    content: '';
    display: block;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    width: 100%;
    max-width: 50%;
    height: 100%;
}
.post-latest:nth-of-type(2) .latest-post-image {
    max-width: 100%;
    height: 400px;
}

.post-latest .abbr-content {
    width: 50%;
    padding: 30px;
}

.post-latest:nth-of-type(2) {
    display: block;
    width: 30%;
    margin-right: 0;
}

.post-latest:nth-of-type(2) .abbr-content {
    width: 100%;
    padding: 15px;
}
.post-latest:nth-of-type(2) h3 {
    font-size: 20px;
}
.post-latest:nth-of-type(2) .entry-summary, .post-latest:nth-of-type(2) .read-more {
    display: none;
}

.post-latest h3 {
    font-size: 32px;
    margin: 10px 0;
}

.post-latest .entry-summary {
    font-size: 16px;
    line-height: 1.4;
    margin: 15px 0;
}

/*--------------------------------------------------------------
## Post Type - Abbreviated Small
--------------------------------------------------------------*/
.post-sm {
    width: calc(1 / 6 * 100% - 17px);
    margin: 0 20px 20px 0;
}

.post-sm:nth-child(6n) {
    margin: 0 0 20px 0;
}

.index-wrap .post-sm, .index-wrap .post-sm:nth-child(6n) {
    width: calc(1 / 5 * 100% - 17px);
    margin: 0 20px 20px 0;
}

.index-wrap .post-sm:nth-child(5n) {
    margin: 0 0 20px 0;
}


.post-sm .abbr-content {
    padding: 10px;
}

.post-sm h3 {
    padding: 0;
    line-height: 1.2;
    font-size: 16px;
    margin: 0;
}

.single .post-sm, .single .post-sm:nth-child(6n) {
    width: calc(1 / 3 * 100% - 15px);
    margin: 0 20px 20px 0;
}

.single .post-sm:nth-child(3n) {
    margin: 0 0 20px 0;
}

.single .related-posts .post-sm, .single .related-posts .post-sm:nth-child(6n) {
    width: calc(1 / 3 * 100% - 8px);
    margin: 0 10px 10px 0;
}

.single .related-posts .post-sm:nth-child(3n) {
    margin: 0 0 10px 0;
}

.single .widget-posts .post-sm, .single .widget-posts .post-sm:nth-child(6n) {
    width: calc(1 / 2 * 100% - 5px);
    margin: 0 10px 10px 0;
}

.single .widget-posts .post-sm:nth-child(2n) {
    margin: 0 0 10px;
}

.single .post-sm, .single .post-sm:nth-child(6n), .widget-posts .post-sm:nth-child(2n) {
    width: calc(1 / 2 * 100% - 5px);
    margin: 0 0 10px;
}

.single .post-related .post-sm {
    margin-bottom: 0px !important;
}

/*--------------------------------------------------------------
## Post Type - Abbreviated Medium
--------------------------------------------------------------*/
.post-med {
    width: calc(1 / 4 * 100% - 16px);
    margin: 0 20px 20px 0;
}

.post-med:nth-child(4n) {
    margin: 0 0 20px 0;
}

.post-med .abbr-content {
    padding: 20px 10px 10px;
}

.post-med h3 {
    padding: 5px 0;
    line-height: 1.2;
    font-size: 20px;
    margin: 0;
}


.single .post-med, .single .post-med:nth-child(4n) {
    width: calc(1 / 2 * 100% - 15px);
    margin: 0 20px 20px 0;
}

.single .post-med:nth-child(2n) {
    margin: 0 0 20px 0;
}

/*--------------------------------------------------------------
## Post Type - Abbreviated Large
--------------------------------------------------------------*/
.post-lg {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto 20px;
}

.post-lg .abbr-content {
    width: 45%;
    padding: 20px;
}

.post-lg h3 {
    margin: 15px 0;
    line-height: 1.2;
    font-size: 32px;
}

.post-lg .entry-summary {
    margin: 15px 0;
    line-height: 1.4;
    font-size: 18px;
}

.content-post .post-lg {
    margin: 0;
}

.content-post .post-lg .abbr-content {
    width: 39%;
}

.single .callout-content.post-lg, .single .section-posts .post-lg {
    max-width: 600px;
    display: block;
}

.single .callout-content.post-lg .abbr-content, .single .section-posts .post-lg .abbr-content {
    width: 100%;
}

/*--------------------------------------------------------------
## Post Type - Abbreviated Video
--------------------------------------------------------------*/
.post-video {
    width: calc(1 / 3 * 100% - 16px);
    margin: 0 20px 20px 0;
}

.post-video:nth-child(3n) {
    margin: 0 0 20px 0;
}

.post-video .abbr-content {
    padding: 20px 10px 10px;

}

.post-video h3 {
    padding: 5px 0;
    line-height: 1.2;
    font-size: 22px;
    margin: 0;
}

.single .post-video h3 {
    font-size: 14px;
}

.single .post-video .post-meta {
    display: none;
}

/*--------------------------------------------------------------
## Post Type - Product Small
--------------------------------------------------------------*/
.product-sm {
    width: calc(1 / 6 * 100% - 17px);
    margin: 0 20px 20px 0;
}

.product-sm:nth-child(6n) {
    margin: 0 0 20px 0;
}

.results .product-sm, .results .product-sm:nth-child(6n) {
    width: calc(1 / 5 * 100% - 17px);
    margin: 0 20px 20px 0;
}

.results .product-sm:nth-child(5n) {
    margin: 0 0 20px 0;
}

.product-sm .abbr-content {
    padding: 10px;
}

.product-sm h3 {
    padding: 0;
    line-height: 1.2;
    font-size: 16px;
    margin: 0;
}

.single .product-sm, .single .product-sm:nth-child(6n) {
    width: calc(1 / 3 * 100% - 15px);
    margin: 0 20px 20px 0;
}

.single .product-sm:nth-child(3n) {
    margin: 0 0 20px 0;
}

/*--------------------------------------------------------------
## Post Type - Product Medium
--------------------------------------------------------------*/
.product-med {
    width: calc(1 / 4 * 100% - 16px);
    margin: 0 20px 20px 0;
}

.product-med:nth-child(4n) {
    margin: 0 0 20px 0;
}

.product-med .abbr-content {
    padding: 10px;
}

.product-med h3 {
    padding: 0;
    line-height: 1.2;
    font-size: 22px;
    margin: 0;
}

.single .product-med, .single .product-med:nth-child(4n) {
    width: calc(1 / 2 * 100% - 15px);
    margin: 0 20px 20px 0;
}

.single .product-med:nth-child(2n) {
    margin: 0 0 20px 0;
}

/*--------------------------------------------------------------
## Post Type - Product Large
--------------------------------------------------------------*/
.product-lg {
    width: calc(1 / 3 * 100% - 16px);
    margin: 0 20px 20px 0;
}

.product-lg:nth-child(3n) {
    margin: 0 0 20px 0;
}

.product-lg .abbr-content {
    padding: 15px;
}

.product-lg h3 {
    padding: 0;
    line-height: 1.2;
    font-size: 24px;
    margin: 0;
}
.product-lg .content-meta {
    font-size: 16px;
}

.single .product-lg {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 10px;
}

.single .product-lg .abbr-content {
    padding: 20px;
    width: 70%;
}

/*-------------------------------------------------------------
## No Results
--------------------------------------------------------------*/
.no-results {
    max-width: 1045px;
    margin: 0 auto;
    width: calc(100% - 20px);
    padding: 30px 0 0;
}

/*--------------------------------------------------------------
## Section Posts
--------------------------------------------------------------*/
.section-posts .post-sm:nth-last-child(-n+6), .section-posts .product-sm:nth-last-child(-n+6) {
    margin-bottom: 0;
}

.single .post-sm:nth-last-child(-n+6), .single .product-sm:nth-last-child(-n+6) {
    margin-bottom: 20px;
}

.single .post-sm:nth-last-child(-n+3), .single .product-sm:nth-last-child(-n+3) {
    margin-bottom: 10px;
}

.section-posts .post-med:nth-last-child(-n+4), .section-posts .product-med:nth-last-child(-n+4) {
    margin-bottom: 0;
}

.single .section-posts .post-med:nth-last-child(-n+4), .single .section-posts .product-med:nth-last-child(-n+4) {
    margin-bottom: 20px;
}

.single .section-posts .post-med:nth-last-child(-n+2), .single .section-posts .product-med:nth-last-child(-n+2) {
    margin-bottom: 0;
}

.section-posts .post-video:nth-last-child(-n+3), .section-posts .product-lg:nth-last-child(-n+3) {
    margin-bottom: 0;
}


.section-posts .post-lg:nth-last-child(-n+1) {
    margin-bottom: 0;
}

.section-posts .post-video:nth-last-child(-n+3) {
    margin-bottom: 0;
}

/*--------------------------------------------------------------
## Mobile
--------------------------------------------------------------*/
@media screen and (max-width: 840px) {

    .single.post-sm:nth-last-child(-n+3), .single .product-sm:nth-last-child(-n+3) {
        margin-bottom: 10px;
    }

    .section-posts .product-lg:nth-last-child(-n+3) {
        margin-bottom: 20px;
    }
    .latest-wrap .section-posts {
        display: block;
    }
    .post-latest {
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    .post-latest:nth-of-type(2) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 0;
    width: 100%;
    }
    .latest-post-image, .post-latest:nth-of-type(2) .latest-post-image {
        width: 50%;
        height: 550px;
    }
    .post-latest:nth-of-type(2)  .abbr-content {
    width: 50%;
    padding: 30px;
}
    
    .post-med .taxonomy-terms {
        top: -10px;
    }
    .post-med .term-link {
        width: 25px;
        height: 25px;
    }
    .post-med .term-link .sm-caps {
        font-size: 9px;
    }
}

@media screen and (max-width: 810px) {
    .section-posts .post-sm, .section-posts .post-med, .section-posts .post-lg, .section-posts .post-video, .section-posts .product-med, .section-posts .product-lg {
        margin-bottom: 10px;
    }

    .post-sm, .post-sm:nth-child(6n), .index-wrap .post-sm, .index-wrap .post-sm:nth-child(6n), .index-wrap .post-sm:nth-child(5n), .results .product-sm, .results .product-sm:nth-child(5n), .results .product-sm:nth-child(5n) {
        width: calc(1 / 3 * 100% - 7px);
        margin: 0 10px 10px 0;
    }

    .post-sm:nth-child(3n), .index-wrap .post-sm:nth-child(3n), .results .product-sm:nth-child(3n) {
        width: calc(1 / 3 * 100% - 7px);
        margin: 0 0 10px 0;
    }
}

@media screen and (max-width: 600px) {
    .post-lg {
        display: block;
    }

    .post-lg .abbr-content {
        width: 100%;
    }

    .content-post .post-lg .abbr-content {
        width: 100%;
    }

    .post-video, .post-video:nth-child(3n) {
        width: 100%;
        margin: 0 auto 10px;
    }
}

@media screen and (max-width: 550px) {
    .post-latest, .post-latest:nth-of-type(2) {
        display: block;
    }
    .latest-post-image, .post-latest:nth-of-type(2) .latest-post-image {
        width: 100%;
        height: 400px;
        max-width: 100%;
    }
    .post-latest .abbr-content, .post-latest:nth-of-type(2) .abbr-content {
        width: 100%;
    }
    .single .post-video h3 {
        font-size: 18px;
    }

    .single .post-video .post-meta {
        display: flex;
    }

    .post-med, .post-med:nth-child(4n), .post-sm, .post-sm:nth-child(6n), .index-wrap .post-sm, .index-wrap .post-sm:nth-child(6n), .index-wrap .post-sm:nth-child(5n), .post-sm:nth-child(3n), .index-wrap .post-sm:nth-child(3n) {
        width: calc(1 / 2 * 100% - 8px);
        margin: 0 10px 10px 0;
    }

    .single .post-med {
        width: calc(1 / 2 * 100% - 5px) !important;
        margin: 0 10px 10px 0;
    }

    .single .post-med:nth-child(2n) {
        margin: 0 0 10px;
    }

    .single .section-posts .post-med:nth-last-child(-n+4), .single .section-posts .product-med:nth-last-child(-n+4) {
        margin-bottom: 10px;
    }

    .post-med:nth-child(2n), .post-sm:nth-child(2n), .index-wrap .post-sm:nth-child(2n) {
        margin: 0 0 10px;
    }

    .product-sm, .product-sm:nth-child(6n), .product-sm:nth-child(4n), .results .product-sm, .results .product-sm:nth-child(6n), .results .product-sm:nth-child(5n), .results .product-sm:nth-child(4n), .results .product-sm:nth-child(3n) {
        width: calc(1 / 2 * 100% - 8px);
        margin: 0 10px 10px 0;
    }

    .single .product-sm, .single .product-sm:nth-child(6n) {
        width: calc(1 / 2 * 100% - 8px);
        margin: 0 10px 10px 0;
    }

    .single .product-sm:nth-child(6n) {
        margin: 0 0 10px 0;
    }

    .product-sm:nth-child(2n), .results .product-sm:nth-child(2n) {
        margin: 0 0 10px;
    }

    .single .related-posts .post-sm, .single .related-posts .post-sm:nth-child(6n), .single .related-posts .post-sm:nth-child(4n) {
        width: calc(1 / 2 * 100% - 8px);
        margin: 0 10px 10px 0;
    }

    .single .related-posts .post-sm:nth-child(2n) {
        margin: 0 0 10px 0;
    }
.single .related-posts .post-sm:last-child {
    display: none;
}
    .product-med, .product-med:nth-child(4n) {
        width: calc(1 / 2 * 100% - 8px);
        margin: 0 10px 10px 0;
    }

    .product-med:nth-child(2n) {
        margin: 0 0 10px;
    }

    .product-lg, .product-lg:nth-child(3n) {
        width: 100%;
        margin: 0 auto 10px;
    }

    .section-posts .post-sm:nth-last-child(-n+6), .section-posts .product-sm:nth-last-child(-n+6) {
        margin-bottom: 10px;
    }

    .section-posts .post-med:nth-last-child(-n+4), .section-posts .product-med:nth-last-child(-n+4) {
        margin-bottom: 10px;
    }

    .section-posts .post-video:nth-last-child(-n+3) {
        margin-bottom: 10px;
    }

    .section-posts .product-lg:nth-last-child(-n+3) {
        margin-bottom: 10px;
    }

    .single .product-lg {
        display: block;
    }

    .single .product-lg .abbr-content {
        width: 100%;
    }
}
