/*
	* CSS for Blocks
	*
	* @package      sallysbakingrecipes
	* @author       Lindsay Humes
	* @since        1.0.0
	* @license      GPL-2.0+
*/
/*--------------------------------------------------------------
## Block: Sally Column Callout (CSS Class)
--------------------------------------------------------------*/
.sally-column-callout {
    text-align: center;
    margin: 30px auto 60px;
    border: 2px solid #FDEDF0;
    padding: 20px;
    border-radius: 5px;
    background: #FFFFFF;
    position: relative;
}
.sally-column-callout h2 {
    font-size: 22px;
    margin: 0 auto 10px;
}
.sally-column-callout .wp-block-buttons {
    justify-content: center;
}
.sally-column-callout p {
    font-size: 16px;
    line-height: 1.4;
    margin: 0 auto 10px;
}
.sally-column-callout .wp-block-column:nth-child(2) {
    border-left: 2px solid #fdedf0;
    border-right: 2px solid #fdedf0;
    padding: 0 20px;
}
.sally-column-callout::before {
    content: '';
    display: block;
    position: absolute;
    background: #fef6f7;
    height: calc(100% + 35px);
    top: 0;
    z-index: -1;
    right: calc((100vw - 1045px) / -1);
    left: calc((100vw - 1045px)/-1);
    margin: -20px auto 0;
}
/*--------------------------------------------------------------
## Block: General
--------------------------------------------------------------*/
.lh-block {
    padding: 20px 0;
}
.single .lh-block {
    margin: 30px 0;
}
.single .lh-block .wrap {
    width: 100%;
}
.page-content {
    margin: 0 auto 30px;
}
.page-content p {
    max-width: 1045px;
    width: calc(100% - 20px);
    margin: 30px auto;
}
.page-content p:first-child {
    margin: 5px auto 30px;
}

.page-content h2:not(.section-title), .page-content h3:not(.entry-title), .page-content h4, .page-content h5, .page-content h6 {
    max-width: 1045px;
    width: calc(100% - 20px);
    margin-left: auto;
    margin-right: auto;
}

.page-content ul:not(.blocks-gallery-grid), .page-content ul ul {
    max-width: 1045px;
    width: calc(100% - 20px);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}
.page-content ol, .page-content ol ul {
    max-width: 1045px;
    width: calc(100% - 20px);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}
/*--------------------------------------------------------------
## Block: Buttons
--------------------------------------------------------------*/
.sallys-buttons {
    margin: 30px auto;
}
.sallys-buttons a {
    padding:  10px 20px;
    background:  #C3366F;
    text-transform:  uppercase;
    letter-spacing:  .02em;
    font-size:  14px;
    font-weight: 600;
}
/*--------------------------------------------------------------
## Block: Posts, Products, and Latest
--------------------------------------------------------------*/
.section-header {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.section-header .section-title {
    margin: 0;
    padding: 10px 20px;
    border-radius: 5px 5px 0 0;
    width: fit-content;
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: -.01em;
    font-size: 20px;
}
.single .section-header .section-title {
    font-size: 28px;
}
.single .block-content .content-meta p {
    font-size: 19px;
    line-height: 1.6;
}
.section-link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: 15px;
}
.mobile-section-link {
    display: none;
}
a.section-link, a.section-link:visited {
    color: #212121;
}

a.section-link:hover, a.section-link:visited:hover {
    color: #C3366F;
}

.section-link em {
    font-family: Georgia, Times, "Times New Roman", serif;
    font-size: 13px;
    font-style: italic;
    text-transform: lowercase;
    font-weight: 400;
    letter-spacing: 0;
}

.section-link .svg-icon {
    transform: rotate(-90deg);
    fill: #212121;
    margin-left: 3px;
}

.section-link:hover .svg-icon {
    fill: #C3366F;
}
.section-header .content-meta p {
    margin: 0;
}
.block-content {
    padding: 20px 20px 10px;
    border-radius: 0 5px 5px 5px;
}
.bg-4 .block-content {
    border-radius: 5px;
}
.block-content .content-meta p {
    padding: 0 0 20px;
    margin:0;
    font-size: 15px;
}
.section-posts {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: wrap;
}


/*--------------------------------------------------------------
## Block: Callout Content
--------------------------------------------------------------*/
.content-callout {
    padding: 20px;
    background: #FFFFFF;
    position: relative;
}
.content-callout-full {
    position:  relative;
}
.trad-badge {
    display: block;
    width: 100%;
    margin: 0;
    max-width: 150px;
    height: 150px;
    position: absolute;
    content: '';
    top: -20px;
    left: -20px;
}
.badge-challenge {
    background: url(../images/badge-challenge.svg) no-repeat center;
}
.badge-pie {
    background: url(../images/badge-pie.svg) no-repeat center;
}
.badge-cookie {
    background: url(../images/badge-cookie.svg) no-repeat center;
}

.highlight-section {
    width: 70%;
    -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;
    margin-right: 20px;
    border-radius: 5px;
}
.content-callout-full .highlight-section {
    width:  100%;
    margin-right: 0;
}
.highlight-section img {
    width: 330px;
    height: auto;
    border-radius: 5px 0 0 5px;
}
.content-callout-full .highlight-section img {
    width:  100%;
}
.highlight-group-content {
    padding: 20px;
    position: relative;
}
.highlight-group-content h2 {
    font-size: 28px;
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: -.01em;
    margin: 10px 0!important;
    width: 100%!important;
}
.highlight-group-content p {
    width: 100%!important;
    margin: 0 0 10px!important;
}
.secondary-section-group {
    width: 30%;
}
.secondary-section-group h2 {
    font-size: 28px;
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: -.01em;
    margin: 0 0 10px;
}
.secondary-section-group .content-meta {
    margin: 0 0 10px;
}
.secondary-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-radius: 5px;
    background: #FBDBE1;
    margin: 0 0 5px;
}
.secondary-btn:hover {
    background: #F7B8C3;
    color: #212121!important;
}
.secondary-btn svg {
    transform: rotate(-90deg);
}
/*--------------------------------------------------------------
## Callout: Callout FAQs
--------------------------------------------------------------*/
.faqs-group {
    margin: 30px auto;
    padding: 20px;
    border: 1px solid #fDEDF0;
    border-radius: 5px;
}
.faqs-group .section-title {
    font-size: 20px;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: .01em;
}
.faq-question {
    margin: 10px 0 0;
    background: #FDEDF0;
    border-radius: 5px;
    padding: 5px 10px;
    font-weight: 600;
    position: relative;
}

.faq-question .svg-icon {
    position: absolute;
    right: 10px;
    top: 12px;
}

.faq-answer {
    padding: 10px;
    background: #fdeff0;
    border-radius: 0 0 5px 5px;
}
.faq-button-selected {
    border-radius: 5px 5px 0 0;
}
.page-content .faq-answer p:first-child {
    margin: 0;
}
/*--------------------------------------------------------------
## Block: Callout Images
--------------------------------------------------------------*/
.lh-bg-img {
    position: relative;
}
.lh-bg-img:after {
    content: "";
    display: block;
    width: 100%;
    height: 40%;
    position: absolute;
    z-index: 0;
    background: #FFFFFF;
    left: 0;
    bottom: 0;
}
.lh-bg-img .wrap {
    padding: 20px;
    border-radius: 5px;
    position: relative;
    background: #ffffff;
    z-index: 3;
}
.lh-bg-img.bg-alt-1 .wrap {
    border: 2px solid #FEF6F7;
}
.lh-bg-img.bg-alt-2 .wrap {
    border: 2px solid #EDF6F6;
}
.lh-bg-img.bg-alt-3 .wrap {
    border: 2px solid #FBEDE5;
}
.lh-bg-img.bg-alt-4 .wrap {
    border: 2px solid #f6f5f5;
}
.lh-bg-img .section-header {
    display: block;
}
.lh-bg-img .section-header .section-title {
    padding: 0;
    border-radius: 0;
    margin: 0 0 10px;
}
.lh-bg-img .block-content {
    padding: 0;
    border-radius: 0;
}

.lh-img-block {
    padding: 30px 0;
    position: relative;
}
.lh-img-block::after {
    content: '';
    display: block;
    width: 100%;
    height: 50%;
    background: #ffffff;
    position: absolute;
    z-index: 0;
    bottom: 0;
}
.image-block-group {
    position: relative;
    z-index: 1;
}
.section-image {
    opacity: 0;
    visibility:hidden;

}
.section-image.slick-initialized {
    visibility:visible;
    opacity:1;
    transition:opacity .1s ease-out;
}
.section-image {
    background: #ffffff;
    position: relative;
    margin: 0 auto;
}
.post-image {
    display: block;
    text-align: center;
    padding: 0 10px 0 0;
}
.post-image a, .post-image a:visited {
    color: #212121;
}
.post-image a:hover, .post-image:visited:hover {
    color: #546B6D;
}
.post-image img {
    margin: 0 auto 5px;
    display: block;
    line-height:1;
}
.image-sm img {
    border-radius: 50%;
}
 .image-title {
    text-transform: uppercase;
    letter-spacing: .02em;
    font-size: 13px;
    font-weight: 600;
     line-height: 1.2;
}
 .image-med a, .image-lg a {
     position: relative;
 }
.image-med .image-title, .image-lg .image-title {
    background: #FFFFFF;
    width: fit-content;
    margin: 0 auto;
    -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);
    padding: 10px 20px;
    font-size: 20px;
    position: absolute;
    bottom: 10px;
}
.image-med img, .image-lg img {
    margin: 0;
}

/*--------------------------------------------------------------
## Block: Callout Reviews
--------------------------------------------------------------*/
.review-group .section-title {
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: -.01em;
    font-size: 20px;
    line-height: 1.1;
    margin: 0 0 10px;
}
.review-group .content-meta {
    margin: 0 0 10px;
}
.reviews-list {
    margin: 10px auto 0;
    display: grid;
    column-gap: 20px;
    row-gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}
@media screen and (max-width: 800px) {
.reviews-list {
        grid-template-columns: repeat(1, minmax(0, 1fr));
}
}
.reviews-list .review {
    background: #ffffff;
    -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);
    border-radius: 5px;
    padding: 20px;
}
.bg-alt-1 .review {
background: #FDEDF0;
}
.bg-alt-2 .review {
    background: #A8D6D9;
}
.bg-alt-3 .review {
background: #F3BF9F;
}
.bg-alt-4 .review {
    background: #FFFFFF;
}
.review-desc {
    font-size: 16px;
    line-height: 1.4;
}
.reviewer {
    margin: 10px 0 0;
}

/*--------------------------------------------------------------
## Block: Search
--------------------------------------------------------------*/
.search-block {
    padding: 20px;
    margin: -20px auto;
    background: #FFFFFF;
}
.search-block h2 {
    font-size: 28px;
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: -.01em;
    margin: 0 0 10px;
}
.search-block .search-form {
    max-width: 70%;
    width: 100%;
}
.search-btn-group {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30%;
}
.search-btn {
    border-radius: 5px;
    padding: 10px;
    margin-left: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #a8d6d9;
    height: 50px;
    width: calc(1/2 * 100% - 5px);
}
.search-btn:last-child {
    background: #F3BF9F;
}
.search-btn:hover {
    background: #F7B8C3;
    color: #212121!important;
}
.search-btn .sm-caps {
    display: block;
    line-height: 1;
}

/*--------------------------------------------------------------
## Block: Callout Subscribe
--------------------------------------------------------------*/
.lh-subscribe {
    padding: 30px 0;
    background: #fef6f7;
    position: relative;
}
.lh-subscribe .enews-widget::after {
    width: 100px;
    height: 100px;
    content: "";
    display: block;
    background: url(../images/favicon.svg) no-repeat center;
    background-size: contain;
    right: 0;
    top: -10px;
    position: absolute;
}
.lh-subscribe .enews-widget {
    max-width: 1045px;
    margin: 0 auto;
    width: calc(100% - 20px);
    position: relative;
}
.lh-subscribe .enews {
    position: relative;
    z-index: 1;
}

.lh-subscribe .enews-widget h3 {
    margin: 15px 0;
    font-size: 28px;
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: -.01em;
}
.lh-subscribe .enews-widget h3 em {
    font-weight: 400;
}

.lh-subscribe .enews-widget p {
    margin: 0 0 15px;
    font-size: 15px;
    line-height: 1.5;
}
.lh-subscribe .enews-form {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.lh-subscribe .enews-widget input[type="text"], .lh-subscribe .enews-widget input[type="email"] {
    max-width: 100%;
    min-width: 315px;
    width: 100%;
    margin-right: 3px;
}
/*--------------------------------------------------------------
## Block: Callout Tip
--------------------------------------------------------------*/
.callout-tip {
    border: 2px solid #F6F5F5;
    border-radius: 5px;
    padding: 10px 30px 30px;
    margin: 30px auto;
    position: relative;
}
.callout-tip h2.sm-caps {
    background: #F6F5F5;
    border-radius: 5px;
    position: relative;
    width: fit-content;
    padding: 10px;
    margin-left: -50px;
    margin-bottom: 10px;
}
/*--------------------------------------------------------------
## Block: Term Label Container
--------------------------------------------------------------*/
.term-label-container {
    max-width: 1045px;
    width: calc(100% - 20px);
    margin:  30px auto;
}
.term-label-container h2 {
    width: 100%!important;
    margin:  0 0 10px;
    border-bottom:  1px solid #eaeaea;
}
ul.term-list {
    width: 100%!important;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: start;
    margin: 0;
}
ul.term-list a {
    text-decoration: none;
    font-weight:  400;
}
ul.term-list li {
    display:  block;
    list-style: none;
    width:  calc(1/5 * 100% - 20px);
    margin: 0 10px 10px 0!important;
}
ul.term-list .sm-sans {
    font-weight: 600;
}
ul.term-list .sm-sans.alt {
    margin-right:  3px;
    color: #212121;
    font-weight: 400;
}

/*--------------------------------------------------------------
## Block: Media Slider
--------------------------------------------------------------*/
.media-slider {
    margin:  30px auto;
    background:  #fef6f7;
    padding:  20px;
    border-radius:  5px;
}
/*--------------------------------------------------------------
## Block: Highlight Sub
--------------------------------------------------------------*/
.highlight-sub {
    background:  #fef6f7;
    padding:  30px 0;
    margin:  30px auto;
}
.bg-orange {
    background: #FBEDE5;
}
.bg-blue {
    background:  #EDF6F6;
}
.highlight-sub .wp-block-group__inner-container {
    max-width: 1045px;
    margin: 0 auto;
    width: calc(100% - 20px);
}
.highlight-sub h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: -.01em;
}

.highlight-sub p {
    margin:  0 0 10px;
}
.highlight-sub .formkit-form {
    width: 100%;
    margin: 0 auto;
}
/*--------------------------------------------------------------
## Post Only blocks
--------------------------------------------------------------*/
.text-callout {
    padding: 40px;
    border-radius: 5px;
    margin:  30px 0;
}
.featured-recipe-block {
    border:  1px solid #FDEDF0;
    padding:  10px;
    border-radius:  5px;
    margin:  0 auto 30px;
    max-width: 1045px;
}
.featured-recipe-block .post-xl {
    margin:0;
}
/*--------------------------------------------------------------
## Callout Box Code
--------------------------------------------------------------*/
.callout-box-container {
    background: #FEF6F7;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}
/*--------------------------------------------------------------
RESPONSIVE
--------------------------------------------------------------*/
@media screen and (max-width: 840px) {
    .callout-tip h2.sm-caps {
        margin-left: -35px;
    }
    .lh-subscribe .enews-widget input[type="text"], .lh-subscribe .enews-widget input[type="email"] {
        min-width: 200px;
    }
}

@media screen and (max-width: 600px) {
    .lh-block {
        padding: 10px 0;
    }
    .section-header {
        display: block;
    }
    .section-link {
        display:none;
    }
    .mobile-section-link {
        display: flex;
        margin: 10px 0 0;
    }
    .block-content {
        padding: 10px 10px 0;
    }
    .lh-subscribe .enews-form {
        display: block;
    }
    .content-callout.flexbox {
        display:block;
    }
    .highlight-section.flexbox {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .highlight-section img {
        width: 100%;
        height: auto;
        border-radius: 5px 5px 0 0;
    }
    .secondary-section-group {
        width: 100%;
    }
    .image-med .image-title {
        font-size: 13px;
        padding: 10px;
    }
    .image-lg .image-title {
        font-size: 16px;
        padding: 10px;
    }
    ul.term-list li {
        width: calc(1/2 * 100% - 20px);
    }
}
