@charset "utf-8";
/* CSS Document */
body{
	background-image:url(../img/bg_pattern.gif);
	background-repeat:repeat-x;
	background-color: #f9f9f7;
	margin-top: 50px;
	font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;

}
#base{
	height:auto;
	width: 900px;
	margin: auto;
	background-color: #fff;
	box-shadow: 0 0 20px rgba(0,0,0,0.5);
	padding: 10px 10px 10px 10px;
}

/*-----header------*/
#header{
	height:70px;
	width: 100%;
	background-image:url(../img/bg-head.jpg);	
	color: #fff;
	position:relative;
}
#header h1{
	display:inline;
	
	position:absolute;
	top:-10px;
	left:20px;

}
#header p{
	display:inline;
	font-size:14px;
	position:absolute;
	top:-10px;
	left:630px;
	line-height:1.5;
}

/*-----menu--------*/
#nav{
	height:40px;
	width: 900px;
	background-image:url(../img/bg-nav.jpg);
	position:relative;
	display: table-cell;
    vertical-align: middle;
	padding-left:16px;
}
#nav ul, #nav li {
  margin: 0;
  padding: 0px;
  display:inline;
  word-spacing: 40px;

}
#nav a {
  color:#fff;
  text-decoration: none;
  font-size:20.8px;
}
#nav li :hover {
	color:#ffcb00;
}
	
.active{
	color:#ffcb00;
}
/*------button-----*/
#button{
	display:inline;
	width:auto;
	height:auto;
	position:absolute;
	top:10px;
	left:810px;

}
#button img{
	width:33px;
	height:20px;
}
#button a :hover{
	opacity:0.9;

}
/*-----content-----*/
#content{
	margin-top:17px;
	height: 365px;
	width:100%;
	position:relative;

}
#content h2{
	color: #2b2b2b;
}
/*------gallery----*/
#gallery1 {
  position: relative;
  padding-top: 35%;
  -moz-user-select: none; user-select: none;
}

#gallery1 img {
  position: absolute;
  top: 25%;
  left: 12.5%;
  max-width: 24.5%;
  max-height: 49.5%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  -moz-user-select: none; user-select: none;
  cursor: zoom-in;
}
#gallery1 img:nth-child(4n-2) {left: 37.5%;}
#gallery1 img:nth-child(4n-1) {left: 62.5%;}
#gallery1 img:nth-child(4n) {left: 87.5%;}
#gallery1 img:nth-child(n+5) {top: 75%;}

#gallery1 img:focus {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 31;
  max-width: 100%;
  max-height: 100%;
  outline: none;
  pointer-events: none;
}

#gallery1 img:focus ~ div {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: rgba(240,240,240,.9);
  cursor: zoom-out;
}