div.content {
	/* The display of content is enabled using jQuery so that the slideshow content won't display unless javascript is enabled. */
	display: none;
	float: left;
	width: 440px;
	position:relative;
	margin-right:6px;
}
div.content a, div.navigation a {
	text-decoration: none;
	color: #777;
}
div.content a:focus, div.content a:hover, div.content a:active {
	text-decoration: underline;
}
div.controls {
	margin-top: 5px;
	height: 23px;
	display:none;
}
div.controls a {
	padding: 5px;
}
div.ss-controls {
	float: left;
}
div.nav-controls {
	float: right;
}
div.slideshow-container {
	/*position: relative;*/
	clear: both;
	/*height: 502px;*/ /* This should be set to be at least the height of the largest image in the slideshow */
}
div.loader {
	position: absolute;
	top: 0;
	left: 0;
	background-image: url('loader.gif');
	background-repeat: no-repeat;
	background-position: center;
	width: 550px;
	/*height: 502px;*/ /* This should be set to be at least the height of the largest image in the slideshow */
}
div.slideshow {
	height:290px;
}
div.slideshow span.image-wrapper {
	display: block;
	/*position: absolute;
	top: 0;
	left: 0;*/
}
div.slideshow a.advance-link {
	display: block;
	/*width: 550px;*/
	/*height: 502px;*/ /* This should be set to be at least the height of the largest image in the slideshow */
	/*line-height: 502px;*/ /* This should be set to be at least the height of the largest image in the slideshow */
	text-align: center;
}
div.slideshow a.advance-link:hover, div.slideshow a.advance-link:active, div.slideshow a.advance-link:visited {
	text-decoration: none;
}
div.slideshow img {
	vertical-align: middle;
	border: 1px solid #ccc;
	width:100%;
	position:absolute;
	top:0px;
	left:0px;
	height:298px;
}
div.download {
	float: right;
}
div.caption-container {
	position: relative;
	clear: left;
	height: 75px;
}
span.image-caption {
	display: block;
	position: absolute;
	width: 450px;
	top:0;
	left: 0;
}
div.caption {
	padding: 12px;
}
div.image-title {
	font-weight: bold;
	font-size: 1.4em;
}
div.image-desc {
	line-height: 1.3em;
	padding-top: 12px;
}
div.navigation {
	width:480px !important;
	position:relative;
	/* The navigation style is set using jQuery so that the javascript specific styles won't be applied unless javascript is enabled. */
}
ul.thumbs {
	clear: both;
	margin: 0;
	padding: 0;
}
ul.thumbs li {
	float: left;
	padding: 0;
	margin: 0 10px 5px 0;
	list-style: none;
}
a.thumb {
	padding: 2px;
	display: block;
	border: 1px solid #ccc;
}
ul.thumbs li.selected a.thumb {
	background: #000;
}
a.thumb:focus {
	outline: none;
}
ul.thumbs img {
	border: none;
	display: block;
	height:90px !important;
}
div.pagination {
	clear: both;
}
div.navigation div.top {
	margin-bottom: 12px;
	height: 11px;
	display:none;
}
div.navigation div.bottom {
	margin-top: 12px;
}
div.pagination a, div.pagination span.current, div.pagination span.ellipsis {
	display: block;
	float: left;
	margin-right: 2px;
	padding: 4px 7px 2px 7px;
	border: 1px solid #ccc;
}
div.pagination a:hover {
	background-color: #eee;
	text-decoration: none;
}
div.pagination span.current {
	font-weight: bold;
	background-color: #000;
	border-color: #000;
	color: #fff;
}
div.pagination span.ellipsis {
	border: none;
	padding: 5px 0 3px 2px;
}

#thumbs{
	min-height:350px;
}

.enlarge1{
	position:absolute;
	bottom:0;
	right:0;
	top:285px;
}

#thumbs .bottom {
	position:absolute;
	bottom:0;
	right:3%;
}


@media only screen and (min-width:768px) and (max-width:960px) {
	div.content{
		width:386px;
		margin-right:6px;
	}
	
	/*div.slideshow a.advance-link{
		width:506px;
	}*/
	
	div.navigation {
    width: 325px !important;
	}
	
	ul.thumbs img{
		width:96px !important;
		height:78px !important;
	}
	
	#thumbs{
		min-height:330px;

	}
	
	ul.thumbs li {
    float: left;
    list-style: outside none none;
    margin: 0 6px 5px 0;
    padding: 0;
	}
	
	span.image-caption{
		width:360px;
	}
	
	div.slideshow {
    height: 253px;
	}
	
	div.slideshow img{
		height:262px;
	}
}

@media only screen and (max-width:767px) and (min-width:500px) {
	
	#page{
		width:90% !important;
	}
	
	div.navigation {
		float:none !important;
		display:block;
		width:100% !important;
	}
	
	div.content{
		float:none;
		display:block;
		width:100%;
		position:relative;
		min-height:280px;
	}
	
	div.slideshow a.advance-link{
		width:100%;
		display:block;
		height:auto;
		line-height:0;
	}
	
	div.slideshow-container{
		position:relative;
		height:inherit;
	}
	
	div.slideshow span.image-wrapper{
		position:static;
	}
	div.slideshow img{ position:absolute;}
	
	div.caption-container{
		height:40px;
	}
	
	ul.thumbs li{
		float: left;
		list-style: outside none none;
		margin: 5px 8px 5px 0;
		padding: 0;
	}
	
	div.slideshow {
    height: 309px;
	}
	
	span.image-caption{
		width:100%;
	}
	
	#thumbs .bottom{
		position:static;
	}
	
	div.slideshow img{
		height:162px;
	}
	
	div.content{
		width:100%;
	}
}

@media only screen and (max-width:640px) {
	div.content {
		height:377px;
	}
	
	ul.thumbs li{
		 float: left;
    list-style: outside none none;
    margin: 5px 4px 5px 0;
    padding: 0;
	}
	
	div.slideshow {
    height: 374px;
	}
	
	#thumbs {
    min-height: 300px;
	padding:50px 0 0 0;
	}
	
	#thumbs .bottom{
		position:static;
	}
	
	div.slideshow img{
		height:100%;
	}
	
	div.content{
		width:100%;
	}
}

@media only screen and (max-width:600px) {
	div.content{
	  height:353px;
	}
	
	div.slideshow {
    height: 347px;
	}
	
	ul.thumbs img{
	width:176px;
	}
	
	#thumbs {
    min-height: 375px;
	padding:50px 0 0 0;
	}
	
	div.slideshow img{
		height:100%;
	}
	
	div.content{
		width:100%;
	}
}

@media only screen and (max-width:499px) and (min-width:480px) {
	
	div.content{
		min-height:280px;
	}
	
	ul.thumbs li {
    float: left;
    list-style: outside none none;
		margin: 5px 5px 5px 0;
		padding: 0;
	}
	
	#thumbs {
    min-height: 291px;
	}
	
	div.caption-container{
		height:40px;
	}
	
	#thumbs .bottom{
		position:static;
	}
	
	div.slideshow img{
		height:162px;
	}
	
	div.content{
		width:100%;
	}
	
	#thumbs {
		padding:0;
	}
	
}

@media only screen and (max-width:480px) {
	   div.slideshow {
		height: 250px;
	}
	
	div.content {
		height: 296px;
	}
	
	ul.thumbs img {
		width: 142px;
	}
	
	div.slideshow img{
		height:247px;
	}
	
	div.content{
		width:100%;
	}
	
	#thumbs {
		padding:0;
	}
}

@media only screen and (max-width:379px) and (min-width:320px) {
	
	div.content{
		width:100%;
		min-height:200px;
	}
	
	div.navigation{
		width:300px !important;
	}
	

	
	ul.thumbs img {
		border: medium none;
		display: block;
		height: 60px !important;
		width: 60px !important;
	}
	
	#thumbs{
		min-height:240px;
	}
	
	#thumbs .bottom{
		position:static;
	}
	
	span.image-caption{
		width:100%;
	}
	
	div.slideshow img{
		height:162px;
	}
	
	div.caption-container{
		height:40px;
	}
	
	div.content{
		width:100%;
	}
}

@media only screen and (max-width:360px) {
	div.content {
    height: 210px;
	}
	
	div.slideshow {
    height: 180px;
	}
	
	
	div.slideshow img{
		height:191px;
	}
	
		ul.thumbs li {
    margin: 5px 9px 5px 0;
	}
	
	div.content{
		width:100%;
	}
	
	#thumbs {
		padding:0;
	}
}
@media only screen and (min-width: 480px) and (max-width: 480px) {
	div.navigation {
    position: relative;
    width: 460px !important;
	}
}

@media only screen and (max-width:320px){
	
	div.slideshow {
    height: 185px !important;
	}
	
	div.content {
    height: 217px !important;
	}
	
	#thumbs {
		padding:0;
	}
}
