/*
	* CSS for Truncated Post Previews
	*
	* @package      sixsistersstuff
	* @author       Lindsay Humes
	* @since        1.0.0
	* @license      GPL-2.0+
*/
/*--------------------------------------------------------------
## Post Type - Post Abbreviated Universal
--------------------------------------------------------------*/
.post-abbr {
    -webkit-box-shadow: 0 0 10px 0 rgba(33, 33, 33, .1);
    -moz-box-shadow: 0 0 10px 0 rgba(33, 33, 33, .1);
    box-shadow: 0 0 10px 0 rgba(33, 33, 33, .1);
    background: #ffffff;
}

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

.entry-title a, .entry-title a:visited {
    color: #3C3B3A;
    text-decoration: none;
}

.entry-title a:hover, .entry-title a:visited:hover {
    color: #06727D;
}

.read-more {
    display: block;
    width: fit-content;
    background: #06727D;
    padding: 14px 20px;
    margin: 15px 0 0;
    color: #ffffff;
    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: #ffffff;
}

a.read-more:hover {
    background: #3C3B3A;
}

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

.post-sm:nth-child(6n) {
    margin: 0 0 10px 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;
}

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

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

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

}

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

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

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

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

.post-med .overprint {
    padding: 10px 10px 10px;
}

.post-med .recipe-meta {
    padding: 0 10px 10px 10px;
}

/*--------------------------------------------------------------
## 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;
}

.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 .overprint {
    padding: 0 0 5px;
}
.post-lg h3 {
    padding: 0 0 5px;
    line-height: 1.2;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin: 0;
}
.post-lg img {
    width: 100%;
    max-width:  100%;
}

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

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

.post-xl .abbr-content {
    width: 50%;
    padding: 20px;
}

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

.post-xl .entry-summary {
    margin: 15px 0;
}
.single .post-xl {
    display:  block;
}
.single .post-xl .abbr-content {
    width:  100%;
}
.single .post-xl img {
    display:  block;
    text-align:  center;
    margin:  0 auto;
}
/*--------------------------------------------------------------
## Post Type - Abbreviated Video
--------------------------------------------------------------*/
.post-video {
    width: calc(1 / 3 * 100% - 7px);
    margin: 0 10px 10px 0;
}

.post-video:nth-child(3n) {
    margin: 0 0 10px 0;
}
.post-video .overprint {
    padding: 0 0 10px;
}
.post-video h3 {
    padding: 0;
    line-height: 1.2;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin: 0;
}
.post-video .recipe-meta {
    padding: 10px 0 0;
}
.post-video .abbr-content {
    padding: 10px;
}

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

.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;
}

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

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

}
.product-sm .sm-sans {
    padding: 0 10px 10px;
}

/*--------------------------------------------------------------
## 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;
}

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

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

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

.product-lg:nth-child(3n) {
    margin: 0 0 20px 0;
}
.product-lg:nth-last-child(-n+3)  {
    margin-bottom:  0;
}
.product-lg .abbr-content {
    padding: 10px;
}

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

/*--------------------------------------------------------------
## Section Posts
--------------------------------------------------------------*/
.section-posts .post-sm, .section-posts .post-med, .section-posts .post-xl, .section-posts .post-video, .section-posts .product-med {
    margin-bottom: 0;
}

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

/*--------------------------------------------------------------
## No Results
--------------------------------------------------------------*/
.no-results .archive-header {
    margin: 0 auto 30px;
    padding: 30px;
}

/*--------------------------------------------------------------
## Mobile
--------------------------------------------------------------*/
@media screen and (max-width: 810px) {
    .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) {
        width: calc(1 / 3 * 100% - 7px);
        margin: 0 10px 10px 0;
    }

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

@media screen and (max-width: 600px) {
    .post-xl {
        display: block;
    }
    .post-xl .abbr-content {
        width: 100%;
    }
    .post-video, .post-video:nth-child(3n) {
        width: 100%;
        margin: 0 auto 10px;
    }
}

@media screen and (max-width: 550px) {
    .post-lg, .post-lg:nth-child(3n) {
        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) {
        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) {
        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) {
        width: calc(1 / 2 * 100% - 8px);
        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) {
        width: 100%;
        margin: 0 auto 10px;
    }
    .post-med h3 {
        font-size:  16px;
    }
}
