/* DetailBox NEW */
#detailBox {
	display: none;
	top: 0px;
	left: 0px;
	width: 100vw;
	height: 100vh;
	position: fixed;
	z-index: 500;
}
		

.dbMask {	left: 0px;
			top: 0px;
			width: 100%;
			height: 100%;
			background: rgba(0,0,0,0.8);
			display: table-cell;
			text-align: center;
			vertical-align: middle; 
/*			display: flex;
  		  	justify-content: center;
			align-items: center;  */

			-webkit-transition: opacity ease-out 0.4s, visibility ease-out 0.4s;
			transition: opacity ease-out 0.3s, visibility ease-out 0.3s;
			-webkit-transition: padding ease-out 0.4s, visibility ease-out 0.4s;
			transition: padding ease-out 0.3s, visibility ease-out 0.3s;
			opacity: 0;
			visibility: hidden; 
}
.dbActive {	opacity: 1 !important;
			visibility: visible !important;
}
.dbTransparent { opacity: 0 !important; }

.dbFrame {	position: relative;
			margin: 0 auto;
			display: inline-block;
			z-index: 600;
			min-width: 280px; 
			min-height: 220px;
			text-align: center;
			-webkit-transition: all 0.2s ease;
			transition: all 0.2s ease;
			overflow: hidden;
			border: 1px solid #000;
}
#dbImg {
	position: relative;
	margin: 0 auto;
	opacity: 0;
/*	visibility: hidden; */
	margin-bottom: -4px;
	-webkit-transition: all 0.3s ease;
	transition: all 0.3s ease; 

}
#dbImgTemp {
	display: none;
	position: absolute;
	top: 0px;
	opacity: 1;
	-webkit-transition:  opacity 0.4s ease, -webkit-transform 0.4s ease;
	transition: opacity 0.4s ease, transform 0.4s ease;
}
.slideLeft {
/*	opacity: 0 !important; */
	left: 0px;
	-webkit-transform: translateX(-100%);
	transform: translateX(-100%);
}
.slideRight {
/*	opacity: 0 !important; */
	right: 0px;
	-webkit-transform: translateX(100%);
	transform: translateX(100%);
}

.dbDirArea {
	position: absolute;
	display: block;
	top: 0px;
	width: 25%;
	height: 100%;
}
#dbPrev {
	left: 0px; 
	opacity: 0;
	visibility: hidden;
}
#dbNext {
	right: 0px; 
	opacity: 0;
	visibility: hidden;
}
.dbDirButton {
	position: absolute;
	display: block;
	height: 70px;
	width: 40px;
	padding: 20px 2px;
	background: rgba(0,0,0,0.3);
	top: 50%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
	-webkit-transition: all 0.4s ease;
	transition: all 0.4s ease;
	
}
#dbPrev .dbDirButton { 
	left: -1px; 
	border-top-right-radius: 12px;
	border-bottom-right-radius: 12px;
	text-align: left;
}
#dbNext .dbDirButton { 
	right: -1px; 
	border-top-left-radius: 12px;
	border-bottom-left-radius: 12px;
	text-align: right;
}
.dbDirButton svg {
	width: 30px;
	height: auto;
	fill: rgba(255,255,255,0.4);
	-webkit-transition: all 0.4s ease;
	transition: all 0.4s ease;
}
.dbDirArea:hover .dbDirButton, #dbPrev.touch .dbDirButton, #dbNext.touch .dbDirButton { background: rgba(0,0,0,0.5); }
.dbDirArea:hover .dbDirButton svg, #dbPrev.touch svg, #dbNext.touch svg { fill: rgba(255,255,255,0.8); }

#dbClose {
	position: absolute;
	display: block;
	top: -1px;
	right: -1px; 
	width: 20%;
	height: 20%;
	min-width: 45px;
	min-height: 45px; 
	opacity: 0;
	visibility: hidden;
	z-index: 700;
	border-bottom-left-radius: 40%;
}

.dbCloseButton {
	position: absolute;
	display: block;
	text-align: center;
	top: 0px;
	right: 0px; 
	width: 40px;
	height: 40px;
	padding: 10px 0 0 0;
	background: rgba(96,0,0,0.3);
	-webkit-transition: all 0.4s ease;
	transition: all 0.4s ease;

	border-bottom-left-radius: 12px;
}
#dbClose svg {
	width: 20px;
	height: auto;
	fill: rgba(255,255,255,0.4);
	-webkit-transition: all 0.2s ease;
	transition: all 0.2s ease;
}
#dbClose:hover .dbCloseButton, #dbClose.touch .dbCloseButton { background: rgba(96,0,0,0.6); }
#dbClose:hover svg, #dbClose.touch svg { fill: rgba(255,255,255,0.8); }

@media screen and (max-device-width: 320px) {
	.dbCloseButton { padding: 0; }
	#dbClose svg { width: 18px; }
	.dbDirButton { padding: 16px 2px; }
	.dbDirButton svg { width: 24px; }
}

#dbText {
	position: absolute;
	display: block;
	bottom: 0px;
	width: 100%;
	font-family: Signika Verdana, Geneva, sans-serif;
	color: rgba(255,255,255,0.8);
	text-shadow: 0 0 3px rgba(255,255,255,0.8);
	background: rgba(0,0,0,0.5);
	padding: 6px;
	-webkit-transition: all 0.4s ease;
	transition: all 0.4s ease;
/*	height: 35px; */
	opacity: 0;
	visibility: hidden;
}
/*#dbText:hover, #dbText.touch {
	color: rgba(255,255,255,0.8);
	background: rgba(0,0,0,0.5);
}*/


#dbGear {
	position: absolute;
	display: inline-block;
	top: 50%;
	left: 50%;
	width: auto;
	height: auto;
	-webkit-transform: translate(-50%,-50%);
	transform: translate(-50%,-50%);
	transition: all 0.2s ease;

	visibility: hidden;
	opacity: 0;
}

#gear {
	display: block;
	width: 80px; 
	height: auto;
/*	-webkit-transform: translate(-50%,-50%); */
	-webkit-animation: rotatingGear 3s linear infinite;
	animation: rotatingGear 3s linear infinite; 
	
}

#dbShowUI {
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	display: none;
/*	border: 1px solid #f00;
	background: rgba(255,0,0,0.3); */
	z-index: 1000;
}

/* animation keyframes */

@-webkit-keyframes rotatingGear /* Safari and Chrome */ {
  from {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes rotatingGear /* Safari and Chrome */ {
  from {
    -webkit-transform: rotate(0deg) ;
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
	transform: rotate(360deg);
  }
}




