/* ==========================================================================
   Our Team – horizontal slider
   ========================================================================== */

.team-grid {
	display: flex !important;
	flex-wrap: nowrap !important;
	justify-content: flex-start;
	gap: 0;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	padding-bottom: 10px;
	-webkit-overflow-scrolling: touch;
	position: relative;
	cursor: grab;
}

.team-grid.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
}

.team-grid::-webkit-scrollbar {
	display: none;
}

.team-grid {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.team-card {
	flex: 0 0 252px !important;
	max-width: 252px !important;
	font-family: Montserrat, sans-serif;
	scroll-snap-align: start;
	margin-right: 20px;
}

.team-card:last-child {
	margin-right: 0;
}

.team-photo-wrap {
	position: relative;
	width: 252px;
	height: 267px;
	border-radius: 10px;
	overflow: hidden;
	padding: 0 !important;
}

.team-photo-wrap > .elementor-element {
	height: 100% !important;
	margin: 0 !important;
}

.team-photo-wrap .elementor-widget-image {
	height: 100% !important;
}

.team-photo-wrap .elementor-widget-image img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
	object-position: center center !important;
	display: block;
}

.team-overlay {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.96);
	padding: 16px;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	transform: translateY(100%);
	transition: transform 0.45s ease;
	color: #000;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 135%;
	user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
}

.team-overlay p {
	margin: 0;
}

.team-card:hover .team-overlay {
	transform: translateY(0);
}

.team-card:hover .team-photo-wrap img {
	transform: scale(1.03);
}

.team-card.is-open .team-overlay {
	transform: translateY(0);
}

.team-name .elementor-heading-title,
.team-name {
	color: #000;
	font-family: Montserrat, sans-serif;
	font-size: 22px;
	font-style: normal;
	font-weight: 500;
	line-height: 135%;
	margin-top: 12px;
	margin-bottom: 4px;
}

.team-position,
.team-position p {
	color: #000;
	font-family: Montserrat, sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 130%;
	margin: 0;
}

@media (max-width: 767px) {
	.team-card {
		flex: 0 0 80vw !important;
		max-width: 252px !important;
	}

	.team-card:hover .team-overlay {
		transform: translateY(100%);
	}

	.team-card.is-open .team-overlay {
		transform: translateY(0);
	}
}
