.slider-container {
    position: relative;
    width: 100%;
    margin: auto;
    overflow: hidden;
    box-shadow: 0 0 50px #000;
    user-select: none
}

.slider-container::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    z-index: 1;
}

.slider-container::before {
    background: linear-gradient(to left, #000, #0000);
    right: 0;
    bottom: 0
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out
}

.slide {
    min-width: 100%;
    height: 350px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center
}

.slide::after {
    content: '';
    position: absolute;
    background: linear-gradient(to left, #0000, #0008);
    box-shadow: inset 0 -50px 100px #000;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%
}

.slide img {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat
}

.caption {
    position: absolute;
    top: 50px;
    left: 20px;
    color: #fff;
    font-size: 18px;
    font-family: monospace;
    transition: opacity 0.5s ease;
    z-index: 2;
    max-width: 650px
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 70px;
    color: #ffffff;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    z-index: 2;
    opacity: 0;
    transition: color 0.5s ease, opacity 0.2s ease
}

.prev-btn:hover,
.next-btn:hover {
    opacity: 1;
    color: #3498db
}

.prev-btn {
    left: 10px
}

.next-btn {
    right: 10px
}

@media only screen and (max-width: 768px) {
    .prev-btn,
    .next-btn {
        opacity: 1
    }
}