.menu-main-menu-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.menu-main-menu-container ul a {
    text-decoration: none;
    font-weight: 400;
    font-size: 0.875rem;
    text-transform: uppercase;
    display: block;
    padding: 0.5rem 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: transparent;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}
.menu-main-menu-container ul a:hover, .menu-main-menu-container li.open > a, .menu-main-menu-container ul li.current-menu-item > a {
    color: #877320;
    text-decoration-color: #877320;
}
.menu-item-has-children > .arrow {
    display: none;
}
.menu-main-menu-container .sub-menu li.menu-item-has-children:not(.link-clickable) > a {
    cursor: default;
}

/* ---- HAMBURGER TOGGLE ----- */
input#menu-toggle {
    width: 0px;
    height: 0px;
    position: absolute;
    top: 2rem;
    right: 2rem;
    left: unset;
    z-index: -1;
    opacity: 0;
}
.menu-toggle {
    display: block;
    z-index: 10;
    position: relative;
    margin-bottom: 0 !important;
    line-height: 1;
}
.hamburger {
    width: 20px;
    height: 20px;
    display: block;
    position: relative;
    z-index: 99;
    margin: auto;
}
.hamburger > .line {
    width: 20px;
    height: 1.5px;
    background: var(--wp--preset--color--contrast);
    border-radius: 3px;
    display: block;
    position: absolute;
    top: calc(10px - 1px);
    transform: rotate(0deg);
    transition: transform .3s cubic-bezier(.19,1,.22,1), top .3s cubic-bezier(.19,1,.22,1) .6s, opacity .3s cubic-bezier(.19,1,.22,1) .6s, height .3s cubic-bezier(.19,1,.22,1) .3s, width 0s linear .6s;
}
.hamburger > .line1 {
    top: calc(10px - 1px - 6px);
}
.hamburger > .line2 {
    opacity: 1;
}
.hamburger > .line3 {
    top: calc(10px - 1px + 6px);
}
.hamburger > .line4 {
    opacity: 0;
    left: calc(10px - 1px);
    width: 1.5px;
    height: 0px;
}
#menu-toggle:checked + .menu-toggle .hamburger > .line {
    background-color: var(--wp--preset--color--contrast);
    transition: transform .3s cubic-bezier(.19,1,.22,1) .6s, top .3s cubic-bezier(.19,1,.22,1), opacity .3s cubic-bezier(.19,1,.22,1), height .3s cubic-bezier(.19,1,.22,1) .3s, width 0s linear .3s;
}
#menu-toggle:checked + .menu-toggle .hamburger > .line1 {
    top: calc(10px - 1px);
    opacity: 0;
}
#menu-toggle:checked + .menu-toggle .hamburger > .line2 {
    transform: rotate(45deg);
}
#menu-toggle:checked + .menu-toggle .hamburger > .line3 {
    top: calc(10px - 1px);
    opacity: 0;
}
#menu-toggle:checked + .menu-toggle .hamburger > .line4 {
    top: 0;
    opacity: 1;
    height: 20px;
    transform: rotate(45deg);
}
/* ---- Mobile Only ---- */
@media screen and (max-width: 899px) {
    #menu-toggle:checked + .menu-toggle {
        position: relative;
        z-index: 12;
        
    }
    .mobile-menu-panel {
        position: fixed;
        left: 0;
        top: -100vh;
        
        width: 100%;
        padding: 3rem 2rem;
        overflow-y: auto;
        background-color: white;
        opacity: 0;
        z-index: -1;
    }
    #menu-toggle:checked + .menu-toggle + .mobile-menu-panel {
        top: calc(var(--header-height, 75px) + var(--wp-admin--admin-bar--height, 0px));
        opacity: 1;
        z-index: 10;
        bottom: 0;
    }
    .menu-main-menu-container ul {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .menu-main-menu-container > ul {
        gap: 2rem;
    }
    .menu-main-menu-container > ul ul {
        opacity: 0;
        max-height: 0px;
        gap: 1rem;
        overflow: hidden;
        width: 100%;
        padding-left: 20px;
        transition: max-height 0.5s ease, opacity 0.5s ease;
    }
    .menu-main-menu-container li.open > ul {
        opacity: 1;
        max-height: 100vh;
        padding-top: 1rem;
    }
    .menu-item-has-thumbnail img {
        display: none;
    }
    .menu-item-has-children {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .menu-item-has-children > .arrow {
        flex-grow:1;
        text-align: right;
        display: block;
    }
    .menu-item-has-children > .arrow::after {
        content: "";
        color: inherit;
        background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
        width: 10px;
        height: 10px;
        background-position: center right;
        background-size: contain;
        background-repeat: no-repeat;
        display: block;
        margin-left: auto;
        transform:rotate(0deg);
        transition: transform 0.3s ease;
        
    }
    .menu-item-has-children.open > .arrow::after {
        transform: rotate(180deg);
    }
}

/* --- DESKTOP ----- */
@media screen and (min-width: 900px) {
    .menu-toggle {
        display: none;
    }
    .menu-main-menu-container > ul {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
        align-items: center;
    }
    .menu-main-menu-container > ul > li > ul {
        opacity: 0;
        max-height: 0px;
        position: absolute;
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: space-between;
        left:0;
        right:0;
        top: -200%;
        z-index: -1;
        overflow: hidden;
        visibility: hidden;
        padding: 3rem 0;
        transition: max-height 0.5s ease, opacity 0.5s ease;
        background-color: white;
        width: 100%;
        max-width: var(--wp--style--global--content-size);
        margin: auto;
        /* transform: translateX(-50%); */
        
    }
    .menu-main-menu-container > ul > li.narrow-gap > ul {
        gap: 2rem 0.5rem;
    }
    .menu-main-menu-container > ul > li.narrow-gap ul li.menu-item-has-thumbnail {
        flex-grow:1;
    }
    .menu-main-menu-container > ul > li > ul:after {
        content:"";
        position: absolute;
        background: white;
        left: calc((100vw - var(--wp--style--global--content-size)) / 2* -1);
        right: 0;
        height: 100%;
        z-index: -1;
        width: 100vw;
        top: 0;
        border-bottom: 1px solid var(--wp--preset--color--default-border);
    }
    .menu-main-menu-container > ul > li.open > ul {
        max-height: 999px;
        opacity: 1;
        overflow: visible;
        visibility: visible;
        z-index: 10;
        top: calc(100% + 1px);
        transition: max-height 0.5s ease, opacity 0.5s ease;
    }
    .menu-main-menu-container > ul > li > ul li.menu-item-has-children > a {
        font-weight: 500;
        text-decoration: none;
        &:hover {
            color: inherit;
        }
    }
    .menu-main-menu-container ul li.menu-item-has-thumbnail {
        flex-basis: 25%;
    }
    .menu-main-menu-container ul li.menu-item-has-thumbnail > a {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    .menu-main-menu-container ul li.menu-item-has-thumbnail > a img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        object-position: center;
        overflow: hidden;
    }
    .show-on-mobile {
        display: none;
    }
}
@media screen and (min-width:900px) and (max-width: 1728px) {
    .menu-main-menu-container > ul > li > ul {
        padding: 3rem 2rem;
    }
}