.student-wrapper{
    margin-top: 50px;
   /* margin-bottom: 50px;*/
    background: #FFFFFF;
    padding: 20px 20px;
    position: relative;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
}

.student-wrapper .row{
    align-items: center;
    padding: 5px 20px;
}

figure img {
    display: block;
    margin: 0 auto;
    vertical-align: middle;
    width: 100%;
    min-height: 150px;
}

figure {
    position: relative;
    width: 100%;
    display: inline-block;
    text-align: center;
}

figure span{
    display: inline-block;
    position: relative;
}

figure figcaption {
    background:#aa0304;
    color: #FFFFFF;
    padding: 10px;
}

figure figcaption a{
    color: #FFFFFF;
    text-decoration: none;
}
figure figcaption a:hover{
    color: #FFFFFF;
    text-decoration: underline;
}

/*figure img:last-child {
    display: none;
}
figure:hover img:last-child {
    display: block;
}
figure:hover img:first-child {
    display: none;
}*/



/* Rotate all even images 2 degrees */
.student-wrapper figure:nth-child(odd) {
    -webkit-transform: scale(0.8, 0.8) rotate(1deg);
    -moz-transform: scale(0.8, 0.8) rotate(1deg);
    right:6px;
    bottom: 10px;
}
.student-wrapper figure:nth-child(even) {
    -webkit-transform: scale(0.8, 0.8) rotate(2deg);
    -moz-transform: scale(0.8, 0.8) rotate(2deg);
}

.student-wrapper figure:nth-child(3n) {
    left: -5px;
    -webkit-transform: scale(0.8, 0.8) rotate(3deg);
    -moz-transform: scale(0.8, 0.8) rotate(3deg);
}



/* Rotate every fifth image by 5 degrees and offset it */
.student-wrapper figure:nth-child(5n) {
    -webkit-transform: scale(0.8, 0.8) rotate(5deg);
    -moz-transform: scale(0.8, 0.8) rotate(5deg);
    right: 5px;
}

.student-wrapper figure:nth-child(3n+0) {
    -webkit-transform: scale(0.8, 0.8) rotate(6deg);
    -moz-transform: scale(0.8, 0.8) rotate(6deg);
    bottom: 30px;
    left: 12px;
}
.student-wrapper figure:nth-child(5n+0) {
    -webkit-transform: scale(0.8, 0.8) rotate(-4deg);
    -moz-transform: scale(0.8, 0.8) rotate(-4deg);
    bottom: 15px;
    left: -12px;
}

.no-shadow{
    margin-top: 20px  !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
}

@media (min-width: 48em) {

    figure {
        width: 50%;
    }

    .student-wrapper{
        -webkit-box-shadow: 0 25px 54px -1px rgba(189, 189, 189, 1);
        -moz-box-shadow: 0 25px 54px -1px rgba(189, 189, 189, 1);
        box-shadow: 0 25px 54px -1px rgba(189, 189, 189, 1);
    }

    /*.student-wrapper img {
        margin: 0;
    }*/
    .student-wrapper{
        padding: 20px 20px;
    }

   /* .student-wrapper .row.reverse > div:last-of-type img{
        display: block;
        float: left;
        margin-right: 2em;
        margin-left: 0;
    }
    .student-wrapper .row > div:last-of-type img{
        display: block;
        float: right;
        margin-left: 2em;
    }

    figure {
       float: left;
    }
    */

}

@media (min-width: 64em) {
    figure {
        width: 33%;
    }
}

/*
@media (min-width: 75em) {
    figure {
        width: 25%;
    }
}*/