
.cy-team-grid {
	padding: 60px 0 120px;
}

.cy-team-grid h2 {
	color: var(--cy-text-primary);
	font: var(--cy-display-sm);
	margin: 0 0 64px;
}

.cy-team-grid .tg-grid {
	column-gap: 24px;
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
	row-gap: 48px;
}

.cy-team-grid .tg-item {
	grid-column: span 2;
}

.cy-team-grid .tg-item:nth-child(4n+1):nth-last-child(3) {
	grid-column: 2/span 2;
}

.cy-team-grid .tg-item:nth-child(4n+1):nth-last-child(2) {
	grid-column: 3/span 2;
}

.cy-team-grid .tg-item:nth-child(4n+1):last-child {
	grid-column: 4/span 2;
}

.cy-team-grid .tg-card {
	aspect-ratio: 1;
	background: var(--cy-surface-card);
	border: 1px solid var(--cy-border-subtle);
	border-radius: 14px;
	margin: 0 0 12px;
	overflow: hidden;
	position: relative;
}

.cy-team-grid .tg-field {
	height: 100%;
	inset: 0;
	opacity: 0;
	position: absolute;
	transition: opacity .25s;
	width: 100%;
}

.cy-team-grid .tg-card:focus-within .tg-field, .cy-team-grid .tg-card:hover .tg-field {
	opacity: 1;
}

@media (hover: none) {
	.cy-team-grid .tg-field {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cy-team-grid .tg-field {
		transition: none;
	}
}

.cy-team-grid .tg-photo {
	height: 100%;
	inset: 0;
	object-fit: cover;
	position: absolute;
	width: 100%;
	z-index: 1;
}

.cy-team-grid .tg-linkedin {
	background: var(--cy-action-inverse);
	border-radius: 999px;
	box-shadow: 0 0 .5px rgba(0, 0, 0, .03);
	color: var(--cy-text-primary);
	display: grid;
	height: 44px;
	place-items: center;
	position: absolute;
	right: 14px;
	top: 14px;
	transition: color .25s;
	width: 44px;
	z-index: 2;
}

.cy-team-grid .tg-linkedin:focus-visible {
	outline: 2px solid var(--cy-text-primary);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.cy-team-grid .tg-linkedin {
		transition: none;
	}
}

.cy-team-grid .tg-li-mark {
	height: 20px;
	width: 20px;
}

.cy-team-grid .tg-name {
	color: var(--cy-text-primary);
	font: var(--cy-heading-sm);
	margin: 0;
}

.cy-team-grid .tg-role {
	color: var(--cy-text-secondary);
	font: var(--cy-body-md);
	margin: 0;
}

@media (max-width: 1080px) {
	.cy-team-grid {
		padding: 48px 0 80px;
	}
	
	.cy-team-grid h2 {
		margin-bottom: 40px;
	}
	
	.cy-team-grid .tg-grid {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 40px;
	}
	
	.cy-team-grid .tg-item, .cy-team-grid .tg-item:nth-child(4n+1):last-child, .cy-team-grid .tg-item:nth-child(4n+1):nth-last-child(2), .cy-team-grid .tg-item:nth-child(4n+1):nth-last-child(3) {
		grid-column: auto;
	}
	
	.cy-team-grid .tg-item:last-child:nth-child(odd) {
		grid-column: 1/-1;
		justify-self: center;
		width: calc(50% - 12px);
	}
}

@media (max-width: 720px) {
	.cy-team-grid {
		padding: 40px 0 56px;
	}
	
	.cy-team-grid .tg-grid {
		column-gap: 20px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 28px;
	}
	
	.cy-team-grid .tg-card {
		border-radius: 12px;
		margin-bottom: 14px;
	}
	
	.cy-team-grid .tg-linkedin {
		right: 12px;
		top: 12px;
	}
	
	.cy-team-grid .tg-name {
		font: var(--cy-body-md);
		font-weight: 500;
	}
	
	.cy-team-grid .tg-role {
		font-size: 13px;
		line-height: 18px;
	}
	
	.cy-team-grid .tg-item:last-child:nth-child(odd) {
		width: calc(50% - 10px);
	}
}
