.brand_logos {
	margin: var(--padding) 0;
}

.brand_logos__header {
	width: 648px;
	max-width: 100%;
	margin: auto;
	text-align: center;
	margin-bottom: 100px;
}

.brand_logos h2 {
	font-size: 48px;
	line-height: 1.2;
	margin-bottom: 35px;
}

ul.brand_logos__grid {
	padding: 0;
	margin: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
}

.brand_logos__grid li {
	flex: 0 0 25%;
	border-bottom: 1px solid #DBD0C2;
	border-right: 1px solid #DBD0C2;
	height: 270px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.brand_logos__grid li:nth-child(4n) {
	border-right: none;
}

.brand_logos__grid li:nth-last-child(-n+4) {
	border-bottom: none;
}

.brand_logos__grid li:nth-child(-n+4) {
	border-bottom: 1px solid #DBD0C2;
}

.brand_logos__grid img {
	display: block;
	max-width: calc(100% - 30px);
	max-height: calc(100% - 40px);
	object-fit: contain;
	/* Blend supplied white logo canvases into the chosen light surface. */
	mix-blend-mode: multiply;
}

.brand_logo_frame { display: contents; }
@supports (aspect-ratio: 1) {
.brand_logo_frame {
	display: block;
	position: relative;
	overflow: hidden;
	width: min(calc(100% - 30px), 240px, var(--logo-mark-max, 240px), calc(120px * var(--logo-ratio)));
	aspect-ratio: var(--logo-ratio);
}

.brand_logos__grid .brand_logo_frame > img {
	position: absolute;
	max-width: none;
	max-height: none;
	width: calc(100% * var(--logo-image-width));
	height: auto;
	left: var(--logo-left);
	top: var(--logo-top);
}
}

@media (max-width: 767px) {
	@supports (aspect-ratio: 1) {
		.brand_logo_frame { width: min(calc(100% - 30px), 120px, var(--logo-mark-max, 120px), calc(70px * var(--logo-ratio))); }
	}
	.brand_logos h2 {
		font-size: 24px;
		line-height: 34px;
		margin-bottom: 25px;
	}

	.brand_logos__text p {
		font-size: 14px;
		line-height: 24px;
	}

	.brand_logos__grid li {
		flex: 0 0 50%;
		border-left: none;
		border-top: none;
		border-bottom: 1px solid #DBD0C2;
		height: 160px;
	}
	.brand_logos__grid li:nth-child(odd) { border-right: 1px solid #DBD0C2; }
	.brand_logos__grid li:nth-child(even) { border-right: none; }
	.brand_logos__grid li:nth-last-child(-n+4) { border-bottom: 1px solid #DBD0C2; }
	.brand_logos__grid li:nth-last-child(-n+2) { border-bottom: none; }

	.brand_logos {
		margin: var(--padding-mobile) 0;
		padding: 0;
	}

	.brand_logos__header {
		width: 100%;
		margin-bottom: 25px;
	}
}
