@charset "utf-8";
/* CSS Document */


.container {
	margin: 5vh auto;
	max-width: 84%;
	display: grid;
	grid-gap: 10px;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	grid-auto-rows: 290px;
	grid-auto-flow: dense;
}

.container div {
	text-align: center;
	padding: 1rem 0;
	color: white;
	font-size: 3rem;
	text-transform: uppercase;
	background: #fff;
	overflow: hidden;
	padding: 0;
	display: flex;
	align-items: stretch;
	justify-content: center;
}

.container div img {
	width: 110%;
	height: 110%;
	display: block;
	object-fit: cover;
	object-position: center;
	transition: all .5s;
}

.container div.show::before {
	content: '';
	display: block;
	position: fixed;
	z-index: 555;
	width: 100vw;
	height: 100vh;
	top: 0; left: 0;
	background: rgba(0,0,0,.6);
}

.container div.show img {
	position: fixed;
	top: 0; left: 0;
	margin: 30px;
	align-self: center;
	object-fit: contain;
	z-index: 666;
	width: calc(100% - 60px);
	height: calc(100% - 60px);
	filter: drop-shadow(0 3px 15px black);
	cursor: url(close-button.png), grab; /* custom cursor to signal close on click */
}

.container div:not(.show):hover img {
	cursor: pointer;
	transform: scale(1.2);
}


.horizontal {
	grid-column: span 2;
}

.vertical {
	grid-row: span 2;
}

.big {
	grid-column: span 2;
	grid-row: span 2;
}

.active div:not(.show) img {
	filter: blur(3px);
}



/* ---------------------------------------mobile------------------------------------------------ */
/* ---------------------------------------mobile------------------------------------------------ */
/* ---------------------------------------mobile------------------------------------------------ */
/* ---------------------------------------mobile------------------------------------------------ */


@media screen and (max-width: 992px) {

	.container {
		margin: 5vh auto;
		max-width: 98%;
		display: grid;
		grid-gap: 15px;
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
		grid-auto-rows: 120px;
		grid-auto-flow: dense;
	}



}
