#galleryhr{
	position:relative;
	background-color:#99bb00;
	z-index:110;
}

#gallerywrapper{
	width:100%;
	background-color:#fff;
	z-index:100;
}

#gallery-grid-container{
	position:relative;
	margin:0 auto;
}

.photo-grid {
	display: flex;
	justify-content: left;
	flex-direction: row;
}

.first-item {
	z-index:120;
}

.photo-grid-item {
	z-index:120;
}

.photo-grid-item img {
	width: 100%;
	cursor:pointer;
	/*border:1px solid #fff;*/
}

.active img {
	border:3px solid #f00;
	/* make it glow! */
    -webkit-box-shadow: 0px 0px 10px #B20000;
       -moz-box-shadow: 0px 0px 10px #B20000;
            box-shadow: 0px 0px 10px #B20000; 
}

.photo-grid-item img:hover {
	border:3px solid #f00;
	/* make it glow! */
    -webkit-box-shadow: 0px 0px 10px #B20000;
       -moz-box-shadow: 0px 0px 10px #B20000;
            box-shadow: 0px 0px 10px #B20000; 
}


/***mobile**********************************************************/
@media only screen and (max-width: 640px) {
html, body{
	background-color:#fff;
}

main{
	height:650px;
	background-color:#fff;
}

.title{
	font-size:0.9em;
	margin-top:0px;
	margin-left:10px;
	color:#99bb00;
}

#galleryhr{
	top:10px;
	left:0px;
	width:100%;
	height:2px;
}

#gallerywrapper{
	height:145px;
}

#gallery-grid-container{
	top:10px;
	height:100px ;
	width:100%;
}

.photo-grid {
	width: 98%;
	margin-left:10px;
}

.active img {
	border:1px solid #f00;
	/* make it glow! */
    -webkit-box-shadow: 0px 0px 5px #B20000;
       -moz-box-shadow: 0px 0px 5px #B20000;
            box-shadow: 0px 0px 5px #B20000; 
}

.photo-grid-item img:hover {
	border:1px solid #f00;
	/* make it glow! */
    -webkit-box-shadow: 0px 0px 5px #B20000;
       -moz-box-shadow: 0px 0px 5px #B20000;
            box-shadow: 0px 0px 5px #B20000; 
}

.first-item {
	display:none;
}

.photo-grid-item {
	width: 70px;
	height: 100%;
	margin-right:2%;
}

#imgcount{
	display:inline-block;
	position:relative;
	width:100%;
	bottom:7px;
	color: #333;
	font-size:1.2em;
	font-weight: bold;
	text-align:center;
	background-color:#ddd;
}

#imagewrapper{
	width:100%;
	height:280px;
	display:flex;
	background-color:#fff;
}

#foto{
	width:auto;
	height:280px;
	margin:0 auto;
	-webkit-box-shadow:7px 7px 14px #333;
	   -moz-box-shadow:7px 7px 14px #333;
	        box-shadow:7px 7px 14px #333;
	background-color:#000;
}

#foto img{
	width:auto;
	height:100%;
	border:3px solid #333;
	cursor:pointer;
}

#film100{
	width:100%;
	height:110px;
	background-color:#fff;
	margin-top:30px;
}

#filmwrapper{
	width:100%;
	height:70px;
	padding:15px;
	margin:0 auto;
}

#foto-grid {
	height:70px;
	width:80%;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: row;
	flex-wrap: nowrap;
}

.foto-grid-item {
	height: 60px;
    width: auto;
	margin:0 2%;
	background-color:#000;
}

.foto-grid-item:nth-child(4){
	height: 45px;
}

.foto-grid-item:nth-child(2), .foto-grid-item:nth-child(6){
	height: 70px;
	display:none;
}

.foto-grid-item img {
    height: 100%; 
    width: auto;
	cursor:pointer;
}

.foto-grid-item img:hover {
	border:1px solid #f00;
    -webkit-box-shadow: 0px 0px 5px #B20000;
       -moz-box-shadow: 0px 0px 5px #B20000;
            box-shadow: 0px 0px 5px #B20000; 
}

.foto-grid-item:nth-child(4) img{
    border: 1px solid #f00;
	position: relative;
	bottom:1px;
    -webkit-box-shadow: 0px 0px 5px #B20000;
       -moz-box-shadow: 0px 0px 5px #B20000;
            box-shadow: 0px 0px 5px #B20000; 
}

#navleft{
	height:70px;
	width:5%;
	float:left;
	position:relative;
	right:3px;
	cursor:pointer;
}

#navleft img{
	height:30px;
	width:15px;
	position:relative;
	top:25%;
}


#navright{
	height:70px;
	text-align:right;
	width:5%;
	float:right;
	position:relative;
	right:30px;
	bottom:80px;
	cursor:pointer;
}

#navright img{
	height:30px;
	width:15px;
	position:relative;
	top:35%;
}



}


/***tablet**********************************************************/
@media only screen and (min-width: 641px) and (max-width: 1008px) {	
html, body{
	background-color:#fff;
}

main{
	height:870px;
	background-color:#fff;
}

.title{
	font-size:1em;
	margin-top:0px;
	margin-left:10px;
	color:#99bb00;
}

#galleryhr{
	top:15px;
	width:100%;
	height:2px;
}

#gallerywrapper{
	height:190px;
}

#gallery-grid-container{
	top:10px;
	height:100px;
	width:100%;
}

.photo-grid {
	width:95%;
	margin-left:20px;
}

.first-item h2{
	font-size:1em;
	margin-top:0px;
}

.first-item {
	display:none;
	height: 30px;
	margin-right:30px;
	margin-left:10px;
}

.photo-grid-item {
	width: 90px;
	height: 100%;
	margin-right:2%;
}

#imgcount{
	display:inline-block;
	position:relative;
	width:100%;
	top:10px;
	color: #333;
	font-size:1.2em;
	font-weight: bold;
	text-align:center;
	background-color:#ddd;
}

#imagewrapper{
	width:100%;
	height:400px;
	display:flex;
	background-color:#fff;
	margin-top:30px;
}

#foto{
	width:auto;
	height:400px;
	margin:0 auto;
	-webkit-box-shadow:11px 11px 17px #333;
	   -moz-box-shadow:11px 11px 17px #333;
	        box-shadow:11px 11px 17px #333;
	background-color:#000;
}

#foto img{
	width:auto;
	height:100%;
	border:5px solid #333;
	cursor:pointer;
}

#film100{
	width:100%;
	height:110px;
	background-color:#fff;
	margin-top:40px;
}

#filmwrapper{
	width:100%;
	height:80px;
}

#foto-grid {
	height:80px;
	width:86%;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: row;
	flex-wrap: nowrap;
}

.foto-grid-item {
	height: 70px;
    width: auto;
	margin:0 1%;
	background-color:#000;
}

.foto-grid-item:nth-child(4){
	height: 50px;
}

.foto-grid-item:nth-child(2), .foto-grid-item:nth-child(6){
	height: 80px;
}

.foto-grid-item img {
    height: 100%; 
    width: auto;
	cursor:pointer;
}

.foto-grid-item img:hover {
	border:3px solid #f00;
    -webkit-box-shadow: 0px 0px 10px #B20000;
       -moz-box-shadow: 0px 0px 10px #B20000;
            box-shadow: 0px 0px 10px #B20000; 
}

.foto-grid-item:nth-child(4) img{
    border: 3px solid #f00;
	position: relative;
	bottom:3px;
    -webkit-box-shadow: 0px 0px 10px #B20000;
       -moz-box-shadow: 0px 0px 10px #B20000;
            box-shadow: 0px 0px 10px #B20000; 
}

#navleft{
	height:80px;
	width:5%;
	float:left;
	position:relative;
	left:10px;
	cursor:pointer;
	margin-left:20px;
}

#navleft img{
	height:40%;
	width:50%;
	position:relative;
	top:30%;
}


#navright{
	height:80px;
	text-align:right;
	width:5%;
	float:right;
	position:relative;
	right:30px;
	bottom:80px;
	cursor:pointer;
}

#navright img{
	height:40%;
	width:50%;
	position:relative;
	top:30%;
}


}


/***desktop**********************************************************/
@media only screen and (min-width: 1009px) {
html, body{
	background-color:#fff;
}

main{
	height:870px; /*ori 870px */
	background-color:#fff;
}

.title{
	display:none;
}

#galleryhr{
	top:15px;
	left:95px;
	width:910px;
	height:2px;
}

#gallerywrapper{
	height:170px;
}

#gallery-grid-container{
	top:20px;
	height:100px ;
	min-width:1008px;
	width:1024px;
}

.photo-grid {
	width: 1000px;
	display: flex;
	justify-content: left;
	flex-direction: row;
}

.first-item h2{
	font-size:1.2em;
	margin-top:0px;
	color:#99bb00;
}

.first-item {
	width: 80px;
	height: 30px;
	margin-right:30px;
	margin-left:10px;
	z-index:120;
}

.photo-grid-item {
	width: 90px;
	height: 100%;
	margin-right:2%;
	z-index:120;
}

#imgcount{
	display:inline-block;
	position:relative;
	width:100%;
	top:5px;
	color: #333;
	font-size:1.2em;
	font-weight: bold;
	text-align:center;
	background-color:#ddd;
	/*opacity:0.5;*/
}

#imagewrapper{
	min-width:1008px;
	width:1024px;
	height:400px;
	margin:20px auto 0px;
	display:flex;
}


#foto{
	width:auto;
	height:400px;
	margin:0 auto;
	-webkit-box-shadow:15px 15px 20px #333;
	   -moz-box-shadow:15px 15px 20px #333;
	        box-shadow:15px 15px 20px #333;
	background-color:#000;
}

#foto img{
	width:auto;
	height:100%;
	border:7px solid #333;
	cursor:pointer;
}

#film100{
	width:100%;
	height:130px;
	background-color:#fff;
}

#filmwrapper{
	width:850px;
	height:100px;
	margin:20px auto;
	padding:30px;
}

#foto-grid {
	height:100px;
	width:800px;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: row;
	flex-wrap: nowrap;
}

.foto-grid-item {
	height: 90px;
    width: auto;
	margin:0 1%;
	background-color:#000;
}

.foto-grid-item:nth-child(4){
	height: 70px;
}

.foto-grid-item:nth-child(2), .foto-grid-item:nth-child(6){
	height: 104px;
}

.foto-grid-item img {
    height: 100%; 
    width: auto;
	cursor:pointer;
}

.foto-grid-item img:hover {
	border:3px solid #f00;
    -webkit-box-shadow: 0px 0px 10px #B20000;
       -moz-box-shadow: 0px 0px 10px #B20000;
            box-shadow: 0px 0px 10px #B20000; 
}

.foto-grid-item:nth-child(4) img{
    border: 3px solid #f00;
	position: relative;
	bottom:3px;
    -webkit-box-shadow: 0px 0px 10px #B20000;
       -moz-box-shadow: 0px 0px 10px #B20000;
            box-shadow: 0px 0px 10px #B20000; 
}

#navleft{
	height:100px;
	text-align:left;
	width:5%;
	float:left;
	position:relative;
	left:3%;
	bottom:0;
	cursor:pointer;
}

#navleft img{
	height:40%;
	width:50%;
	position:relative;
	top:30%;
}


#navright{
	height:100px;
	text-align:right;
	width:5%;
	float:right;
	position:relative;
	left:1%;
	bottom:100px;
	cursor:pointer;
}

#navright img{
	height:40%;
	width:50%;
	position:relative;
	top:30%;
}

}