
.thumbnail {
	position: relative;
	z-index: 0;
}

.thumbnail:hover {
	background-color: transparent;
	z-index: 50;
}

.thumbnail span {/*CSS for enlarged image*/
	position: absolute !important; 
	display:block;
	background-color: White;
	padding-right:15px;
	padding-top: 15px;
	padding-left: 15px;
	padding-bottom: 10px;
	right: 1000px;
	border: 1px solid gray;
	visibility: hidden;
	color: black;
	text-decoration: none;
}

.thumbnail span img {/*CSS for enlarged image*/
	border-width: 0;
	padding: 2px;
}

.thumbnail:hover span {/*CSS for enlarged image on hover*/
	display:block; 
	visibility:visible;
	position: absolute !important;
	top: -145px;
	right: 380px; /*position where enlarged image should offset horizontally */
}

*:first-child+html .thumbnail:hover span {top: 0;} 
* html .thumbnail:hover span{top: 0;} 