/* Copyright 2016 Radio Free Europe/Radio Liberty, Inc. - Pangea Digital */
/* Apollo Foundation v 1.0 */

#gallery {
	width: 100%;
	height: 100%;
	background-color: #fff;
	z-index: 999;
	position: fixed;
	top: 0;
	left: 0;
	display: none;
}

#gallery .gallery-container {
		width: 100%;
		max-width: 1400px;
		margin: 0 auto;
		padding: 65px 50px;
		box-sizing: border-box;
		display: none;
}

@media(max-width: 640px) {
	#gallery .gallery-container {
		padding: 65px 20px;
	}
}

#gallery .gallery-container.active {
	display: block;
}

#gallery .slide {
  height: 100%;
  width: 100%;
  text-align: center;
	display: inline-block;
}

#gallery .slide img {
	display: inline-block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	vertical-align: middle;
}

#gallery .caption {
	padding: 10px 0;
}

@media(max-height: 360px) {
	#gallery .caption {
		display: none;
	}
}

#gallery .caption p.photo-title {
	color: #444;
	font-family: 'Merriweather', serif;
	font-weight: 400;
	font-size: 13px;
	line-height: 1.5;
	margin: 2px 0;
	padding: 0;
	max-width: 100%;
}

#gallery .caption p.photo-title span {
	color: #666;
	font-weight: 700;
	margin-right: 5px;
}

#gallery .caption p.photo-credit {
	color: #666;
	font-family: 'Merriweather', serif;
	font-weight: 400;
	font-size: 13px;
	line-height: 1.5;
	font-style: italic;
	margin: 2px 0;
	padding: 0;
	max-width: 100%;
}

#gallery .close {
	opacity: 0.5;
	width: 42px;
	height: 42px;
	position: absolute;
	top: 10px;
	right: 10px;
	cursor: pointer;
	display: block;
	background-image: url(../img/gallery/close.png);
	background-size: cover;
	background-position: center center;
	transition: opacity .3s ease-in-out;
}

#gallery .close:hover,
#gallery .prev:hover,
#gallery .next:hover {
	opacity: 1;
}

#gallery .prev,
#gallery .next {
	opacity: 0.5;
	width: 42px;
	height: 42px;
	top: 50%;
	position: absolute;
	margin-top: -21px;
	display: block;
	background-size: cover;
	background-position: center center;
	transition: opacity .3s ease-in-out;
	cursor: pointer;
}

#gallery .prev {
	left: 15px;
	background-image: url(../img/gallery/prev.png);
}

#gallery .next {
	right: 15px;
	background-image: url(../img/gallery/next.png);
}

@media(max-width: 1400px) {
	#gallery .prev {
			left: 5px;
	}

	#gallery .next {
			right: 5px;
	}
}

@media(max-width: 640px) {
	#gallery .prev {
			top: 31px;
			left: 15px;
	}

	#gallery .next {
			top: 31px;
			left: 57px;
	}
}
