
$shadow-color: rgba(0,0,0,0.1);
$shadow-size: 12px;

.outer {
    position: relative;
    // border: 1px solid darken($shadow-color, 8%);
    // margin: 5em auto 0;
    height: 100%;
    overflow-y: auto;
    // overflow-x: hidden;

    display: inline-block;
    // margin-bottom: -5px;

    &.background-method {
        background-image: linear-gradient(top, #fff, rgba(255, 255, 255, 0)),
            linear-gradient(bottom, #fff, rgba(255, 255, 255, 0)),
            linear-gradient(top, darken($shadow-color, 20%), rgba(255, 255, 255, 0)),
            linear-gradient(bottom, darken($shadow-color, 20%), rgba(255, 255, 255, 0));
        background-position: 0 0, 0 100%, 0 0, 0 100%;
        background-repeat: no-repeat;
        // background-color: white;
        background-size: 100% 5em, 100% 5em, 100% 1em, 100% 1em;
        background-attachment: local, local, scroll, scroll;
    }

    &.overlay-method {
        display: flex;
        .outer {
            position: static;
            width: 100%;
            overflow-y: scroll;
        }
    }

    .overlay {
        position: absolute;
        z-index: 400;

        top: 0;
        bottom: 0;
        left: 0;
        right: 0;

        background-image: linear-gradient(top, transparent, rgba(255, 255, 255, 0)),
            linear-gradient(bottom, transparent, rgba(255, 255, 255, 0)),
            linear-gradient(top, darken($shadow-color, $shadow-size), rgba(255, 255, 255, 0)),
            linear-gradient(bottom, darken($shadow-color, $shadow-size), rgba(255, 255, 255, 0));
        background-position: 0 0, 0 100%, 0 0, 0 100%;
        background-repeat: no-repeat;
        // background-color: white;
        background-size: 100% 5em, 100% 5em, 100% 1em, 100% 1em;
        background-attachment: local, local, scroll, scroll;
        pointer-events: none;
    }

    .inner {
        position: relative;
        padding: 1.5rem 0.5rem;
        min-height: 100%;

        // width: 100%;

        display: inline-block;
        min-width: 100%;

        // min-width: 800px;

        .hider-top {
            background: white;
            position: absolute;
            z-index: 450;
            width: 100%;
            top: 0;
            left: 0;
            height: $shadow-size + 4px;
        }
        .hider-bottom {
            background: white;
            position: absolute;
            z-index: 450;
            width: 100%;
            bottom: 0;
            left: 0;
            height: $shadow-size + 4px;
        }
    }
}
