@import '~@equitysim/react-uikit/dist/styles/styleguide';

.c-portfolio-nav-menu {
    $padding: v-space(3);
    $nav-header-height: v-space(5);
    $count-label-height: $padding;
    $menu-height: calc(100vh - #{$header-height});

    height: 100vh;
    max-height: $menu-height;
    background-color: rgba($charcoal-grey, 0.8);
    cursor: default;

    &__header {
        font-size: 1.4rem;
        font-weight: $font-weight-semibold;
        letter-spacing: $letter-spacing;
        display: flex;
        flex-direction: row;
        align-items: center;
        height: $nav-header-height;
        margin: 0;
        padding: 0 $padding;
        color: $white;
        background-color: $charcoal-grey;
        text-transform: uppercase;
    }

    &__close-button {
        position: absolute;
        right: 0;
        top: 0;
        transform: translateY(calc(#{$nav-header-height / 2} - 50%));
    }

    &__count {
        @extend %caption;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        margin: 0;
        height: $count-label-height;
        padding: 0 $padding;
    }

    &__items {
        list-style: none;
        display: grid;
        grid-gap: v-space(2);
        align-content: start;
        height: 100vh;
        padding: v-space(1) $padding $padding;
        margin: 0;
        max-height: calc(
            #{$menu-height} - #{$nav-header-height} - #{$count-label-height}
        );
        overflow: auto;
    }
}
