.gallerycontainer{
position: relative;
left: 25px;
height: 345px; /*Add a height attribute and set to largest image's height to prevent overlaying*/
background: url(images/prints/10x8/P/538b.jpg);
background-repeat: no-repeat;
background-position: 420px 0px;
}

.thumbnail img{
border: 1px solid white;
margin: 0 5px 5px 0;
}

.thumbnail:hover{
background-color: transparent;
}

.thumbnail:hover img{
border: 1px solid #ffffff; /*large image border*/
}

.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: #ffffff;
padding: 0px;
left: 0px;
visibility: hidden;
font-family:  Arial, Helvetica, sans-serif; 
font-size: 12px; 
color: #ff3300; 
font-weight: bold;
text-decoration: none;
a.link {text-decoration: none}
a.visited {text-decoration: none}
a.active {text-decoration: none}
a.hover {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: 0;
left: 420px; /*position where enlarged image should offset horizontally */
z-index: 50;
}



.thumbnail2 img{
border: 1px solid white;
margin: 0 5px 5px 0;
}

.thumbnail2:hover{
background-color: transparent;
}

.thumbnail2:hover img{
border: 1px solid #FFFFFF;
}

.thumbnail2 span{ /*CSS for enlarged image*/
position: absolute;
background-color: #ffffff;
padding: 0px;
left: 0px;
visibility: hidden;
}

.thumbnail2 span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 0px;
}

.thumbnail2:hover span{ /*CSS for enlarged image*/
visibility: visible;
top: 0;
left: 350px; /*position where enlarged image should offset horizontally */
z-index: 50;
}
