#site-header {
    position: fixed;
    z-index: 999;
}

#site-header-inner {
    position: relative;
    filter: drop-shadow(0px 0px 1px black);
}

#search-modal {
    border-radius: 10px;
}

main,
footer {
    transition: filter 0.2s ease;
}

@media screen and (min-width: 992px) {
    #site-header.active.search-open ~ main,
    #site-header.active.search-open ~ footer {
        filter: blur(5px);
    }
}

#site-header.active.search-open #search-modal {
    margin-top: var(--one-spacer);
    height: 60px;
}

#site-header #header-left > * {
    transition: all 0.2s ease;
}
#site-header.active.search-open #header-left > * {
    opacity: 0.5;
}

#site-header.scrolled:not(.active)::after {
    content: attr(data-page);
    position: absolute;
    display: flex;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 500;
}

/* Header logo animation/transformation */
#site-header #real-ml-logo-header {
    /* transition: all 0.2s ease; */
    transition: all 0.2s ease-out 0.2s;
}
#site-header #real-ml-logo-header * {
    /* transition: all 0.2s ease 0.2s; */
    transition: all 0.2s ease-out;
}
#site-header.scrolled #real-ml-logo-header {
    height: 50px;
    width: auto;
}
#site-header.scrolled #real-e-top,
#site-header.scrolled #real-e-bottom,
#site-header.scrolled #real-a,
#site-header.scrolled #real-l,
#site-header.scrolled #real-kite,
#site-header.scrolled #ml-l {
    opacity: 0;
}

#site-header .custom-logo {
    height: 5rem;
    width: auto;
}

#site-header .menu-item {
    white-space: nowrap;
}
@media screen and (max-width: 992px) {
    #site-header .menu-item {
        font-size: 1.5rem;
    }
}

@media screen and (min-width: 992px) {
    #site-header .menu-item.current-menu-item {
        position: relative;
    }
    #site-header .menu-item.current-menu-item::before {
        content: '';
        position: absolute;
        width: 0.65rem;
        height: 0.65rem;
        background-color: var(--wp--preset--color--midnight-black);
        transform: rotate(45deg);
        border-radius: 2px;
        top: 5px
    }
}

#logo-wrapper {
    height: 80px;
    width: auto;
}

#logo-wrapper svg {
    height: 100%;
    width: auto;
}

#header-right {
    width: 80px;
    min-width: 80px;
}
@media screen and (max-width: 991px) {
    #header-right {
        width: 60px;
        min-width: 60px;
    }
}

#header-right div {
    position: relative;
    background: var(--wp--preset--color--fog-white);
    border-radius: 0 10px 10px 0;
}
#header-right div::before {
    content: "";
    position: absolute;
    height: 5px;
    width: 10px;
    top: -5px;
    left: 0px;
    border-radius: 0 0 0 5px;
    -moz-border-radius: 0 0 0 5px;
    -webkit-border-radius: 0 0 0 5px;
    -webkit-box-shadow: -5px 0 0 0 var(--wp--preset--color--fog-white);;
    box-shadow: -5px 0 0 0 var(--wp--preset--color--fog-white);;
}
#header-left {
    background: var(--wp--preset--color--fog-white);
    border-radius: 10px 10px 0 10px;
    transition: all 0.2s ease;
}
@media screen and (max-width: 991px) {
    #header-left {
        border-radius: 10px 10px 0 10px;
    }
    #site-header.active #header-left {
        height: calc(100dvh - 20px);
    }
    #header-right div {
        border-radius: 0 10px 10px 0;
    }
}

#search {
    position: absolute;
    transform: translateX(50%);
    right: 80px;
    top: 30px;
}

#menu-toggle {
    position: absolute;
    transform: translateX(50%);
    right: 40px;
    top: 20px;
}

@media screen and (min-width: 991px) {
    #site-header #menu-toggle {
        display: none;
    }
}

#site-header .menu-wrapper {
    grid-template-rows: repeat(3, 1fr);
    grid-auto-flow: column;
    grid-column-gap: var(--two-spacer);
}
@media screen and (max-width: 991px) {
    #site-header .menu-wrapper {
        display: flex !important;
        flex-direction: column !important;
    }
}

#site-header .header-description {
    font-size: 1.125rem;
}

@media screen and (max-width: 991px) {
    #site-header .header-description,
    #site-header .header-nav {
        opacity: 1 !important;
        height: auto !important;
    }
}

/* Handle general header size on mobile and add search modal when clicked */

#site-header.active #site-header-inner {
    backdrop-filter: blur(3px);
}

@media screen and (max-width: 991px) {
    #site-header.active.search-open #header-left {
        height: calc(100dvh - 90px);
    }
}

#site-header.active.search-open .extras {
    display: none;
}

/* Search button styles */

#site-header input[type="search"],
#site-header button[type="submit"] {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    -webkit-appearance: none !important;
    font-size: 1.5rem !important;
    padding: 0 !important;
    font-weight: inherit !important;
}
#site-header .mobile-search input[type="search"],
#site-header .mobile-search button[type="submit"] {
    border-bottom: 1px solid currentColor !important;
}