
/*-------- VIEWER WINDOW --------*/

 .viewer1-bg
	{
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0px;
	left: 0px;
	background-color: #000003;
	z-index: 900;

	opacity: 0;
	-webkit-transition: opacity 0.2s ease;
	-moz-transition: opacity 0.2s ease;
	-o-transition: opacity 0.2s ease;
	transition: opacity 0.2s ease;
	}
 .viewer1-bg.opened
	{
	opacity: 0.8;
	}

 .viewer1
	{
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0px;
	left: 0px;
	z-index: 910;

	opacity: 0;
	-webkit-transition: all 0.15s ease;
	-moz-transition: all 0.15s ease;
	-o-transition: all 0.15s ease;
	transition: all 0.15s ease;

	-webkit-transform: translate(0, 50px);
	-moz-transform: translate(0, 50px);
	-o-transform: translate(0, 50px);
	transform: translate(0, 50px);
	}
 .viewer1.opened
	{
	opacity: 1;
	-webkit-transform: translate(0, 0);
	-moz-transform: translate(0, 0);
	-o-transform: translate(0, 0);
	transform: translate(0, 0);
	}


/*-------- VIEWER PHOTOS --------*/

 .viewer1 .photo
	{
	position: absolute;
	top:0px; left:40px; right:40px; bottom:80px;
	overflow: hidden;
	z-index: 20;

	-webkit-transition: all 150ms ease 150ms;
	-moz-transition: all 150ms ease 150ms;
	-o-transition: all 150ms ease 150ms;
	transition: all 150ms ease 150ms;

	opacity: 0;
	-webkit-transform: scale(0.5);
	-moz-transform: scale(0.5);
	-o-transform: scale(0.5);
	transform: scale(0.5);
	}

 .viewer1.opened .photo
	{
	opacity: 1;
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-o-transform: scale(1);
	transform: scale(1);
	}

 .viewer1 .photo img
	{
	display: inline-block;
	position: absolute;
	top:0; left:0; right:0; bottom:0;
	margin: auto;
	max-width: 100%;
	max-height: 100%;
	background-color: #ffffff;

	-webkit-transition: opacity 0.2s ease;
	-moz-transition: opacity 0.2s ease;
	-o-transition: opacity 0.2s ease;
	transition: opacity 0.2s ease;
	}

 .viewer1 .photo .animation
	{
	position: absolute;
	top:0px; left:0px; right:0px; bottom:0px;
	background: url('images/loading.gif') center center no-repeat;
	background-size: 100px auto;

	opacity: 0;
	-webkit-transition: opacity 0.3s ease;
	-moz-transition: opacity 0.3s ease;
	-o-transition: opacity 0.3s ease;
	transition: opacity 0.3s ease;
	}

 .viewer1 .photo.loading .animation
	{
	opacity: 1;
	}

 .viewer1 .photo.loading img
	{
	opacity: 0;
	}


/*-------- VIEWER BUTTONS --------*/

 .viewer1 .close-btn
	{
	position: absolute;
	top: 15px;
	right: 20px;
	height: 54px;
	width: 54px;
	cursor: pointer;
	z-index: 30;
	}

 .viewer1 .close-btn span
	{
	display: block;
	width: 100%;
	height: 100%;
	background: url('images/close.svg') center center no-repeat;
	background-size: 50% auto;
	cursor: pointer;

	opacity: 0.6;
	-webkit-transition: opacity 0.2s linear;
	-moz-transition: opacity 0.2s linear;
	-o-transition: opacity 0.2s linear;
	transition: opacity 0.2s linear;
	}

 .viewer1 .close-btn:hover span
	{
	opacity: 1;
	}

 .viewer1 .bt
	{
	position: absolute;
	top: 50%;
	height: 50px;
	margin-top: -25px;
	width: 50px;
	cursor: pointer;
	z-index: 30;
	perspective: 100px;
	}
 .viewer1 .bt.back
	{
	left: 15px;
	}
 .viewer1 .bt.next
	{
	right: 15px;
	}

 .viewer1 .bt span
	{
	display: block;
	width: 100%;
	height: 100%;
	background-color: #000000;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 20px auto;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.2s linear;
	}
 .viewer1 .bt.back span
	{
	background-image: url('images/back.svg');
	}
 .viewer1 .bt.next span
	{
	background-image: url('images/next.svg');
	}

 .viewer1 .bt:hover span
	{
	background-color: #B9926D;
	}



/*-------- VIEWER BOTTOM --------*/

 .viewer1 .bottom
	{
	position: absolute;
	left:0; right:0; bottom:0;
	padding: 20px 100px;
	min-height: 40px;
	font-size: 16px;
	color: #ffffff;
	text-align: center;
	z-index: 30;
	background-color: RGBA(0,0,0, 0.7);
	background: -webkit-linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.3) 60%, transparent);
	background: -moz-linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.3) 60%, transparent);
	background: -o-linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.3) 60%, transparent);
	background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.3) 60%, transparent);
	}

 .viewer1 .bottom .text h3
	{
	margin: 0;
	font-size: 16px;
	font-weight: bold;
	color: #ffffff;
	}

 .viewer1 .bottom .text div
	{
	margin-top: 10px;
	font-size: 14px;
	color: #ffffff;
	}

 .viewer1 .bottom .photo-count
	{
	position: absolute;
	bottom: 0px;
	right: 30px;
	padding: 15px 0;
	font-size: 16px;
	color: #eeeeee;
	}


/*-------- MOBILE --------*/

@media (max-width: 600px) 
 {
 .viewer1 .close-btn
	{
	position: absolute;
	top: 0px;
	right: 0px;
	}
 .viewer1 .close-btn span
	{
	background-size: 40% auto;
	}

 .viewer1 .bt
	{
	background: none;
	}
 .viewer1 .bt.back
	{
	left: 0px;
	}
 .viewer1 .bt.next
	{
	right: 0px;
	}

 .viewer1 .bottom
	{
	padding: 10px 60px 10px 20px;
	min-height: 15px;
	text-align: left;
	}

 .viewer1 .bottom .text h3
	{
	font-size: 14px;
	}

 .viewer1 .bottom .text div
	{
	margin-top: 6px;
	font-size: 13px;
	}

 .viewer1 .bottom .photo-count
	{
	right: 10px;
	padding: 10px 0;
	font-size: 14px;
	}
 }
