.gallerycontainer {
position: relative;
height: 400px;
/*Add a height attribute and set to largest image's height to prevent overlaying*/
}

.thumbnail img {
border: 0px;
padding: 4px;
}

.thumbnail:hover{
background-color: transparent;
border: 0px;

}

.thumbnail:hover img {
border: 0px;

}

.thumbnail span { /*CSS for enlarged image*/
position: absolute;
padding: 0;
left: -1000px;
border: 0;
visibility: hidden;
color: black;
text-decoration: none;
margin: 0 auto;
text-align: center;
}

.thumbnail span img { /*CSS for enlarged image*/
border-width: 0;
padding: 2px;
text-align: center;
margin: 10px 10px 10px 10px;
}

.thumbnail:hover span { /*CSS for enlarged image*/
visibility: visible;
top: 150px; /*position where enlarged image should offset vertically */
left: 50px; /*position where enlarged image should offset horizontally */
z-index: 50;
text-align: center;
}

#galspacer {
height: 390px;
width: 100%;
text-align: center;
background-image: url(images/gallery/main_gallery_image.gif);
background-position: center;
background-repeat: no-repeat;
}

.galalign {
margin 0 auto;
text-align: center;
}

