*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.container{
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,.6),
                rgba(0,0,0,.8)),
                url(bg.jpg) no-repeat;
    background-position: center;
    background-size: cover;
}
.viewport{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42vw;
    height: 21vw;
    transform: translate(-50%, -50%);
    perspective: 1300px;
}
.viewport::after{
    content: '';
    position: absolute;
    top: 140%;
    left: -10%;
    width: 120%;
    height: 20%;
    background: #000;
    filter: blur(50px);
    z-index: -1;
}
.cube{
    position: relative;
    width: 100%;
    height: 33.33%;
    transform-style: preserve-3d;
}
.cube-1{
    transition: transform 0.4s;
}
.cube-2{
    z-index: 10;
    transition: transform 0.4s .2s;
}
.cube-3{
    transition: transform 0.4s .4s;
}
.face{
    position: absolute;
    width: 100%;
    height: 100%;
}
.face{
    transform: translateZ(21vw);
}
.cube-1 .front{
    background: url(img1.jpg) no-repeat 50% 0;
    background-size: cover;
}
.cube-2 .front{
    background: url(img1.jpg) no-repeat 50% -7vw;
    background-size: cover;
}
.cube-3 .front{
    background: url(img1.jpg) no-repeat 50% -14vw;
    background-size: cover;
}
.back{
    transform: translateZ(-21vw) rotateY(180deg);
}
.cube-1 .back{
    background: url(img2.jpg) no-repeat 50% 0;
    background-size: cover;
}
.cube-2 .back{
    background: url(img2.jpg) no-repeat 50% -7vw;
    background-size: cover;
}
.cube-3 .back{
    background: url(img2.jpg) no-repeat 50% -14vw;
    background-size: cover;
}
.left{
    transform: translateX(-21vw) rotateY(-90deg);
}
.cube-1 .left{
    background: url(img3.jpg) no-repeat 50% 0;
    background-size: cover;
}
.cube-2 .left{
    background: url(img3.jpg) no-repeat 50% -7vw;
    background-size: cover;
}
.cube-3 .left{
    background: url(img3.jpg) no-repeat 50% -14vw;
    background-size: cover;
}
.right{
    transform: translateX(21vw) rotateY(90deg);
}
.cube-1 .right{
    background: url(img4.jpg) no-repeat 50% 0;
    background-size: cover;
}
.cube-2 .right{
    background: url(img4.jpg) no-repeat 50% -7vw;
    background-size: cover;
}
.cube-3 .right{
    background: url(img4.jpg) no-repeat 50% -14vw;
    background-size: cover;
}
.top{
    height: 42vw;
    background: #111;
    transform: translateY(-21vw) rotateX(90deg);
}
.bottom{
    height: 42vw;
    background: #111;
    transform: translateY(-14vw) rotateX(-90deg);
}
.control{
    position: absolute;
    width: 40px;
    height: 40px;
    color: #fff;
    background: rgba(59,52,50,.7);
    border: 1px solid #fff;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 100;
    transition: background .3s;
}
.control:hover{
    background: rgba(42,38,36,.8);
}
.control i{
    pointer-events: none;
}
.left-arrow{
    top: 50%;
    left: -35%;
}
.right-arrow{
    top: 50%;
    left: 135%;
}
.play-pause{
    top: 140%;
    left: 50%;
}