/* fullsize mega menu */
.wp-block-outermost-mega-menu__menu-container.menu-width-full.menu-justified-center {
    width: 100vw !important;
    position: fixed;
    left: 0 !important;
    top: 0;
    z-index: 1000;
    top: 68px;
    top: var(--header-height);

    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    -webkit-transform: translateY(-1rem);
        -ms-transform: translateY(-1rem);
            transform: translateY(-1rem);
}

body.admin-bar .wp-block-outermost-mega-menu__menu-container.menu-width-full.menu-justified-center {
    top: calc(68px + 32px);
    top: calc(var(--header-height) + 32px);

}

.wp-block-outermost-mega-menu .wp-block-outermost-mega-menu__toggle[aria-expanded=true]~.wp-block-outermost-mega-menu__menu-container {
    -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
            transform: translateY(0);   
}

@media (max-width: 768px) {
    .wp-block-outermost-mega-menu__menu-container.menu-width-full.menu-justified-center {
        top: 0;
        bottom: 0;
    }

    body.admin-bar .wp-block-outermost-mega-menu__menu-container.menu-width-full.menu-justified-center {
        top: 32px;
    }
}


@media (max-width: 768px) {
    .wp-site-blocks > header .wp-block-site-logo {
        max-width: 35vw;
        z-index: 100001;
        position: relative;
    }
    
    
    /* glass effect background on mobile */
    /* single book header */
    header.glasseffect, body.single-post .wp-site-blocks > header {
        position: fixed;
        z-index: 500;
        left: 0;
        right: 0;
        background: #0e1827ab;
        -webkit-backdrop-filter: blur(8px);
                backdrop-filter: blur(8px);
    }

    html.has-modal-open header.glasseffect, html.has-modal-open body.single-post .wp-site-blocks > header {
        -webkit-backdrop-filter: none;
                backdrop-filter: none;
    }
}


/* mainmenu mobile */
@media (max-width: 600px) {

    .mainmenu {
        .wp-block-navigation__responsive-container-content {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-orient: vertical;
            -webkit-box-direction: normal;
                -ms-flex-direction: column;
                    flex-direction: column;
            -webkit-box-align: center !important;
                -ms-flex-align: center !important;
                    align-items: center !important;
            -webkit-box-pack: center !important;
                -ms-flex-pack: center !important;
                    justify-content: center !important;
            min-height: 60vh;
            gap: 3rem;

            > ul {
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-orient: vertical;
                -webkit-box-direction: normal;
                    -ms-flex-direction: column;
                        flex-direction: column;
                -webkit-box-align: center !important;
                    -ms-flex-align: center !important;
                        align-items: center !important;
                -webkit-box-pack: center !important;
                    -ms-flex-pack: center !important;
                        justify-content: center !important;

                > li > :is(a, button) {
                    font-size: var(--wp--preset--font-size--x-large);
                }
            }
        }
    }

}


/* footer */

footer {
    background-color: #213149;
    -webkit-mask-image: url(../images/footer-mask-ks.webp);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: top left;
    -webkit-mask-size: cover;
    mask-image: url(../images/footer-mask-ks.webp);
    mask-repeat: no-repeat;
    mask-position: top left;
    mask-size: cover;
    padding-top: clamp(220px, 25vw, 450px);
}