.gallery ul li {
display:block;
float:left;
background-image:none;
height:auto;
}

.gallery ul li a {
background-image:none;
margin:8px;
padding:0px;
position:relative;
border:2px solid #003a43;
float:left;
display:block;
width:75px;
height:50px;
background-color:#fff;
}

.gallery ul li a:hover {
background-image:none;
z-index:2;
}

.gallery ul li a img {
position:absolute;
width:75px;
height:50px;
border:0;
margin:0;
padding:0;
}

.gallery ul li a:hover img, .gallery ul li a:active img, .gallery ul li a:focus img { width:100px;
height:75px;
left:-11px;
top:-10px;
z-index:1;
border:2px solid #003a43;
}

#gallery1 ul { z-index:2; }
#gallery2 ul { z-index:1; }