/*
 Theme Name:   Stormwerx Block Theme
 Theme URI:    stormwerxdigital.com
 Description:  Responsive Block Theme
 Author:       Karl Sanders
 Author URI:   stormwerxdigital.com
 Version:      A1.0.1
 Tags:         responsive, stormwerx
 Text Domain: sd-block-theme

/********************
*
*   html & body
*
*********************/

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
    line-height: 1.6;

    /* 1 */
    text-size-adjust: 100%;

    /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
    margin: 0;
    font-size: 16px;
    font-family: Helvetica, Arial, sans-serif;
}

body .entry-content {
    margin: 0;
}

body :where(.wp-site-blocks) > * {
    margin-block-start: 0;
}

.sd-position-fixed {
    position:fixed;
}
/********************
*
*   Typography
*
*********************/

h1 {
    font-size: 1.5rem;
}

h2 {
    font-size: 1.35em;
}

h3 {
    font-size: 1.25rem;
}

h4,h5,h6 {
    font-size: 1.2rem;
}
@media screen and (min-width: 600px){

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.4rem;
    }

    h4,h5,h6 {
        font-size: 1.35rem;
    }

}

@media screen and (min-width: 1024px){
    h1, h2, h3, h4, h5, h6 {
        margin: .25em 0;
    }

    h1 {
        font-size: 2.875rem;
    }

    h2 {
        font-size: 2.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4,h5,h6 {
        font-size: 1.3rem;
    }

}


/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/********************
*
*       Normalize
*
*********************/

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */


/**
 * Render the `main` element consistently in IE.
 */
main {
    display: block;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
    box-sizing: content-box;

    /* 1 */
    height: 0;

    /* 1 */
    overflow: visible;

    /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
    font-family: monospace;

    /* 1 */
    font-size: 1em;

    /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
    background-color: transparent;
    text-decoration: underline;
    color: inherit;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

/* noinspection CssOverwrittenProperties */
abbr[title] {
    border-bottom: none;

    /* 1 */
    text-decoration: underline;

    /* 2 */
    text-decoration: underline dotted;

    /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

/* noinspection CssOverwrittenProperties */
b, strong {
    font-weight: bolder;
    font-weight: 600;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
    font-family: monospace;

    /* 1 */
    font-size: 1em;

    /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */
small {
    font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
    border-style: none;
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* for sd blocks with wp images */
.sd-block .wp-block-image.aligncenter {
    display: block;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
    font-family: inherit;

    /* 1 */
    font-size: 100%;

    /* 1 */
    line-height: 1.15;

    /* 1 */
    margin: 0;

    /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
    /* 1 */
    overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
    /* 1 */
    text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
    padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
    box-sizing: border-box;

    /* 1 */
    color: inherit;

    /* 2 */
    display: table;

    /* 1 */
    max-width: 100%;

    /* 1 */
    padding: 0;

    /* 3 */
    white-space: normal;

    /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
    vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
    overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;

    /* 1 */
    padding: 0;

    /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
    appearance: none;
    outline-offset: -2px;
    border-style: none;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
    appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

/* noinspection CssInvalidPropertyValue **/

::-webkit-file-upload-button {
    /* noinspection CssInvalidPropertyValue */
    appearance: button;

    /* 1 */
    font: inherit;

    /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
    display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
    display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
    display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
    display: none;
}

figure {
    margin: 0;
}

figure.wp-block-image {
    position: relative;
}

figcaption.wp-element-caption {
    padding: .25em;
    margin: 0;
}

/* Attachments */

.attachment-template-default .has-black-background-color {
    background: #fff!important;
}

.attachment-template-default h1 {
    color:#000;
}

.attachment-template-default .wp-block-cover {
    height: 150px;
    min-height: initial!important;
    text-align: center;
}

.attachment-template-default  .entry-content.wp-block-post-content {
    background: #313131;
}

.attachment-template-default p.attachment {
    margin-top: 0;
}

.attachment-template-default article {
    text-align: center;
}

/***

Nav

****/

button.wp-block-navigation__responsive-container-open {
    height: 26px;
    width: 25px;
    background: url("https://drkohstg.wpenginepowered.com/wp-content/themes/sd-block-theme/mobile.svg") center center no-repeat;
    background-size: auto, auto, contain;
}

/************

 Portfolio

 *************/


.archive.post-type-archive-gpb_portfolio li.gpb_portfolio {
    position: relative;
}

.archive.post-type-archive-gpb_portfolio .gpb_portfolio h2.wp-block-post-title {
    position: absolute;
    z-index: 2;
    top: 40%;
    width: 100%;
}

.post-type-archive-gpb_portfolio li {
    margin-bottom: 1em;
}

.sd-default-portfolio .wp-block-post {
    position: relative;
}

.sd-default-portfolio h2.wp-block-post-title {
    position: absolute;
    top: 30%;
    width: 100%;
    text-align: center;
    color: #fff;
    justify-content: center;
}

.sd-default-portfolio figure.wp-block-post-featured-image {
    height: 100%;
}

.sd-default-portfolio .wp-block-post-featured-image a {
    display: block;
    height: 100%;
    background: #000;
}

.sd-default-portfolio .wp-block-post-featured-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
    max-height: 100%;
    aspect-ratio: 1;
    opacity:.8;
}




/*************

Footer

**************/

footer .sd-footer-content {
    max-width: 300px;
    width: 100%;
}

footer h3, footer h4, span.address-description {
    margin: .5em 0;
    font-family: helvetica;
}

footer h3 {
    font-size: 1.25rem;
}

footer h4, footer h5, .footer h6 {
    font-size: 1rem;
}



/********************
*
*       Links
*
*********************/

.wp-site-blocks .wp-block-read-more {
    text-decoration: underline;
}

a.more-link {
    text-decoration: none;
}

a.more-link:hover{
    text-decoration: underline;
}

.entry-content .wp-block-button a:hover {
    text-decoration: underline;
}

.entry-content .wp-block-button a:active {
    text-decoration: none;
    opacity: .7;
}



.wp-block-heading a {
    text-decoration: none;
}


li.current-menu-item {
    text-decoration: underline;
}

.post-edit-link {
    text-decoration: underline;
    padding: 1em;
}

.wp-block-latest-comments {
    padding: 0;
}

/***********

Back to top

************/

#back-to-top {
    position: fixed;
    right: 0;
    z-index: 100;
    top: 80%;
    display: none;
    width: 48px;
    height: auto;
    padding: .5em;
    cursor: pointer;
}

#back-to-top.show-button {
    display: flex;
    align-items: center;
}

/********************
*
*       Blocks
*
*********************/

/*

Query Block : Grid

*/

/* Portfolio */



/* Blog  */

.wp-block-query.sd-default-blog-posts ul,
.wp-block-query.sd-default-blog-posts ul {
    margin: 1em auto;
}


.wp-block-query.sd-default-blog-posts .wp-block-post-template.is-layout-grid img {
    height: 100%;
    object-fit: cover;
    width: 100%;
    max-height: 100%;
    aspect-ratio: 1;

}

.wp-block-query h2.wp-block-post-title  {
    min-height: 3.1em;
    display: flex;
    align-items: center;
    line-height:normal;
}

h2.has-text-align-center.wp-block-post-title {
    justify-content: center;
}
h2.wp-block-post-title a {
    text-decoration: none;
    color: inherit;
}

/* Categories */

.wp-block-categories-list {
    margin: 1em 0;
    display: flex;
    list-style-type: none;
    padding: 0;
}

ul.wp-block-categories-list .cat-item {
    margin-right: 1em;
}

ul.wp-block-categories-list .cat-item a {
    color: inherit;
}

/* Author */

.wp-block-post-author-name a {
    text-decoration: none;
    color: inherit;
}

/* Excerpt */
a.wp-block-post-excerpt__more-link {
    text-decoration: none;
    color:inherit;
}

p.wp-block-post-excerpt__more-text a.wp-block-post-excerpt__more-link {
    margin-top: 1em;
}

/* a:hover */
h2.wp-block-post-title a:hover,
.wp-block-post-author-name a:hover,
a.wp-block-post-excerpt__more-link:hover{
    text-decoration:underline;
}

/* Genesis Profile Bio Text */
body .gb-block-profile .gb-profile-content-wrap .gb-profile-text p {
    text-align: initial;
}

body .gb-block-profile .gb-profile-text {
    font-size: 1em;
    padding-top: 1em;
}

.wp-block-genesis-blocks-gb-columns.gb-layout-team-1 {
    overflow: hidden;
}

/* Latest Posts */


wp-block-latest-posts.wp-block-latest-posts__list {
    max-width: 90%;
    margin: 0 auto;
}

.wp-block-latest-posts__featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Quote */
.wp-block-quote.sd-block-quote-border-toggle{
    border:none;
}

/* Set Columns to 100% */
.wp-block-column .wp-block-genesis-blocks-gb-container.gb-block-container {
    height: 100%;
}

/* Center Column Content */
.wp-block-column.sd-col-center-content .gb-block-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image */

figure.wp-block-image.alignright {
    float: right;
    margin: 0 0 0 .5em;
}

figure.wp-block-image.alignleft {
    float: left;
    margin: 0 .5em 0 0;
}


/********************

 Container

 ********************/

.gb-block-container.alignwide .gb-container-inside, .gb-block-container.alignwide .gb-container-inside {
    max-width: 100%;
    margin: 0 auto;
}


.wp-block-query.is-layout-flow.wp-block-query-is-layout-flow .wp-block-post-template.is-layout-grid {
    gap: 2.25em;
}

.sd-2-col-1-third .wp-block-columns.wp-block-columns-is-layout-flex {gap: 0;}

.sd-2-col-1-third  .wp-block-column:nth-of-type(2) {
    border: solid 1px #ddd;
    padding: 1em;
}

/* Single */
h2.wp-block-post-title {
    font-size: 1.75rem;
}

/* CRM Form */
.wp-block-sd-crm-forms.sd-block.sd-email-inline-form  {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wp-block-sd-crm-forms.sd-block.sd-email-inline-form iframe {
    min-width: 30vw;
    max-width:450px;
}


/* Address & Contact */
div#sd-address-contact-grp {
    display: flex;
    align-items: end;
    margin-bottom: 4em;
}

#sd-address-contact-grp .wp-block-sd-address.sd-block {
    margin: 0;
}

#sd-address-contact-grp .wp-block-buttons.is-layout-flex {
    width: 50%;
}

#sd-address-contact-grp .wp-block-sd-address.sd-block {
    width: 50%;
}

#sd-address-contact-grp .wp-block-button {
    width: 100%;
}

#sd-address-contact-grp a.wp-block-button__link.wp-element-button {
    display: block;
}



body .sd-contact-2-col-grp .wp-block-columns.is-layout-flex {
    display: block;
    max-width: 1024px;
    margin: 0 auto;
}


.sd-contact-2-col-grp .wp-block-columns .wp-block-column:first-of-type figure img {
    object-fit: cover;
}


/* Accordion */
h3.sd-accordion-heading {
    font-family: helvetica;
    font-weight: 100;
    font-size: 1.2em;
}

/* Single Post */
.post-template-default.single .wp-block-post-title {
    text-align: center;
    color: #fff;
}

.post-template-default.single .wp-block-cover {
    background: #2E2B28;
}

/* Categories */
.wp-block-group .taxonomy-category a {
    display: inline-block;
    padding: 1em;
}

/* Search Results */
.search-results h3.wp-block-heading {
    margin-bottom: 0;
    margin-top: 1em;
}

.search-results p {
    margin-top: 0;
}

.search-results .wp-block-query ul:not(.is-layout-grid) li {
    border: solid 1px #eee;
    padding: 1%;
}

/* Privacy */
.page-template-privacy main {
    padding: 1%;
}


/* Store Styles */
.woocommerce-page .entry-content  {
    padding: 1%;
}

.woocommerce-page h1  {
    padding: 1%;
}

.woocommerce-order-received main {
    padding: 1%;
}

.wc-block-order-confirmation-status {
    text-align: center;
}

.woocommerce-order-received main {
    max-width: 1024px;
    margin: 0 auto;
}

.wc-block-grid__products {
    background-clip: padding-box;
    justify-content: center;
}

.woocommerce-page.product  .wp-block-group.product {
    padding: 1%;
    background: #eee;
}

.woocommerce-page.product .product .wp-block-group {
    max-width: 1024px;
    padding: 1%;
    background: #fff;
    margin: 0 auto;
}

.wp-block-woocommerce-related-products  li.product {
    padding: 1%;
    border: solid 1px #eee;
}

.wc-block-components-notice-banner {
    background-color: #fff!important;
    border-color: #000!important;
}

.wc-block-components-notice-banner svg {
    background-color: #000!important;
}

/* Product Template List View */
.wp-block-query ul.products-block-post-template:not(.is-layout-grid) {
    max-width: 50em;
    margin: 0 auto;
}

/* Fix for iphone 13 */

/* Menu */
.sd-show-mobile-nav .wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open) {
    background: #fff!important;
    color: #000!important;
    z-index: 1000000!important;
}

.sd-show-mobile-nav div#wpadminbar {
    display: none;
}


.sd-show-mobile-nav #modal-1.wp-block-navigation__responsive-container {
    animation: overlay-menu__fade-in-animation .1s ease-out;
    animation-fill-mode: forwards;
    background-color: inherit;
    display: flex;
    flex-direction: column;
    overflow: auto;
    padding: clamp(1rem,var(--wp--style--root--padding-top),20rem) clamp(1rem,var(--wp--style--root--padding-right),20rem) clamp(1rem,var(--wp--style--root--padding-bottom),20rem) clamp(1rem,var(--wp--style--root--padding-left),20em);
    z-index: 100000;
    color: #000;
    background:#fff;
}

.sd-show-mobile-nav .wp-block-navigation__responsive-container-content > ul {
    justify-content: center;
    width: 100%;
}

.sd-show-mobile-nav .wp-block-navigation__container {
    display: flex;
    flex-direction: column;
}


.sd-show-mobile-nav .wp-block-navigation__responsive-dialog {
    padding-top:4em;
}

.sd-show-mobile-nav .wp-block-navigation__responsive-container-close {
    margin-top:1em;
    margin-right:1em;
    cursor:pointer;
}


@media screen and (min-width:1024px){

    .post-type-archive-gpb_portfolio li {
        margin-bottom: initial;
    }

    .wp-block-query.sd-default-blog-posts ul.columns-3.is-layout-grid,
    .wp-block-query.sd-default-blog-posts ul.columns-4.is-layout-grid  {
        display: grid;
        max-width: 100%;
        margin: 0 auto;
    }

}

@media screen and (min-width:1366px){


    body .sd-contact-2-col-grp .wp-block-columns.is-layout-flex {
        display: flex;
        max-width: 100%;
    }

    .sd-contact-2-col-grp .wp-block-columns .wp-block-column:first-of-type {
        display: flex;
        align-items: end;
    }

    .sd-contact-2-col-grp .wp-block-columns .wp-block-column:first-of-type figure {
        height: 82%;
    }

    .sd-contact-2-col-grp .wp-block-columns .wp-block-column:first-of-type figure img {
        height: 100%;
        max-height: 100%;
    }

    .sd-contact-2-col-grp  iframe {
        height: 300px!important;
    }

    .wp-block-query ul.products-block-post-template:not(.is-layout-grid) {
        max-width: 100%;
    }

    .wp-block-query ul.products-block-post-template:not(.is-layout-grid) li.wp-block-post.product {
        display: flex;
        justify-content: space-around;
    }

    .wp-block-query ul.products-block-post-template:not(.is-layout-grid) .wp-block-group-is-layout-constrained {
        max-width: 50em;
        padding: 1% 5%;
    }
}