/* Create three equal columns that sits next to each other */
.image-gallery {
	display: inline-grid;
	grid-template-columns: repeat(3, 1fr);
	grid-auto-rows: auto;
	/* margin: auto -.3vw; */
	columns: 3 18rem;
	border-radius: 8px;
	gap: .5rem;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.gridItem {
	overflow: hidden;
	position: relative;
	grid-column: span 1;
	grid-row: span 1;
	/* animation: scrolling ease forwards;
    animation-timeline: view();
    animation-range: entry 0% cover; */
}

/* @keyframes scrolling {
    from {
        opacity: 0;
        scale: 0.5;
    }
    to {
        opacity: 1;
        scale: 1;
    }
} */
.gridItem img {
	height: 100%;
	width: 100%;
	object-fit: cover;
	transition: all 0.25s linear;

}

.gridTitle {
	cursor: pointer;
	font-family: Arial, Helvetica, sans-serif;
	color: white;
	font-size: 1.5rem;
	text-shadow: 0px 0px 15px rgba(0, 0, 0, 1);
	position: absolute;
	width: fit-content;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	opacity: 0;
	transition: opacity .3s ease;
}

.gridItem:hover img {
	cursor: pointer;
	transform: scale(1.04);
	filter: brightness(80%);
}

.gridItem:hover .gridTitle {
	opacity: 1;
}

#production-gallery .gridItem:hover img {
	filter: brightness(60%);
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 1100px) {
	.image-gallery {
		grid-template-columns: repeat(2, 1fr);
	}

	.column {
		flex: 50%;
		max-width: 50%;
	}
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 680px) {
	.image-gallery {
		grid-template-columns: repeat(1, 1fr);
	}

	.column {
		flex: 100%;
		max-width: 100%;
	}

	#lightbox-image {
		max-width: 85%;
	}

	.lightbox img {
		max-height: fit-content;
	}

	.lightbox .prev {
		left: 0px;
	}

	.lightbox .adv {
		right: 0px;
	}
}