/* ==========================================================================
   Block: Team — Ambient Override
   ========================================================================== */

/* ---- Section ---- */
.team--ambient {
	background-color: #020910;
	color: var(--color-white);
	padding-block: 7.5rem;
}

.team--ambient.team--no-top-padding {
	padding-block-start: 0;
}

.team--ambient.team--no-bottom-padding {
	padding-block-end: 0;
}

/* ---- Container ---- */
.team--ambient .team__container {
	margin-inline: auto;
	max-inline-size: 73.75rem;
	padding-inline: 0;
}

/* ---- Header ---- */
.team--ambient .team__title {
	color: var(--color-white);
	font-size: 5.9375rem;
	font-weight: var(--fw-bold);
	line-height: 6.25rem;
	margin: 0;
	text-align: center;
	text-transform: uppercase;
}

.team--ambient .team__description {
	color: var(--color-white);
	font-size: 1.3125rem;
	font-weight: var(--fw-regular);
	line-height: 2.1875rem;
	margin-inline: auto;
	max-inline-size: 53.875rem;
	padding-block-start: 1.25rem;
	text-align: center;
}

.team--ambient .team__description p {
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	margin: 0;
}

/* ---- Grid: 140px column gap, 100px row gap ---- */
.team--ambient .team__grid {
	column-gap: 8.75rem;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	padding-block-start: 0;
	row-gap: 6.25rem;
}

/* ---- Item ---- */
.team--ambient .team__item {
	display: flex;
	flex-direction: column;
	text-align: start;
}

/* ---- Image Wrapper: 400x400 frame, right-aligned, overflow hidden for parallax ---- */
.team--ambient .team__image-wrapper {
	align-self: flex-end;
	block-size: 25rem;
	inline-size: 25rem;
  margin: 0;
	overflow: hidden;
	position: relative;
}

.team--ambient .team__image {
	block-size: 100%;
	inline-size: 100%;
	object-fit: cover;
}

/* Gradient overlay — 116px from bottom */
.team--ambient .team__image-overlay {
	background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 100%);
	block-size: 7.25rem;
	inline-size: 100%;
	inset-block-end: 0;
	inset-inline: 0;
	pointer-events: none;
	position: absolute;
}

/* Name — overlaps bottom of image via negative margin */
.team--ambient .team__name {
	color: #fff;
	font-family: var(--h2-font-family, inherit);
	font-size: 3.125rem;
	font-weight: var(--fw-bold);
	inline-size: 100%;
	line-height: 3.125rem;
	margin: 0;
	margin-block-start: -5.5rem;
	position: relative;
	text-shadow: 0 0.25rem 1.5rem rgba(0, 0, 0, 0.25);
	text-transform: uppercase;
	z-index: 1;
}

/* ---- Text content: left-aligned, full width ---- */
.team--ambient .team__position {
	color: var(--color-white);
	display: block;
	font-family: var(--h2-font-family, inherit);
	font-size: 1.875rem;
	font-weight: var(--fw-bold);
	inline-size: 100%;
	line-height: 2.5rem;
	margin: 0;
	padding: 0;
	padding-block-start: 0.3125rem;
	text-align: start;
	text-transform: capitalize;
}

.team--ambient .team__excerpt {
	color: var(--color-white);
	font-size: 1.3125rem;
	font-weight: var(--fw-regular);
	inline-size: 100%;
	line-height: 2.1875rem;
	margin: 0;
	max-inline-size: 32.5rem;
	padding-block-start: 0.625rem;
	text-align: start;
}

.team--ambient .team__excerpt p {
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	margin: 0;
}

/* ---- Social Icons ---- */
.team--ambient .team__social {
	display: flex;
	gap: 1.125rem;
	inline-size: 100%;
  justify-content: flex-start;
  margin: 0;
	padding-block-start: 1.875rem;
}

.team--ambient .team__social-link {
	align-items: center;
	block-size: 2.75rem;
	border: 0.0625rem solid var(--color-white);
	border-radius: 50%;
	color: var(--color-white) !important;
	display: flex;
	inline-size: 2.75rem;
	justify-content: center;
	transition: background-color var(--transition-hover), border-color var(--transition-hover), box-shadow var(--transition-hover), color var(--transition-hover), opacity var(--transition-hover);
}

.team--ambient .team__social-link:hover {
	background-color: var(--color-white);
	border-color: var(--color-white);
	color: var(--color-dark) !important;
	opacity: 1;
}

.team--ambient .team__social-link svg {
	block-size: 1rem;
	inline-size: 1rem;
}

/* ---- Background: White ---- */
.team--ambient.team--white {
	background-color: var(--color-white);
	color: var(--color-dark);
}

.team--ambient.team--white .team__title,
.team--ambient.team--white .team__description,
.team--ambient.team--white .team__name,
.team--ambient.team--white .team__position,
.team--ambient.team--white .team__excerpt {
	color: var(--color-dark);
}

.team--ambient.team--white .team__social-link {
	border-color: var(--color-dark);
	color: var(--color-dark) !important;
}

.team--ambient.team--white .team__social-link:hover {
	background-color: var(--color-dark);
	border-color: var(--color-dark);
	color: var(--color-white) !important;
	opacity: 1;
}


/* ---- Responsive: Mobile ---- */
@media (max-width: 48rem) {
	.team--ambient {
		padding-block: 5rem;
	}

	.team--ambient .team__container {
		padding-inline: 0;
	}

	.team--ambient .team__title {
		font-size: 2.2rem;
		line-height: 2.5rem;
	}

	.team--ambient .team__description {
		font-size: 1.125rem;
		line-height: 1.667;
	}

	.team--ambient .team__grid {
		gap: 3.75rem;
		grid-template-columns: 1fr;
	}

	.team--ambient .team__item {
		align-items: flex-start;
	}

	.team--ambient .team__image-wrapper {
		block-size: auto;
		inline-size: 100%;
	}

	.team--ambient .team__image {
		block-size: auto;
	}

	.team--ambient .team__name {
		font-size: 2.2rem;
		line-height: 2.5rem;
		margin-block-start: 1.875rem;
	}

	.team--ambient .team__position {
		font-size: 1.875rem;
		line-height: 2.5rem;
	}

	.team--ambient .team__excerpt {
		font-size: 1.125rem;
		line-height: 1.667;
	}
}
