//
// Side Overlay
// --------------------------------------------------

#side-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: $zindex-fixed + 3;
    width: 100%;
    background-color: $side-overlay-bg;
    overflow-y: auto;
    transform: translateX(100%) translateY(0) translateZ(0);
    -webkit-overflow-scrolling: touch;
    will-change: transform;

    .side-trans-enabled & {
        transition: transform $side-transition;
    }

    .sidebar-r & {
        right: auto;
        left: 0;
        transform: translateX(-100%) translateY(0) translateZ(0);
    }

    .side-overlay-o & {
        transform: translateX(0) translateY(0) translateZ(0);
    }

    @include media-breakpoint-up(lg) {
        width: $side-overlay-width;
        box-shadow: 0 0 25px rgba(0,0,0,.15);
        transform: translateX(110%) translateY(0) translateZ(0);

        .sidebar-r & {
            transform: translateX(-110%) translateY(0) translateZ(0);
        }

        .side-overlay-hover & {
            transform: translateX($side-overlay-width - $space-side) translateY(0) translateZ(0);
        }

        .sidebar-r.side-overlay-hover & {
            transform: translateX(-($side-overlay-width - $space-side)) translateY(0) translateZ(0);
        }

        .side-overlay-hover &:hover,
        .side-overlay-o &,
        .side-overlay-o.side-overlay-hover & {
            box-shadow: 0 0 20px rgba(0,0,0,.15);
            transform: translateX(0) translateY(0) translateZ(0);
        }
    }
}