div#container {
padding:0px;
}

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: right;
	width: 840px;
	margin-top:3px;

}
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 {

}
div.controls a {
	padding: 5px;
}
div.ss-controls {

}

div.nav-controls {
     bottom: 335px;
    float: right;
    
     /* margin-top: -28px; */
    position: relative;
    right: -7px;
    
     width: 857px;
    z-index: 20;
}

div.ss-controls a{
	float:left;
	background-repeat: no-repeat;
	height: 14px;
	padding-top: 10px;
	padding-bottom: 10px;
	padding-left: 44px;
	color:#000;
}
div.ss-controls a.play{
	background-image:url(play.png);
	color:#000;
	}
	
div.ss-controls a.pause{
	background-image:url(pause.png);
	}
	
div.nav-controls a {
    background: url("../../images/arrows_big.png") no-repeat scroll 8px 0 #fff;
    border: 1px solid #CCCCCC;
    display: block;
    float: left;
    height: 50px;
    margin-right: 2px;
    padding: 4px;
    text-indent: -9999px;
    width: 50px;
}
div.nav-controls a.next{
	float:right;
	    background: url("../../images/arrows_big.png") no-repeat scroll -53px 0 #fff;
}
div.nav-controls a.next:hover{
 background: url("../../images/arrows_big.png") no-repeat scroll -54px -64px #ccc;
}

div.nav-controls a:hover{
 background: url("../../images/arrows_big.png") no-repeat scroll 8px -64px #ccc;
	border: 1px solid #ccc;

	}
div.slideshow-container {
	position: relative;
	clear: both;
	height: 465px; /* 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 {

}
div.slideshow span.image-wrapper {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
}
div.slideshow a.advance-link {
	display: block;
	width: 833px;
	height: 463px; /* This should be set to be at least the height of the largest image in the slideshow */
	line-height: 463px; /* This should be set to be at least the height of the largest image in the slideshow */
	text-align: center;
	border:1px solid #ccc;
}
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;
	/*max-width:505px;*/
	max-height:445px;
	width: auto;
	max-width: 445px;
	height: auto;

}
div.download {
	float: right;
}
div.caption-container {
	position: relative;
	clear: left;
	height: 75px;
}
span.image-caption {
	display: block;
	position: absolute;
	width: 100%;
	top: 0;
	left: 0;
}
div.caption {
    margin-top: 20px;
	margin-bottom:20px;
}

.caption-container div.caption {
    margin-top: 20px;
	margin-bottom:10px;
	font-style:italic;
}

div.image-title {
	font-weight: bold;
	font-size: 1.4em;
}
div.image-desc {
	line-height: 1.3em;
	float:left;
	margin-top:10px;

}
div.navigation {
    margin-bottom: 16px;
}

ul.thumbs {
	padding: 0;
	margin:0px;
}
ul.thumbs li {
	float: left;
   	margin: 3px 6px 3px 0;
	list-style: none;
	opacity:1!important;
	
}


a.thumb {
	display: block;
	border:2px solid #aaa;
	width:45px;
	height:68px;
	overflow:hidden;

}
a.thumb:hover {
	border:2px solid #AFE8DB;

}

ul.thumbs li.selected  a{
	border:2px solid #000;
}
a.thumb:focus {
	outline: none;
}
ul.thumbs img {
    border: medium none;
    display: block;
    height: 68px;
    min-width: 45px;
}
div.pagination {
	clear: both;
	float:left;
	
}
div.navigation div.top {
 display:none;
 }
 
 
div.navigation div.bottom {
	margin-top: 10px;
}
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 #000000;
}
div.pagination a:hover {
	background-color: #eee;
	text-decoration: none;
}
div.pagination span.current {
	font-weight: bold;
	background-color: #000000;
	border-color: #000000;
	color: #fff;
}
div.pagination span.ellipsis {
	border: none;
	padding: 5px 0 3px 2px;
}


@media (max-width: 991px) {
/*gallery*/
#gallery .slideshow-container #loading.loader{ width: 100%;}
#gallery.content { width: 652px;}
#gallery .slideshow-container { height: 490px;}
#gallery div.slideshow a.advance-link { height: 465px; line-height: 465px; width: 652px;}
#gallery div.slideshow img {max-height: 425px; max-width: 600px; vertical-align: middle;}
#controls.controls div.nav-controls { bottom: 345px; width: 678px; right:-15px;}

}
@media (max-width: 768px) {
/*gallery*/
#gallery + #thumbs.navigation{width: 228px !important;}
#gallery.content { width: 475px;}
#gallery .slideshow-container { height: 350px;}
#gallery div.slideshow a.advance-link { height: 300px; line-height: 295px;  width: 475px;}
#gallery div.slideshow img { max-height: 275px;  max-width: 440px;}
#controls.controls div.nav-controls {bottom: 340px; width: 485px; right:-7px;}
#controls.controls div.ss-controls { bottom: 99px; left: 0px; position: relative; display:inline-block; padding-left: 2em;}

}