/**
 * SCSS @extend
    * Font
        * @extend %post_meta_font;
    * SPACING
        * @extend %centered_spacing;
        * @extend %content_spacing;
        * @extend %wide_spacing;
        * @extend %structure_spacing;
    * WIDTH
        * @extend %block;
        * @extend %block_wide;
        * @extend %alignleft;
        * @extend %alignright;
        * @extend %aligncenter;
        * @extend %alignwide;
        * @extend %has-sidebar-alignfull;
        * @extend %no-sidebar-alignfull;
    * TEXYT-ALIGN
        * @extend %center-short-sentences;
        * @extend %list-quote-padding;
    * FLEX
        * @extend %flex-container;
    * Excerpt line-clamp
        * @extend %line-clamp;
    * Title in Narrow Space
        * @extend %narrow-space-title;
    * Fix flex container push
        * @extend %fix-flex-container-push;
    * Clearfix
        * @extend %clearfix;
 * RULE SET
    * Theme
        * Elements
        * Position fse-header/fse-header-content post-header/post-header-content
        * figcaption
        * post-header
        * Background Light
        * Background Dark
        * has-background
        * Clear Align
        * Sticky Posts
        * wp-block (front end Theme class)
        * Clear Float
        * bbpress
        * Pallet color
        * WordPress.com Editing Toolkit
        * Fix floating text background issue
        * emulsion-block-pattern-list-tab
    * Classes
         * Minimal kindness for posts written in old editors
         * Shortcoce Gallery
         * header
         * footer
         * Relate posts
         * Sticky Post
         * VARIATION
         * name: core/group
         * name: core/group stack
         * name: core/gallery
         * name: core/columns
         * name: core/table
         * name: core/media-text
         * name: core/pullquote
         * name: core/quote
         * name: core/separator
         * name: core/cover
         * name: core/embed
         * name: core/image
         * name: core/post-featured-image
         * name: core/post-excerpt
         * name: core/table
         * name: core/navigation
         * name: core/post-content
         * name: core/post-navigation-link
         * name: core/query-pagination
         * name: core/query-title
         * name: core/query
         * name: core/cover
         * name: core/template
         * name: core/template-part
         * name: core/term-description
         * name: core/buttons
         * name: core/file
         * name: core/post-comments-form
         * Theme align
         * name: core/media-text
         * name: core/latest-posts
         * name: core/list
         * name: core/verse
         * name: core/social-links
         * name: core/post-comments
         * name: core/code
         * name: core/post-author-biography
         * name: core/spacer
         * name: core/shortcode
         * name: core/video
         * name: core/table-of-contents
         * theme toc (table of contents)
         * name: core/next-page
 */

/**
    * Font
        * @extend %post_meta_font;
 */

%post_meta_font{
    font-family:var(--wp--preset--font-family--system-font);
    font-size:var( --wp--preset--font-size--normal );
}
/**
    * SPACING
 */

/**
 * Center content
        * @extend %centered_spacing;
 */

%centered_spacing{
    -webkit-box-sizing:border-box;
    // height:100%;
    box-sizing:border-box;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction:column;
    flex-direction:column;
    align-items: center;
    justify-content: center;
    -webkit-box-pack: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -ms-flex-pack: center;
}

/**
 * Content Margin Padding
 * eg h* ul ol table
         * @extend %content_spacing;
 */
%content_spacing{
    box-sizing:border-box;
    padding-right:var( --wp--custom--padding--content, .75rem );
    padding-left:var( --wp--custom--padding--content, .75rem );
    margin:1.5rem auto;
}

/**
 * Wide Margin Padding
 * eg h* ul ol table
        * @extend %wide_spacing;
 */
%wide_spacing{
    box-sizing:border-box;
    padding-right:0;
    padding-left:0;
    margin:1.5rem auto;
}

/**
 * Layout Block Margin Padding
 * A wrapper block containing content (eg p h* ul ol table)
        * @extend %structure_spacing;
 *
 */

%structure_spacing{
    box-sizing:border-box;
    padding:0 0 0 0;
    margin:0 auto;
    overflow:auto;

}

/**
    * WIDTH
 */
/**
 * Block content default width
        * @extend %block;
 */

%block {
    width: var(--wp--custom--width--content, 720px );
    max-width:100%;
}

/**
 * Wide Block Elements
        * @extend %block_wide;
 */

%block_wide {
    width:var(--wp--custom--width--wide, 920px);
    max-width:100%;
}

/**
 * alignleft
        * @extend %alignleft;
 */

%alignleft {
    box-sizing:border-box;
    float:left;
    width:var(--wp--custom--width--alignleft);
    max-width:100%;
    margin:var(--wp--custom--padding--content, .75rem);
    clear:left;

    &.has-background{
        @media screen and (max-width: 640px){
            margin-top:var(--wp--custom--margin--gap);
            margin-bottom:var(--wp--custom--margin--gap);
        }
    }

    &.wp-block-embed{
        width:var(--wp--custom--width--alignleft);
    }
    &.wp-block-social-links{
        width:100px;
        margin-top:1.5rem;
        @media screen and (max-width: 640px) {
            width:100px;
        }
    }
    &.wp-block-file:not(.specificity){
        width:-moz-fit-content;
        width:fit-content;
        margin-top:1.5rem;
        @media screen and ( max-width : 480px ) {

            width:100%;
            max-width:100%;
            padding:0 var(--wp--custom--padding--content, .75rem);
            //padding-left: clamp( 2rem, calc( 100vw / 36 ), calc(40px + var(--wp--custom--padding--content,.75rem)));

        }
    }
    &.wp-block-search,
    &.wp-block-latest-comments{
        width:320px;
        margin-top:1.5rem;
        @media screen and ( max-width : 640px ) {

            width:100%;
            max-width:100%;
            padding:0 var(--wp--custom--padding--content, .75rem);
            //padding-left: clamp( 2rem, calc( 100vw / 36 ), calc(40px + var(--wp--custom--padding--content,.75rem)));

        }
    }
    &.wp-block-archives,
    &.wp-block-categories{
        width:320px;
        margin-top:0;
        margin-left:0;
        &.is-style-list-style-inline{
            width:320px;
            margin-right:var(--wp--custom--padding--content, .75rem);
        }
        @media screen and ( max-width : 640px ) {

            width:100%;
            max-width:100%;
            padding-left: clamp( 2rem, calc( 100vw / 36 ), calc(40px + var(--wp--custom--padding--content,.75rem)));
            &.is-style-list-style-inline{
                width:100%;
                max-width:100%;
                margin:1.5rem auto;
            }

        }
        @media (min-width: 640px) and (max-width: 1400px){
            & ~ .is-vertical ol:not([class*="wp-block"]),
                & ~ .is-vertical ul:not([class*="wp-block"]),
                & ~ ol:not([class*="wp-block"]),
                & ~ ul:not([class*="wp-block"]){
                li{
                    transform: translateX(1.75rem);
                    margin-right:1.75rem;

                }
            }

            & ~ .wp-block-separator{
                width:auto;
                clear:none!important;
            }
            & ~ .wp-block-image,
            & ~ .wp-block-gallery{
                width:auto;
                clear:none!important;
            }
            & ~ .wp-block-table{
                width:auto;
                clear:none!important;
            }

            & ~ .wp-block-group{
                .wp-block-image,
                .wp-block-separator,
                .wp-block-embed__wrapper{
                    display:flex;
                    flex-direction:column;
                    width:auto;
                }
                .wp-block-table,
                .wp-block-gallery,
                .wp-block-separator{
                    clear:none!important;
                    width:auto;
                }
            }

        }
    }

    & > figure{
        margin-top:0;
        margin-bottom:0;
    }
    .alignleft,
    .alignright{
        float:none;
        width:100%;
        max-width:100%;
        margin-right:0;
        margin-left:0;
    }
    @media screen and ( max-width : 640px ) {
        // static break point
        width:100%;
        max-width:100%;
        padding:0 var(--wp--custom--padding--content, .75rem);
        margin-left:auto;
        margin-right:auto;
        &.alignleft{
            margin-left:auto;
            margin-right:auto;
            &.is-resized figcaption:not(.specificity),
                figcaption{
                text-align:center;
            }
        }
    }
}



/**
 * alignright
        * @extend %alignright;
 */

%alignright {
    box-sizing:border-box;
    float:right;
    width:var(--wp--custom--width--alignright);
    max-width:100%;
    margin:var(--wp--custom--padding--content, .75rem);
    clear:right;
    &.has-background{
        @media screen and (max-width: 640px){
            margin-top:0;
            margin-bottom:0;
        }
    }
    &.wp-block-embed{
        width:var(--wp--custom--width--alignright);
    }
    &.wp-block-social-links{
        width:100px;
        margin-top:1.5rem;
        @media screen and (max-width: 640px) {
            width:100px;
        }
    }
    &.wp-block-file:not(.specificity){
        @extend %center-short-sentences;
        margin-top:1.5rem;
        @media screen and ( max-width : 480px ) {

            width:100%;
            max-width:100%;
            padding:0 var(--wp--custom--padding--content, .75rem);
        }
    }
    &.wp-block-search,
    &.wp-block-latest-comments{
        width:320px;
        margin-top:1.5rem;
        margin-right:0;
        &.is-style-list-style-inline{
            margin-left:var(--wp--custom--padding--content, .75rem);
        }
        @media screen and ( max-width : 640px ) {

            width:100%;
            max-width:100%;
            padding:0 var(--wp--custom--padding--content, .75rem);
        }
    }
    &.wp-block-archives,
    &.wp-block-categories{
        width:320px;
        margin-top:0;
        margin-right:0;
        &.is-style-list-style-inline{
            width:320px;
            margin-right:var(--wp--custom--padding--content, .75rem);
        }
        @media screen and ( max-width : 640px ) {

            width:100%;
            max-width:100%;
            padding-left: clamp( 2rem, calc( 100vw / 36 ), calc(40px + var(--wp--custom--padding--content,.75rem)));
            &.is-style-list-style-inline{
                width:100%;
                max-width:100%;
                margin:1.5rem auto;
            }
        }
        @media (min-width: 640px) and (max-width: 1360px){

            & ~ .wp-block-separator{
                width:auto;
                clear:none!important;
            }
            & ~ .wp-block-image,
            & ~ .wp-block-gallery{
                width:auto;
                clear:none!important;
            }
            & ~ .wp-block-table{
                width:auto;
                clear:none!important;
            }

            & ~ .wp-block-group{
                .wp-block-image,
                .wp-block-separator,
                .wp-block-embed__wrapper{
                    display:flex;
                    flex-direction:column;
                    width:auto;
                }
                .wp-block-table,
                .wp-block-gallery,
                .wp-block-separator{
                    clear:none!important;
                    width:auto;
                }
            }

        }
    }
    & > figure{
        margin-top:0;
        margin-bottom:0;
    }
    &.wp-block-media-text{
        p{
            max-width:100%;
        }
    }

    .alignleft,
    .alignright{
        float:none;
        width:100%;
        max-width:100%;
        margin-right:0;
        margin-left:0;
    }
    @media screen and ( max-width : 640px ) {
        width:100%;
        max-width:100%;
        padding:0 var(--wp--custom--padding--content, .75rem);
        margin-left:auto;
        margin-right:auto;
        &.alignright{
            margin-right:auto;
            margin-left:auto;
            &.is-resized figcaption:not(.specificity),
                figcaption{
                text-align:center;
            }
        }
    }
}

/**
 * aligncenter
        * @extend %aligncenter;
 */

%aligncenter {
    box-sizing:border-box;
    float:none;
    width:var(--wp--custom--width--aligncenter);
    max-width:100%;
    clear:both;

    @media screen and ( max-width : 640px ) {
        width:100%;
        max-width:100%;
        margin-right:0;
        margin-left:0;
    }
}

/**
 * alignwide
        * @extend %alignwide;
 */

%alignwide{

    width:var(--wp--custom--width--wide, 920px);
    max-width:100%;
}

/**
 * has sidebar alignfull
        * @extend %has-sidebar-alignfull;
 */

%has-sidebar-alignfull{

    width:100%;
    max-width:100%;
}

/**
 * no sidebar alignfull
        * @extend %no-sidebar-alignfull;
 */

%no-sidebar-alignfull{
    width:100%;
    max-width:100%;
    overflow:auto;

    @media screen and ( min-width : 1280px ) {
        // Limit width
        max-width:var(--wp--custom--width--limit, 1600px);
        width:100%;
        margin-right:auto;
        margin-left:auto;
        overflow:hidden;
    }
}

/**
    * TEXYT-ALIGN
 */

/**
 * Block content is displayed in the center, and if the number of characters exceeds one line, it is displayed as a left-aligned tile.
        * @extend %center-short-sentences;
 */

%center-short-sentences{
    width:-moz-fit-content;
    width:fit-content;
    //  margin-right:auto;
    //  margin-left:auto;
    text-align:left;
}
/**
        * @extend %list-quote-padding;
 */
%list-quote-padding{
    padding-left: clamp( 2rem, calc( 100vw / 72 ), calc(40px + var(--wp--custom--padding--content, .75rem)));
    padding-top:.75rem;
    blockquote,
    ul ul,
    ul ol,
    ol ol,
    ol ul{
        padding-left: clamp( 2rem, calc( 100vw / 72 ), calc(40px + var(--wp--custom--padding--content, .75rem)));
    }
    li{
        padding: clamp(.375rem, calc( 100vw / 72 ),.75rem);
    }
}
/**
    * FLEX
 */
/**
 * Content wrapper to be placed horizontally
        * @extend %flex-container;
 */

%flex-container{
    display:flex;
    flex-wrap:wrap;
    .columns-default{
        flex-wrap:nowrap;
    }
    gap:var(--wp--custom--margin--gap, 3px);
    --wp--style--block-gap:var(--wp--custom--margin--gap, 3px);

    @extend %fix-flex-container-push;


}

/**
    * Excerpt line-clamp
        * @extend %line-clamp;
 */

%line-clamp{
    text-overflow: ellipsis;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow:hidden;
}

/**
    * Title in Narrow Space
        * @extend %narrow-space-title;
 */
%narrow-space-title{
    font-size: var(--wp--preset--font-size--medium);
    font-family: var(--wp--preset--font-family--helvetica-arial);
    font-weight: var(--wp--custom--font-weight--heading);
    line-height: var(--wp--custom--line-height--heading,1.15);
    text-transform: var(--wp--custom--text-transform--heading);
}

/**
    * Fix flex container push
        * @extend %fix-flex-container-push;
 */

%fix-flex-container-push{
    @media (min-width: 768px){
        &:not(.specificity){
            margin-left: calc(50% - var(--wp--custom--width--content) / 2 );
            margin-right: calc(50% - var(--wp--custom--width--content) / 2 );
            width: auto;
            max-width:var(--wp--custom--width--content);

            &.alignleft{
                width:var(--wp--custom--width--alignleft);
                max-width:100%;
                margin:var(--wp--custom--padding--content, .75rem);

            }
            &.alignright{
                width:var(--wp--custom--width--alignright);
                max-width:100%;
                margin:var(--wp--custom--padding--content, .75rem);
            }

            &.aligncenter{
                margin-left:auto;
                margin-right:auto;
            }
            .wp-block-columns{
                max-width:100%;
                margin:auto;

                .wp-block-column{
                    max-width:100%;
                    .wp-block-separator{
                        max-width:100%;
                        margin:auto;
                        border:1px solid;

                    }
                    .wp-block-buttons{

                        margin:auto;
                    }
                }
            }

            &.is-vertical{

            }

            & > .alignfull,
            & > .alignwide{
                max-width:100%;
                margin:auto;
            }
        }
    }
    @media (min-width: 968px){
        &:not(.specificity){
            &.alignwide{
                margin-right:calc(50% - var(--wp--custom--width--wide) / 2 + var(--wp--custom--padding--content, .75rem));
                margin-left:calc(50% - var(--wp--custom--width--wide) / 2 + var(--wp--custom--padding--content, .75rem));
                width:auto;
                // width:var(--wp--custom--width--wide);
                max-width:var(--wp--custom--width--wide);
                & > .alignfull,
                & > .alignwide{
                    max-width:100%;
                    margin:auto;
                }
            }
        }
    }

    &:not(.specificity){
        &.alignfull{
            float:none;
            clear:both;
            margin:0 auto;
            width:auto;
            max-width:100%;

            & > .alignfull,
            & > .alignwide{
                max-width:100%;
                margin:auto;
            }
        }
    }
}

/**
    * Clearfix
        * @extend %clearfix;
 */

%clearfix{
    &:before,
        &:after {
        display: table;
        content: " ";
    }
    &:after {
        clear: both;
    }
}

/**
 * RULE SET
 */

/**
        * Elements
 * HTML element styles can basically be described in theme.json,
 * but it is necessary to describe the element style due to a conflict with
 * the theme style or the core function is not implemented.
 * This element is ideally a style that becomes zero as the gutenberg project progresses.
 */

a{
    text-decoration: underline solid 1px;
    text-underline-offset:3px;
    background:transparent;
}
a:focus,
a:hover{
    color:var(--wp--custom--color--link-hover);
    text-decoration: none;
}

[rel="home"],
[rel="prev"],
[rel="home"],
header a,
footer a,
nav a{
    text-decoration: none;
}
body{
    box-sizing:border-box;
    padding:0;
    margin:0;
    overflow-x:hidden;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
    line-height:var(--wp--custom--line-height--common);
    color:var(--wp--preset--color--black);
    word-break:break-word;
    overflow-wrap:break-word;
}
p > img{
    margin-left:.25rem;
    margin-right:.25rem;
}
/**
 * plugin filtered page
 */

.is-fse-dark.no-block.post-type-custom{
    & > *:not(header):not(footer),
        main{
        color:var(--wp--preset--color--black);
        background:var(--wp--preset--color--white);
        a{
            color:var(--wp--preset--color--black);
        }
    }
}

/**
 *
 */

article > div > div,
.wp-block-query-pagination,
h1,h2,h3,h4,h5,h6,p,table,figure,pre, address,dl,form,hr,fieldset,menu,nav{
    box-sizing:border-box;

    /* theme.json width not work p */
    width:var(--wp--custom--width--content, 720px);
    max-width:100%;

    /* theme.json padding not work */
    padding:0 var(--wp--custom--padding--content, .75rem);
    margin-right:auto;


    /* theme.json margin not work */
    margin-left:auto;
    overflow-wrap: break-word;
}
form{
    overflow:hidden;
    fieldset{
        min-width: 0;
    }
}
table{
    width:calc( var(--wp--custom--width--content) - var(--wp--custom--padding--content) * 2);
    border-collapse: collapse;
}
label{
    padding:var(--wp--custom--padding--content,.75rem);
}
pre,
form,
figure,
fieldset{
    width:calc( var(--wp--custom--width--content, 720px) - var(--wp--custom--padding--content,.75rem) * 2);
    max-width:calc( 100% - var(--wp--custom--padding--content,.75rem) * 2);
    padding:0;
}
figcaption{
    margin:.75rem auto;
}

blockquote{
    width:calc( var(--wp--custom--width--content, 720px) - var(--wp--custom--padding--content,.75rem) * 2);
    max-width:calc( 100% - var(--wp--custom--padding--content,.75rem) * 2);
    margin-right:auto;
    margin-left:auto;
    overflow-wrap: break-word;
}
menu,
ul,
ol{
    padding-left: clamp( 2rem, calc( 100vw / 36 ), calc(40px + var(--wp--custom--padding--content,.75rem)));
    padding-top:.75rem;

    width:var(--wp--custom--width--content, 720px);
    max-width:100%;
    margin-right:auto;
    margin-left:auto;
    overflow-wrap: break-word;
    box-sizing:border-box;
}

blockquote,
ul ul,
ul ol,
ol ol,
ol ul{
    padding-left: clamp( 2rem, calc( 100vw / 72 ), calc(40px + var(--wp--custom--padding--content, .75rem)));
    box-sizing:border-box;
}

li{
    padding: clamp(.375rem, calc( 100vw / 72 ),.75rem);
    margin:0;
}

legend,
select,
textarea,
input,
th,
td{
    padding:var(--wp--custom--padding--content,.75rem);
}
abbr,
kbd{
    padding:.25rem;
    margin:0 .25rem;
}
hr{
    display:block;
    margin:1.5rem auto;
    @extend %fix-flex-container-push;
}
article{
    position:relative;
}
iframe{
    display:block;
    width: var(--thm_content_width, 720px );
    max-width:100%;
    margin-right:auto;
    margin-left:auto;
    border:none;
    aspect-ratio: 16 / 9;
    //height:auto;
}

fieldset{
    border:var(--wp--custom--border--common);
}

p[data-empty="true"]:not(.is-selected){
    margin-top:0!important;

    &:before{
        content:'\21b5';
        display:inline-block;

    }
}
p:empty{
    display:block;
    height:.75rem;
    margin:1.125rem auto;
}

/**
    * Classes
 * Includes theme-based core class changes and theme-specific class style definitions.
 */
.emulsion{
    .wp-block-group.emulsion-not-found{
        display:none;
    }
    &.search-no-results{
        .emulsion-not-found{
            display:block;
            height:var(--wp--custom--min-height--harf);
        }
    }
}

.has-background{
    background:var(--wp--custom--color--unknown-bg);

}
.has-text-color{
    color:var(--wp--preset--color--black);
}

/**
        * Background Light
 */
.is-fse-light,
.is-fse-bg-default{
    color:var(--wp--preset--color--black);
    a{
        text-decoration-color:var(--wp--custom--border--common);
        color:var(--wp--custom--color--link);
    }
    a:focus,
        a:hover{
        color:var(--wp--custom--color--link-hover);
        text-decoration: none;

    }
    .wp-block-button__link{
        color:var(--wp--custom--color--dark-link);
        &:focus,
            &:hover{
            color:var(--wp--preset--color--white);
            text-decoration: none;
        }
    }
    blockquote{
        border-left:var(--wp--custom--border--common);
    }
    kbd,
    textarea,
    input,
    th,
    td{

        border:var(--wp--custom--border--common);
    }

    &[class*="post-template-wp-custom-template"] .wp-site-blocks > header,
    &[class*="post-template-wp-custom-template"] .wp-site-blocks > footer,
    .fse-header,
    .fse-footer{
        background:var(--wp--custom--color--banner-bg);
    }
    .comment-wrapper{
        color:var(--wp--custom--color--comments-text);
        background:var(--wp--custom--color--comments-bg);
        overflow:auto;
        p{
            padding:0;
        }

    }
    .wrap-emulsion_relate_posts{
        color:var(--wp--custom--color--relate-posts-text);
        background:var(--wp--custom--color--relate-posts-bg);
        overflow:auto;
    }

    .is-style-stripes{
        //OW
        border:none;
        tbody tr:nth-child(odd) {
            background-color:var(--wp--custom--color--stripe);
        }
    }
    .wp-block-table-of-contents{
        ol{
            border:var(--wp--custom--border--common,1px solid #ccc);
            background:var(--wp--custom--color--toc-bg);
            ol{
                border:none;
            }
            a{
                color:var(--wp--custom--color--link);
                &:hover{
                    color:var(--wp--custom--color--link-hover);
                }
            }
        }
    }

}

/**
        * Background Dark
 */
.is-fse-dark{
    color:var(--wp--preset--color--white);

    a{
        color:var(--wp--custom--color--dark-link);
        text-decoration-color:var(--wp--custom--border--dark-common);

    }
    a:focus,
        a:hover{
        color:var(--wp--custom--color--dark-link-hover);
        text-decoration: none;
    }
    .wp-block-navigation__submenu-container a,
    .rich-header a{
        color:var(--wp--custom--color--link);
        &:focus,
            &:hover{
            color:var(--wp--custom--color--link-hover);
            text-decoration: none;

        }
    }
    .wp-block-button__link{
        color:var(--wp--custom--color--dark-link);
        &:focus,
            &:hover{
            color:var(--wp--preset--color--white);
            text-decoration: none;
        }
    }
    blockquote{
        border-left:var(--wp--custom--border--dark-common);
    }
    kbd,
    textarea,
    input,
    th,
    td{

        border:var(--wp--custom--border--dark-common);
    }
    .wp-block-calendar{
        th{
            color:var(--wp--preset--color--black);
        }
        tbody{
            color:var(--wp--preset--color--white);
        }
    }

    &[class*="post-template-wp-custom-template"] .wp-site-blocks > header,
    &[class*="post-template-wp-custom-template"] .wp-site-blocks > footer,
    .fse-header,
    .fse-footer{
        background:var(--wp--custom--color--dark-banner-bg);
        color:var(--wp--preset--color--white);
    }
    .comment-wrapper{
        color:var(--wp--custom--color--dark-comments-text);
        background:var(--wp--custom--color--dark-comments-bg);
        overflow:auto;

    }
    .wrap-emulsion_relate_posts{
        color:var(--wp--custom--color--dark-relate-posts-text);
        background:var(--wp--custom--color--dark-relate-posts-bg);
        overflow:auto;
    }
    .is-style-stripes{
        //OW
        border:none;
        tbody tr:nth-child(odd) {
            background-color:var(--wp--custom--color--dark-stripe);
        }
    }
    .wp-block-table-of-contents{
        ol{
            background:var(--wp--custom--color--dark-toc-bg);
            border:var(--wp--custom--border--dark-common,1px solid #ccc);
            ol{
                border:none;
            }

            a{
                color:var(--wp--custom--color--dark-link);
                &:hover{
                    color:var(--wp--custom--color--dark-link-hover);
                }
            }
        }
    }

    .emulsion-modal-content *{
        color:var(--wp--preset--color--black);
    }
    /*
    The background color is assumed to be bright. To be precise,
    it is necessary to determine whether the background color is bright or not.align-content:
    */
    .has-background{

        &:not(.has-text-color){
            color:var(--wp--preset--color--black);
            a{
                color:var(--wp--custom--color--link);
                &:focus,
                    &:hover{
                    color:var(--wp--custom--color--link-hover);
                    text-decoration: none;
                }
            }
        }
        h1,h2,h3,h4,h5,h6,p,table,ol,ul{
            color:inherit;
        }

    }
}
/**
        * Fix floating text background issue
 */

.is-fse-bg-default{
    .alignleft,
    .alignright{
        &.wp-block-archives,
        &.wp-block-categories{
            background:#fff;
        }
    }
}
.is-fse-dark{
    .alignleft,
    .alignright{
        &.wp-block-archives,
        &.wp-block-categories{
            background:#1b262c;
        }
    }
}
/**
        * emulsion-block-pattern-list-tab
 * front end only style
 * class that transforms a nested list into a tab view
 */
.editor-styles-wrapper .emulsion-block-pattern-list-tab{
    border:1px dashed #ccc;
    &:before{
        content:'emulsion block pattern list tab';
        background:#333;
        color:white;
        display:inline-block;
        margin-bottom:1rem;
        padding:.75rem;
    }
}
.list-style-tab{
    @extend %block;
    margin:1.5rem auto .75rem;
    &.success-js{
        position:relative;
        margin-top:1.5rem;
        margin-bottom:.75rem;
        overflow:hidden;
        list-style:none;
        & > li{
            box-sizing:border-box;
            float:left;
            padding:.75rem 1rem;
            margin-top:0;
            margin-right:3px;
            margin-bottom:0;
            clear:none;
            text-indent:0;
            list-style:none;
            visibility:visible;
            border:var(--wp--custom--border--common);
            &:before{
                visibility:hidden;
                outline:none;
            }
            &:hover{
                cursor:pointer;
            }
            &:focus,
                &.active{
                outline:none;
            }
            &:after{
                position:absolute;
                top:calc(3rem + 0.75rem);
                right:0;
                left:0;
                box-sizing:inherit;
                display:block;
                content:'';
                border-top:var(--wp--custom--border--common);
            }
            ol,
            ul{
                position:absolute;
                left:0;
                box-sizing:border-box;
                width:100%;
                margin-top:.75rem;
                padding:1rem 0 1rem 40px;
                visibility:hidden;
                li{
                    text-indent:0;
                    &:before{
                        display:none;
                    }
                }
            }
            &:focus{
                ul{
                    top:40px;
                    visibility:visible;
                    @extend %clearfix;
                }
            }
        }
        &.has-background{
            & > li{
                &:after{
                    top:4rem;
                }
            }
        }
    }
}
.list-style-tab.success-js{
    & > li{
        &.active{
            background:rgba(188, 188, 188, 0.5);
        }
    }
}
/*
    When there is a complicated nest such as wp-block-columns,
    you can add a class, dark-block to a dark block.
*/
.has-background.dark-block{
    &:not(.has-text-color){
        color:var(--wp--preset--color--white);
        a{
            color:var(--wp--preset--color--cyan-bluish-gray);
            &:focus,
                &:hover{
                color:var(--wp--custom--color--link-hover);
                text-decoration: none;
            }
        }
    }
    h1,h2,h3,h4,h5,h6,p,table,ol,ul{
        color:var(--wp--preset--color--white);
    }
}

/**
         * name: core/shortcode
 */
.shortcode-wrapper{
    background:var(--wp--custom--color--unknown-bg);
    color:var(--wp--preset--color--black);
    a{
        text-decoration-color:var(--wp--custom--border--common);
        color:var(--wp--custom--color--link);
    }
    a:focus,
        a:hover{
        color:var(--wp--custom--color--link-hover);
        text-decoration: none;

    }
    h1,h2,h3,h4,h5,h6,p,table,ol,ul{
        color:inherit;
    }
}
/**
         * name: core/video
 */

.wp-block-video{
    @extend %structure_spacing;
}

/**
         * name: core/table-of-contents
 */
.wp-block-table-of-contents{
    @extend %content_spacing;

}

/**
         * theme toc (table of contents)
 */
.toc{
    ul{
        padding-top:0;
        margin-top:0;
        border:var(--wp--custom--border--common);
        a{
            font-size:var(--wp--preset--font-size--small);
            text-transform:uppercase;
            text-decoration:none;
        }
        .toc-h1{
            margin-left:0;
        }
        .toc-h2{
            margin-left:.75rem;
        }
        .toc-h3{
            margin-left:1.5rem;
        }
        .toc-h4{
            margin-left:2.25rem;
        }
        .toc-h5{
            margin-left:3rem;
        }
        .toc-active:marker{
            color:red;
        }

    }
}
/**
         * name: core/next-page
 */

.wp-block-nextpage,
.post-nav-links{
    @extend %content_spacing;
    clear:both;
    float:none;
    .post-page-numbers{
        padding:.75rem;
        text-decoration:none;
        border:var(--wp--custom--border--common);
    }
    .current{
        padding:.75rem;
        font-weight:700;
    }
}

/**
        * Position fse-header/fse-header-content post-header/post-header-content
 */
.emulsion{
    /**
     * If the content of the post uses the alignwide, alignfull class, the width of the header and footer will be aligned.
     * .keep-align-wide, .keep-align-wide are defined in body_class
     */
    &.single,
    &.page{
        .wp-block-post-featured-image img{
            width:var(--wp--custom--width--content);
            max-width:100%;
            padding:0 .75rem;
            box-sizing:border-box;
            margin:0 auto;
        }
    }
    &.keep-align-wide{
        .wp-block-post-featured-image img,
        .wp-block-post-navigation,
        .fse-footer p,
        .post-header-content,
        .fse-header-content{
            width:var(--wp--custom--width--wide, 920px);
            max-width:100%;
            overflow:auto;
        }
    }
    &.keep-align-full{
        .wp-block-post-featured-image img,
        .wp-block-post-navigation,
        .fse-footer p,
        .post-header-content,
        .fse-header-content{
            width:var(--wp--custom--width--full, 1280px);
            max-width:100%;
            overflow:auto;
        }
        .wp-block-post-featured-image{
            padding:0;
            img{
                padding:0
            }
        }
    }
    .wrap-emulsion_relate_posts{
        li{
            padding:0;
        }
    }
    /**
        * figcaption
     */
    figcaption{
        @extend %center-short-sentences;
        font-size:var(--wp--preset--font-size--small,13px);
    }
    .alignleft.is-resized figcaption{
        width:auto;
        text-align:right;
        padding-right:var(--wp--custom--padding--content);
    }
    .alignright.is-resized figcaption{
        width:auto;
        text-align:left;
        padding-left:var(--wp--custom--padding--content);
    }

    .wp-site-blocks{
        /*
        OW
        .wp-site-blocks > * + * {
            margin-block-start: var( --wp--style--block-gap );
        }*/

        & > header{
            @extend %structure_spacing;
        }
        & > main{
            @extend %structure_spacing;
        }
        & > footer{
            @extend %structure_spacing;
        }
    }
    .article-wrapper{
        @extend %structure_spacing;
    }
    /**
        * post-header
     */
    &[class*="post-template-wp-custom-template"] .wp-site-blocks > header + .wp-block-group header,
    .post-header{
        .wp-block.posted-on{
            padding:var(--wp--custom--padding--content);
        }
    }

    .taxsonomy{
        // width depend .post-header-content
        width:100%;
        @extend %structure_spacing;
        overflow:initial;
        .taxsonomy{
            padding:0;
        }
    }
    .posted-on{
        // width depend .post-header-content
        width:100%;
        overflow:initial;
        @extend %content_spacing;
        @extend %post_meta_font;
    }

    .wp-block-post-author{
        display:inline-flex;
        //width:auto;
        align-items: baseline;
        justify-content: center;

        .wp-block-post-author__avatar{
            display:inline-block;
            flex: 0 0 auto;
            width:24px;
            margin:0;
            align-items: baseline;
            justify-content: center;
            img{
                display:inline;
                vertical-align:bottom;
                max-width:100%;
                height:auto;
            }
        }
        .wp-block-post-author__content{
            display:inline-block;
            flex: 0 0 auto;
            width:auto;
            padding:0;
            margin:0;

        }
        .wp-block-post-author__name{
            display:inline;
            margin: 0;
            vertical-align:bottom;
        }
    }

    .wp-block-post-date{
        display:inline-flex;
        vertical-align:bottom;
    }
    .wp-block-post-comments-link{
        display:inline-block;
        width:auto;
        vertical-align:bottom;
    }
    .post-header-content .wp-block-post-title{
        // width depend .post-header-content
        width:100%;
        position:relative;
    }
    .wp-block-post-author__name{
        @extend %post_meta_font;
    }

    /**
        * Sticky Posts
     * After the second page name, there seems to be a problem that the .sticky class is not added
     * It is not possible to determine if this behavior is intentional in the core
     */

    .wp-block-query{
        & > .wp-block-post-template{
            display: flex;
            li{
                z-index:0;
                order:2;
                &.sticky{
                    order:1;
                }
            }
        }
        & > .wp-block-post-template:not(.is-flex-container){
            flex-direction: column;
        }
    }

    /**
        * wp-block (front end Theme class)
     */

    .wp-block{

        @extend %block;
        @extend %content_spacing;
        & > .wp-block{
            padding:0;
        }

        &.post-header-content,
        &.wp-block-gallery,
        &.wp-block-image{
            @extend %structure_spacing;
        }

        ul.wp-block,
        ol.wp-block,
        .wp-block:where(blockquote){
            @extend %list-quote-padding;
        }

        &.aligncenter{
            @extend %aligncenter;
        }
        &.alignleft{
            @extend %alignleft;
        }
        &.alignright{
            @extend %alignright;
        }
        &.alignwide{
            @extend %alignwide;
            @extend %wide_spacing;
        }
        &.alignfull{
            @extend %no-sidebar-alignfull;
            @extend %structure_spacing;
        }

    }
    .wp-block.toc{
        @extend %structure_spacing;
    }
    .wp-block-columns{
        @extend %flex-container;
    }
    .post-header-content{
        @extend %block;
        @extend %structure_spacing;
    }
    .loop-item .wp-block-post-excerpt{
        @extend %structure_spacing;
    }

    /**
        * Clear Float
     */
    .is-style-new-line,
    .clear-float{
        float:none;
        clear:both!important;
        &.wp-block-post-date,
        &.wp-block-post-author{
            display: flow-root;
        }

    }
    .clear-left{
        float:none;
        clear:left!important;
    }
    .clear-right{
        float:none;
        clear:right!important;
    }
    .clear-none{
        clear:none!important;
        overflow:visible;
    }

    /**
        * has-background
     */

    .has-background{
        padding:var(--wp--custom--padding--content);
        box-sizing:border-box;

    }
    ol.has-background,
    ul.has-background{
        padding-top: .75rem;
        padding-left: 40px;
    }
    .wp-block{
        &.has-background{
            padding:0;
            &.wp-block-group.alignfull{
                @extend %structure_spacing;
            }
            &.is-vertical{
                @extend %clearfix;
                overflow:visible;
            }
            &[data-block]{
                padding:var(--wp--custom--padding--content, .75rem);
            }
        }

    }
    ol.wp-block.has-background,
    ul.wp-block.has-background{
        padding-left: calc(40px + var(--wp--custom--padding--content, .75rem));
        padding-top: .75rem
    }

    /**
        * Clear Align
     */

    .wp-block-post-content > div:not([class]),
        .wp-block-query-pagination{
        float:none;
        clear:both;
    }
    .is-flex-container.is-vertical{
        padding:0;

        &.wp-block-buttons{
            .wp-block-button{
                margin:0 auto;
                a{
                    margin:0 auto;
                }
            }
        }

    }
    .wp-block-post-template{
        @extend %structure_spacing;
    }
    .post-password-form{
        @extend %structure_spacing;
    }
    /**
         * name: core/group
     */

    .wp-block-group{
        @extend %clearfix;
        display:block;
        padding:0;

        &.alignfull{
            @extend %structure_spacing;
        }
    }
    /* Wait for block spacing implementation
       .wp-site-blocks{
            .wp-block-post-content{
                .wp-block-group{
                    &.has-background{
                        padding: var(--wp--custom--padding--content);
                        box-sizing: border-box;
                    }
                }
            }
        }
    */
    .alignright,
    .alignleft{
        //push not apply width auto
        &.wp-block-archives,
        &.wp-block-categories{
            @media (min-width: 768px){
                & ~ .wp-block-group{
                    margin-left: calc(50% - var(--wp--custom--width--content) / 2 );
                    margin-right: calc(50% - var(--wp--custom--width--content) / 2 );
                    &.alignfull{
                        margin-left:auto;
                        margin-right:auto;
                    }
                }
            }
        }
    }

    /**
         * name: core/gallery
     */
    .wp-block-gallery{
        @extend %flex-container;

        margin:var(--wp--custom--margin--gap, 3px) auto;
        &.alignwide{
            margin:var(--wp--custom--margin--gap, 3px) auto;
        }
        &.has-nested-images{
            //OW
            &.alignleft{
                @extend %alignleft;
            }
            &.alignright{
                @extend %alignright;
            }

        }

    }
    .wp-block-group.is-vertical,
    .wp-block-column{
        & > .wp-block-gallery{
            margin:1.5rem auto;
            width:auto;
        }
    }

    /**
         * name: core/columns
     */
    .wp-block-columns{
        @extend %flex-container;
        @extend %fix-flex-container-push;
        &.alignfull{
            @extend %structure_spacing;
        }
        @media screen and (min-width: 600px) and (max-width: 768px){

            &:not(.is-not-stacked-on-mobile) > .wp-block-column:not(:only-child) {
                flex-grow: 0;
                flex-basis: calc(50% - var(--wp--style--block-gap) * 2)!important;
            }
        }
    }
    .wp-block-column{
        .wp-block-code,
        .wp-block-table,
        .wp-block-pullquote,
        .wp-block-gallery{
            margin-left:auto;
            margin-right:auto;
        }
        &.has-background{
            //Wait for block spacing implementation
            padding:0;
        }
        &:not(.is-style-main){
            ul,ol{
                padding-left:min(15%, 1.5rem);

                @media screen and ( max-width : 768px ) {
                    padding-left: clamp( 2rem, calc( 100vw / 72 ), calc(40px + var(--wp--custom--padding--content, .75rem)));
                }

                li{
                    padding-left:0;
                }
            }
            h1{
                font-size:xx-large;
            }
            h2{
                font-size:x-large;
            }
            h3{
                font-size:large;
            }
            h4{
                font-size:medium;
            }
            h5{
                font-size:small;
            }
            h6{
                font-size:x-small;
            }
        }

    }

    /**
         * name: core/table
     */

    .wp-block-table{
        @extend %content_spacing;
        @extend %fix-flex-container-push;
        table{
            //OW
            width: calc(var(--wp--custom--width--content) - var(--wp--custom--padding--content) * 2);
        }
    }

    .wp-block-column{
        & > .wp-block-table{
            margin:1.5rem auto;
            max-width:100%;
        }
    }

    /**
         * name: core/post-featured-image
     */

    .wp-block-post-featured-image{
        /* OW */
        margin:var(--wp--custom--margin--container);
    }
    .wp-block-post-featured-image{
        @extend %content_spacing;
        text-align:center;
        max-width:fit-content;
        padding:0;
        img{
            height:100%;
            object-fit:cover;
            margin:0 0 0 0;
        }

        &.alignleft{
            text-align:right;
            padding:0;
        }
        &.alignright{
            text-align:left;
            padding:0;
        }
        &.alignwide{
            padding:0;
        }
        &.alignfull{
            @extend %structure_spacing;
            padding:0;
        }
    }

    &.page,
    &.single{

        &.is-fse-light,
        &.is-fse-bg-default{
            .wp-block-post-featured-image{
                background:var(--wp--custom--color--featured-image-bg);
            }
        }
        &.is-fse-dark{
            .wp-block-post-featured-image{
                background:var(--wp--custom--color--dark-featured-image-bg);
            }
        }
        .wp-block-post-featured-image{
            width:100%;
            background:var(--wp--custom--color--featured-image-bg);
            max-width:100%;
        }
    }
    /**
         * name: core/post-excerpt
    */

    .wp-block-post-excerpt__excerpt{
        @extend %line-clamp;
    }

    /**
         * name: core/media-text
     */

    .wp-block-media-text{

        @extend %fix-flex-container-push;
        margin-left:auto;
        &[class*="has-background"]{
            padding:0;
        }
        &:not(.alignleft):not(.alignright){
            padding-right:0;
            padding-left:0;
        }
    }

    /**
         * name: core/pullquote
     */

    .wp-block-pullquote {
        @extend %flex-container;
        @extend %content_spacing;

        text-align:left;
        border-top:var(--wp--custom--border--common);
        border-bottom:var(--wp--custom--border--common);
        &:not(#specificity){
            border-right-width:0 ! important;
            border-left-width:0 ! important;
        }
        blockquote{
            border:none;
            padding:0;
        }
        cite{
            padding-left:var(--wp--custom--padding--content);
            padding-right:var(--wp--custom--padding--content);
        }
    }

    /**
         * name: core/quote
     */

    .wp-block-quote{
        p{
            padding:0;
        }
    }

    /**
         * name: core/separator
     */

    .wp-block-separator{
        position:relative;
        height:3rem;
        border:none;
        &:before{
            position:absolute;
            top:0;
            right:0;
            bottom:0;
            left:0;
            width:50%;
            height:2px;
            margin:auto;
            color:inherit;
            content:'';
            background:transparent;
            border-bottom:1px solid;
        }
        &.is-style-dots{
            height:3rem;
            &:before{
                width:fit-content;
                height:3rem;
                margin:1rem auto;
                font-size:3rem;
                color:inherit;
                content:'\2026';
                background:transparent;
                border:none;
            }
        }

        &.is-style-wide{
            background:transparent !important;
            &:before{
                width:100%;
                color:inherit;
                background:transparent;
            }
        }
    }
    .wp-block-group.is-vertical,
    .wp-block-column{
        & > .wp-block-separator{
            width:auto;
            margin:auto;
            max-width:100%;
            &:not(.is-style-dots):before{
                position: absolute;
                top: 0;
                right: 0;
                bottom: 0;
                left:0;
                width: 100px;
                height: 2px;
                margin: auto;
                color: inherit;
                content: '';
                background: transparent;
                border-bottom: 1px solid;
            }
        }
    }

    /**
         * name: core/cover
     */

    .wp-block-cover__gradient-background,
    .wp-block-cover__background{
        width:100%;
        height:100%;
        margin:0 auto;
    }
    .wp-block-cover__inner-container{
        max-width:100%;
    }
    .wp-block-cover-image .wp-block-cover__inner-container,
    .wp-block-cover .wp-block-cover__inner-container {
        color:initial;
    }
    .wp-block-cover[data-url] .wp-block-cover__inner-container,
    .wp-block-cover img ~ .wp-block-cover__inner-container{
        color:#fff;
    }
    .wp-block-cover-image.has-background-dim:not([class*=-background-color]) ~ .wp-block-cover__inner-container,
        .wp-block-cover-image .has-background-dim:not([class*=-background-color]) ~ .wp-block-cover__inner-container,
        .wp-block-cover.has-background-dim:not([class*=-background-color]) ~ .wp-block-cover__inner-container,
        .wp-block-cover .has-background-dim:not([class*=-background-color]) ~ .wp-block-cover__inner-container {
        //OW
        color:#fff;
    }
    /**
         * name: core/embed
     */

    .wp-block-embed{
        /**
         * OW
        .wp-block-embed {
            margin: 0 0 1em;
            overflow-wrap: break-word;
        }
        */
        margin:var(--wp--custom--margin--block,1.5rem auto);
    }
    .wp-block-group.is-vertical,
    .wp-block-column{
        & > .wp-block-embed{
            .wp-block-embed__wrapper{
                display:flex;
                flex-direction: column;
                width:auto;
            }
        }
    }

    /**
         * name: core/image
     */

    .wp-block-image{
        @extend %content_spacing;
        text-align:center;
        padding:0;
        position:relative;
        .components-resizable-box__container:not(specificity){

            max-width:100%!important;
            max-height:auto!important;
            & ~ figcaption{
                display:block;
            }
        }
        figcaption{
            display:block;
        }
        &.is-style-circle-mask{
            figcaption{
                display:block;
                position: absolute;
                z-index: 10;
                top: 40%;
                left: 0;
                right: 0;
                visibility:hidden;
                color:#fff;
                background:rgba(0,0,0,.3);
                padding:.75rem;
                width:-moz-fit-content;
                width:fit-content;
            }
            &:hover{
                figcaption{
                    visibility:visible;
                }
            }
        }

        .alignleft,
        &.alignleft{
            display:block;
            text-align:right;
            @media screen and ( max-width : 640px ) {
                text-align:center;
                margin-left:auto;
                margin-right:auto;
                padding:0;

            }
            &.is-style-circle-mask{
                shape-outside: circle();
                text-align:center;
                @media screen and ( max-width : 640px ) {
                    shape-outside: none;
                }
            }
        }
        .alignright,
        &.alignright{
            display:block;
            text-align:left;

            @media screen and ( max-width : 640px ) {
                text-align:center;
                margin-left:auto;
                margin-right:auto;
                padding:0;

            }
            &.is-style-circle-mask{
                shape-outside: circle();
                text-align:center;
                @media screen and ( max-width : 640px ) {
                    shape-outside: none;
                }
            }
        }

        &.alignfull{
            @extend %structure_spacing;

        }

    }
    .wp-block-group.is-vertical,
    .wp-block-column{
        & > .wp-block-image{
            display:flex;
            flex-direction: column;
        }
    }


    /**
         * name: core/navigation
     */

    .wp-block-navigation{
        @extend %content_spacing;
        padding:0;
    }
    .wp-block-navigation__responsive-dialog,
    .wp-block-navigation__container,
    .wp-block-navigation__responsive-close{
        width:100%;
        height:100%;
        margin:0 auto;
        overflow:visible;
    }
    .wp-block-navigation.fse-primary{
        margin:0 auto;
        overflow:visible;
        .wp-block-navigation__responsive-container-content{
            padding:0;
            width:100%;
            margin:0 auto;
        }
    }
    .wp-block-navigation__responsive-container{
        @extend %structure_spacing;
        overflow:visible;
    }

    .wp-block-navigation__responsive-container-content{
        @extend %content_spacing;
        margin:0 auto;

        overflow:visible;
    }
    .wp-block-navigation-item a{
        @extend %content_spacing;
        margin:0 auto;
        padding:.75rem;
    }

    /**
         * name: core/post-content
     */

    .wp-block-post-content{
        overflow:hidden;
    }

    /**
         * name: core/post-navigation-link
     */

    .wp-block-post-navigation{
        &.wp-block-group{
            @extend %flex-container;
        }
        .wp-block-post-navigation-link{
            flex: 1 1 auto;
            padding:var(--wp--custom--padding--content,.75rem);
            text-align:center;
            border:var(--wp--custom--border--common,1px solid #ccc);
            &:empty{
                display:none;
            }
        }
    }

    /**
     *
     */

    article.loop-item{
        position:relative;
        &:after{
            content:'';
            margin:0 auto 0;
            width:696px;
            max-width:100%;
            display:block;
            border-top:1px solid #ccc;
            margin:1.5rem auto;

        }
    }

    /**
     *
     */

    .wp-block-query .is-flex-container{
        min-height:var(--wp--custom--max-height--harf);
        .loop-item:after{
            border:none;
            display:none;
        }
        li{
            border-top:1px solid #ccc;
            .wp-block-post-title{
                @extend %narrow-space-title;
            }
            .wp-block-post-excerpt p{
                @extend %line-clamp
            }
            .wp-block-post-excerpt__excerpt{
                margin:0 auto;
            }
        }
    }

    /**
         * name: core/query-pagination
     */

    .wp-block-query-pagination{
        @extend %flex-container;
        margin:var(--wp--custom--margin--block, 1.5rem auto);
        a{
            flex:1 1 auto;
            padding:var(--wp--custom--padding--content,.75rem);
            text-align:center;
            border:var(--wp--custom--border--common,1px solid #ccc);
            text-decoration:none;
        }
    }

    /**
         * name: core/query-title
     */

    .wp-block-query-title{
        position:relative;
        visibility:hidden;
        span{
            position:absolute;
            left:var(--wp--custom--padding--content);
            visibility:visible;

        }
    }

    /**
         * name: core/query
     */

    .wp-block-query{
        @extend %structure_spacing;
        padding-top:min(6vw,48px);
        li{
            width:100%;
            /* OW */
            margin:var(--wp--custom--margin--container);
        }
        ul.wp-block-post-template{
            padding-left:0;
        }
        .wp-block-post-template li{
            @extend %structure_spacing;
            overflow:hidden;
        }
        .is-flex-container li{
            margin:0;
        }
        [class|="wp-container"]{
            li{
                width:100%;
                /* OW */
                margin:var(--wp--custom--margin--container);
            }
        }

    }

    /**
         * name: core/template
     */

    /* query-post.html */
    .wp-block-query{

        ul.alignfull:not(.is-flex-container),
            ul.alignwide:not(.is-flex-container){

            .loop-item{
                .wp-block-post-excerpt{
                    margin-left:0;
                    padding:0;
                }
            }
        }
    }

    /**
         * name: core/template-part
     */

    .wp-block-template-part{
        @extend %structure_spacing;
    }

    /**
         * name: core/term-description
     */

    .wp-block-term-description{
        @extend %block;
        @extend %structure_spacing;
        p{
            @extend %center-short-sentences;
            @extend %post_meta_font;
            @extend %content_spacing;
        }
    }

    /**
         * name: core/buttons
     */


    .wp-block-buttons{
        @extend %flex-container;

        .wp-block-button:not(.has-custom-width){

            @extend %center-short-sentences;
        }
        .wp-block-button{
            padding:0;
            .wp-block-button__link{
                box-sizing:border-box;
                width:100%;
                font-size:1rem;
                padding:.75rem;
                text-align:center;
                border-radius:5px;
                text-decoration: none;
                &:empty{
                    display:none;
                }
            }
            &.wp-block-button__width-25{
                flex-basis:calc( 25% - var(--wp--custom--margin--gap, 3px) * 4);
                width:calc( 25% - var(--wp--custom--margin--gap, 3px) * 4);
            }
            &.wp-block-button__width-50{
                flex-basis:calc(50% - var(--wp--custom--margin--gap, 3px) * 4);
                width:calc(50% - var(--wp--custom--margin--gap, 3px) * 4);
            }
            &.wp-block-button__width-75{
                flex-basis:calc( 75% - var(--wp--custom--margin--gap, 3px) * 4);
                width:calc( 75% - var(--wp--custom--margin--gap, 3px) * 4);
            }
            &.wp-block-button__width-100{
                flex-basis:calc( 100% - var(--wp--custom--margin--gap, 3px) * 4 );
                width:calc( 100% - var(--wp--custom--margin--gap, 3px) * 4 );
            }
        }

        &.is-vertical:not(.specificity){
            width:-moz-fit-content;
            width:fit-content;
            .wp-block-button{
                &.wp-block-button__width-25{
                    flex-basis:calc( 25% - var(--wp--custom--margin--gap, 3px) * 4);
                    width:calc( 25% - var(--wp--custom--margin--gap, 3px) * 4);
                }
                &.wp-block-button__width-50{
                    flex-basis:calc(50% - var(--wp--custom--margin--gap, 3px) * 4);
                    width:calc(50% - var(--wp--custom--margin--gap, 3px) * 4);
                }
                &.wp-block-button__width-75{
                    flex-basis:calc( 75% - var(--wp--custom--margin--gap, 3px) * 4);
                    width:calc( 75% - var(--wp--custom--margin--gap, 3px) * 4);
                }
                &.wp-block-button__width-100{
                    flex-basis:calc( 100% - var(--wp--custom--margin--gap, 3px) * 4 );
                    width:calc( 100% - var(--wp--custom--margin--gap, 3px) * 4 );
                }
                .wp-block-button__link{
                    min-width:146px;
                }

            }
            &.alignleft{
                margin-left:var(--wp--custom--padding--content,.75rem);
                margin-right:var(--wp--custom--padding--content, .75rem);
            }
            &.alignright{
                margin-right:var(--wp--custom--padding--content,.75rem);
                margin-left:var(--wp--custom--padding--content, .75rem);
            }
        }
        &.is-style-has-shadow{
            .wp-block-button{
                .wp-block-button__link{
                    filter: var(--thm_filter_shadow, drop-shadow(3px 3px 3px rgba(0,0,0,0.3)));
                }
                .wp-block-button__link:active{
                    filter:none;
                }
            }
        }
    }

    /**
         * name: core/file
     */

    .wp-block-file{
        @extend %flex-container;
        a{
            @extend %center-short-sentences;
            padding:.75rem;
            text-align:center;
            border-radius:5px;
            box-sizing:border-box;

            &:empty{
                display:none;
            }
            &.wp-block-file__button{
                text-decoration: none;
            }
        }
    }
    /**
         * name: core/post-comments-form
     */

    .form-submit [type="submit"]{
        box-sizing:border-box;
        width:auto;
        font-size:1rem;
        padding:.75rem;
        text-align:center;
        border-radius:5px;
        text-decoration: none;
    }

    /*
         * Theme align
     * must last for cascading
     */

    .alignwide{
        @extend %alignwide;
        margin:var(--wp--custom--margin--block);
        &:where(ul,ol,menu,blockquote){

            @extend %list-quote-padding;
            &.is-style-list-style-inline{
                padding-left:var(--wp--custom--padding--content,.75rem);

            }
        }
    }

    .alignfull{
        @extend %has-sidebar-alignfull;
        @extend %structure_spacing;
        &:where(ul,ol,menu,blockquote){
            @extend %list-quote-padding;
            &.is-style-list-style-inline{
                padding-left:var(--wp--custom--padding--content,.75rem);
            }
        }

        &:is(h1,h2,h3,h4,h5,h6,p){
            @extend %content_spacing;

        }
    }

    .alignleft{
        @extend %alignleft;
        &:where(ul,ol,menu,blockquote){
            @extend %list-quote-padding;
            &.is-style-list-style-inline{
                padding-left:var(--wp--custom--padding--content,.75rem);
            }
        }
    }
    .alignright{
        @extend %alignright;
        &:where(ul,ol,menu,blockquote){
            @extend %list-quote-padding;
            &.is-style-list-style-inline{
                padding-left:var(--wp--custom--padding--content,.75rem);
            }
        }
    }
    .aligncenter{
        @extend %aligncenter;
    }
}

/**
         * Minimal kindness for posts written in old editors
 */
.no-block{
    .paginate-comment-links{
        @extend %block;
        @extend %content_spacing;
    }
    article.post{
        @extend %block;
    }
    .entry-content{
        @extend %structure_spacing;
        @extend %block;
    }
    img{
        display:block;
        max-width: 100%;
        height: auto;
    }

}


/**
         * Shortcoce Gallery
 */

div.gallery{
    @extend %flex-container;
    max-width:100%;

    @for $i from 1 through 10 {
        &.gallery-columns-#{$i}{
            .gallery-item{
                width: calc( 100% / #{$i} - var(--wp--custom--margin--gap, 3px) );
                margin:0;
                .gallery-icon{
                    margin:0;
                    img{
                        max-width:100%;
                        height:auto;
                    }
                }
                .wp-caption-text{
                    padding:0;
                    margin:0;
                    .alignleft,
                    .alignright{
                        float:none;
                        width:auto;
                        max-width:100%;
                    }
                }
            }

            &.gallery-size-thumbnail{
                margin:0;
                .gallery-item{
                    max-width:150px;
                }
                figcaption{
                    max-width:150px;
                    padding:0;
                    margin:0;
                }
            }
        }
    }
}
.blocks-gallery-image{
    margin:0 !important;
}
/**
         * header
 */

.fse-header-content{
    @extend %block;
}
.emulsion{

    &[class*="post-template-wp-custom-template"] .wp-site-blocks > header,
    .fse-header{
        @extend %structure_spacing;
        overflow:visible;
        width:100%;
        min-height: var(--wp--custom--min-height--eighth, 12.5vh);
        max-width:100%;
        margin:var(--wp--custom--margin--container, 0 auto);

        .wp-block-cover{
            @extend %structure_spacing;
            .wp-block-site-title{
                font-size:clamp(var(--wp--preset--font-size--extra-large), calc( 100vw / 72 * 3), var(--wp--preset--font-size--huge));
                @extend %content_spacing;
            }
        }

        .wp-block-site-title{
            margin-top:1.5rem;
            margin-bottom:0;
            font-size:var(--wp--preset--font-size--medium, 20px);
        }
        .wp-block-site-tagline{
            margin-top:0;
            margin-bottom:1.5rem;
            font-size:var(--wp--preset--font-size--medium, 20px);
        }
        .wp-block-navigation{
            margin-top:1.5rem;
            margin-bottom:1.5rem;
        }

        .fse-header-content{
            @extend %structure_spacing;
            .wp-block-site-title{
                margin-left:0;
                margin-right:0;
            }
            .wp-block-site-tagline{
                margin-left:0;
                margin-right:0;
            }
        }
    }
    &[class*="post-template-wp-custom-template"] .wp-site-blocks > header + .wp-block-group header,
    .post-header{
        min-height:var(--wp--custom--min-height--quarter);
    }
}
/**
         * footer
 */
.emulsion{
    &[class*="post-template-wp-custom-template"] .wp-site-blocks > footer,
    .fse-footer{
        @extend %centered_spacing;
        width:100%;
        min-height: var(--wp--custom--min-height--eighth, 12.5vh);
        margin:var(--wp--custom--margin--container, 0 auto);

        .wp-block-site-title,
        .wp-block-site-tagline{
            margin-top:0;
            margin-bottom:0;
            font-size:var(--wp--preset--font-size--medium, 20px);
        }
    }
}
/**
         * Relate posts
 */
.emulsion .wrap-emulsion_relate_posts{
    padding-top:.1rem;
    padding-bottom:.75rem;
    .relate-posts-title{
        padding-right:var(--wp--custom--padding--content);
        padding-left:var(--wp--custom--padding--content);
        margin-right:auto;
        margin-left:auto;
    }
    .relate-posts{
        padding-right:var(--wp--custom--padding--content);
        padding-left:var(--wp--custom--padding--content);
        margin-right:auto;
        margin-left:auto;
        li{
            display:flex;
            height:48px;
            margin-bottom:6px;
            vertical-align:middle;
            list-style:none;
            &:not(#specificity):before{
                display:none;
            }
            img{
                width:auto;
                max-width:48px;
                height:48px;
                padding-right:0;
                padding-left:0;
                margin-right:0;
                margin-left:0;
                vertical-align:middle;
            }
            .relate-post-no-icon + a,
            img + a{
                display:inline-block;
                max-width:calc( 100% - 48px - 2rem );
                height:100%;
                margin-left:var(--wp--custom--padding--content, .75rem);
                overflow: hidden;
                font-weight:700;
                line-height:48px;
                text-overflow: ellipsis;
                white-space: nowrap;
                vertical-align:middle;
            }
            .relate-post-no-icon{
                display:inline-block;
                width:46px;
                height:46px;
                padding:0;
                font-size:24px;
                line-height:46px;
                color:var(--wp--preset--color--white);

                text-align:center;
                text-transform: uppercase;
                vertical-align:middle;
                background:var(--wp--preset--color--black);
                border:var(--wp--custom--border--common);

            }
        }
    }
    &:empty{
        display:none;
    }
}
/**
         * Sticky Post
 */
.sticky{
    .wp-block-post-title{

        &:before{
            position:relative;
            display:inline-block;
            font-size:1.15rem;
            color:currentColor;
            vertical-align:top;
            content:'\1f4cc';
        }
    }
}
.is-flex-container{
    .sticky{
        .wp-block-post-title{

            &:before{
                position:absolute;
                bottom:0;
                right:0;
                display:inline-block;
                font-size:1.15rem;
                color:currentColor;
                vertical-align:top;
                content:'\1f4cc';
            }
        }
    }
}
/**
         * VARIATION
 */
.wp-block-group.emulsion-panel{
    position:relative;
    width:calc(var(--thm_content_width, 720px) - var(--wp--custom--padding--content, .75rem) * 2);
    overflow:hidden;
    border:var(--wp--custom--border--common);
    @extend %structure_spacing;

    .emulsion-panel-title{
        width:100%;
        margin:0 auto;
        border-bottom:var(--wp--custom--border--common);
    }
    .emulsion-panel-content{
        @extend %structure_spacing;

    }
}
.emulsion:not(.block-editor-page){
    .dropdown-on-hover{
        position:relative;
        width:calc(var(--thm_content_width, 720px) - var(--wp--custom--padding--content, .75rem) * 2);
        padding:0;
        margin:1.5rem auto;
        border:var(--wp--custom--border--common);

        &:focus-within,
            &:active,
            &:focus,
            &:hover{
            position:static;
            .dropdown-on-hover-content{
                position:relative;
                visibility:visible;
                border:var(--wp--custom--border--common);
            }
            .dropdown-on-hover-title{
                margin:0 auto;
                margin-bottom:0;
                border:var(--wp--custom--border--common);
            }
        }
        .dropdown-on-hover-content{
            position:absolute;
            box-sizing:border-box;
            //transition:visibility 1s;
            display:block;
            visibility:hidden;
            border-top:none;
            @extend %structure_spacing;
        }
        .dropdown-on-hover-title{
            position:relative;
            box-sizing:border-box;
            display:block;
            padding:.5em var(--wp--custom--padding--content, .75rem);
            margin:0 auto;
            font-weight:700;
            visibility:visible;
            &:hover{
                cursor:pointer;
            }

            &:after{
                display: inline-block;
                width: 13px;
                height: 13px;
                margin: 0 5px;
                margin-left:.5rem;
                vertical-align: middle;
                content: " ";
                background: url(../images/svg/arrow-down.svg);
                filter: none;
                background-repeat: no-repeat;
                background-size: contain;
                background-size: contain;
                transition: all 1s ease-in-out;
            }
        }
    }
}
.emulsion:not(.block-editor-page){
    .dropdown-on-click{
        position:relative;
        width:calc(var(--thm_content_width, 720px) - var(--wp--custom--padding--content, .75rem) * 2);
        border:var(--wp--custom--border--common);
        outline:none;
        overflow:visible;
        @extend %structure_spacing;

        &:focus-within,
            &:active,
            &:focus{
            position:static;
            .dropdown-on-click-content{
                position:relative;
                margin:0;
                visibility:visible;
                border:var(--wp--custom--border--common);
            }
            .dropdown-on-click-title{
                margin:0;
                border:var(--wp--custom--border--common);
                border-bottom:none;

            }
        }
        .dropdown-on-click-content{
            position:absolute;
            box-sizing:border-box;
            //transition:visibility 1s;
            display:block;
            visibility:hidden;
            border-top:none;
        }
        .dropdown-on-click-title{
            position:relative;
            box-sizing:border-box;
            display:block;
            margin:0;
            font-weight:700;
            visibility:visible;
            &:hover{
                cursor:pointer;
            }

            &:after{
                display: inline-block;
                width: 13px;
                height: 13px;
                margin: 0 5px;
                margin-left:.5rem;
                vertical-align: middle;
                content: " ";
                background: url(../images/svg/arrow-down.svg);
                filter: none;
                background-repeat: no-repeat;
                background-size: contain;
                background-size: contain;
                transition: all 1s ease-in-out;
            }
        }

    }
}
.emulsion:not(.block-editor-page){
    &:not(.agent-mobile-phone){
        .modal-open-link + .modal,
        [id|="modal-group"].is-opened,
        [id|="modal-group"].modal{
            visibility:hidden;

            .emulsion-modal-title{
                visibility:visible;
            }
            .modal-close-link{
                visibility:hidden;
            }
        }
        .modal-open-link a{
            pointer-events:none;
        }

        .modal-open-link:focus-within + .modal,
            [id|="modal-group"].is-opened,
            [id|="modal-group"]:target.modal{

            position:fixed;
            top:100px;
            right:0;
            bottom:auto;
            left:0;
            z-index:10000;
            max-height:var(--wp--custom--min-height--3-quarters, 75vh);
            overflow-y:auto;
            visibility:visible;
            filter: drop-shadow(3px 3px 3px rgba(0,0,0,0.3));

            &.alignwide{
                position:fixed;
            }
            &.alignfull{
                position:fixed;
            }
            .modal-close-link{
                visibility:visible;
            }
        }
    }
    &.agent-mobile-phone{
        .modal-open-link{
            display:none;
        }
        .wp-block-group.modal{
            position:static;
            overflow:visible;
            visibility:visible;

            .emulsion-modal-title{
                display:none;
            }
        }

    }
    .wp-block-group.modal{
        position:absolute;
        left:-9999px;
        padding:0;
        overflow:hidden;
        color:#333;
        visibility:hidden;

        background:#fff;
        border:1px solid;


        .emulsion-modal-title{
            width:100%;
            padding:.5rem;
            margin:0 auto;
            border:none;
            border-color:transparent;
            .modal-close-link{
                padding-left:24px;
                text-decoration:none;
                &:hover{
                    cursor:pointer;
                }
            }
        }
        .emulsion-modal-content{
            width:100%;
            margin-top:0;


        }
    }
}

.interface-interface-skeleton__content [data-block].is-style-sticky,
.is-style-sticky{
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    align-self: flex-start;
    @media screen and (max-width: 600px) {
        position:static;
    }
}
.on-scroll{
    .is-style-sticky{
        top: 3rem;
        @media screen and (max-width: 600px) {
            position:static;
        }

    }
}

.is-style-list-style-none{
    list-style:none;
    ul,ol{
        list-style:none;
    }
}
ul .is-style-list-style-inline:not(.specificity),
ol .is-style-list-style-inline:not(.specificity){
    max-width:100%;
}
.is-style-list-style-inline{
    @extend %flex-container;
    @extend %content_spacing;
    align-items: center;
    justify-content: center;

    li{
        @extend %center-short-sentences;
        z-index:2;
        display:inline-block;
        flex:1 1 auto;
        padding:var(--wp--custom--padding--content, .75rem);
        text-align:center;
        list-style:none;
        border:var(--wp--custom--border--common);
        a:any-link{
            text-decoration:none;
        }
    }

}
.wp-block-column{
    .is-style-list-style-inline{
        margin:1.5rem auto;
        max-width:100%;
        overflow-x:auto;
    }
}
.is-style-shrink{

    &.alignleft{

        width:calc( var(--wp--custom--width--content, 720px ) / 2 - var(--wp--custom--padding--content, .75rem) * 2);
        margin-left: calc((100% - var(--wp--custom--width--content, 720px )) / 2 + var(--wp--custom--padding--content, .75rem));

        &.size-thumbnail{
            width:150px;
            padding:0;
        }
        figure{
            width:100%;
        }
        @media screen and (max-width: 720px) {
            width:auto;
            margin-right:auto;
            margin-left:auto;
        }

    }

    &.alignright{

        width:calc( var(--wp--custom--width--content, 720px ) / 2 - var(--wp--custom--padding--content, .75rem) * 2);
        margin-right: calc((100% - var(--wp--custom--width--content, 720px )) / 2 + var(--wp--custom--padding--content, .75rem));

        &.size-thumbnail{
            width:150px;
            padding:0;
        }
        figure{
            width:100%;
        }
        @media screen and (max-width: 720px) {
            width:auto;
            margin-right:auto;
            margin-left:auto;
        }

    }
}
.is-style-indent-5rem{
    padding-left:calc(1rem * 5 + var(--wp--custom--padding--content, .75rem) );

    @media screen and ( max-width : 720px ) {
        padding-left:var(--wp--custom--padding--content, .75rem);
    }
}
.is-style-indent-10rem{
    padding-left:calc(1rem * 10 + var(--wp--custom--padding--content, .75rem));

    @media screen and ( max-width : 720px ) {
        padding-left:var(--wp--custom--padding--content, .75rem);
    }
}
.is-style-indent-15rem{
    padding-left:calc(1rem * 15 + var(--wp--custom--padding--content, .75rem));

    @media screen and ( max-width : 720px ) {
        padding-left:var(--wp--custom--padding--content, .75rem);
    }
}
.is-style-indent-20rem{
    padding-left:calc(1rem * 20 + var(--wp--custom--padding--content, .75rem));

    @media screen and ( max-width : 720px ) {
        padding-left:var(--wp--custom--padding--content, .75rem);
    }
}
/**
         * name: core/media-text
 */
.wp-block-media-text{
    display: grid;
    grid-template-areas: "media-text-media media-text-content";
    grid-template-rows: auto;
    grid-template-rows: 2;
    grid-template-columns: 50% 50%;
    align-items: center;

    & >.block-editor-block-list__layout > .block-editor-block-list__block{
        max-width:100%;
    }

    .wp-block-media-text__media{
        position:relative;
        width:100%;
        height:100%;
        overflow:hidden;
        max-width:100%;
        &[style^="background-image"]{
            img{
                display:block;
                height:100%;
                visibility:hidden;
            }
            & > a{
                display:block;
                height:100%;
            }
        }
        & > a{
            position:absolute;
            top:50%;
            left:50%;
            width:100%;
            transform: translate(-50%, -50%);
        }
        & > img{
            position:absolute;
            top:50%;
            left:50%;
            width:100%;
            transform: translate(-50%, -50%);
        }
        &:before{
            z-index:-1;
            display:block;
            height:0;
            padding-bottom:56.25%;
            content:'';
        }
    }
    &.is-vertically-aligned-top{
        figure:not([style^="background-image"]){
            & > img,
            & > a{
                top: 0;
                left: 50%;
                transform: translate(-50%, 0);
            }
        }

    }
    &.is-vertically-aligned-bottom{
        figure:not([style^="background-image"]){
            & > img,
            & > a{
                top:auto;
                bottom: 0;
                left: 0;
                transform: none;
            }
        }
    }
    .wp-block-media-text__content{
        box-sizing:border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-right:0;
        padding-left:0;
        overflow:hidden;
        p{
            margin-bottom:0;
        }

        p:last-child{
            margin-bottom: calc(1rem * var(--wp--custom--line-height--common));
        }
        .wp-block-table{
            padding-right:var(--wp--custom--padding--content);
            padding-left:var(--wp--custom--padding--content);
            overflow-x:auto;
            overflow-y:hidden;
        }
        ul,ol{
            padding-left:min(15%, 1.5rem);

            @media screen and ( max-width : 768px ) {
                padding-left: clamp( 2rem, calc( 100vw / 72 ), calc(40px + var(--wp--custom--padding--content, .75rem)));
            }

            li{
                padding-left:0;
            }
        }
        h1{
            font-size:xx-large;
        }
        h2{
            font-size:x-large;
        }
        h3{
            font-size:large;
        }
        h4{
            font-size:medium;
        }
        h5{
            font-size:small;
        }
        h6{
            font-size:x-small;
        }
    }
    &.has-media-on-the-right {
        grid-template-areas: "media-text-content media-text-media";
        grid-template-columns: 50% 50%;
    }
}
/**
 *
 */
.single,.page{
    .wp-block-query{
        ul:not(.is-flex-container){
            /**
             * alignwide or alignfull wp-block-post-template start
             */
            .loop-item{
                width:100%;
                max-width:100%;
            }
            //.wp-block-post-excerpt__excerpt,
            //.wp-block-post-excerpt,
            .post-header-content{
                width:100%;
                max-width:100%;
            }
            .loop-item:after{
                width:100%;
            }

            /* alignwide or alignfull wp-block-post-template end */
        }
    }
    .wp-block-query{
        ul.is-flex-container{
            .has-post-thumbnail{
                .loop-item{
                    .wp-block-post-excerpt{
                        display:none;
                    }
                }
            }
        }
    }
}
.summary{
    //body.summary: no single page  ! is_page() || ! is_attachment() || ! is_single() || has_block( 'post-excerpt' )
    .wp-block-query{
        ul:not(.is-flex-container){

            .post-header-content,
            .loop-item{
                width:100%;
                @extend %structure_spacing;
            }
            .loop-item:after{
                width:100%;
                margin:1.5rem auto;
            }
            .has-post-thumbnail{
                .loop-item{

                    display:flex;
                    flex-wrap:wrap;
                    flex-direction:row-reverse;

                    figure,
                    header{
                        flex:1 1 50%;

                    }
                    .post-header-content{
                        height:100%;
                        @extend %centered_spacing;
                    }
                    .wp-block-post-excerpt{
                        display:none;
                    }
                    &:after{
                        flex-basis:100%;
                        margin:1.5rem auto;
                    }
                    @media screen and ( max-width : 640px ) {
                        display:block;
                        width:100%;
                        max-width:100%;
                        figure,
                        header{
                            display:block;
                            width:100%;
                            max-width:100%;

                        }

                    }
                }

            }
        }
    }
}



.wp-block-navigation{

    li.has-child:not(.open-on-click):hover > .wp-block-navigation__submenu-container{
        a{
            z-index:30;
        }

        &:after {
            content:'';
            display:block;
            position:absolute;
            width:100%;
            height:100%;
            background: inherit;
            color:inherit;
            z-index:10;
        }
    }

}
/**
         * name: core/latest-posts
 */
.wp-block-latest-posts{
    overflow-wrap: break-word;
    &.wp-block-latest-posts__list{
        list-style:decimal;
        //OW
        padding-left: clamp(2rem, calc(100vw / 36), calc(40px + var(--wp--custom--padding--content,.75rem)));
    }
    .wp-block-latest-posts__post-title{
        @extend %narrow-space-title;
    }
    &.is-grid{
        @for $i from 1 through 5 {
            &.columns-#{$i}{
                li{
                    width: calc( 99.9% / #{$i} - var(--wp--custom--margin--gap, 3px));
                    box-sizing:border-box;
                    @media screen and ( max-width : 640px ) {
                        width:100%;
                    }
                }
            }
        }
        gap:var(--wp--custom--margin--gap, 3px);
        padding: var(--wp--custom--padding--content,.75rem);
        list-style:none;
        li{
            margin:0;
        }
    }
    .wp-block-latest-posts__post-excerpt{
        @extend %line-clamp
    }
}

/**
         * name: core/list
 */

.block-editor-block-list__layout{
    // only editor
    &.wp-block-list{
        li{
            margin:0;
        }
    }
    &.is-style-list-style-inline{
        li{
            width:-moz-fit-content;
            width:fit-content;

        }
    }
}

/**
         * name: core/verse
 */

pre.wp-block-verse{
    //OW
    overflow:visible;
}

/**
         * name: core/social-links
 */
.wp-block-social-links{
    .wp-block-social-link{
        width:-moz-fit-content;
        width:fit-content;
        margin:var(--wp--custom--margin--gap);
    }
}
/**
         * name: core/post-comments
 */
.wp-block-post-comments{
    .comment-meta{
        margin-left:var(--wp--custom--padding--content,.75rem);
    }
}
/**
         * name: core/code
 */
.wp-block-code{
    @extend %flex-container;
    &:not(.has-text-color),
        &:not(.has-background){
        background:var(--wp--custom--color--code-tag-bg);
        color:var(--wp--preset--color--black);
    }
    &.dark-block{
        background:var(--wp--custom--color--dark-code-tag-bg);
        color:var(--wp--preset--color--white);
    }
    code{
        color:inherit;
        padding:var(--wp--custom--padding--content);
        border:none;
    }
    &:not(.alignleft):not(.alignright) code{
        // float:none;
        // clear:both;
    }
}

/**
         * name: core/post-author-biography
 */
.wp-block-post-author-biography{
    padding:var( --wp--custom--padding--content, .75rem );
}
/**
         * name: core/spacer
 */
.emulsion{
    div.wp-block-spacer{
        margin-top:0;
        margin-bottom:0;
        .block-library-spacer__resize-container{
            background:rgba(0,0,0,.1);
        }
    }
}

/**
         * name: core/group stack
 */
//.is-root-container > .wp-block-group.is-layout-flex,
.wp-block-post-content > .wp-block-group.is-flex-container{

    @extend %flex-container;
    align-items: flex-start;
    justify-content: center;
    margin:0 auto;

    &.is-vertical{
        display:block;
    }
    &:not(.is-vertical){
        flex-wrap:nowrap;
        flex-direction: row;
    }
    &.items-justified-left{
        justify-content: flex-start;
    }
    &.items-justified-right{
        justify-content: flex-end;
    }
    &.items-justified-center {
        justify-content: center;
    }

    @for $i from 1 through 6 {

        &:not(.is-vertical) > *:nth-child(1):nth-last-child(#{$i})~ *,
        &:not(.is-vertical) > *:nth-child(1):nth-last-child(#{$i}){
            width:calc( 100% / #{$i} - var(--wp--custom--margin--gap, 3px));
            margin:.75rem 0;
        }

    }
    &.is-style-responsive{

        @media screen and ( max-width : 640px ) {

            display:block;
            @for $i from 1 through 6 {

                &:not(.is-vertical) > *:nth-child(1):nth-last-child(#{$i})~ *,
                &:not(.is-vertical) > *:nth-child(1):nth-last-child(#{$i}){
                    width:100%;

                }

            }

        }
    }

}


/**
        * bbpress
 */

div.wp-editor-container{
    //bbpress
    width:90%;

}
div.bbp-submit-wrapper{
    float:none;
}


.wp-block-newspack-blocks-carousel{
    .post-thumbnail{
        width:auto;
        max-width:100%;
    }
    .entry-title{
        margin:auto;
    }

}

/**
        * WordPress.com Editing Toolkit
 */

@media only screen and (min-width: 640px) {
    ul.wp-block-jetpack-timeline.is-alternating .wp-block-jetpack-timeline-item {
        width: calc(50% - 99px);
    }
}
.wp-block-jetpack-timeline.wp-block-jetpack-timeline{
    padding:revert;
}

.wp-block-jetpack-timeline li.wp-block-jetpack-timeline-item .timeline-item__bubble{
    background:#ccc;
    height:2px;
}
.wp-block-jetpack-timeline li.wp-block-jetpack-timeline-item .timeline-item:after {
    background: #ccc;
    width: 2px;
}

.wp-block-newspack-blocks-homepage-articles{
    [data-posts]{
        article{
            display:flex;
            flex-direction:column;
            .entry-wrapper{
                .entry-title{
                    @extend %line-clamp;
                }
                p{
                    @extend %line-clamp;
                }
            }
        }
    }
}


/**
        * Pallet color
 */

.has-emulsion-black-color{
    color:#000000;
}
.has-emulsion-white-color{
    color:#ffffff;
}
.has-emulsion-muted-color{
    color:#ecf0f1;
}
.has-emulsion-alert-color{
    color:#ED4F32;
}
.has-emulsion-warning-color{
    color:#EDE04D;
}
.has-emulsion-notice-color{
    color:#4bb1cf;
}
.has-emulsion-info-color{
    color:#4bb1cf;
}
.has-emulsion-black-background-color{
    background-color:#000000;
}
.has-emulsion-white-background-color{
    background-color:#ffffff;
}
.has-emulsion-muted-background-color{
    background-color:#ecf0f1;
}
.has-emulsion-alert-background-color{
    background-color:#ED4F32;
}
.has-emulsion-warning-background-color{
    background-color:#EDE04D;
}
.has-emulsion-notice-background-color{
    background-color:#4bb1cf;
}
.has-emulsion-info-background-color{
    background-color:#4bb1cf;
}
.has-emulsion-black-link-color a{
    color:#000000;
}
.has-emulsion-white-link-color a{
    color:#ffffff;
}
.has-emulsion-muted-link-color a{
    color:#ecf0f1;
}
.has-emulsion-alert-link-color a{
    color:#ED4F32;
}
.has-emulsion-warning-link-color a{
    color:#EDE04D;
}
.has-emulsion-notice-link-color a{
    color:#4bb1cf;
}
.has-emulsion-info-link-color a{
    color:#4bb1cf;
}


[class*="post-template-wp-custom-template"] .comment-wrapper,
[class*="post-template-wp-custom-template"] .fse-header,
[class*="post-template-wp-custom-template"] .fse-footer,
[class*="post-template-wp-custom-template"] .post-header,
[class*="post-template-wp-custom-template"] .post-footer{
    @extend %structure_spacing;
    width:100%;
}
[class*="post-template-wp-custom-template"] .wp-block-post-navigation{
    @extend %content_spacing;
}
