header .menu-item {
    opacity: 0.7;
}

@media screen and (max-width: 1079px) {
    header .menu-item {
        font-size: var(--wp--preset--font-size--x-large);
    }
}

/* ————
For desktop, show menu sub-items without making 'height:0'
while still preventing them from impacting the menu height
——— */

header .menu-item-has-children {
    position: relative;
}

header .menu-item-has-children .sub-menu {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

header .menu-item-has-children .sub-menu .menu-item {
    white-space: nowrap;
}

header .menu-item-has-children:hover {
    text-decoration: underline;
}

header .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    pointer-events: all;
}

#site-header:has(#search-container.active) > div:first-child {
    min-height: 143px; /* set height to match if modal was relative and not absolute */
}

#search-container.active #search-modal {
    opacity: 1;
    pointer-events: all;
}

@media screen and (min-width: 1080px) {
    #search-modal {
        opacity: 0;
        pointer-events: none;
    }
}

#search-input {
    background: none !important;
    outline: none !important;
    padding: 0 !important;
    border: 0 !important;
    -webkit-appearance: none !important;
}

#site-header #menu-items {
    font-family: 'Pressura Extended', sans-serif;
    letter-spacing: -0.3px;
}

/* Mobile search button/function */
#site-header.mobile-search #menu-items {
    display: block !important;
}
#site-header.mobile-search #menu-items nav {
    display: none !important;
}