.gallery {
/*	padding-bottom:10px; width:500px;*/
}
.gallery ul {
	list-style: none;
	display: table;
}
.gallery ul li {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}
.gallery ul img {
	border-width: 2px;
	margin:5px;
	border: 2px solid #DBDBD9;

	-moz-border-radius:8px;
	-webkit-border-radius:8px;
	border-radius:8px;
}
.gallery ul a:hover img {
	border: 2px solid #fff;
	color: #fff;
}
.gallery ul a:hover { color: #fff; }