/*
	Written by Artem K.
	https://www.github.com/goodguyartem
*/

.photo-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	justify-content: center;
	padding: 0 16px 10% 16px;
	margin: 0 auto;
	width: fit-content;
	max-width: 100%;
}

.photo-grid img {
	width: inherit;
	height: inherit;
}

.photo-grid a {
	width: 100%;
	height: 100%;
	max-width: 300px;
	max-height: 300px;
	aspect-ratio: 1 / 1;
}

.event-grid p {
	font-size: 1.6rem;
	text-align: center;
	margin: 16px 0;
}

.event-grid a:not(:active, :hover) {
	color: black;
}

.event-grid a {
	text-decoration: none;
}

@media (min-width: 1080px) {
	.event-grid {
		display: grid;
		justify-content: center;
		grid-template-columns: repeat(3, 300px);
		gap: 32px;
	}

	.event-grid img {
		width: 300px;
		height: 300px;
	}
}

@media (min-width: 1280px) {
	.photo-grid {
		padding-left: 0;
		padding-right: 0;
	}
}

@media (min-width: 1360px) {
	.photo-grid img:hover {
		transform: scale(1.1); 
		transition: all .15s ease-in-out;
	}
}