.gallery-galleriffic,
.gallery-lf-home {
	overflow: hidden;
	width: 700px; /* This, for some reason, has to be wider than page width with paddings. */
	margin: auto;
	height: 435px;
}

/* Remove borders from links */
.gallery-galleriffic a,
.gallery-galleriffic a:hover,
.gallery-lf-home a,
.gallery-lf-home a:hover  {
	border: none;
	text-decoration: none;
}

/* Override theme defaults */
.entry-content img {
	margin: 0;
}

.navigation {
	margin: 0;
	overflow: hidden;
	width: 100%;
	display: block;
	float: left;
}

/* Remove 'play slideshow' link from gallery */
.ss-controls {
	display: none;
}

span.current {
	background: none;
}

div.content {
	display: none;
	clear: both;
	width: 100%;
}

div.content a, div.navigation a {
	text-decoration: none;
}
div.content a:hover, div.content a:active {
	text-decoration: underline;
}

div.navigation a.pageLink {
	height: 60px;
	line-height: 60px;
	cursor: pointer;
}

div.slideshow-container,
div.loader,
div.slideshow a.advance-link {
	width: 100%; /* This should be set to be at least the width of the largest image in the slideshow with padding */
	position: relative;
}

div.content {
	width: 580px;
	margin: auto;
}

/* This should be set to be at least the height of the largest image in the slideshow with padding */	

div.loader,
div.slideshow a.advance-link {
	height: 435px; 
}

div.slideshow-container {
	position: relative;
	clear: both;
	float: left;
	height: 435px;
}

div.loader {
	position: absolute;
	top: 0;
	background-image: url('images/loader.gif');
	background-repeat: no-repeat;
	background-position: center;
}

div.slideshow {
	position: relative;
	height: 100%;
}

div.slideshow span.image-wrapper {
	display: block;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	width: 580px;
}

div.slideshow a.advance-link {
	/*display: block;*/
	/*height: 500px;*/ /* This should be set to be at least the height of the largest image in the slideshow with padding */
	/*position: absolute;*/
	
	display:table-cell;
	height:435px;
	position:relative;
	vertical-align:middle;
	width:580px;
}

div.slideshow a.advance-link:hover,
div.slideshow a.advance-link:active,
div.slideshow a.advance-link:visited {
	text-decoration: none;
}
div.slideshow a.advance-link:focus {
	outline: none;
}

div.slideshow img {
	border-left: none transparent;
	border-right: none transparent;
	max-width: 580px;
	max-height: 435px;
	margin: 0;
	vertical-align: middle;
	background: #02050b;
}
/*
span.image-caption {
	display: block;
}
*/
div.image-title {
	font-weight: bold;
	font-size: 1.4em;
}
div.image-desc {
	line-height: 1.3em;
	padding-top: 12px;
}
div.download {
	margin-top: 8px;
}
div.photo-index {
	position: absolute;
	bottom: 0;
	left: 0;
	padding: 0 12px;
}
div.navigation a.pageLink {
	display: block;
	position: relative;
	float: left;
	margin: 2px;
	width: 16px;
	background-position:center center;
	background-repeat:no-repeat;
}
div.navigation a.pageLink:focus {
	outline: none;
}

div.navigation-container {
	width: 700px;
	margin: auto;
	padding-top: 20px;
}

ul.thumbs {
	float: left;
	position: relative;
	left: 50%;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

ul.thumbs li {
	float: left;
	position: relative;
	right: 50%;
	padding: 0;
	margin: 0 2px 2px 0;
	list-style: none;
}

a.thumb {
	padding: 1px;
	display: block;
	width: 31px;
}
a.thumb:focus {
	outline: none;
}
ul.thumbs img {
	border: none;
	display: block;
}
div.pagination {
	clear: both;
	position: relative;
	left: -50%;
}
div.pagination a, div.pagination span.current, div.pagination span.ellipsis {
	position: relative;
	display: block;
	float: left;
	margin-right: 2px;
	padding: 4px 7px 2px 7px;
}
div.pagination a:hover {
	text-decoration: none;
}
div.pagination span.current {
	font-weight: bold;
}
div.pagination span.ellipsis {
	border: none;
	padding: 5px 0 3px 2px;
}

div.gallery-gutter {
	clear: both;
	padding-bottom: 20px;
}

div.navigation a.next {
	background: url("images/nextPageArrow.gif") no-repeat center center;
}

div.navigation a.prev {
	background: url("images/prevPageArrow.gif") no-repeat center center;
}

/* Custom arrow controls */

.nav-controls a {

	display:block;

	text-indent:-9999px;

	border:0;
	
	position: absolute;
	
	z-index: 9999;

}

.nav-controls a.next {
	right: -60px;
	top: 0;
	height: 100%;
	width: 580px;
	background: url('images/arrow-right.png') no-repeat right center;
}

.nav-controls a.next:hover {
	background: url("images/arrow-right-hover.png") no-repeat right center;
}

.nav-controls a.prev {
	left: -60px;
	top: 0;
	height: 100%;		
	width: 120px;		
	background: url("images/arrow-left.png") no-repeat left center;
}

.nav-controls a.prev:hover {
	background: url("images/arrow-left-hover.png") no-repeat left center;
}