
/************************ Main gallery styling **********************/
#ccgallery {
	max-width: 1000px;
	width: 100%;
	height: 400px;
	margin: 20px auto;
	position: relative;
	z-index: 0;
	background: url(../images/loading-light.gif) center center no-repeat;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	-webkit-touch-callout: none;
}

/************ Toolbar **************/
menu {
	margin: 0 auto;
	text-align: center;
}

.buttonset {
	color: #3d3d3d;
	font-family: Verdana, Geneva, sans-serif;
	height: 25px;
	display: inline-block;
	zoom: 1; /* IE7 hack for display inline-block */
	*display: inline;
	margin: 0 20px;
}

.navbuttons {
	cursor: pointer;
	display: block;
	float: left;
	line-height: 160%;
	padding: 0 10px;
	border-right: 1px solid #ccc;
	border-left: 1px solid #ccc;
}

a.navbuttons {
	color: #3d3d3d;
}

a.navbuttons:hover {
	text-decoration: none;
}

.buttonset .navbuttons:first-of-type {
	border-left: none;
}

.buttonset .navbuttons:last-of-type {
	border-right: none;
}

.navbuttons:hover {
	color: #8a1f03;
}

.navbuttons:active, .navbuttons.active {
	color: #8a1f03;
}

#ccgallery section {
	width: 100%;
	margin-top: 10px;
	display: none;
}

#displayButtons {
	display: none;
}

/************** Thumbnail gallery styling ****************/
#thumbGallery ul {
	list-style: none;
	width: 100%;
	overflow: hidden;
	text-align: center;
	-moz-box-sizing    : border-box;
	-webkit-box-sizing : border-box;
	box-sizing         : border-box;
}

#thumbGallery li {
	position: relative;
	display: inline-block;
	zoom: 1;
	*display: inline;
	vertical-align: top;
	width: 135px;
	height: 135px;
	padding: 0;
	margin: 0 10px 20px 10px;
	background-color: #ffffff;
	border: 1px solid #ffffff;
	-moz-transition:    box-shadow 0.4s ease-in-out;
	-webkit-transition: box-shadow 0.4s ease-in-out;
	-o-transition:      box-shadow 0.4s ease-in-out;
	-ms-transition:     box-shadow 0.4s ease-in-out;
	transition:         box-shadow 0.4s ease-in-out;
	behavior: url(PIE.htc);
}

#thumbGallery li:hover {
	border: 1px solid #8a1f03;
	-moz-box-shadow:    inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 15px rgba(0, 0, 0, 0.7);
	-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 15px rgba(0, 0, 0, 0.7);
	box-shadow:         inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 15px rgba(0, 0, 0, 0.7);
}

#thumbGallery img {
	width: 135px;
	height: 135px;
	cursor: pointer;
	opacity: 1.0;
	-moz-transition:    opacity 0.4s ease-in-out;
	-webkit-transition: opacity 0.4s ease-in-out;
	-o-transition:      opacity 0.4s ease-in-out;
	-ms-transition:     opacity 0.4s ease-in-out;
	transition:         opacity 0.4s ease-in-out;
}

#thumbGallery img:hover {
	opacity: 1.0;
	filter: alpha(opacity=100);
}

#thumbGallery .details {
	display: none;
	position: relative;
}

#thumbGallery h2 {
	color: #3d3d3d;
	font: .8em Verdana, Geneva, sans-serif;
	text-align: left;
}

#thumbGallery .description {
	display: none;
}

/**************** Coverflow section styling ***************/
#coverContainer {
	display: none;
}

.cwrapper {
	display: none;
}

#coverContainer.css3d, .css3d .cwrapper {
	display: none;
}

.cwrapper canvas {
	display: none;
}

.css3d .cwrapper canvas.cover {
	display: none;
}

div.cover {
	display: none;
}

div.cover img {
	display: none;
}

.coverclick {
	display: none;
}

.css3d .coverclick {
	display: none;
}

.coverclick.active {
	display: none;
}

#coverTitle {
	display: none;
}

/**** Scroll bar styling ****/
#scroll-wrap {
	width: 372px;
	height: 17px;
	margin: 20px auto 0 auto;
	background: url(../images/scrollbar-track-light.png) no-repeat;
	position: relative;
}

#prev {
	position: absolute;
	left: 0;
	top: 0;
	width: 15px;
	height: 17px;
	cursor: pointer;
}

#next {
	position: absolute;
	right: 0;
	top: 0;
	width: 15px;
	height: 17px;
	cursor: pointer;
}

#scrollbar-track {
	width: 342px;
	height: 17px;
	margin: 0 auto;
	position: relative;
}

.ui-slider-handle {
	width: 102px;
	height: 17px;
	position: absolute;
	left: 0;
	top: 0;
	margin-left: -51px;
	cursor: default;
	outline: none;
	background: url(../images/scrollbar-handle-light.png) no-repeat;
}

.ui-handle-helper-parent {
	position: relative;
	width: 100%;
	height: 100%;
	margin: 0 auto;
}


/***** Coverflow section list styling *****/
#listWrapper {
	display: none;
}

#itemList {
	display: none;
}

#itemList li {
	display: none;
}

#itemList li:last-child {
	display: none;
}

#itemList li:hover {
	display: none;
}

#itemList li.active {
	display: none;
}

#itemList li[data-type=photo]:before {
	display: none;
}

#itemList li[data-type=audio]:before {
	display: none;
}

#itemList li[data-type=video]:before {
	display: none;
}

#itemList .details {
	display: none;
}

#itemList li h2 {
	display: none;
}

#itemList li .description {
	display: none;
}

#itemList li .description:before {
	display: none;
}

#itemList li:hover h2, #itemList li.active h2 {
	display: none;
}

#itemList li:hover .description, #itemList li.active .description {
	display: none;
}



/****************** Overlay styling ****************/
#mask {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 999;
	background: #ffffff;   /* fallback */
	background: rgba(255, 255, 255, 0.7);
	-pie-background: rgba(255, 255, 255, 0.7);
	width: 100%;
	display: none;
	behavior: url(PIE.htc);
}

#overlayLoader {
	position: absolute;
	z-index: 1000;
	left: 50%;
	margin: -30px 0 0 -30px;
	width: 60px;
	height: 60px;
	background: #ffffff url(../images/loading-light.gif) center center no-repeat;
	border: 1px solid #ccc;
	display: none;
	-moz-border-radius:    8px;
	-webkit-border-radius: 8px;
	border-radius:         8px;
	-moz-background-clip:    padding;
	-webkit-background-clip: padding-box;
	background-clip:         padding-box;
	behavior: url(PIE.htc);
}

#overlay {
	border: 1px solid #8a1f03;
	position: absolute;
	z-index: 1001;
	left: 50%;
	padding: 20px;
	background-color: #ffffff;
	display: none;
	-moz-background-clip:    padding;
	-webkit-background-clip: padding-box;
	background-clip:         padding-box;
	behavior: url(PIE.htc);
}

#overlayContent {
	width: 100%;
	height: 100%;
	margin: 0 auto;
	position: relative;
	display: none;
	text-align: center;
}

#close {
	position: absolute;
	top: -15px;
	right: -15px;
	width: 36px;
	height: 36px;
	display: block;
	cursor: pointer;
	background: url(../images/close.png) no-repeat;
}

#overlayContent .details {
	position: absolute;
	bottom: 0;
	left: 0;
	text-align: left;
	width: 100%;
}

#overlayContent h2 {
	font: 110% Verdana, Geneva, sans-serif;
	color: #8a1f03;
}

#overlayContent p {
	font: .9em Verdana, Geneva, sans-serif;
	color: #3d3d3d;
	margin-top: 5px;
}

#next-item, #prev-item {
	position: absolute;
	display: block;
	width: 35px;
	height: 34px;
	cursor: pointer;
	top: 50%;
	margin-top: -17px;
}

#next-item {
	background: url(../images/right-arrow.png) no-repeat;
	right: 0;
	margin-right: -17px;
}

#prev-item {
	background: url(../images/left-arrow.png) no-repeat;
	left: 0;
	margin-left: -17px;
}

@media only screen and (max-width: 768px) {
}

/**** Making the gallery responsive ***/
/*@media only screen and (max-width : 1000px),
only screen and (max-device-width : 1000px) {
	#ccgallery {
		width: 746px;
	}

	#thumbGallery ul {
		width: 726px;
	}
}

@media only screen and (max-width : 746px),
only screen and (max-device-width : 746px) {
	#ccgallery {
		width: 504px;
	}

	#thumbGallery ul {
		width: 484px;
	}

	#coverContainer {
		width: 100%;
	}

	#listWrapper {
		width: 442px;
	}

	#itemList li {
		width: 422px;
	}
}

@media only screen and (max-width : 504px),
only screen and (max-device-width : 504px) {
	#ccgallery {
		width: 480px;
	}

	#thumbGallery ul {
		width: 242px;
		margin: 0 auto;
	}

	#listWrapper {
		width: 418px;
	}

	#itemList li {
		width: 398px;
	}
}*/

@media only screen and (max-width : 480px),
only screen and (max-device-width : 480px) {
	.navbuttons {
		font-size: .85em;
		line-height: 130%;
	}
	.buttonset {
		height: 50px;
	}
	#overlay {
		min-width: 240px;
		min-height: 320px;
		left: 50%;
	}
	#overlayContent {
		width: 240px;
		height: 260px;
		float: left;
	}
	#overlayContent img {
		height: 70%;
		width: auto;
	}
	#overlayContent .details {
		top: 190px;
	}
	#overlayContent h2 {
		font: 75% Verdana, Geneva, sans-serif;
	}
	#overlayContent p {
		font: .5em Verdana, Geneva, sans-serif;
	}

	/*#ccgallery {
		width: 372px;
	}

	#listWrapper {
		width: 310px;
	}

	#itemList li {
		width: 290px;
	}*/

	#itemList li .description {
		display: none;
	}
}

@media only screen and (max-width : 372px),
only screen and (max-device-width : 372px) {
	#overlay {
		min-width: 200px;
		min-height: 320px;
		left: 50%;
	}
	#overlayContent {
		width: 200px;
		height: 260px;
		float: left;
	}
	/*#ccgallery {
		width: 320px;
	}

	#listWrapper {
		width: 258px;
	}

	#itemList li {
		width: 238px;
	}*/

	#itemList li .description, #scroll-wrap, canvas.fade {
		display: none;
	}
}
