.team-grid {
    text-align: center;
}
.team-img {
    position: relative;
}

.team-grid img {
    width: 100%;
    height: 150px;
    border-radius: 10px;
}
.team-img .overlay {
    padding: 2em 0.5em;
    line-height: 24px;
    border-radius: 10px;
}
.team-img .overlay {
    background: rgba(5, 15, 53, 0.84);
    text-align: center;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    opacity: 0;
    filter: alpha(opacity=0);
    -webkit-transition: all 450ms ease-out 0s;
    -moz-transition: all 450ms ease-out 0s;
    -o-transition: all 450ms ease-out 0s;
    transition: all 450ms ease-out 0s;
    -webkit-transform: rotateY(180deg) scale(0.5,0.5);
    -moz-transform: rotateY(180deg) scale(0.5,0.5);
    -ms-transform: rotateY(180deg) scale(0.5,0.5);
    -o-transform: rotateY(180deg) scale(0.5,0.5);
    transform: rotateY(180deg) scale(0.5,0.5);
}
.team-grid h5 {
    font-size: 1.4em;
}

.w3l-social {
    margin: 1em 0 0 0;
}
.w3l-social ul {
    padding: 0;
    margin: 0;
}
.w3l-social ul li {
    display: inline-block;
}

.w3l-social ul li a {
    color: #333;
    text-align: center;
}

.w3l-social ul li a i.fa.fa-facebook, .w3l-social ul li a i.fa.fa-twitter, .w3l-social ul li a i.fa.fa-google-plus, .w3l-social ul li a i.fa.fa-dribbble {
    height: 40px;
    width: 40px;
    background: #FFFFFF;
    line-height: 40px;
    color: #383838;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -o-border-radius: 50%;
    -ms-border-radius: 50%;
    transition: 0.5s all;
    -webkit-transition: 0.5s all;
    -moz-transition: 0.5s all;
    -o-transition: 0.5s all;
    -ms-transition: 0.5s all;
}

.team-img:hover .overlay {
    cursor: pointer;
    opacity: 1;
    filter: alpha(opacity=100);
    -webkit-transform: rotateY(0deg) scale(1,1);
    -moz-transform: rotateY(0deg) scale(1,1);
    -ms-transform: rotateY(0deg) scale(1,1);
    -o-transform: rotateY(0deg) scale(1,1);
    transform: rotateY(0deg) scale(1,1);
}

.w3l-social ul li a i.fa.fa-dribbble:hover {
    background: #dd4b39;
    color: #FFFFFF;
}

@media (max-width: 1080px){
.team-img .overlay {
    padding: 2em 0.5em;
}
.team-grid h5 {
    font-size: 1.1em;
}
}
@media (max-width: 991px){
.team-grid {
    width: 39%;
    margin: 0px 39px;
    float: left;
    margin-bottom: 30px;
}
.w3l-social ul li {
    margin: 0 3px;
}
.team-img .overlay {
    padding: 2em 0.5em;
}
}
@media (max-width: 736px){
.team-grid {
    width: 45%;
    margin: 0px 17px;
    margin-bottom: 30px;
}
.team-img .overlay {
    padding: 2em 0.5em;
}
}
@media (max-width: 667px)
.team-grid {
    margin: 0px 15px;
    margin-bottom: 30px;
}

@media (max-width: 640px){
.team-grid {
    margin: 0px 14px;
    margin-bottom: 30px;
}
.team-img .overlay {
    padding: 2em 0.5em;
}
}
@media (max-width: 600px){
.team-grid {
    margin: 0px 13px;
    margin-bottom: 30px;
}
}
@media (max-width: 568px){
.team-img .overlay {
    padding: 2em 0.5em;
}
.team-grid h5 {
    font-size: 1em;
}
}
@media (max-width: 480px){
.team-grid {
    width: 60%;
    float: none;
    margin: 0 auto;
    margin-bottom: 30px!important;
}
.team-img  .overlay {
    padding: 2em 0.5em;
}
}
@media (max-width: 384px){
.team-grid {
    width: 75%;
}
.team-img .overlay {
    padding: 2em 0.5em;
}
}