#gallery {
	padding-top: 40px;
}
@media screen and (min-width: 991px) {
	#gallery {
		padding: 60px 30px 0 30px;
	}
}

.img-wrapper {
	position: relative;
	margin-top: 15px;
}
.img-wrapper img {
	width: 100%;
}

.img-overlay {
	background: rgba(0, 0, 0, 0.7);
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
}
.img-overlay i {
	color: #fff;
	font-size: 3em;
}

#overlay {
	background: rgba(0, 0, 0, 0.7);
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 999;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
#overlay img {
	margin: 0;
	/* width: 80%; */
	height: auto;
	padding: 5%;
}
@media screen and (min-width: 300 px) {
	#overlay img {
		/* width: 90%; */
		max-width: 90%;
		max-height: 664px;
	}
}

@media screen and (min-width: 568) {
	#overlay img {
		/* width: 90%; */
		max-width: 90%;
		max-height: 664px;
	}

	#overlay a {
		text-align: center;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		font-size: inherit;
		background-color: black;
		padding: 4px;
		border-radius: 4px;
		color: white;
		text-decoration: none;
	}

	#overlay a:hover {
		text-decoration: none;
	}
}
@media screen and (min-device-width: 120px) {
	#overlay img {
		/* width: 90%; */
		max-width: 90%;
		max-height: 709px;
	}

	#overlay a {
		text-align: center;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		font-size: x-large;
		background-color: black;
		padding: 4px;
		border-radius: 4px;
		color: white;
		text-decoration: none;
	}

	#overlay a:hover {
		text-decoration: none;
	}
}

#nextButton {
	color: #fff;
	font-size: 2em;
	transition: opacity 0.8s;
}
#nextButton:hover {
	opacity: 0.7;
	cursor: pointer;
}
@media screen and (min-width: 768px) {
	#nextButton {
		font-size: 3em;
	}
}

#prevButton {
	color: #fff;
	font-size: 2em;
	transition: opacity 0.8s;
}
#prevButton:hover {
	opacity: 0.7;
	cursor: pointer;
}
@media screen and (min-width: 768px) {
	#prevButton {
		font-size: 3em;
	}
}

#exitButton {
	color: #fff;
	font-size: 2em;
	transition: opacity 0.8s;
	position: absolute;
	top: 15px;
	right: 15px;
}
#exitButton:hover {
	opacity: 0.7;
	cursor: pointer;
}
@media screen and (min-width: 768px) {
	#exitButton {
		font-size: 3em;
	}
}
