body:after {
    content: "";
    display: block;
    position: relative;
    pointer-events: none;
    transition: opacity 0.35s ease-out;
    opacity: 0;
    z-index: 10;
}
.nav_is_open:after {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 1;
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.01) 15.38%);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.main-nav-container {
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
    padding-top: 155px;
    padding-bottom: 115px;
    padding-left: 0;
    padding-right: 0;
    z-index: 11;
    height: 100vh;
    height: 100dvh;
    top: 0;
    right: -1200px;
    bottom: 0;
    color: #fff;
    background-color: var(--primary-color);
    width: 100%;
    max-width: 100%;
    opacity: 0;
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0px 0px 30px 0px rgba(65, 30, 111, 0.2);
}

.main-nav-container:before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -163px;
    z-index: -1;
    pointer-events: none;
    width: 447px;
    height: 582px;
    background-image: url(../../images/content/main-nav-bg-img.svg);
    background-size: 100%;
    background-position: center bottom;
    background-repeat: no-repeat;
}
@media screen and (min-width: 768px) {
    .main-nav-container:before {
        width: 594px;
        height: 772px;
    }
}
@media screen and (min-width: 768px) {
    .buffer {
        display: none;
    }
    .main-nav-container {
        padding-top: 200px;
        padding-bottom: 56px;
        padding-left: 0;
        max-width: var(--w4);
        background: #002d2f;
        box-shadow: 0px 0px 160px rgba(0, 0, 0, 0.4);
    }
}
@media screen and (min-width: 1136px) {
    .main-nav-container {
        padding-left: 0;
        right: -100vw;
        /* Dynamic Width in Grid = menu-width + (calculated dynamic distance)  */
        width: 704px;
        max-width: none;
    }
}
.nav_is_open .main-nav-container {
    right: 0;
    opacity: 1;
}

.main-nav-container > .main-nav {
    width: 100%;
    position: relative;
    text-align: center;
    font-family: var(--serif);
    color: var(--accent-color);
    font-size: calc(34 / var(--rootfactor) * 1rem);
    line-height: 1.323529412;
    letter-spacing: 0;
    margin-bottom: 15px;
}
@media screen and (min-width: 1136px) {
    .main-nav-container > .main-nav {
        width: 100%;
        max-width: 704px;
        position: relative;
        font-size: calc(44 / var(--rootfactor) * 1rem);
        line-height: 1.022727273;
    }
}

/* Secondary */

.secondary-nav {
    font-weight: 400;
    font-size: calc(16 / var(--rootfactor) * 1rem);
    line-height: 1;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}
@media screen and (min-width: 1136px) {
    .secondary-nav {
        max-width: 704px;
    }
}
.secondary-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.secondary-nav ul li:after {
    content: "|";
    margin-left: 10px;
    color: var(--accent-color);
}

.nav-break {
    display: block !important;
    flex: 0 0 100%;
}
.nav-break:after,
.secondary-nav ul li:last-child:after {
    display: none !important;
}
