.leg-gallery,
.leg-gallery *,
.leg-gallery *::before,
.leg-gallery *::after {
	box-sizing: border-box;
}

.leg-gallery {
	--leg-text: #172631;
	--leg-muted: #5e7180;
	--leg-line: #d6dce0;
	width: 100%;
	padding-top: 2.4rem;
	border-top: 1px solid var(--leg-line);
	color: var(--leg-text);
	font-family: inherit;
}

.leg-gallery__title {
	margin: 0 0 1.3rem;
	color: var(--leg-text);
	font-family: inherit;
	font-size: .86rem;
	font-weight: 850;
	letter-spacing: .02em;
	line-height: 1.3;
	text-transform: uppercase;
}

.leg-gallery__intro {
	margin: -.65rem 0 1.5rem;
	color: var(--leg-muted);
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.6;
}

.leg-gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.leg-gallery__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 150px;
	padding: 1.2rem;
	border: 1px solid var(--leg-line);
	background: #fff;
	text-align: center;
}

.leg-gallery__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 72px;
	margin-bottom: .85rem;
}

.leg-gallery__logo img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 72px;
	object-fit: contain;
}

.leg-gallery__mark {
	display: inline-block;
	margin-bottom: .75rem;
	color: var(--leg-accent, #d29a2e);
	font-family: inherit;
	font-size: .7rem;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.leg-gallery__name {
	color: var(--leg-text);
	font-family: inherit;
	font-size: .98rem;
	font-weight: 700;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

@media (max-width: 900px) {
	.leg-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.leg-gallery__grid {
		grid-template-columns: 1fr;
	}
}
