/*-------------------------------------------- */
/** Content Gallery */
/*-------------------------------------------- */

#content-gallery {
	background-color: #333;
	color: #fff;
	font-family: Georgia, serif;
	width: 982px;
	height: 540px;
	width: auto;
	position: relative;
}

#content-gallery .cg-wrapper {
	padding: 44px 22px 22px 22px;
	width: auto;
}

#content-gallery article {
	width: 65.884861407%;
	float: left;
}

#content-gallery aside {
	float: right;
	width: 31.982942431%
}

#content-gallery-viewer {
	height: 430px;
	min-width: 300px;
	width: 100%;
}

#content-gallery h2 {
	font-size: 20px;
	margin: 0 0 8px 0;
	line-height: 1em;
}

#content-gallery .close-btn {
	background: url(/images/content_gallery-close_btn.png) no-repeat right 2px;
	cursor: pointer;
	display: block;
	color: #fff;
	padding: 1px 22px 0 0;
	position: absolute;
	top: 10px;
	right: 10px;
}

#content-gallery .caption {
	border-bottom: 1px solid #fff;
	height: 160px;
	margin: 14px 0;
}

#content-gallery .credit-text {
	font: normal 11px Arial;
	color: #fff;
	display: inline-block;
	float: right;
	margin: 307px 45px 0 0; /* image is absolute position */
}

#content-gallery .caption .viewport {
	height: 160px;
	overflow: hidden;
	position: relative;
}

#content-gallery .caption .overview {
	position: absolute;
	top: 0;
	left: 0;
	padding: 0 10px 10px 0;
}

#content-gallery .caption .overview a {
	color: #D80909;
}

#content-gallery .caption .overview a:hover {
	text-decoration:underline;
}

#content-gallery .caption .scrollbar {
	position: relative;
	float: right;
	padding: 0 0 10px 0;
}
#content-gallery .caption .scrollbar.disable {
	display: none;
}

#content-gallery .caption .track {
	background-color: #fff;
	width: 1px;
	position: relative;
}

#content-gallery .caption .thumb {
	background-color: #fff;
	height: 30px;
	width: 5px;
	cursor: pointer;
	overflow: hidden;
	position: absolute;
	top: 0;
	left: -2px;
}
.touch #content-gallery .caption .thumb {
	width: 16px;
	left: -5px;
}

#content-gallery .pager-count {
	font-size: 13px;
	font-style: italic;
    margin: 0 0 0 15px;
}

#content-gallery-ad {
	background-color: #999;
	height:250px;
	overflow:hidden;
}
/*remove this rule after a real fix is found */
.galleria-errors { display: none; }

/*-------------------------------------------- */
/** Content Gallery Media Queries */
/*-------------------------------------------- */


@media screen and (max-width: 981px) {
	#content-gallery {
		width: 100%;
		height: 100%;
	}
}

@media screen and (max-width: 700px) {
	#content-gallery aside {
		float: none;
	}
	
	#content-gallery article {
		float: none;
		width: 100%;
	}

	#content-gallery-viewer {
		margin-top: 20px;
	}

	#content-gallery .caption,
	#content-gallery-ad {
		display: none;
	}

	#content-gallery .cg-nav-count {
		position: absolute;
	    top: 15px;
	}
	.galleria-container {
		width: 100% !important;
	}
}
@media screen and (max-width: 480px) {
	.galleria-stage { 
  		height:300px;
	}
	#content-gallery .galleria-thumbnails-container {
		display: none;
	}
}
@media screen and (max-width: 320px) {
	#content-gallery .cg-wrapper {
		padding-left: 2px;
		padding-right: 2px;
		padding-top: 100px;
	}

	#content-gallery .cg-nav-count {
	    top: 58px;
	}

	#content-gallery .galleria-stage {
		left:0;
	}
}