.slider-wrapper{
    width: 100%;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.slider-wrapper.active{
    display: flex;
}

.slide-container{
    position: relative;
    background-color: #fff;
    width: 80%;
    max-width: 750px;
    height: 585px;
    border-radius: 8px;
}

.close{
    display: block;
    width: 18px;
    position: absolute;
    cursor: pointer;
    top: 16px;
    right: 18px;
}

.slide-right,
.slide-left{
    position: absolute;
    display: block;
    width: 24px;
    cursor: pointer;
}

.slide-right{
    top: 50%;
    transform: translateY(-50%);
    right: 18px;
}

.slide-left{
    top: 50%;
    transform: translateY(-50%);
    left: 18px;
}

.close img,
.slide-right img,
.slide-left img{
    display: block;
    width: 100%;
    height: auto;
}

.slide-container #current-slide{
    width: auto;
    height: 100%;
    display: block;
    margin: auto;
}

.slide-container.right #current-slide{
    position: relative;
    top: 0;
    animation-name: slide-right;
    animation-duration: 0.8s;
    animation-timing-function: ease;
}

.slide-container.left #current-slide{
    position: relative;
    top: 0;
    animation-name: slide-left;
    animation-duration: 0.5s;
    animation-timing-function: ease;
}

@keyframes slide-right {
from {left: 50%;opacity: 0;}
to {left: 0;opacity: 1;}
}

@keyframes slide-left {
from {left: -50%;opacity: 0;}
to {left: 0;opacity: 1;}
}