.gallery{
position:relative;
overflow:hidden;
margin-top:80px;
}

.gallery .photo{
width:220px;
height:150px;
background-color:#ffffff;
overflow:hidden;
border:1px solid #003399;
transition:         0.08s ease-in;
-o-transition:      0.08s ease-in;
-ms-transition:     0.08s ease-in;
-moz-transition:    0.08s ease-in;
-webkit-transition: 0.08s ease-in;
float:left;
margin-right:10px;
margin-bottom:10px;
}

.gallery .photo:hover{
border:1px solid #0099CC;
}

.gallery .photo a {
width: 250px;
height: 150px;
}

.gallery .photo a img {
 display: block;
    margin-left: auto;
    margin-right: auto;
}