.slider-back{
    margin-top:2em;
    background-color:#000;
    padding:1em;
}
.slider {
    position: relative;
    width: 100%;
    margin: auto;
    overflow: hidden;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
}

.slide img {
    width: 80%;
    max-width:310px;
    display: block;
    margin:0 auto;
}

.arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.arrows span {
    cursor: pointer;
    font-size: 2em;
    color: #888;
    user-select: none;
}

.thumbnails {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.thumbnails img {
    width: calc(80% / 6);
    max-width:66px;
    margin: 0 5px;
    cursor: pointer;
    opacity: 0.6;
}

.thumbnails img.active {
    opacity: 1;
    border: 2px solid #333;
}

@media screen and (min-width:450px){
    
.slider {
    position: relative;
    max-width: 400px;
    margin: auto;
    overflow: hidden;
}
    
}