.prev,
.next {
	position: fixed;
	top: 0;
	width: 6%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
	z-index: 9999;
	color: rgb(70 70 70);
	font-size: 5rem;
	font-family: monospace;
	transition: all .2s;
}

.prev:hover,
.next:hover {
	color: rgb(140 140 140);
}

.prev {left: -25%;}
.next {right: -25%;}

.active .prev {left: 0;}
.active .next {right: 0;}

.container-gallery {
	margin:auto 0;
	max-width: 100%;
	display: grid;
	grid-gap: 5px;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	grid-auto-rows: 250px;
	grid-auto-flow: dense;
}

.gallery div {
	text-align: center;
	padding: 1rem 0;
	color: white;
	font-size: 3rem;
	text-transform: uppercase;
	background: rgba(0,0,0,.2);
	overflow: hidden;
	padding: 0;
	display: flex;
	align-items: stretch;
	justify-content: center;
}

.gallery div img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
	transition: all .5s;
}

.gallery div.show::before {
	content: '';
	display: block;
	position: fixed;
	z-index: 999;
	width: 100vw;
	height: 100vh;
	top: 0; left: 0;
	background: rgb(0 0 0 / 82%);
}

.gallery div.show img {
	position: fixed;
	top: 0; left: 0;
	margin: 60px;
	align-self: center;
	object-fit: contain;
	z-index: 999;
	width: calc(100% - 120px);
	height: calc(100% - 120px);
/* 	filter: drop-shadow(0 3px 15px black); */
	cursor: url(close-button.png), grab; /* custom cursor to signal close on click */
}

.gallery div:not(.show):hover img {
	cursor: pointer;
	transform: scale(1.3);
}


.horizontal {
	grid-column: span 2;
}

.vertical {
	grid-row: span 2;
}

.big {
	grid-column: span 2;
	grid-row: span 2;
}

.active .gallery div:not(.show) img {
	filter: blur(3px);
}