#gallery {
	padding-top: 40px;
}
@media screen and (min-width: 991px) {
	#gallery {
		padding: 60px 30px 0 30px;
	}
}
.container {
/*
    padding-right: 15px;
	padding-left: 15px;
*/
    margin-right: auto;
	margin-left: auto;
}
@media only screen and (max-width: 767px) {
	.container {
		border: none;
		margin: 0 auto;
		width: 92%;
	}
    ul#headerMenu.container.open{
        width:100%;
    }
    ul#headerMenu.container.open ul.child.container {
        width:94%;
    }

}
@media only screen and (min-width: 768px) and (max-width: 1170px) {
	.container {
        width:92%;
		margin: 0 auto;
	}
    ul#headerMenu.container.open{
        width:100%;
    }
    ul#headerMenu.container.open ul.child.container {
        width:94%;
    }

}
@media only screen and (min-width: 1171px) {
	.container {
		width: 1170px;
		margin: 0 auto;
	}
}

.image-galleryList {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}

.image-galleryList::before {
	content: '';
	display: block;
	width: calc((100% - 60px) / 4);
	order: 1;
}
@media only screen and (max-width: 767px) {
	.image-galleryList::before {
		width: calc((100% - 30px) / 2);
	}
}

.image-galleryList::after {
	content: '';
	display: block;
	width: calc((100% - 60px) / 4);
}

@media only screen and (max-width: 767px) {
	.image-galleryList::after {
		content: none;
	}
}

.image {
	width: calc((100% - 60px) / 4);
	transition: 0.4s;
	margin-top: 30px;
}

.image:hover {
	opacity: 0.5;
	cursor: pointer;
}

@media only screen and (max-width: 767px) {
	.image {
		width: calc((100% - 30px) / 2);
		max-width: 260px;
		margin: 20px auto 0;
	}
}

.img-wrapper {
	position: relative;
}

.img-link {
	display: block;
	position: relative;
}
.img-link::before {
	content: '';
	display: block;
	padding-top: 100%;
}

.img-link img {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	margin: auto;
	object-fit: cover;
	-o-object-fit: cover;
}

.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 #caption {
	position: absolute;
	bottom: 3%;
	color: #fff;
	font-size: 18px;
}
@media screen and (max-width: 767px) {
	#overlay #caption {
		font-size: 16px;
	}
}

#overlay img {
	margin: 0;
	padding: 5%;
	max-height: 80vh;
	max-width: 70%;
}

@media screen and (max-width: 767px) {
	#overlay img {
		padding: 0;
		max-width: 80%;
	}
}

.caption,
#caption {
	text-align: center;
	margin-top: 15px;
	color: #000;
}
@media screen and (max-width: 767px) {
	.caption,
	#caption {
		margin-top: 10px;
	}
}

@media only screen and (min-width: 768px) and (max-width: 1170px) {
	#caption {
		bottom: 10%;
	}
}
#nextButton,
#prevButton {
	color: #fff;
	font-size: 50px;
	padding: 16px;
	position: absolute;
	top: 50%;
}

@media only screen and (max-width: 767px) {
	#nextButton,
	#prevButton {
		padding: 10px;
		font-size: 20px;
	}
}

#nextButton,
#prevButton:hover {
	cursor: pointer;
}

#nextButton {
	right: 3%;
}
#prevButton {
	left: 3%;
}

@media only screen and (max-width: 767px) {
	#nextButton {
		right: 0;
	}
	#prevButton {
		left: 0;
	}
}

#nextButton:hover,
#prevButton:hover {
	background-color: rgba(0, 0, 0, 0.8);
	color: white;
	opacity: 0.7;
}
@media only screen and (max-width: 767px) {
	#nextButton,
	#prevButton {
		font-size: 20px;
	}
}

#exitButton {
	color: #fff;
	font-size: 2em;
	transition: opacity 0.8s;
	position: absolute;
	top: 15px;
	right: 3%;
}

#exitButton:hover {
	opacity: 0.7;
	cursor: pointer;
}

@media screen and (min-width: 768px) {
	#exitButton {
		font-size: 50px;
	}
}
