.gallery {
	margin: 0 auto 40px;
    position: relative;
    width: 1100px;
	height: 543px;
}
div.content {
	display: block;
	float: left;
	width: 504px;
}
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;
}
div.controls a {
	padding: 5px;
}
div.ss-controls {
	float: left;
}
div.nav-controls {
	float: right;
}
div.slideshow-container {
	position: relative;
	clear: both;
	height: 540px;
	width: 510px;
	padding: 0px;
	margin: 0px;
}
div.loader {
	position: absolute;
	top: 0;
	left: 0;
	background-image: url('galleriffic/loader.gif');
	background-repeat: no-repeat;
	background-position: center;
	width: 350px;
	height: 302px; /* 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;
	display: table-cell;
}
div.slideshow a.advance-link {
	display: block;
	width: 504px;
	height: 543px;
	background: #f7f7f7;
	text-align: center;
	position: relative;
}
div.slideshow a.advance-link:hover, div.slideshow a.advance-link:active, div.slideshow a.advance-link:visited {
	text-decoration: none;
}
div.slideshow img {

}
div.slideshow a.advance-link img{
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 100% !important;
	position: absolute;
	top: 0;
	bottom: 0;
	left:0;
	right:0;
	margin: auto;
}
div.download {
	float: right;
}
div.caption-container {
	position: relative;
	clear: left;
	height: 30px;
	width: 510px;
}
span.image-caption {
	display: block;
	position: absolute;
	width: 504px;
	top: 0;
	left: 0;
}
div#case_caption {
	margin-top: 5px;
	padding: 5px;
	font-size: 1.4em;
	font-weight: bold;
	background-color: #ffff;
	color: #666;
}
div.image-title {
	font-weight: bold;
	font-size: 1.4em;
}
div.image-desc {
	line-height: 1.3em;
	padding-top: 12px;
}
div.navigation {
}
ul.thumbs {
	clear: both;
	margin: 0 0 5px;
	padding: 4px 0 3px;
	position: relative;
	overflow: hidden;
}
ul.thumbs li {
	float: left;
	padding: 0;
	margin: 10px 11px 0 0;
	list-style: none;
}
a.thumb {
	padding: 0;
	display: block;
	border: 1px solid #ccc;
}
a.thumb span {
	width: 158px;
	height: 148px;
	position: relative;
	display:block;
	background: #f7f7f7;
}
ul.thumbs li.selected a.thumb {
	background: #fff;
}
ul.thumbs li.selected a.thumb img {
	opacity: 100%;
}
a.thumb:focus {
	outline: none;
}
/*ul.thumbs img {
	width: 158px;
	height: 148px;
	border: none;
	display: block;
}*/
ul.thumbs img {
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 100% !important;
	position: absolute;
	top: 0;
	bottom: 0;
	left:0;
	right:0;
	margin: auto;
}
div.pagination {
	clear: both;
	position: relative;
	left: 50%;
	float: left;
}
div.navigation div.top {
	margin-bottom: 12px;
	height: 11px;
}
div.navigation div.bottom {
	clear: both;
	margin: 0;
}
div.pagination a, div.pagination span.current, div.pagination span.ellipsis {
	display: block;
	float: left;
	margin-right: 2px;
	padding: 0 4px;
	position: relative;
	left: -50%;
}
div.pagination a {
	text-decoration: underline;
}
div.pagination a:hover {
	text-decoration: none;
}
div.pagination span.ellipsis {
	border: none;
	padding: 5px 0 3px 2px;
}
#contents .btn{
	position: relative;
	overflow: hidden;
}
#contents .btn ul{
	position: relative;
	left: 50%;
	float: left;
}
#contents .btn li{
	position: relative;
	left: -50%;
	float: left;
	padding: 0 20px;
}


#case3f_gallery div.slideshow img {
	width: 380px;
	height: 285px;
	vertical-align: middle;
	border: 1px solid #e67f80;
}
#case3f_thumbs {
	width: 255px;
	height: 287px;
	padding-left: 4px;
	float: right;
	background: #e67f80;
}
#case3f_thumbs div.pagination a, div.pagination span.current, div.pagination span.ellipsis {
	background: #eb9a99;
}
#case3f_thumbs div.pagination span.current {
	background-color: #e67f80;
	color: #fff;
}
#case2f_gallery div.slideshow img {
	width: 380px;
	height: 285px;
	vertical-align: middle;
	border: 1px solid #42b4b4;
}
#case2f_thumbs {
	width: 255px;
	height: 287px;
	padding-left: 4px;
	float: right;
	background: #42b4b4;
}
#case2f_thumbs div.pagination a, div.pagination span.current, div.pagination span.ellipsis {
	background: #7bcbca;
}
#case2f_thumbs div.pagination span.current {
	background-color: #42b4b4;
	color: #fff;
}




#caseintro_gallery div.slideshow img {
	width: 380px;
	height: 285px;
	vertical-align: middle;
	border: 1px solid #5D8BC3;
}
#caseintro_thumbs {
	width: 255px;
	height: 287px;
	padding-left: 4px;
	float: right;
	background: #5D8BC3;
}
#caseintro_thumbs div.pagination a, div.pagination span.current, div.pagination span.ellipsis {
	background: #8EAED5;
}
#caseintro_thumbs div.pagination span.current {
	background-color: #5D8BC3;
	color: #fff;
}

#case_gallery div.slideshow img {
	width: 516px;
	height: 522px;
	vertical-align: middle;
}
#case_thumbs {
  background: url(../images/detail/phoarea_bg.gif) no-repeat scroll left top;
    float: right;
    padding: 6px 0 14px 43px;
    width: 516px;
	  height: 522px;
}
#case_thumbs div.pagination a, div.pagination span.current, div.pagination span.ellipsis {
	margin: 0 2px;
    background-color: #e3e3e3;
	width: 25px;
	text-align: center;
	text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #333;
    display: block;
    font-size: 1.3em;
    font-weight: bold;
    padding: 5px 0;
    position: relative;}
#case_thumbs div.pagination a:hover,
#case_thumbs div.pagination span.current {
    background: #fafafa url(../images/detail/page_bg.gif) repeat-x scroll left bottom;
    color: #cb2417;
    text-decoration: none;}
