
:root {
    --wil-perspective: 500px;
    --wil-height: 500;
    --wil-width: 700;
}

.wiloke-3d-slider-img-container {
    position: relative;
    width: 100%;
    perspective: var(--wil-perspective, 500px);
    transform-style: preserve-3d;
    padding-top: calc(var(--wil-height) / var(--wil-width) * 100% + 10%);
    transform: translateX(22%);
}

.wil-3d-slider-wrapper {
    display: flex;
    flex-direction: column-reverse;
}

.wiloke-3d-slider-box {
    box-shadow: 0 0 10px rgb(0 0 0 / 30%);
    width: 90%;
    padding-top: calc(var(--wil-height) / var(--wil-width) * 100%);;
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid #bbb;
    position: absolute;
    top: 50%;
    transition: 800ms ease-in-out;
}

.wiloke-3d-slider-box img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wiloke-3d-slider-box:first-of-type {
    z-index: 5;
    opacity: 0;
    left: 15%;
    transform: translate(-50%, -50%) rotateY(-10deg);
}

.wiloke-3d-slider-box:nth-of-type(2) {
    opacity: 1;
    left: 20%;
    transform: translate(-50%, -50%) rotateY(-10deg);
    z-index: 5;

}
.wiloke-3d-slider-box:nth-of-type(3) {
    left: 25%;
    opacity: 0.75;
    z-index: 10;
    transform: translate(-50%, -50%) rotateY(-10deg) translateZ(-50px);
}

.wiloke-3d-slider-box:nth-of-type(4) {
    z-index: 5;
    opacity: 0.5;
    left:30%;
    transform: translate(-50%, -50%) rotateY(-10deg) translateZ(-100px);
}
.wiloke-3d-slider-box:nth-of-type(5) {
    z-index: 2;
    opacity: 0.25;
    left: 35%;
    transform: translate(-50%, -50%) rotateY(-10deg) translateZ(-150px);
}

.wiloke-3d-slider-box:nth-of-type(6) {
    z-index: 2;
    opacity: 0.0;
    left: 40%;
    transform: translate(-50%, -50%) rotateY(-10deg) translateZ(-200px);
}

.wiloke-3d-slider-box:nth-of-type(7) {
    z-index: 2;
    opacity: 0.0;
    left: 45%;
    transform: translate(-50%, -50%) rotateY(-10deg) translateZ(-200px);
}

.wiloke-3d-slider-box:nth-of-type(8) {
    z-index: 2;
    opacity: 0.0;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(-10deg) translateZ(-200px);
}

.wiloke-3d-slider-box:nth-of-type(9) {
    z-index: 2;
    opacity: 0.0;
    left: 55%;
    transform: translate(-50%, -50%) rotateY(-10deg) translateZ(-200px);
}

.wiloke-3d-slider-box:nth-of-type(10) {
    z-index: 2;
    opacity: 0.0;
    left: 60%;
    transform: translate(-50%, -50%) rotateY(-10deg) translateZ(-200px);
}
@media (min-width: 992px) {
    .wil-3d-slider-wrapper {
        flex-direction: row;
    }
    .wiloke-3d-slider-img-container {
        flex-shrink: 0;
        transform: translateX(22%);
        width: clamp(200px, 62.5vw - 50px, calc(var(--wil-width) * 1px));
        padding-top: calc(var(--wil-height) / var(--wil-width) * (var(--wil-width) / 1120 * 105%));
    }

    .wiloke-3d-slider-box {
        width: 90%;
    }
}

