/*
	* CSS for Truncated Post Previews
	*
	* @package      greatisland
	* @author       Lindsay Humes
	* @since        1.0.0
	* @license      GPL-2.0+
*/
/*--------------------------------------------------------------
## Post Type - Post Abbreviated Universal
--------------------------------------------------------------*/
.count-label {
	margin-left: 3px;
}
.post-abbr {
    background: #ffffff;
}

.archive-content .post-abbr {
    background: #f6f5f5;
}


.post-abbr img, .post-abbr a {
    display: block;
}

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

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

.read-more {
    display: block;
    width: fit-content;
    margin: 15px auto 0;
    color: #212121;
    line-height: 1;
    border-bottom: 1px solid #212121;
}

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

a.read-more, a.read-more:visited {
    color: #212121;
}

a.read-more:hover, a.read-more:visited:hover {
    color: #497246;
    border-bottom: 1px solid #497246;
}
.bg-3 .post-abbr, .bg-2 .post-abbr {
    background: #f6f5f5;
}
.bg-5 .post-abbr {
    background:  #ffffff;
}
/*--------------------------------------------------------------
## Post Type - Abbreviated Small
--------------------------------------------------------------*/
.post-sm {
    width: calc(1 / 6 * 100% - 9px);
    margin: 0 10px 10px 0;
    text-align: center;
}


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

.section-posts .post-sm, .section-posts .post-sm:nth-child(6n) {
    width: calc(1 / 4 * 100% - 9px);
    margin: 0 10px 0 0;
    text-align: center;
}

.section-posts .post-sm:nth-child(4n) {
    margin: 0;
}
.post-curated-group-simple .section-posts .post-sm, .post-curated-group-simple .section-posts .post-sm:nth-child(4n) {
    width: calc(1 / 6 * 100% - 9px);
    margin: 0 10px 0 0;
    text-align: center;
}

.post-curated-group-simple .section-posts .post-sm:nth-child(6n) {
    margin: 0;
}

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

.index-wrap .post-sm:nth-child(5n) {
    margin: 0 0 10px 0;
}
.related-posts .post-sm, .related-posts .post-sm:nth-child(6n) {
    width: calc(1 / 4 * 100% - 10px);
    margin: 0 10px 10px 0;
    background: #f6f5f5;
}

.related-posts .post-sm:nth-child(4n) {
    width: calc(1 / 4 * 100% - 10px);
    margin: 0 0 10px;
}
.widget-posts .post-sm h3 {
    font-size:  16px;
}
.widget-posts .post-sm, .widget-posts .post-sm:nth-child(6n) {
    width: calc(1 / 2 * 100% - 8px);
    margin: 0 10px 10px 0;
    background: #f6f5f5;
}

.widget-posts .post-sm:nth-child(2n) {
    width: calc(1 / 2 * 100% - 8px);
    margin: 0 0 10px;
}
.post-sm .abbr-content {
    padding:  10px;
}
.post-sm h3 {
    padding: 0 0 5px;
    line-height: 1.2;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .01em;
    margin: 0;

}

.post-sm .recipe-meta {
    padding: 0;
}

/*--------------------------------------------------------------
## Post Type - Abbreviated Medium
--------------------------------------------------------------*/
.post-med {
    width: calc(1 / 4 * 100% - 8px);
    margin: 0 10px 10px 0;
    text-align: center;
}

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

.section-posts .post-med, .section-posts .post-med:nth-child(2n) {
    width: calc(1 / 2 * 100% - 9px);
    margin: 0 10px 0 0;
    text-align: center;
}

.section-posts .post-med:nth-child(2n) {
    margin: 0;
}
.post-curated-group-simple .section-posts .post-med {
    width: calc(1 / 4 * 100% - 8px);
    margin: 0 10px 10px 0;
    text-align: center;
}

.post-curated-group-simple .section-posts .post-med:nth-child(4n) {
    margin: 0 0 10px 0;
}
.post-med .abbr-content {
    padding:  10px;
}
.post-med h3 {
    padding: 0;
    line-height: 1.2;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: .01em;
    margin: 5px 0;
}

/*--------------------------------------------------------------
## Post Type - Abbreviated Large
--------------------------------------------------------------*/
.post-lg {
    width: calc(1 / 3 * 100% - 7px);
    margin: 0 10px 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.section-posts .post-lg, .section-posts .post-lg:nth-child(3n) {
    width: calc(1 / 2 * 100% - 9px);
    margin: 0 10px 10px 0;
    text-align: center;
}

.section-posts .post-lg:nth-child(2n) {
    margin: 0 0 10px 0;
}

.post-curated-group-simple .section-posts .post-lg, .post-curted-group-simple .section-posts .post-lg:nth-child(3n)  {
    width: calc(1 / 3 * 100% - 7px);
    margin: 0 10px 10px 0;
}

.post-curated-group-simple .section-posts .post-lg:nth-child(3n) {
    margin: 0 0 10px 0;
}


.lh-latest .post-lg {
    width: 100%;
    margin: 0 0 10px;
}

.lh-latest .post-lg:last-child {
    margin: 0;
}


.widget-posts .post-lg, .widget-posts .post-lg:nth-child(3n) {
    width: 100%;
    margin: 0 0 10px;
    background: #f6f5f5;
}

.content-post-group .post-lg, .content-post-group .post-lg:nth-child(3n) {
    width: 100%;
    margin: 0 0 10px !important;
}

.content-post-group .post-lg:last-child {
    margin: 0 !important;
}

.post-lg h3 {
    padding: 0 0 5px;
    line-height: 1.2;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: .01em;
    text-align: center;
    margin: 0;

}

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

.post-lg .recipe-meta {
    justify-content: center;
}

/*--------------------------------------------------------------
## Post Type - Abbreviated XLarge
--------------------------------------------------------------*/
.post-xl {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto 30px;
}
.post-curated-group-simple .post-xl.post-abbr {
    background: #f6f5f5;
}

.section-post-xl .post-xl {
    margin: 0 auto;
}

.lh-latest .post-xl {
    margin: 0;
    max-width:  710px;
}
.content-post .post-xl {
    max-width:  710px;
    margin:  0;
}
.post-xl img {
    height: auto;
}

.lh-latest .post-xl img {
    max-width: 100%;
}

.content-post .post-xl img {
    max-width: 100%;
}

.post-xl .abbr-content {
    width: 43%;
    padding: 20px;
    text-align: center;
}

.lh-latest .post-xl .abbr-content {
    padding: 15px;
    width: 35%;
}

.content-post .post-xl .abbr-content {
    padding: 15px;
    width: 35%;
}

.post-xl h3, .post-xl h2 {
    margin: 10px 0;
    line-height: 1.2;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.post-xl .entry-details {
    justify-content: center;
}

.post-xl .recipe-meta.recipe-time {
    margin-right: 10px;
}

.post-xl .entry-summary {
    margin: 15px 0;
    font-size: 16px;
}

/*--------------------------------------------------------------
## Post Type - Abbreviated Video
--------------------------------------------------------------*/
.post-video {
    width: calc(1 / 3 * 100% - 7px);
    margin: 0 10px 10px 0;
    text-align: center;
}

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

.section-posts .post-video, .section-posts .post-video:nth-child(3n) {
    width: calc(1 / 2 * 100% - 9px);
    margin: 0 10px 10px 0;
    text-align: center;
}

.section-posts .post-video:nth-child(2n) {
    margin: 0 0 10px 0;
}

.post-video h3 {
    padding: 0 0 5px;
    line-height: 1.2;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin: 0;

}

.post-video .abbr-content {
    padding: 15px;
}

/*--------------------------------------------------------------
## Post Type - Product Small
--------------------------------------------------------------*/
.product-sm {
    width: calc(1 / 6 * 100% - 9px);
    margin: 0 10px 10px 0;
    text-align: center;
}

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

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

.section-posts .product-sm, .section-posts .product-sm:nth-child(6n) {
    width: calc(1 / 4 * 100% - 9px);
    margin: 0 10px 0 0;
    text-align: center;
}

.section-posts .product-sm:nth-child(4n) {
    margin: 0;
}


.results .product-sm:nth-child(5n) {
    margin: 0 0 10px 0;
}
.product-sm .abbr-content {
    padding: 15px;
}

.product-sm h3 {
    padding: 0;
    line-height: 1.2;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin: 0 0 5px;

}


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

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

.section-posts .product-med, .section-posts .product-med:nth-child(2n) {
    width: calc(1 / 2 * 100% - 9px);
    margin: 0 10px 0 0;
    text-align: center;
}

.section-posts .product-med:nth-child(2n) {
    margin: 0;
}
.product-med .abbr-content {
    padding: 15px;
}

.product-med h3 {
    padding: 5px 0;
    line-height: 1.2;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin: 0;
}

/*--------------------------------------------------------------
## Post Type - Product Large
--------------------------------------------------------------*/
.product-lg {
    width: calc(1 / 2 * 100% - 9px);
    margin: 0 10px 10px 0;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.product-lg h3 {
    padding: 5px 0;
    line-height: 1.2;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin: 0;
}

/*--------------------------------------------------------------
## No Results
--------------------------------------------------------------*/
.no-results .page-header {
    background: #FFFFFF;
}

/*--------------------------------------------------------------
## Mobile
--------------------------------------------------------------*/
@media screen and (max-width: 840px) {
    .section-posts .post-sm, .section-posts .post-med, .section-posts .post-xl, .section-posts .post-video, .section-posts .product-med, .section-posts .product-lg, .section-posts .post-lg:nth-last-child(-n+3) {
        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), .post-curated-group-simple .section-posts .post-sm, .post-curated-group-simple .section-posts .post-sm:nth-child(4n) {
        width: calc(1 / 3 * 100% - 7px);
        margin: 0 10px 10px 0;
    }

    .post-sm:nth-child(3n), .index-wrap .post-sm:nth-child(3n), .post-curated-group-simple .section-posts .post-sm:nth-child(3n) {
        margin: 0 0 10px 0;
    }

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

    .results .product-sm:nth-child(3n) {
        margin: 0 0 10px 0;
    }
    .post-lg, .post-lg:nth-child(3n) {
        width: calc(1 / 2 * 100% - 8px);
        margin: 0 10px 10px 0;
    }
    .post-lg:nth-child(2n) {
        margin: 0 0 10px 0;
    }
    .post-curated-group-simple .section-posts .post-lg, .post-curted-group-simple .section-posts .post-lg:nth-child(3n)  {
        width: calc(1 / 2 * 100% - 8px);
        margin: 0 10px 10px 0;
    }
    .post-curated-group-simple .section-posts .post-lg:nth-child(2n) {
        margin: 0 0 10px 0;
    }
    .post-xl .flexbox.entry-details {
        display: flex;
    }


    .content-post-group .post-lg, .content-post-group .post-lg:nth-child(3n) {
        width: calc(1/3 * 100% - 10px);
        margin: 0 10px 0 0;
    }
    .lh-latest .post-lg {
        width: calc(1/3 * 100% - 10px);
        margin: 0 10px 0 0;
    }
    .lh-latest .post-lg:nth-child(3n) {
        margin: 0;
    }

}
@media screen and (max-width: 760px) {
    .section-post-xl .post-xl img {
        max-width: 100%;
    }
    .section-post-xl .post-xl .abbr-content {
        padding: 15px;
        width: 50%;
    }
}
@media screen and (max-width: 600px) {
    .post-xl {
        display: block;
    }
    .post-xl img {
        max-width: 100%;
        height: auto;
    }
    .section-post-xl .post-xl .abbr-content, .lh-latest .post-xl .abbr-content, .content-post .post-xl .abbr-content {
        padding: 15px;
        width: 100%;
    }

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

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


}

@media screen and (max-width: 550px) {
    .post-sm h3, .post-lg h3, .post-med h3{
        font-size:  16px;
    }
    .post-lg, .post-lg:nth-child(3n), .post-curated-group-simple .section-posts .post-lg, .post-curated-group-simple .section-posts .post-lg:nth-child(2n) {
        width: 100%;
        margin: 0 auto 10px;
    }

    .post-lg img {
        width: 100%;
    }

    .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), .section-posts .post-sm, .section-posts .post-sm:nth-child(6n), .post-curated-group-simple .section-posts .post-sm, .post-curated-group-simple .section-posts .post-sm:nth-child(3n), .post-curated-group-simple .section-posts .post-sm:nth-child(4n) {
        width: calc(1 / 2 * 100% - 8px);
        margin: 0 10px 10px 0;
    }

    .post-med:nth-child(2n), .post-sm:nth-child(2n), .index-wrap .post-sm:nth-child(2n), .post-curated-group-simple .section-posts .post-sm:nth-child(2n)  {
        margin: 0 0 10px;
    }
    .post-curated-group-simple .section-posts .post-med, .post-curated-group-simple .section-posts .post-med:nth-child(4n)  {
        width: calc(1 / 2 * 100% - 8px);
        margin: 0 10px 10px 0;
    }

    .post-curated-group-simple .section-posts .post-med: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(3n) {
        width: calc(1 / 2 * 100% - 8px) !important;
        margin: 0 10px 10px 0;
    }

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

    .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), .section-posts .post-lg, .section-posts .post-lg:nth-child(3n) {
        width: 100%;
        margin: 0 auto 10px;
    }
    .section-posts .product-med, .section-posts .product-med:nth-child(2n) {
        width: 100%;
        display: block;
    }
    .related-posts .post-sm, .related-posts .post-sm:nth-child(6n), .related-posts .post-sm:nth-child(4n) {
        width: calc(1 / 2 * 100% - 10px);
        margin: 0 10px 10px 0;
        background: #f6f5f5;
    }

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