/* Global Element Styling */
a {
    transition: all .25s ease-in-out;
}

body {
    text-rendering: optimizeLegibility;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

strong {
    font-weight: 900;
}

/* Dark Styling */
:where(.wp-block-cover-image:not(.has-text-color)) a,
:where(.wp-block-cover:not(.has-text-color)) a {
    color: #fff;
}

.has-base-color :not(.has-link-color) > a {
    color: var(--wp--preset--color--base);
}

/* Header */

.site-header .wp-block-button a {
    font-size: 1rem;
}


/* Navigation */

.wp-block-navigation .has-child .wp-block-navigation__submenu-container {
    z-index: 200;
}

.wp-block-navigation__submenu-container a {
    font-weight: 400;
}

.wp-block-navigation .wp-block-navigation__submenu-icon {
    margin-block-start: 0;
}

.wp-block-navigation__submenu-container a:hover,
.wp-block-navigation__submenu-container a:focus {
    background-color: var(--wp--preset--color--quinary);
}

.has-page-colored-background main {
    background-color: var(--wp--preset--color--quinary);
}

.wp-site-blocks {
    padding-top: 0;
    padding-bottom: 0;
}

.wp-block-navigation > .wp-block-navigation-item > a:after {
    content: '';
    display: block;
    width: 1px;
    height: 3px;
    background-color: transparent;
    transition: all .25s ease-in-out;
}

.wp-block-navigation>.wp-block-navigation-item>a:hover:after {
    width: 100%;
    background-color: var(--wp--preset--color--quaternary);
}

/* Buttons */

.is-style-button-white .wp-element-button {
    border: #fff 2px solid;
    background-color: rgba(77, 40, 10, .4);
}

.is-style-button-white .wp-element-button:hover,
.is-style-button-white .wp-element-button:focus {
    background-color: rgba(77, 40, 10, .8);
}

.nav-button a {
    background-color: var(--wp--preset--color--primary);
    color: #fff !important;
    border-radius: 999px;
    border-color: var(--wp--preset--color--secondary);
    border-width: 0px;
    border-style: solid;
    font-family: inherit;
    font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.441), 1.2rem);
    font-style: normal;
    font-weight: 700;
    line-height: inherit;
    padding-top: .5rem;
    padding-right: 3rem;
    padding-bottom: .5rem;
    padding-left: 3rem;
    text-decoration: none !important;
    align-content: center;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-block;
    height: 100%;
    text-align: center;
    word-break: break-word;
}

.wp-block-navigation>.wp-block-navigation-item.nav-button>a:hover {
    background-color: var(--wp--preset--color--quaternary);
}

.wp-block-navigation>.wp-block-navigation-item.nav-button>a:hover:after {
    width: 1px;
}

/* Contact Form */

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.submit-btn {
    background-color: var(--wp--preset--color--primary);
    border-radius: 999px;
    border-color: var(--wp--preset--color--secondary);
    border-width: 0px;
    border-style: solid;
    color: var(--wp--preset--color--base);
    font-family: inherit;
    font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.441), 1.2rem);
    font-style: normal;
    font-weight: 700;
    line-height: inherit;
    padding-top: .75rem;
    padding-right: 3rem;
    padding-bottom: .75rem;
    padding-left: 3rem;
    text-decoration: none;
    cursor: pointer;
}

.submit-btn:hover {
    background-color: var(--wp--preset--color--quaternary);
}

.g-recaptcha {
    margin-bottom: 1.5rem;
}

.form-input-description {
    font-size: .9rem;
    opacity: .8;
    margin-top: 0;
}

textarea {
    font-family: var(--wp--preset--font-family--opensans), sans-serif;
}

/* Blog */

.wp-block-query .wp-block-post {
    background-color: var(--wp--preset--color--quinary);
    padding: 1rem;
}

.wp-block-query .wp-block-post .wp-block-post-title {
    margin-bottom: 1rem;
    font-size: 1.7rem;
}

.wp-block-query .wp-block-post .wp-block-post-title a {
    text-decoration: none;
}

.wp-block-query .wp-block-post .post-meta {
        color: var(--wp--preset--color--quaternary);
        font-style: normal;
        font-size: var(--wp--preset--font-size--small);
        margin-top: .5rem;
        margin-bottom: .5rem;
}

.wp-block-query .wp-block-post-featured-image {
    border: 5px solid #fff;
}

.wp-block-query .wp-block-post .post-meta .wp-block-post-date,
.wp-block-query .wp-block-post .post-meta .taxonomy-category {
    display: inline;
}

.home-post-query .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 2rem;
    margin: 2rem 0;
}

.home-post-query .wp-block-post {
    border: 1px solid var(--wp--preset--color--quaternary);
    padding: 1rem;
    background-color: transparent;
    margin-block-start: 0;
}

.home-post-query .wp-block-post h3 {
    font-size: 1.5rem;
    font-weight: 200;
    margin-bottom: 0;
}

.single .wp-block-post-title {
    margin-bottom: 0;
    padding-bottom: .5rem;
    border-bottom: 10px solid var(--wp--preset--color--secondary);
}

.archive .wp-block-query-title {
    padding-bottom: .5rem;
    border-bottom: 10px solid var(--wp--preset--color--secondary);
}

@media(max-width: 1000px){
    .wp-block-query .wp-block-post {
        padding: 1.5rem;
    }
}

/* Projects */

.project-listing-container,
.tax-project-category .wp-block-query .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 2rem;
    margin: 2rem 0;
}

.project-listing-container .wp-block-post,
.tax-project-category .wp-block-query .wp-block-post-template .wp-block-post {
    background-color: #fff;
    border: 1px solid var(--wp--preset--color--secondary);
    padding: .5rem;
    margin-block-start: 0;
    max-width: 500px;
}

.project-listing-container .wp-block-post h3,
.tax-project-category .wp-block-query .wp-block-post-template .wp-block-post h3 {
    font-size: 2rem;
}

.project-listing-container .wp-block-post h3 a,
.tax-project-category .wp-block-query .wp-block-post-template .wp-block-post h3 a {
    text-decoration: none;
}

.single-portfolio .wp-block-post-title {
    margin-bottom: 2rem;
}

.single-portfolio .taxonomy-project-category {
    margin-top: 0;
}

/* Search Listing */
.search-container .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-gap: 2rem;
    margin: 2rem 0;
}

.search-container .wp-block-post {
    background-color: #fff;
    border: 1px solid var(--wp--preset--color--secondary);
    padding: 1rem;
    margin-block-start: 0;
    max-width: 500px;
}

.search-container .wp-block-post h3 {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 1.5rem;
}

/* All Posts */

#post-return-footer {
    text-align: center;
}

#return-btn {
    background-color: #eee;
    color: #444;
    text-decoration: none;
    padding: .5rem 1rem;
    margin-top: 2rem;
    display: inline-block;
}

/* Core Blocks */

@media (max-width: 1250px){
    .wp-block-group.has-global-padding.alignfull {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.wp-block-pullquote {
    border-top-color: var(--wp--preset--color--primary);
    border-bottom-color: var(--wp--preset--color--primary);
}

.wp-block-latest-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-gap: 2rem;
    margin: 2rem 0;
}

.wp-block-latest-posts > li {
    border: 1px solid var(--wp--preset--color--quaternary);
    padding: 2rem;
}

.wp-block-latest-posts .wp-block-latest-posts__post-title {
    font-size: 1.5rem;
    font-weight: 200;
}

/* Footer */

.site-footer .wp-block-navigation a {
    text-decoration: underline;
}

.site-footer .wp-block-navigation a:hover {
    text-decoration: none;
}

/* Block Styles */

.page-title-wrapper:after {
    content: '';
    width: 100%;
    height: 37px;
    background-color: var(--wp--preset--color--secondary);
    display: block;
    position: relative;
    top: -3.5em;
    z-index: -1;
}

.page-title-wrapper h1.wp-block-post-title {
    display: inline-block;
    background-color: #fff;
    padding: 1rem 1.5rem;
    position: relative;
    left: -1.5rem;
}

.inner-title-wrapper {
    max-width: 1200px;
    margin-right: auto;
    margin-left:auto;
}

@media (max-width: 1250px) {
    .page-title-wrapper h1.wp-block-post-title {
        padding-left: 2rem;
        left: 0;
    }
}

@media (max-width: 600px){
    .page-title-wrapper:after {
        top: 0;
        margin-bottom: 2rem;
    }
}

.is-style-heading-small-lines {
    width: 100%;
    text-align: center;
}

.is-style-heading-small-lines:before,
.is-style-heading-small-lines:after {
    content: '';
    width: 20%;
    max-width: 150px;
    height: 5px;
    display: inline-block;
    background-color: var(--wp--preset--color--secondary);
    position: relative;
    top: -.25em;
}

.is-style-heading-small-lines:before {
    margin-right: 1.5rem;
}

.is-style-heading-small-lines:after {
    margin-left: 1.5rem;
}

.is-style-image-border {
    border: 1px solid var(--wp--preset--color--quaternary);
    padding: 10px;
}

@media(max-width: 550px) {
    .is-style-heading-small-lines:before,
    .is-style-heading-small-lines:after {
        width: 10%;
    }
}

@media (max-width: 450px) {
    .is-style-heading-small-lines:before {
        display: none;
    }
    .is-style-heading-small-lines:after {
        width: 100%;
        display: block;
        margin-right: auto;
        margin-left: auto;
        margin-top: 1.5rem;
        margin-bottom: 2.5rem;
    }
}

/* Joy Media Block Overrides */

.testimonial-slider-wrapper:before,
.testimonial-slider-wrapper:after {
    content: url('/wp-content/themes/joybakes-theme/assets/images/icon-quote.svg');
    width: 100px;
    height: 70px;
}

.testimonial-slider-wrapper:before {
    left: 20px;
    right: unset;
}

.testimonial-slider-wrapper:after {
    right: 20px;
    left: unset;
}

/* Client-Facing Custom Classes */

.font-wild-spirit {
    font-family: var(--wp--preset--font-family--wild-spirit);
}

.scribble-top {
    position: relative;
    margin-top: 8rem;
}

.scribble-top:after {
    content: url('/wp-content/themes/joybakes-theme/assets/images/scribble-black.svg');
    position: absolute;
    top: -70px;
    left: calc(50% - 70px);
}

@media(max-width: 800px) {
    .scribble-top:after {
        top: -100px;
    }
}

body .is-layout-constrained>.skinny:where(:not(.alignleft):not(.alignright):not(.alignfull)),
.skinny {
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
}

body .is-layout-constrained>.super-skinny:where(:not(.alignleft):not(.alignright):not(.alignfull)),
.super-skinny {
    max-width: 600px;
    margin-right: auto;
    margin-left: auto;
}

.overlap {
    margin-top: -4rem;
    position: relative;
    z-index: 999;
}

.overlap-large {
    margin-top: -6rem;
    position: relative;
    z-index: 999;
}

.cover-contain .wp-block-cover__image-background {
    object-fit: contain;
    left: 0;
    right: 0;
}

.mobile-only {
    display: none !important;
}

.desktop-only {
    display: block;
}

.font-weight-400 {
    font-weight: 400;
}

@media (max-width: 599px) {
    .mobile-only {
        display: block !important;
    }
    .desktop-only {
        display: none !important;
    }
}

@media (max-width: 781px) {
    .mobile-row-reverse {
        flex-direction: column-reverse;
    }
}