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

.event-grid {
	display: flex;
	flex-direction: column;
	gap: 32px;
	margin: 0 auto 16px auto;
	width: fit-content;
}

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

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

.event-grid figure {
	margin: 0;
	width: 100%;
}

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

.event-grid img {
	width: 300px;
	height: 417px;
	max-width: 100%;
	border: 1px solid var(--blue2);
	object-fit: contain;
	background: white;
}

.photo-grid {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	justify-content: center;
}

.photo-grid img {
	width: inherit;
	height: inherit;
	object-fit: cover;
	max-width: 100%;
}

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

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

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