#main {
	height:610px;   /* Height of the main body */
	overflow: hidden;
}
.gallerycontainer{
position: relative;
height:100%
/*Add a height attribute and set to largest image's height to prevent overlaying*/
}

.thumbnail img{
	border: 1px solid #A80F19;
	margin: 1px 1px 1px 1px;
}

.thumbnail:hover{
	background-color: transparent;
}

.thumbnail:hover img{
	border: 1px solid white;
}

.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
padding: 1px;
visibility: hidden;
color: #A80F19;
letter-spacing: 5px;
font-size:medium;
text-align:center;
text-decoration: none;
}

.thumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 0px;
}

.thumbnail:hover span{ /*CSS for enlarged image*/
visibility: visible;
top: -1px;
left: 450px; /*position where enlarged image should offset horizontally */
}
