﻿#gallery {
	width: 100%;
	padding: 0;
	margin: 0 auto;
	overflow: hidden;
	box-sizing: border-box;
	background-image: url('../images/background.jpg');
}
#gallery .fs-icon {
	top: 6px;
	right: 6px;
	width: 60px;
	height: 26px;
	background: rgba(0,0,0,0.2);
	z-index: 2;
	color: white;
	text-align: center;
	text-shadow: 0 0 3px black;
	font: bold 18px/36px arial;
	border-radius: 2px;
	opacity: 0;
	-webkit-transition: opacity 0.8s;
	transition: opacity 0.8s;
}
#gallery .gallery-inner:hover .fs-icon, #gallery.fullscreen .fs-icon {
	opacity: 1;
}
#gallery .fs-icon::before {
	content: "EXPAND";
	display: block;
}
#gallery.fullscreen .fs-icon::before {
	content: "+";
	display: block;
	font-weight: bold;
	font-size: 3em;
	transform: rotate(-45deg);
}
#gallery .gallery-inner {
	max-width: 500px;
	margin: 0 auto;
/*center-aligned */font-size: 0px;
	position: relative;
	box-sizing: border-box;
}
#gallery.fullscreen .gallery-inner {
	width: 98%; /* 100% will cause a big top gap issue in iPhone*/;
	max-width: 700px;
}
#gallery ul {
	position: relative;
	list-style: none;
	padding: 0;
	box-sizing: border-box;
	overflow: visible!important;
/*For showing captions outside the slider when transitionType is "fade". */margin-bottom: 100px!important;
}
#gallery li {
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	position: absolute;
	font-size: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
	opacity: 0; /*overflow:hidden;*/ /*Comment it out to show the caption*/;
	box-sizing: border-box;
	margin-bottom: 100px!important;
}
#gallery li.ns-show {
	opacity: 1;
}
/* --------- slider image ------- */
#gallery .ns-img {
	background-color: rgba(0,0,0,0.3); /* background-size: contain; */ /*Note: If transitionType is zoom, it will be overridden to cover.*/ /*decorate border*/;
	box-shadow: inset 0 0 2px rgba(255,255,255,.3);
	border-radius: 2px;
	cursor: default;
	display: block;
	position: absolute;
	width: 100%;
	height: 100%;
	background-repeat: no-repeat;
	background-position: center center;
}
/*---------- Captions -------------------*/
#gallery .caption {
	position: absolute;
	top: auto;
	bottom: auto;
	padding: 0 40px;
	width: 100%;
	text-align: center;
	font-family: Calibri;
	font-size: 14px;
	color: #ccc;
	box-sizing: border-box;
	margin-top: -20px;
}
/* ---------Arrow buttons ------- */
/* The arrow button id should be: slider id + ("-prev", "-next", and "-pause-play") */
#gallery-pause-play {
	display: none;
}
#gallery-prev, #gallery-next {
	position: absolute;
	display: inline-block;
	width: 42px;
	height: 56px;
	line-height: 56px;
	top: 40%; /* not 50% as caption at bottom should be counted.*/;
	margin-top: -28px;
	background-color: rgba(0,0,0,0.4);
	background-color: #ccc\9;/*IE8 hack*/;
	backface-visibility: hidden;
	color: white;
	overflow: hidden;
	white-space: nowrap;
	-webkit-user-select: none;
	user-select: none;
	border-radius: 2px;
	z-index: 10;
	opacity: 0.3;
	font-family: sans-serif;
	font-size: 13px;
	cursor: pointer;
	-webkit-transition: all 0.7s;
	transition: all 0.4s;
}
.gallery-inner:hover #gallery-prev, .gallery-inner:hover #gallery-next {
	opacity: 1;
}
#gallery-prev {
	left: -42px; /*set it with a positive value if .gallery-inner does not have max-width setting.*/
}
#gallery-next {
	right: -42px;
}
/* arrows */
#gallery-prev::before, #gallery-next::before {
	position: absolute;
	top: 17px;
	content: "";
	display: inline-block;
	width: 20px;
	height: 20px;
	border-left: 2px solid white;
	border-top: 2px solid white;
	backface-visibility: hidden;
}
#gallery-prev::before {
	-ms-transform: rotate(-45deg);/*IE 9*/;
	-webkit-transform: rotate(-45deg);
	transform: rotate(-45deg);
	left: 16px;
}
#gallery-next::before {
	-ms-transform: rotate(135deg);/*IE 9*/;
	-webkit-transform: rotate(135deg);
	transform: rotate(135deg);
	right: 16px;
}
/*pagination num within the arrow buttons*/
#gallery-prev:hover, #gallery-next:hover {
	width: 80px;
	background-color: rgba(0,0,0,0.5);
}
#gallery-prev div {
	margin-right: 8px;
	white-space: nowrap;
	opacity: 0;
	float: right;
}
#gallery-next div {
	margin-left: 8px;
	white-space: nowrap;
	opacity: 0;
	float: left;
}
#gallery-prev:hover div, #gallery-next:hover div {
	opacity: 1;
}
/*------ pager(nav bullets) ------*/
/* The pager id should be: slider id + "-pager" */
#gallery-pager {
	display: none;
}
#gallery-prev, #gallery-next, #gallery-pause-play {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
}
/*Responsive settings*/
@media only screen and (max-width:600px){
#gallery-prev, #gallery-next, #gallery-pager {
	display: none;
}
#gallery li .cap1 {
	font-size: 20px;
}
}
