/* Four tiles across on the page grid (three columns each), two on phones. */
.le-logo-grid {
	padding-bottom: 7.5rem;
	color: var(--le-black);
	background: var(--le-white);
	/* Clear of the sticky navbar when a button jumps here. */
	scroll-margin-top: 5.5rem;
}

.le-logo-grid__list {
	row-gap: 1.125rem;
	margin: 0;
	list-style: none;
}

.le-logo-grid__item {
	grid-column: span 3;
}

/* Each tile: a line along the top and left, the logo centred at its own width. */
.le-logo-grid__tile {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 13.5625rem;
	border-top: 1px solid var(--le-black);
	border-left: 1px solid var(--le-black);
	color: inherit;
}

.le-logo-grid__tile img {
	display: block;
	width: var(--logo-width);
	max-width: calc(100% - 2rem);
	height: auto;
	max-height: calc(100% - 0.125rem);
	object-fit: contain;
}

a.le-logo-grid__tile {
	transition: background-color 0.2s;
}

a.le-logo-grid__tile:hover,
a.le-logo-grid__tile:focus-visible {
	background: var(--le-100);
}

@media (max-width: 1023px) {
	.le-logo-grid__item {
		grid-column: span 4;
	}
}

/* Phones: two across, shorter tiles, logos at half size. */
@media (max-width: 880px) {
	.le-logo-grid {
		padding-bottom: 3rem;
	}

	.le-logo-grid__item {
		grid-column: span 6;
	}

	.le-logo-grid__tile {
		height: 10rem;
	}

	.le-logo-grid__tile img {
		width: calc(var(--logo-width) / 2);
	}
}
