/* Event Sponsors (inc/event-sponsors.php) — styled to match Event Speakers */

.txwsw-sponsors {
	--sponsor-navy: var(--e-global-color-a2ce3bd, #112459);
	margin: 40px 0 20px;
	text-align: center;
}

.txwsw-sponsors__rule {
	border: 0;
	border-top: 1px solid #000;
	margin: 15px 0;
}

.txwsw-sponsors .txwsw-sponsors__heading {
	color: var(--sponsor-navy);
	font-family: "Playfair Display", serif;
	font-size: 40px !important; /* beats single-post template's post-content h2 rule */
	font-weight: 700;
	margin: 20px 0 30px;
}

.txwsw-sponsors .txwsw-sponsors__group-title {
	color: var(--sponsor-navy);
	font-family: "Playfair Display", serif;
	font-size: 28px;
	margin: 30px 0 20px;
}

/* 4 per row on desktop, short last row centered */
.txwsw-sponsors__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px 20px;
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
}

.txwsw-sponsors__grid > li {
	flex: 0 0 calc((100% - 60px) / 4);
	margin: 0;
	padding: 0;
}

@media (max-width: 1024px) {
	.txwsw-sponsors__grid > li { flex-basis: calc((100% - 40px) / 3); }
}

@media (max-width: 767px) {
	.txwsw-sponsors__grid > li { flex-basis: calc((100% - 20px) / 2); }
	.txwsw-sponsors .txwsw-sponsors__heading { font-size: 32px !important; }
}

/* Logos sit in equal-height boxes so different shapes line up */
.txwsw-sponsor__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 140px;
	padding: 10px;
}

.txwsw-sponsor__logo img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: transform .3s ease;
}

a.txwsw-sponsor__logo:hover img,
a.txwsw-sponsor__logo:focus-visible img {
	transform: scale(1.04);
}

@media (max-width: 767px) {
	.txwsw-sponsor__logo { height: 100px; }
}
