/* List Gallery CSS */

.listgallery {
	position: relative;
	margin: 40px;
    text-align: center;
}

@media (min-width: 1000px) {
	.listgallery__item {
		height: 200px;
		width: 200px;
		margin: 10px;
		overflow: hidden;
		display: inline-block;
		vertical-align: middle;
	}
	
	.listgallery__image {
		max-width: 100%;
		max-height: 100%;
		padding-bottom: 8px;
	}
}

@media (max-width: 1000px) {
	.listgallery__item {
		margin: 10px;
		overflow: hidden;
		display: inline-block;
		vertical-align: middle;
	}
	
	.listgallery__image {
		max-width: 70%;
		padding-bottom: 8px;
	}
}

.listgallery__text {
	display: block;
	font-weight: bold;
	padding-bottom: 8px;
}

.listGallery__image--clickable {
	cursor: pointer;
}

.listGallery__image--clickable:hover {
	opacity: 0.8;
}

/* Overlay */

.listGalleryOverlay {
	z-index: 2000;
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
}

.listGalleryOverlay__image {
	position: absolute;
	max-width: 80%;
	max-height: 80%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border: 2px solid white;
}

.listGalleryOverlay__close {
	position: absolute;
	top: 30px;
	right: 30px;
	width: 50px;
	height: 50px;
	cursor: pointer;
}

.listGalleryOverlay__previous {
	position: absolute;
	bottom: 30px;
	left: 30px;
	width: 50px;
    height: 50px;
    cursor: pointer;
}

.listGalleryOverlay__next {
	position: absolute;
	bottom: 30px;
	right: 30px;
	width: 50px;
    height: 50px;
    cursor: pointer;
}

.listGalleryOverlay__close:hover {
	opacity: 0.8;
}

.listGalleryOverlay__previous:hover {
	opacity: 0.8;
}

.listGalleryOverlay__next:hover {
	opacity: 0.8;
}