/**
 * Team Grid Styles
 *
 * @package non-profit-fse
 * @since 1.0.4
 */

/* Main Container */
.cbr-team {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Section */
.cbr-team__section {
	margin-bottom: 60px;
}

.cbr-team__section:last-child {
	margin-bottom: 0;
}

.cbr-team__section-title {
	text-align: center;
	font-size: var(--wp--preset--font-size--large, 28px);
	font-weight: 700;
	color: var(--wp--preset--color--ti-fg, #202020);
	margin: 0 0 40px 0;
	position: relative;
	padding-bottom: 16px;
}

.cbr-team__section-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 4px;
	background: var(--wp--preset--color--ti-accent, #246430);
	border-radius: 2px;
}

/* Grid Layout */
.cbr-team__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	justify-items: center;
}

/* Tablet: 3 columns */
@media (max-width: 1024px) {
	.cbr-team__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 28px;
	}
}

/* Small tablet: 2 columns */
@media (max-width: 768px) {
	.cbr-team__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
}

/* Mobile: 1 column */
@media (max-width: 480px) {
	.cbr-team__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

/* Card */
.cbr-team__card {
	text-align: center;
	max-width: 260px;
	width: 100%;
}

/* Photo Wrapper */
.cbr-team__photo-wrapper {
	position: relative;
	width: 180px;
	height: 180px;
	margin: 0 auto 20px;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	border: 4px solid var(--wp--preset--color--ti-accent-secondary, #FED42B);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cbr-team__card:hover .cbr-team__photo-wrapper {
	transform: scale(1.05);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Photo */
.cbr-team__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.cbr-team__card:hover .cbr-team__photo {
	transform: scale(1.1);
}

/* Info */
.cbr-team__info {
	padding: 0 8px;
}

.cbr-team__name {
	margin: 0 0 6px 0;
	font-size: var(--wp--preset--font-size--medium, 18px);
	font-weight: 600;
	color: var(--wp--preset--color--ti-fg, #202020);
	line-height: 1.3;
}

.cbr-team__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--small, 14px);
	color: var(--wp--preset--color--ti-accent, #246430);
	font-weight: 500;
	line-height: 1.4;
}

/* Individual member adjustments */
.cbr-team__card--josh-groesz .cbr-team__photo {
	height: 136%;
}

.cbr-team__card--kristen-gose .cbr-team__photo {
	transform: scale(1.35);
	object-position: center bottom;
}

.cbr-team__card--kristen-gose:hover .cbr-team__photo {
	transform: scale(1.45);
}

/* Responsive photo sizes */
@media (max-width: 768px) {
	.cbr-team__photo-wrapper {
		width: 160px;
		height: 160px;
	}
}

@media (max-width: 480px) {
	.cbr-team__photo-wrapper {
		width: 200px;
		height: 200px;
	}

	.cbr-team__section-title {
		font-size: var(--wp--preset--font-size--medium, 24px);
	}
}
