div#gf_container 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%; 
	min-height: 220px!important;
}
div#gf_container div.content a, div#gf_container div.navigation a {
	text-decoration: none;
	color: #777;
}
div#gf_container div.content a:focus, div#gf_container div.content a:hover, div#gf_container div.content a:active {
	text-decoration: underline;
}
div#gf_container div.controls {
	margin-top: 5px;
	height: 23px;
}

#gf_caption{
	display : none;
}
div#gf_container div.controls a {
	padding: 5px;
}
div#gf_container div.ss-controls {
	float: left;
}

div#gf_container div.slideshow-container {
	position: relative;
	clear: both;
	height: auto; /* This should be set to be at least the height of the largest image in the slideshow */
}
div#gf_container 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#gf_container div.slideshow {
	width : 100%;
	/*height : 392px;*/
}
div#gf_container div.slideshow span.image-wrapper {
	display: block;
	/*position: absolute;
	top: 0;
	left: 0;*/
}
div#gf_container div.slideshow a.advance-link {
	display: block;
	width: 100%;;
	height: 100%; /* This should be set to be at least the height of the largest image in the slideshow */
	line-height: 100%; /* This should be set to be at least the height of the largest image in the slideshow */
	text-align: center;
}
div#gf_container div.slideshow a.advance-link:hover, div#gf_container div.slideshow a.advance-link:active, div#gf_container div.slideshow a.advance-link:visited {
	text-decoration: none;
}
div#gf_container div.slideshow img {
	vertical-align: middle;
	border: 0;
	width : 100%;
}
div#gf_container div.download {
	float: right;
}
div#gf_container div.caption-container {
	position: relative;
	clear: left;
	height: 75px;
}
div#gf_container span.image-caption {
	display: block;
	position: absolute;
	width: 550px;
	top: 0;
	left: 0;
}
div#gf_container div.caption {
	padding: 12px;
}
div#gf_container div.image-title {
	font-weight: bold;
	font-size: 1.4em;
}
div#gf_container div.image-desc {
	line-height: 1.3em;
	padding-top: 12px;
}
div#gf_container div.navigation {
	/* The navigation style is set using jQuery so that the javascript specific styles won't be applied unless javascript is enabled. */
}
div#gf_container ul.thumbs {
	clear: both;
	margin: 0 auto;
	padding: 0;
	width : 90%;
	display: -webkit-flex; /* Safari */
    -webkit-flex-wrap: wrap; /* Safari 6.1+ */
    display: flex;   
    flex-wrap: wrap;
}
div#gf_container ul.thumbs li {
	display : block;
	width : 30%;
	flex : 0 30%;
	padding: 0;
	margin: 5px 5% 5px 0;
	list-style: none;
}

div#gf_container ul.thumbs .last-visible{
	margin-right : 0;	
}

div#gf_container a.thumb {
	/*padding: 2px;*/
	/*border: 1px solid #ccc;*/
	padding: 0px;
	border: 0px solid;
	display: block;
}
div#gf_container ul.thumbs li.selected a.thumb {
	background: #000;
}
div#gf_container a.thumb:focus {
	outline: none;
}
div#gf_container ul.thumbs img {
	border: none;
	display: block;
	border-radius : 0;
	width : 160px;
	height : auto;
}
div#gf_container div.pagination {
	clear: both;
	margin:0px;

}
div#gf_container div.navigation div.top {
	margin-bottom: 12px;
	height: 11px;
}
div#gf_container div.navigation div.bottom {
	margin-top: 12px;
}
div#gf_controls {
	width : 100%;
	position : absolute;
	top : 0;
	left : 0;
}
div#gf_controls a.prev {
	background: url(prevArrowGray.png) no-repeat center;
	display : block;
	width : 21px;
	height : 100px;
	float : left;
}
div#gf_controls a.next {
	background: url(nextArrowGray.png) no-repeat center;
	display : block;
	width : 21px;
	height : 100px;
	float : right;
}

#gf_container {
	background : url(gf_container.png) no-repeat top left;
	padding : 10px;
	overflow : hidden;
	background-size : cover;
}

#gf_thumbs {
	position : relative;
}

div#gf_container div.pagination a, div#gf_container div.pagination span.current, div#gf_container div.pagination span.ellipsis {
	line-height: 100%;
	display: block;
	float: left;
	margin-right: 2px;
	padding: 4px 7px 2px 7px;
	border: 1px solid #ccc;
}
div#gf_container div.pagination a:hover {
	background-color: #eee;
	text-decoration: none;
}
div#gf_container div.pagination span.current {
	font-weight: bold;
	background-color: #000;
	border-color: #000;
	color: #fff;
}
div#gf_container div.pagination span.ellipsis {
	border: none;
	padding: 5px 0 3px 2px;
}

/* TODO check this */
div#gf_container div.slideshow a.advance-link img {
	max-width: 593px;
	max-height: 392px;
}

div#gf_container div.slideshow span.image-wrapper {
	-webkit-transition: all 0.3s ease;
	    -moz-transition: all 0.3s ease;
	    -o-transition: all 0.3s ease;
	    -ms-transition: all 0.3s ease;
	    transition: all 0.3s ease;
}

div#gf_container div.slideshow span.image-wrapper.previous {
	display : none !important;
}