.photo-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	grid-template-areas:
		"a b c"
		"a d e";
	gap: 0.5rem;
}

.photo-grid a {
	display: flex;
	min-height: 0;
	min-width: 0;
	height: 100%;
	width: 100%;
	max-width: 100%;
	max-height: 100%;
	overflow: hidden;
	position: relative;
}

.photo-grid a:hover {
	outline: solid 2px var(--primary);
	outline-offset: 2px;
}

.photo-grid img {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	object-fit: cover;
}

.photo-grid div {
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: rgb(255, 255, 255, 0.5);
	color: var(--dark);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-decoration: none;
	font-size: 1.1rem;
	font-weight: bold;
}

@media (max-width: 800px) {
	.photo-grid {
		grid-template-columns: 1fr 1fr 1fr 1fr;
		grid-template-rows: 2fr 1fr;
		grid-template-areas: "a a a a " "b c d e";
	}
}
