#gallery {
	background: #333;
	padding: 15px;
}

#gallery div#container {
	overflow: hidden;
}

#gallery div.content {
	display: none;
	clear: both;
}

#gallery div.content a, div.navigation a {
	text-decoration: none;
}

#gallery div.content a:hover, div.content a:active {
	text-decoration: underline;
}

#gallery div.navigation a.pageLink {
	height: 77px;
	line-height: 77px;
}

#gallery div.controls {
	margin-top: 5px;
	height: 23px;
}

#gallery div.controls a {
	padding: 15px;
}

#gallery div.ss-controls {
	float: left;
}

#gallery div.nav-controls {
	float: right;
}

#gallery div.slideshow-container,
#gallery div.loader,
#gallery div.slideshow a.advance-link {
	width: 510px; /* This should be set to be at least the width of the largest image in the slideshow with padding */
}

#gallery div.loader,
#gallery div.slideshow a.advance-link,
#gallery div.caption-container {
	xheight: 502px; /* This should be set to be at least the height of the largest image in the slideshow with padding */	
}

#gallery div.slideshow-container {
	position: relative;
	clear: both;
	float: left;
	height: 450px;
}

#gallery div.loader {
	position: absolute;
	top: 0;
	left: 0;
	background-image: url(../../images/galleriffic/loader.gif);
	background-repeat: no-repeat;
	background-position: center;
}

#gallery div.slideshow span.image-wrapper {
	display: block;
	position: absolute;
	top: 30px;
	left: 0;
}

#gallery div.slideshow a.advance-link {
	display: block;
	xline-height: 502px; /* This should be set to be at least the height of the largest image in the slideshow with padding */
	text-align: center;
}

#gallery div.slideshow a.advance-link:hover,
#gallery div.slideshow a.advance-link:active,
#gallery div.slideshow a.advance-link:visited {
	text-decoration: none;
}

#gallery div.slideshow a.advance-link:focus {
	outline: none;
}

#gallery div.slideshow img {
	border-style: solid;
	border-width: 1px;
}

#gallery div.caption-container {
	float: right;
	position: relative;
	margin-top: 30px;
}

#gallery span.image-caption {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
}

#gallery div.caption-container, span.image-caption {
	width: 334px;
}

#gallery div.caption {
	padding: 0 12px;
}

#gallery div.image-title {
	font-weight: bold;
	font-size: 1.4em;
}

#gallery div.image-desc {
	line-height: 1.3em;
	padding-top: 12px;
}

#gallery div.download {
	margin-top: 8px;
}

#gallery div.photo-index {
	position: absolute;
	bottom: 0;
	left: 0;
	padding: 0 12px;
}

#gallery div.navigation-container {
	float: left;
	position: relative;
	left: 50%;
}

#gallery div.navigation {
	float: left;
	position: relative;
	left: -50%;
}

#gallery div.navigation a.pageLink {
	display: block;
	position: relative;
	float: left;
	margin: 38px 0 0 0;
	width: 16px;
	height: 16px;
	background-position: center center;
	background-repeat: no-repeat;
}

#gallery div.navigation a.pageLink:focus {
	outline: none;
}

#gallery ul.thumbs {
	position: relative;
	float: left;
	margin: 0;
	padding: 0;
	width: 470px;
	height: 100px;
	overflow: hidden;
	margin-left: 5px;
	margin-right: 5px;
}

#gallery ul.thumbs li {
	float: left;
	padding: 0;
	margin: 2px;
	list-style: none;
}

#gallery a.thumb {
	display: block;
}

#gallery a.thumb:focus {
	outline: none;
}

#gallery ul.thumbs img {
	border: none;
	display: block;
}

#gallery div.pagination {
	clear: both;
	position: relative;
	left: -50%;
}

#gallery div.pagination a, 
#gallery div.pagination span.current, 
#gallery div.pagination span.ellipsis {
	position: relative;
	display: block;
	float: left;
	margin-right: 2px;
	padding: 4px 7px 2px 7px;
	border: 1px solid #ccc;
}

#gallery div.pagination a:hover {
	text-decoration: none;
}

#gallery div.pagination span.current {
	font-weight: bold;
}

#gallery div.pagination span.ellipsis {
	border: none;
	padding: 5px 0 3px 2px;
}

#gallery div.gallery-gutter {
	clear: both;
	padding-bottom: 20px;
}

