#thumbnail-slider {
    margin: 0 auto; /*center-aligned*/
    width: 100%;
    /*max-width:900px;*/
    max-width: 1000px;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
    overflow: hidden;
}

#thumbnail-slider div.inner {
    /*the followings should not be changed */
    position: relative;
    overflow: hidden;
    height: 750px;
    padding: 0;
    margin: 0;
}

#thumbnail-slider div.inner ul {
    /*the followings should not be changed */
    height: 500px;
    white-space: nowrap;
    position: relative;
    left: 0;
    top: 0;
    list-style: none;
    font-size: 0;
    padding: 0;
    margin: 0;
    float: left !important;
    width: auto !important;
    height: auto !important;
}

#thumbnail-slider ul li {
    display: inline-block;
    margin-top: 50px;
    /* margin-bottom:90px; */
    margin-left: -110px;
    margin-right: -100px; /* Spacing between thumbs*/
    -webkit-transform: scale(0.9);
    transform: scale(0.9); /*Note: The scale down will increase the spacing between slides. You can set negative margins as did above to roll back the spacing. */
    -webkit-transition: -webkit-transform 0.5s;
    transition: transform 0.5s;
    box-sizing: content-box;
    text-align: center;
    vertical-align: middle;
    padding: 0;
    position: relative;
    list-style: none;
    backface-visibility: hidden;

    /*-webkit-filter: grayscale(100%);
    filter: grayscale(100%);*/
}

#thumbnail-slider ul li.active {
    -webkit-transform: scale(1);
    transform: scale(1); /*Note: if scale is greater than 1, the margin-top and margin-bottom in the selector "#thumbnail-slider li" must be set with a sufficient value so the enlarged image will be shown within the margins.*/
    background-color: transparent;

    /*-webkit-filter: initial;
    filter: initial;*/
}

#thumbnail-slider .thumb {
    width: 100%;
    height: 75%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    display: block;
    position: absolute;
    font-size: 0;
    cursor: inherit;
    /*-webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(70%, transparent), to(rgba(255,255,255,0.4)));*/
    transition: all linear 0.4s;
}

/*-- Start 3D --*/
#thumbnail-slider .thumb {
    /*-webkit-transform: perspective(500px) translateX(1px) translateZ(-30px) rotateY(30deg);
    transform: perspective(500px) translateX(230px) translateZ(50px) rotateY(10deg);*/
    /*transform: perspective(500px) translateX(250px) translateZ(0px) rotateY(10deg);*/

    -webkit-transform: perspective(500px) translateX(-48px) translateZ(-30px)
        rotateY(30deg);
    transform: perspective(500px) translateX(-48px) translateZ(-30px)
        rotateY(30deg);
}

#thumbnail-slider .active .thumb {
    -webkit-transform: translateX(0px) translateZ(0px) rotateY(0deg);
    transform: translateX(0px) translateZ(0px) rotateY(0deg);
}

#thumbnail-slider li.active ~ li .thumb {
    /*-webkit-transform: perspective(500px) translateX(-1px) translateZ(-30px) rotateY(-30deg);
    transform: perspective(500px) translateX(-230px) translateZ(50px) rotateY(-10deg);*/
    /*transform: perspective(500px) translateX(-250px) translateZ(10px) rotateY(-10deg);*/

    -webkit-transform: perspective(500px) translateX(48px) translateZ(-30px)
        rotateY(-30deg);
    transform: perspective(500px) translateX(48px) translateZ(-30px)
        rotateY(-30deg);
}
/*-- End 3D --*/

/* --------- navigation controls ------- */
/* The nav id should be: slider id + ("-prev", "-next", and "-pause-play") */

#thumbnail-slider-pause-play {
    display: none;
} /*.pause*/
#thumbnail-slider-prev,
#thumbnail-slider-next {
    display: block;
}

.btn-prev{
    position: absolute;
    float: left;
    top: 50%;
    right: 80%;
    background: none;
    border: none;
    outline: none;
}
.btn-next{
    position: absolute;
    top: 50%;
    left: 60%;
    right: 0px;
    float: right;
    background: none;
    border: none;
    outline: none;
}
.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 9999;
}

.rotating-image {
    width: 80px;
    height: 80px;
    animation: rotate 0.9s linear infinite;
}

.loading-text {
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    text-align: center;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
