/* Element */
.nb-expanding-nav{
    cursor: default;
    position: relative;
    width: fit-content;
    height: fit-content;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}
.nb-expanding-nav[data-flickering]{
    opacity: 0;
}
.nb-expanding-nav > *:not(.nb-expanding-nav__expanding-content) {
    position: relative;
    z-index: 1;
  }
/* Nav Items */
.nb-expanding-nav__nav-item{
    width: fit-content;
    height: fit-content;

    transition: all var(--nav-item-transition-duration) var(--nav-item-transition-easing);
}

/* Expanding Content */
.nb-expanding-nav__expanding-content{
    overflow: hidden;
    position: absolute;

    height: 100%;
    width: 100%;
    max-width: unset;

    transition: all var(--expanding-duration) var(--expanding-easing);
}
.nb-expanding-nav[data-from="top"] .nb-expanding-nav__expanding-content{
    top: 0;
}
.nb-expanding-nav[data-from="bottom"] .nb-expanding-nav__expanding-content{
    bottom: 0;
}
.nb-expanding-nav[data-from="top"] .nb-expanding-nav__expanding-content[data-active="true"]{
    width: calc(100% + var(--expanding-horizontal-expand) * 2);
    top: 0;
}
.nb-expanding-nav[data-from="bottom"] .nb-expanding-nav__expanding-content[data-active="true"]{
    width: calc(100% + var(--expanding-horizontal-expand) * 2);
    bottom: 0;
}

/* Expanding Content Items */
.nb-expanding-nav__expanding-content-item{
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: fit-content;

    opacity: 0;
    pointer-events: none;

    transition: opacity var(--expanding-fade-duration) var(--expanding-fade-easing);
}
.nb-expanding-nav__expanding-content-item[data-active="true"]{
    opacity: 1;
    pointer-events: auto;
}