/*
 * SECTION STYLE: CLIENT LOGO WALL.
 *
 * The home page design: a small label on the left (the middle line on a
 * yellow background) and the logos in five columns of soft white tiles
 * (199.62 x 125.48 px, 10 px between them).
 */

.aitio-logos {
	background: var(--aitio-pure-white);
}

/* The label: one word per line, the marked words on yellow. */
.aitio-logos__label {
	max-width: var(--aitio-col-panel);
	margin: 0 0 70px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--aitio-ink);
	text-align: left;
}

.aitio-logos__label-line {
	display: block;
}

.aitio-logos__highlight {
	background: var(--aitio-yellow);
	padding: 0 3px;
}

.aitio-logos__sentence {
	text-align: left;
	font-size: 15px;
	font-weight: 600;
	color: rgba(22, 19, 13, 0.72);
	margin: 0 0 clamp(28px, 4vw, 44px);
}

.aitio-logos__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	align-items: stretch;
	margin: 0;
	padding: 0;
	list-style: none;
	/* The column left of the sticky panel, the same as the cards. */
	max-width: var(--aitio-col-panel);
}

.aitio-logos__item {
	display: flex;
	aspect-ratio: 199.62 / 125.48;
	background: var(--aitio-white);
	border-radius: 5px;
	overflow: hidden;
}

.aitio-logos__item a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 10px;
	transition: opacity 0.2s ease;
	opacity: 0.9;
}

.aitio-logos__item a:hover {
	opacity: 1;
}

.aitio-logos__logo {
	max-width: 60%;
	max-height: 92%;
	width: auto;
	height: auto;
	object-fit: contain;
	/* SVG logos stay razor sharp at any size */
}

@media (max-width: 1023px) {

	.aitio-logos__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {

	.aitio-logos__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.aitio-logos__label {
		margin-bottom: 40px;
	}
}
