@import url("jquery.fancybox.css");

* {
	font-weight: normal;
}


.wrapper {width: 1200px;margin: 0 auto; position: relative;}

* {
	box-sizing: border-box;
}

a {
	text-decoration: none;
}

body {
	background: #000;
	margin:0;
	padding:0;
	font-family: Arial;
	color: #454545;
	overflow-x: hidden;
	color: #fff;
	font-size: 15px;
}

.gallery {
	width: 100%;
}

iframe {
	width: 100%!important;
	height: 600px!important;
}

.sub .wrapper img {
	max-width: 100%;
}

#nav {
	text-align: center;
	padding-bottom: 10px;
}

#nav a {
	width: 40px;
	height: 27px;
	display: inline-block;
	background-size: 40px 27px!important;
    position: absolute;
    top: 50%;
}

#nav a:first-child {
	background: url(../images/left.png);
	margin-top: -22px;
    left: 0;
}
#nav a:last-child {
	background: url(../images/right.png);
	margin-top: -22px;
    right: 0;
}

@media screen and (max-width: 1023px) {



    #nav a {
    	width: 20px;
    	height: 13px;
		background-size: 20px 13px!important;
		margin-top:-12px;
	}



	#nav a:first-child {
    left: -7px;
	}

	#nav a:last-child {
    right: -7px;
	}
}

.img {
	width: 24%;
	margin: 0.5%;
	float: left;
	margin-bottom: 10px;
	position: relative;
	overflow: hidden;

}

a {
	color: inherit;
	text-decoration: underline;
}

.img a {
	overflow: hidden;
	display: block;
}

.img img {
	transition: all 0.3s;	
}

.desc {
	height: 60px;
	width: 100%;
	text-align: center;
	padding: 5px 0;
	color: #fff;
	transition: all 0.3s;	
}

.magnifier {
	width: 50px;
	height: 50px;
	background: url(../images/magnifier.png);
	position: absolute;
	bottom: -100px;
	left:50%;
	margin-left:-25px;
	transition: all 0.3s;
}

.img:hover img {
	opacity: 0.2;
	transform: scale(1.1);
}

.img:hover .magnifier {
	top:50%;
	margin-top:-25px;
}

.img:hover .desc {
	top: 20px;

}

.clear {
	clear: both;
}

.back {
	width: 49px;
	height: 43px;
	background: url(../images/close.png);
	position: absolute;
	right: 5px;
	top: 5px;
	text-indent:-9999px;
}

.mask {
	width: 100%;
	position: absolute;
	top: 0;
	left:0;
	right:0;
	bottom:0;
}

.pagelinks {
	text-align: center;
    font-family: Titan One;
    margin-bottom: 20px;
}

.pagelinks a, .pagelinks em {
	font-size: 19px;

	margin: 0 7px;
	display: inline-block;
	width: 35px;
	height: 35px;
	border-radius: 30px;
	color: #000;
	background: #fff;
	line-height: 31px;
	font-style: normal;
}

.pagelinks a {
	border: 2px solid #fff;
	color: #fff;
	background: #000;
}


h3 {
	text-align: center;
	color: #fff;
	margin-top: 60px;
	font-size: 30px;
	font-family: Titan One;
}

.img img {
	display: block;
	width: 100%;
}

@media screen and (max-width: 1200px) {
	.wrapper {
		width: auto;
		padding: 0 10px;
	}
}

@media screen and (max-width: 1023px) {

		.back {
	width: 70px;
	height: 61px;
	background: url(../images/close.png);
	background-size: 70px 61px!important;
	position: absolute;
	right: 5px;
	top: 5px;
	text-indent:-9999px;
}
}


@media screen and (max-width: 640px) {
	.img {
		width: 32.3%;
		margin: 0.5%;
	}
}

@media screen and (max-width: 480px) { 
	.img {
		width: 49%;
		margin: 0.5%;
	}
}