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: 100%; 
}
#galleriffic, #gallery{
max-width:100%;
}
#galleriffic>div{
float:none !important;
}
#galleriffic #thumbs {
width:100%;
}
div.content a, div.navigation a {
	text-decoration: none;
	color: #999;
}
div.content a:focus, div.content a:hover, div.content a:active {
	text-decoration: underline;
}
div.controls {
	margin-top: 10px;
	height: 23px;
}
div.controls a {
	/*color: #FFFFFF;*/
	font-family: 'Varela Round';
		font-weight: 300;
		color: #777;
		text-transform:uppercase;
    /*font-weight: bold;*/
    padding: 10px;
}
div.ss-controls {
	/*float: left;*/
}
div.nav-controls {
	/*float: right;*/
}
div.slideshow-container {
	width:100%;
	margin:0 auto;
	/*position:relative;
	clear: both;
	
	height: 800px;*/ /* 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: 802px; /* 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: inline;
	/*position: absolute;
	top: 0;
	left: 0;*/
}
div.slideshow a.advance-link {
	display: inline;
	/*width: 550px;
	height: 502px;  This should be set to be at least the height of the largest image in the slideshow */
	/*line-height: 802px;  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 {
	 /* position: relative;
  top: 75px;*/
    vertical-align: top;
	padding-top: 20px;
}
div.download {
	/*float: right;*/
	width: 100%;
	display:none;
}
div.caption-container {
	position: relative;
	clear: both;
	height: 75px;
	margin: 0 auto;
}
span.image-caption {
	display: block;
	position: relative;
	/*width: 550px;
	top: 0;
	left: 0;*/
}
div.caption {
	padding: 12px;
}
div.image-title {
	/*color:#cccccc;*/
	font-family: 'Varela Round';
		font-weight: 300;
		color: #777;
	font-size: 1em;
}
div.image-desc {
	line-height: 1.3em;
	padding-top: 12px;
	/*color: #cccccc;*/
		font-family: 'Varela Round';
		font-weight: 300;
		color: #777;
	margin: 0 auto;
}
div.navigation {
	/* The navigation style is set using jQuery so that the javascript specific styles won't be applied unless javascript is enabled. */
}
ul.thumbs {
margin-right:auto;
margin-left:auto;
text-align:center;
}
ul.thumbs li {
    display: inline-block;
    height: 60px;
    list-style: outside none none;
    margin: 5px 10px 5px 0;
    padding: 0;
    width: 60px;
}
a.thumb {
	padding: 2px;
	display: block;
	border: 1px solid #ccc;
}
ul.thumbs li.selected a.thumb {
	background: #318DA4;
}
a.thumb:focus {
	outline: none;
}
ul.thumbs img {
	border: none;
	width:100%;
	display: block;
	
}
div.pagination {
	clear: both;
}
div.navigation div.top {
	margin-bottom: 12px;
	height: 11px;
}
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;
	background-color: #eee;
}
div.pagination a:hover {
	background-color: #fff;
	text-decoration: none;
}
div.pagination span.current {
	font-weight: bold;
	/*background-color: #000;*/
	background-color:#5d1e79;
	border-color: #000;
	color: #fff;
}
div.pagination span.ellipsis {
	border: none;
	padding: 5px 0 3px 2px;
}


/* Mobile */

@media screen and (max-width: 736px) {
	
	ul.thumbs {
		display:none;
	}
	.controls {
		display:inline;
	}
	div.slideshow img {
  
    width: 100%;
}
}
@media screen and (min-width: 737px) {
	
	.controls {
		display:inline;
	}

}