/*-----LIGHTBOX-----*/

#blackout {
	display:none;
	position:fixed;
	top:0;
	left:0;
	right:0;
	bottom:0;
	width:100%;
	height:100%;
	z-index:9999;
	background-color: rgba(0,0,0,0.8);
	/*background-image:url('img/load.gif');*/
	background-position: center center;
	background-repeat: no-repeat; 
}
	#lightbox {
		position:fixed;
		z-index:99999;
		width: auto;
		height: auto;
		display: none;
		background-color: rgba(0,0,0,0.5);
	}
	#close {
		width:30px;
		height:30px;
		position:absolute;
		right:0;
		padding:5px;
		background-image: url('img/close.png');
		background-position: center center;
		background-repeat: no-repeat;
		cursor: pointer;
	}
	#next {
		display:none;
		width:100px;
		height:200px;
		position:absolute;
		top: 0; bottom: 0; right: 0;
		margin: auto;
		background-image: url('img/next.png');
		background-position: center center;
		background-repeat: no-repeat;
		cursor: pointer;
	}
	#prev {
		display:none;
		width:100px;
		height:200px;
		position:absolute;
		top: 0; bottom: 0; left: 0;
		margin: auto;
		background-image: url('img/prev.png');
		background-position: center center;
		background-repeat: no-repeat;
		cursor: pointer;
	}
	#close:hover { background-image: url('img/closehover.png'); }
	#next:hover { background-image: url('img/nexthover.png'); }
	#prev:hover { background-image: url('img/prevhover.png'); }
	#lbimg {
		display:inline;
		float:right;
	}
		#lbimg img {
			display:block;
		}

@media screen and (max-width: 780px) { /*main*/
	#close {
		width:15px;
		height:15px;
		background-image: url('img/close_m.png');
		cursor: none;
	}	
	#next {
		width:50px;
		height:100px;
		background-image: url('img/next_m.png');
		cursor: none;
	}
	#prev {
		width:50px;
		height:100px;
		background-image: url('img/prev_m.png');
		cursor: none;
	}
	#close:hover { background-image: url('img/closehover_m.png'); }
	#next:hover { background-image: url('img/nexthover_m.png'); }
	#prev:hover { background-image: url('img/prevhover_m.png'); }
}


/*------WP GALLERY------*/

.gallery {
	margin: 12px auto 18px auto;
	/*background-color: #D3D3D3;*/
	padding: 5px 0;
}
.gallery .gallery-item {
	float: left;
	margin-top: 0;
	text-align: center;
	width: 100%;
}
.gallery-columns-2 .gallery-item { width: 50%; }
.gallery-columns-3 .gallery-item { width: 33.33333333%;; }
.gallery-columns-4 .gallery-item { width: 25%; }
.gallery-icon {
	padding: 5px;
	transition: all .20s ease-in-out;
	-moz-transition: all .20s ease-in-out;
	-webkit-transition: all .20s ease-in-out;	
}
.gallery-icon:hover img {
	-webkit-box-shadow: 0px 0px 10px 0px rgba(97,97,97,1);
	-moz-box-shadow: 0px 0px 10px 0px rgba(97,97,97,1);
	box-shadow: 0px 0px 10px 0px rgba(97,97,97,1);
}
#single_content a:hover img,
#content a:hover img {
	-webkit-box-shadow: 0px 0px 10px 0px rgba(97,97,97,1);
	-moz-box-shadow: 0px 0px 10px 0px rgba(97,97,97,1);
	box-shadow: 0px 0px 10px 0px rgba(97,97,97,1);	
}
.gallery img {
	max-width: 100%;
	min-width: 100%;
	display: block;
	height: auto;
}
.gallery img:hover {

}
.gallery-columns-2 .attachment-medium {
	max-width: 92%;
	height: auto;
}
.gallery-columns-4 .attachment-thumbnail {
	max-width: 84%;
	height: auto;
}
.gallery .gallery-caption {
	color: #888;
	font-size: 12px;
	margin: 0 0 12px;
}
.gallery dl, .gallery dt { margin: 0; }
.gallery br+br { display: none; }