.slider {
    overflow: hidden;
    position: relative;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-controls {
    position: absolute;
    font-size: 3rem;
    top: calc( 50% - 1.5rem );
    cursor: pointer;
    user-select: none;
    padding: 0.5rem 1rem;
    background-color: white;
    text-align: center;
    text-indent: 0;
    line-height: 1;
    transform: scale( 1 );
    transition: all 0.5s;
    z-index: 10;
}

.slider-controls:hover {
    transform: scale( 1.1 );
}

.slider-control-left {
    left: 0;
}

.slider-control-right {
    right: 0;
}

.slider-element {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    background-size: cover;
    background-position: center;
    transition: left 1s;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.slider-element.past {
    z-index: 2;
    left: 0;
}

.slider-element.last {
    z-index: 3;
    left: 0;
}

.slider-element.current {
    z-index: 4;
    left: 0;
}

.slider-element.future {
    z-index: -1;
    left: 110%;
}

.slider-element.next {
    z-index: 5;
    left: 150%;
}
