.bls-wrap {
	box-sizing: border-box;
	max-width: 100%;
	margin: 0 auto;
	padding: 32px;
	background: var(--bls-bg, #F2EEE6);
	border-radius: 20px;
}

.bls-title {
	margin: 0 0 24px;
	text-align: center;
	color: var(--bls-text, #D6413A);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.4;
}

.bls-grid {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bls-gap, 12px);
}

/* Each tile grows in proportion to its logo's aspect ratio (--r),
   so rows fill the width just like a bento-style logo wall. */
.bls-tile {
	box-sizing: border-box;
	flex: var(--r, 1) 1 calc(var(--bls-h, 40px) * var(--r, 1) + 40px);
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px 20px;
	background: var(--bls-tile, #F2EEE6);
	border: 1px solid var(--bls-border, #E4DED2);
	border-radius: 10px;
}

.bls-tile a {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
}

.bls-tile img {
	display: block;
	height: var(--bls-h, 40px);
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

@media (max-width: 600px) {
	.bls-wrap {
		padding: 16px;
		border-radius: 14px;
	}
	.bls-title {
		font-size: 1rem;
		margin-bottom: 16px;
	}
	.bls-tile {
		padding: 12px;
		flex-basis: calc(var(--bls-h, 40px) * var(--r, 1) * 0.7 + 24px);
	}
	.bls-tile img {
		height: calc(var(--bls-h, 40px) * 0.7);
	}
}
