/*
Note: Decrease rotateY(*deg) number when add new item in success story.
      rotateY(*deg) decides the gap between two images.

known Issue: carousel uses full width. Sometimes it align to left and sometime on right.
             Need to fix so carousel always move at center.      
*/
.carousel-container {
    position: relative;                
    margin: 100px auto 0 auto;
    perspective: 1000px;
    width: 320px;
    /*background: lightgray;*/
    text-align: center;
    min-height: 300px;
}
.carousel {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotate360 60s infinite forwards linear;
}
.carousel__face { 
    position: absolute;
    width: 150px;
    height: 170px;
    top: 30px;
    left: 10px;
    right: 20px;
    background-size: cover;
    box-shadow:inset 0 0 0 2000px rgba(0,0,0,0.5);
    display: flex;
}

.span1 {
    margin-top: 138px;
    font-size: 0.8rem;
    text-align: center;
    width:150px;
    color: #fefefe;

}
.span1 div{margin-bottom: -7px;}

.edu {
    margin-top: 0px;
    font-size: 0.6rem;
    text-align: center;
    width:150px;
    color: #fefefe;
    display: inline-block;
}


.carousel__face:nth-child(1) {
    background-image: url("https://www.webkrida.com/images/akshata.jpg");
    transform: rotateY(0deg) translateZ(430px); }
.carousel__face:nth-child(2) { 
    background-image: url("https://www.webkrida.com/images/prashant.jpg");
    transform: rotateY(45deg) translateZ(430px); }
.carousel__face:nth-child(3) {
    background-image: url("https://www.webkrida.com/images/makarand.png");
    transform: rotateY(90deg) translateZ(430px); }
.carousel__face:nth-child(4) {
    background-image: url("https://www.webkrida.com/images/aratee.jpg");
    transform: rotateY(135deg) translateZ(430px); }
.carousel__face:nth-child(5) { 
    background-image: url("https://www.webkrida.com/images/sanchit.jpg");
    transform: rotateY(180deg) translateZ(430px); }
.carousel__face:nth-child(6) { 
    background-image: url("https://www.webkrida.com/images/harshada-sawant.jpg");
    transform: rotateY(225deg) translateZ(430px); }
.carousel__face:nth-child(7) { 
    background-image: url("https://www.webkrida.com/images/chetan-gole.png");
    transform: rotateY(270deg) translateZ(430px); }
.carousel__face:nth-child(8) {
    background-image: url("https://www.webkrida.com/images/harshada-gawade.jpg");
    transform: rotateY(315deg) translateZ(430px); }            

@keyframes rotate360 {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(-360deg);
    }
}