.editor-styles-wrapper .hne-exhibit-header {
    display: none;
}

#exhibition-breadcrumb {
    margin-block-start: 0;
    ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        li {
            font-size: var(--wp--preset--font-size--nav-button-text);
            font-weight: 700;
            display: flex;
            text-transform: uppercase;
            line-height: 17px;
            letter-spacing: 0.78px;
            &:after {
                content: '/';
                margin-left: 10px;
                margin-right: 10px;
            }
            &:last-of-type {
                &:after {
                    content: none;
                }
            }
            a {
                color: var(--wp--preset--color--gray-placeholder);
                display: flex;
                align-items: center;
                text-decoration: none;
                &:hover {
                    text-decoration: underline;
                }
            }
        }
    }
}

#exhibition-navigation {
    margin-block-start: 20px;
    ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        justify-content: space-evenly;
        border-top: 1px solid var(--wp--preset--color--separator-gray);
        li {
            font-size: var(--wp--preset--font-size--nav-button-text);
            font-weight: 500;
            line-height: 130.769%;
            letter-spacing: 0.78px;
            flex: 1;
            display: flex;
            align-items: center;
            text-transform: uppercase;
            text-align: center;
            border-right: 1.5px solid var(--wp--preset--color--separator-gray);
            &:last-of-type {
                border-right: none;
            }
            &.exhibit-link {
                flex: 0 auto;
                white-space: nowrap;
            }

            a {
                color: var(--wp--preset--color--gray-text);
                text-decoration: none;
                display: flex;
                justify-content: center;
                align-items: center;
                padding: 10px 5%;
                width: 100%;
                min-height: 35px;
                position: relative;
                overflow: hidden;
                transition: all 0.3s ease-in-out;
                z-index: 1;
                &:before {
                    content: '';
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    width: 100%;
                    height: 0;
                    background-color: var(--wp--preset--color--gray-text);
                    transition: height 0.3s ease-in-out;
                    z-index: -1;
                }
                &.back-to-main {
                    column-gap: 5px;
                    background-color: var(--wp--custom--announcement-bg-gray);

                    &:before {
                        content: '';
                        background-color: transparent;
                        background-image: url("data:image/svg+xml, %3Csvg%20xmlns=%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width=%2213%22%20height=%2213%22%20viewBox=%220%200%2013%2013%22%20fill=%22none%22%3E%0A%20%20%3Cg%20clip-path=%22url(%23clip0_322_1973)%22%3E%0A%20%20%20%20%3Cpath%20d=%22M5.35094%201.01293L7.37142%201.00776L2.73149%205.64769L12.0168%205.65309L12.0116%207.07797L2.73172%207.08022L7.37165%2011.7201L5.35612%2011.7204L3.38422e-05%206.36429L5.35117%201.01316L5.35094%201.01293Z%22%20fill=%22%23333333%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%20%20%3Cdefs%3E%0A%20%20%20%20%3CclipPath%20id=%22clip0_322_1973%22%3E%0A%20%20%20%20%20%20%3Crect%20width=%229%22%20height=%229%22%20fill=%22white%22%20transform=%22translate(6.36377%2012.728)%20rotate(-135)%22%2F%3E%0A%20%20%20%20%3C%2FclipPath%3E%0A%20%20%3C%2Fdefs%3E%0A%3C%2Fsvg%3E");
                        background-repeat: no-repeat;
                        position: relative;
                        width: 15px;
                        height: 15px;
                        z-index: 1;
                    }
                    &:hover {
                        text-decoration: underline;
                    }
                }
                &.active,
                &:not(.back-to-main):hover {
                    color: var(--wp--preset--color--white);
                    &:before {
                        height: 100%;
                    }
                }
            }
            &.topics-toggle {
                justify-content: center;
                cursor: pointer;
                display: none;
            }
        }
    }
    &.has-dropdown {
        ul {
            li.topics-toggle {
                display: flex;
            }
            li:not(.exhibit-link):not(.topics-toggle) {
                display: none;
            }
        }
        &.is-open {
            ul {
                flex-direction: column;
                li:not(.topics-toggle) {
                    display: flex;
                    border-right: none;
                    border-bottom: 1.5px solid var(--wp--preset--color--separator-gray);
                    &:last-of-type {
                        border-bottom: none;
                    }
                }
            }
        }
    }

}

.single-exhibit {
    #exhibition-navigation {
        margin-block-start: 0;
    }
}

.single-topic {
    #exhibition-navigation {
        ul {
            border-bottom: 1px solid var(--wp--preset--color--separator-gray);
        }
    }
}

/* --------------------------------

Component

-------------------------------- */

.adapt-nav {
    position: relative;
    margin-top: 20px;
    background-color: var(--wp--preset--color--white);
}

.adapt-nav--is-fixed {
    position: fixed;
    top: var(--hne-sticky-header-offset, 0px);
    z-index: 900;
    margin-top: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.adapt-nav__placeholder {
    display: none;
}

.adapt-nav__placeholder--is-visible {
    display: block;
}

.adapt-nav__list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.adapt-nav__item {
    flex-shrink: 0;
    font-size: var(--wp--preset--font-size--nav-button-text);
    font-weight: 500;
    line-height: 130.769%;
    letter-spacing: 0.78px;
    text-transform: uppercase;
    border-top: 1px solid var(--wp--preset--color--separator-gray);
    border-right: 1.5px solid var(--wp--preset--color--separator-gray);
    &:first-of-type {
        border-left: 1.5px solid var(--wp--preset--color--separator-gray);
    }
    &:last-of-type {
        border-right: none;
    }
    &.exhibit-link {
        .back-to-main {
            display: flex;
            column-gap: 5px;
            background-color: var(--wp--custom--announcement-bg-gray);

            &:before {
                content: '';
                background-color: transparent;
                background-image: url("data:image/svg+xml, %3Csvg%20xmlns=%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width=%2213%22%20height=%2213%22%20viewBox=%220%200%2013%2013%22%20fill=%22none%22%3E%0A%20%20%3Cg%20clip-path=%22url(%23clip0_322_1973)%22%3E%0A%20%20%20%20%3Cpath%20d=%22M5.35094%201.01293L7.37142%201.00776L2.73149%205.64769L12.0168%205.65309L12.0116%207.07797L2.73172%207.08022L7.37165%2011.7201L5.35612%2011.7204L3.38422e-05%206.36429L5.35117%201.01316L5.35094%201.01293Z%22%20fill=%22%23333333%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%20%20%3Cdefs%3E%0A%20%20%20%20%3CclipPath%20id=%22clip0_322_1973%22%3E%0A%20%20%20%20%20%20%3Crect%20width=%229%22%20height=%229%22%20fill=%22white%22%20transform=%22translate(6.36377%2012.728)%20rotate(-135)%22%2F%3E%0A%20%20%20%20%3C%2FclipPath%3E%0A%20%20%3C%2Fdefs%3E%0A%3C%2Fsvg%3E");
                background-repeat: no-repeat;
                position: relative;
                width: 15px;
                height: 15px;
                z-index: 1;
            }
            &:hover {
                text-decoration: underline;
                color: currentColor;
            }
        }
    }
}

.adapt-nav__link {
    display: block;
    padding: 20px 40px;
    position: relative;
    color: var(--wp--preset--color--gray-text);
    text-decoration: none;
    transition: 0.2s;
    &:before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 0;
        background-color: var(--wp--preset--color--gray-text);
        transition: height 0.3s ease-in-out;
        z-index: -1;
    }
    &:hover {
        color: var(--wp--preset--color--white);
        &:before {
            height: 100%;
        }
    }
}

.adapt-nav__link[aria-current=page],
.adapt-nav__link:hover {
    background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
    &:before {
        height: 100%;
    }
}

.adapt-nav__item--hidden {
    visibility: hidden;
}

.adapt-nav {
    opacity: 0;
}

.adapt-nav--is-visible {
    opacity: 1;
}

.adapt-nav__item--more {
    position: relative;
    margin-right: 0;
}

.adapt-nav__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    font-size: var(--wp--preset--font-size--nav-button-text);
    font-weight: 500;
    letter-spacing: 0.78px;
    text-transform: uppercase;
    cursor: pointer;
    appearance: none;
    border: 0;
}

.adapt-nav__btn:hover,
.adapt-nav__item--more[aria-expanded="true"] .adapt-nav__btn {
    background-color: hsla(230, 13%, 9%, 0.1);
}

.adapt-nav__btn:active {
    background-color: hsla(230, 13%, 9%, 0.25);
}

.adapt-nav__btn-icon {
    --size: 16px;
    font-size: var(--size);
    height: 1em;
    width: 1em;
    display: block;
    color: inherit;
    fill: currentColor;
    line-height: 1;
    flex-shrink: 0;
    max-width: initial;
}

.adapt-nav__dropdown {
    margin: 0;
    padding: 0;
    list-style: none;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    width: 350px;
    background-color: hsl(0, 0%, 100%);
    box-shadow: 0 0.9px 1.5px hsla(230, 13%, 9%, 0.03),
    0 3.1px 5.5px hsla(230, 13%, 9%, 0.08),
    0 14px 25px hsla(230, 13%, 9%, 0.12);
    border-radius: 0.375em;
    z-index: 5;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.2s, opacity 0.2s;
}

.adapt-nav__dropdown--is-visible {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.2s;
}

.adapt-nav__dropdown-link {
    position: relative;
    display: block;
    padding: 20px 40px;
    text-decoration: none;
    color: hsl(230, 7%, 23%);
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: 0.2s;
    &:before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 0;
        background-color: var(--wp--preset--color--gray-text);
        z-index: -1;
    }
    &:hover {
        color: var(--wp--preset--color--white);
        &:before {
            height: 100%;
        }
    }
}

.adapt-nav__dropdown-link:hover {
    /*background-color: hsla(230, 13%, 9%, 0.075);*/
}

.adapt-nav__dropdown-link[aria-current=page] {
    color: var(--wp--preset--color--white);
    &:before {
        height: 100%;
    }
}

.single-topic {
    ul.adapt-nav__list {
        border-bottom: 1px solid var(--wp--preset--color--separator-gray);
    }
}

/* --------------------------------
Utilities
-------------------------------- */
.cd-justify-center {
    justify-content: center;
}

.cd-justify-end {
    justify-content: end;
}

.cd-hide {
    display: none !important;
}
