/* Torreauto Staff: 3-column grid with round photos, matching the torreauto.fi team page. */
.torre-staff {
	--torre-staff-red: #b3202a;
	--torre-staff-link: #c8343c;
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 1000px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px 32px;
	text-align: center;
}

/* Divi adds bullets to list items; the cards are a grid, so remove the markers. */
.torre-staff > .torre-staff-card {
	list-style: none;
	margin: 0;
	padding: 0;
}

.torre-staff > .torre-staff-card::marker {
	content: "";
}

.torre-staff-photo {
	width: 100%;
	max-width: 260px;
	margin: 0 auto 24px;
	aspect-ratio: 1 / 1;
}

.torre-staff-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	border: 4px solid var(--torre-staff-red);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.torre-staff-name {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.torre-staff-title {
	margin: 0 0 14px;
	font-size: 16px;
	line-height: 1.5;
}

.torre-staff-contact {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
}

.torre-staff-contact a {
	color: var(--torre-staff-link);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.torre-staff-contact a:hover,
.torre-staff-contact a:focus {
	text-decoration: underline;
}

.torre-staff-icon {
	display: inline-block;
	vertical-align: -2px;
	margin-right: 6px;
}

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

@media (max-width: 560px) {
	.torre-staff {
		grid-template-columns: 1fr;
		gap: 40px;
		padding: 0 16px;
	}
}
