div#gallery-overlay-container {
	background: #333333;
	position: fixed;
	opacity: 0.80;
	filter: alpha(opacity=80);
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 200;
}

body.gallery-open ul#primary-nav, body.gallery-open ul#primary-nav-two {
	display: none;
}

div#gallery-overlay {
	position: absolute;
	z-index: 210;
	width: 944px;
	padding-top: 13px;
	background-color: #fff;
	color: #767563;
}

div#gallery-overlay img#gallery-overlay-header {
	float: right;	
	margin-right: 24px; 
}

div#gallery-thumbs {
	float: left;
	display: inline; /* IE double float margin fix */
	margin-left: 13px;
	height: 123px;
	width: 760px;
	overflow: hidden;
	
	border: 1px solid #e6e6e6;

	/* because IE is very, very stupid */
	position: relative;
	z-index: 1;
}

div#gallery-thumbs-spacer-left, div#gallery-thumbs-spacer-right {
	position: absolute;
	height: 123px;
	width: 1px;
	background-color: #fff;
	z-index: 150;
}

div#gallery-thumbs-spacer-left {
	left: 0;
}

div#gallery-thumbs-spacer-right {
	right: 0;
}

div#gallery-thumbs ul {
	list-style: none;
	width: 20000px;
}

div#gallery-thumbs li {
	float: left;
	width: 187px;
	height: 121px;
	padding: 1px;
	border-right: 1px solid #e6e6e6;
}

div#gallery-thumbs li.last {
	border-right: none;
}

div#gallery-thumbs li.safari {
/*	float: none;
	display: inline-block;*/
}

div#gallery-thumbs-inner {
	width: 10000px;
}

div#gallery-thumbs div {
	background-color: #fff;
}

div#gallery-thumbs-inner img {
	float: left;
	max-width: 187px;
}

div#gallery-overlay-nav {
	width: 55px;
	float: right;	
}

div#gallery-overlay-actions {
	float: left;
	position: relative;
	height: 100px;
	width: 144px;
}

p#gallery-overlay-close {
	position: absolute;
	right: 0;
	bottom: 0;
}

p#gallery-overlay-close a {
	display: block;
	min-width: 36px;
	height: 36px;
	color: #767563;
	background: url(/_images/gallery-overlay/gallery-close.gif) no-repeat top left;
}

p#gallery-overlay-close a:hover, a#gallery-overlay-left:hover, a#gallery-overlay-right:hover {
	background-position: bottom left;
	cursor: pointer;
}

div#gallery-overlay-nav {
	position: absolute;
	left: 10px;
	bottom: 7px;
	height: 22px;
	padding-top: 5px;
	background: url(/_images/gallery-overlay/between-nav.gif) no-repeat 26px 0;
}

a#gallery-overlay-left {
	float: left;
	width: 11px;
	height: 17px;
	background: url(/_images/gallery-overlay/gallery-left.gif) no-repeat top left;
	margin-right: 15px;
}

a#gallery-overlay-right {
	float: left;
	width: 11px;
	height: 17px;
	background: url(/_images/gallery-overlay/gallery-right.gif) no-repeat top left;
	margin-left: 16px;
}

a.gallery-overlay-end {
	background-position: top right !important;
	cursor: default !important;
}

a#gallery-overlay-left span, a#gallery-overlay-right span, p#gallery-overlay-close span {
	display: none;
}

div#gallery-image-container {
	text-align: center;
	min-height: 800px;
	clear: both;
	padding-top: 13px;
}

div#gallery-image-container.video {
	min-height: 580px;
}

img#gallery-overlay-image {
	margin-top: 1px;
}

div#gallery-video-container {
	clear: left;
	padding-top: 60px;
}

img#gallery-image-preloader {
	margin: 100px 0 0 0;
}

div#gallery-thumbs ul li a img {
	opacity: .99; /* fixes strange Safari bug whereby when an image loses the .selected classname it dissapears */
}

div#gallery-thumbs ul li a:hover img, div#gallery-thumbs ul li a.selected img {
	opacity: .7;
	filter: alpha(opacity=70); /* needed for IE6+7 */
}

p#gallery-overlay-caption {
	padding: 17px 0 40px 20px;
	text-align: left;
}
