/* ==========================================================================
   Meet Our Team: grid + single Team Member pages
   Figma: MedSkin Essentials Website Maintenance > NEW Team Page
   ========================================================================== */

:root {
	--mse-navy: #27255b;
	--mse-ink: #111;
	--mse-body: #4d4851;
	--mse-breadcrumb: #abc4e3;
	--mse-line: #a7c4cf;
	--mse-font-display: quiche-sans, "FONTSPRING DEMO - Quiche Sans", Georgia, serif;
	--mse-font-label: "League Spartan", sans-serif;
	--mse-font-body: Mulish, sans-serif;
}

/* ---------- Meet Our Team grid ---------- */

.mse-team-grid-section {
	position: relative;
	z-index: 2;
	margin-top: -150px; /* cards overlap the bottom of the banner (Figma) */
	padding-bottom: 100px;
}

.mse-team-intro {
	max-width: 955px;
	margin: 0 auto 40px;
	text-align: center;
}

.mse-team-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 305px));
	justify-content: center;
	column-gap: 20px;
	row-gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mse-team-card {
	margin: 0;
	padding: 0;
}

.mse-team-card__link {
	display: flex;
	flex-direction: column;
	gap: 30px;
	color: inherit;
	text-decoration: none;
}

.mse-team-card__link:hover,
.mse-team-card__link:focus {
	color: inherit;
	text-decoration: none;
}

.mse-team-card__image {
	overflow: hidden;
	aspect-ratio: 305 / 376;
	background: #eef1f6;
}

.mse-team-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform 0.4s ease;
}

.mse-team-card__link:hover .mse-team-card__image img,
.mse-team-card__link:focus-visible .mse-team-card__image img {
	transform: scale(1.04);
}

.mse-team-card__text {
	display: flex;
	flex-direction: column;
	gap: 16px;
	text-align: center;
}

.mse-team-card__name {
	margin: 0;
	padding: 0;
	font-family: var(--mse-font-display);
	font-weight: 300;
	font-size: 30px;
	line-height: 42px;
	letter-spacing: 0;
	text-transform: capitalize;
	color: #000;
}

.mse-team-card__title {
	font-family: var(--mse-font-label);
	font-weight: 700;
	font-size: 17px;
	line-height: 26px;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: var(--mse-navy);
}

/* ---------- Single Team Member: banner ---------- */

.mse-tm-banner {
	position: relative;
	min-height: 602px;
	background-color: #8e9bb8;
	background-size: cover;
	background-position: center;
	margin-bottom: 190px; /* room for the photo hanging below the banner */
}

.mse-tm-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(39, 37, 91, 0.15) 0%, rgba(39, 37, 91, 0.35) 100%);
	pointer-events: none;
}

.mse-tm-banner .container {
	position: relative;
	z-index: 1;
}

.mse-tm-banner__inner {
	display: grid;
	grid-template-columns: 502px minmax(0, 455px);
	column-gap: 91px;
	justify-content: center;
	align-items: start;
	padding-top: 91px;
}

.mse-tm-banner__photo {
	position: relative;
	margin-bottom: -190px;
	aspect-ratio: 502 / 619;
	overflow: hidden;
	background: #eef1f6;
}

.mse-tm-banner__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.mse-tm-banner__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	padding-top: 77px;
	color: #fff;
}

.mse-tm-banner__name {
	margin: 0;
	padding: 0;
	font-family: var(--mse-font-display);
	font-weight: 300;
	font-size: 40px;
	line-height: 42px;
	letter-spacing: 0;
	text-transform: capitalize;
	color: #fff;
}

.mse-tm-banner__title {
	font-family: var(--mse-font-label);
	font-weight: 700;
	font-size: 17px;
	line-height: 26px;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: #fff;
}

.mse-tm-banner__breadcrumb {
	font-family: var(--mse-font-label);
	font-weight: 400;
	font-size: 17px;
	line-height: 26px;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: var(--mse-breadcrumb);
}

.mse-tm-banner__breadcrumb a {
	color: var(--mse-breadcrumb);
	text-decoration: none;
}

.mse-tm-banner__breadcrumb a:hover {
	color: #fff;
}

.mse-tm-banner__breadcrumb .sep {
	margin: 0 6px;
}

.mse-tm-banner__breadcrumb .current {
	color: #fff;
}

.mse-tm-banner__back,
.mse-tm-link {
	display: inline-block;
	padding-bottom: 4px;
	font-size: 18px;
	line-height: 28px;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

.mse-tm-banner__back {
	font-family: var(--mse-font-body);
	color: #fff;
}

.mse-tm-banner__back:hover,
.mse-tm-banner__back:focus {
	color: var(--mse-breadcrumb);
	text-decoration: none;
}

/* ---------- Single Team Member: bio + awards ---------- */

.mse-tm-bio {
	padding-bottom: 80px;
}

.mse-tm-bio__content {
	max-width: 964px;
	margin: 0 auto;
	color: var(--mse-body);
}

.mse-tm-awards {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 30px 45px;
	max-width: 1122px;
	margin: 80px auto 0;
	padding: 0;
	list-style: none;
}

.mse-tm-awards li {
	margin: 0;
}

.mse-tm-awards img {
	display: block;
	max-height: 78px;
	width: auto;
}

/* ---------- Single Team Member: videos ---------- */

.mse-tm-videos {
	padding-bottom: 100px;
}

.mse-tm-videos__inner {
	display: flex;
	flex-direction: column;
	gap: 56px;
	max-width: 960px;
	margin: 0 auto;
}

.mse-tm-videos__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
}

.mse-tm-videos__head-left {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 15px;
	max-width: 449px;
}

.mse-tm-videos__head h2 {
	margin: 0;
	padding: 0;
	font-family: var(--mse-font-display);
	font-weight: 400;
	font-size: 48px;
	line-height: 1.2;
	letter-spacing: -1px;
	text-transform: none;
	color: var(--mse-ink);
}

.mse-tm-link {
	padding: 0 11px 3px;
	font-family: var(--mse-font-label);
	letter-spacing: 1px;
	color: #000;
	border-bottom: 1.5px solid var(--mse-line);
}

.mse-tm-link:hover,
.mse-tm-link:focus {
	color: var(--mse-navy);
	text-decoration: none;
}

.mse-tm-videos__intro {
	max-width: 469px;
	font-family: var(--mse-font-label);
	font-size: 22px;
	line-height: 30.6px;
	color: var(--mse-body);
}

.mse-tm-video {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 14px;
	overflow: hidden;
	background: #000;
}

.mse-tm-video__frame,
.mse-tm-video__frame iframe,
.mse-tm-video__frame video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.mse-tm-video__cover {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	cursor: pointer;
	background-color: #000;
	background-size: cover;
	background-position: center;
}

.mse-tm-video__cover::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.2);
	transition: background 0.3s ease;
}

.mse-tm-video__cover:hover::before,
.mse-tm-video__cover:focus-visible::before {
	background: rgba(0, 0, 0, 0.3);
}

.mse-tm-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 119px;
	height: 119px;
	transform: translate(-50%, -50%);
	transition: transform 0.3s ease;
}

.mse-tm-video__cover:hover .mse-tm-video__play {
	transform: translate(-50%, -50%) scale(1.06);
}

.mse-tm-video__play-circle {
	display: block;
	width: 119px;
	height: 119px;
}

.mse-tm-video__play-icon {
	position: absolute;
	top: 37px;
	left: 44px;
	width: 43px;
	height: 46px;
}

.mse-tm-video__label {
	position: absolute;
	left: 23px;
	bottom: 19px;
	padding: 4px 34px;
	border-radius: 5px;
	background: #1e1e1e;
	font-family: var(--mse-font-body);
	font-weight: 500;
	font-size: 20px;
	line-height: 32px;
	text-transform: capitalize;
	color: #fff;
}

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
	.mse-tm-banner__inner {
		grid-template-columns: 420px minmax(0, 1fr);
		column-gap: 50px;
	}

	.mse-tm-banner {
		margin-bottom: 150px;
	}

	.mse-tm-banner__photo {
		margin-bottom: -150px;
	}
}

@media (max-width: 991px) {
	.mse-team-grid-section {
		margin-top: 0;
		padding-top: 60px;
		padding-bottom: 60px;
	}

	.mse-team-grid {
		grid-template-columns: repeat(2, minmax(0, 305px));
	}

	.mse-tm-banner {
		min-height: 0;
		margin-bottom: 60px;
		padding-bottom: 50px;
	}

	.mse-tm-banner__inner {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 32px;
		padding-top: 50px;
		justify-items: center;
		text-align: center;
	}

	.mse-tm-banner__photo {
		width: min(100%, 380px);
		margin-bottom: 0;
	}

	.mse-tm-banner__content {
		align-items: center;
		padding-top: 0;
	}

	.mse-tm-videos__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}

	.mse-tm-videos__intro {
		max-width: none;
	}
}

@media (max-width: 575px) {
	.mse-team-grid {
		grid-template-columns: minmax(0, 340px);
	}

	.mse-team-card__name {
		font-size: 26px;
		line-height: 34px;
	}

	.mse-team-card__title,
	.mse-tm-banner__title,
	.mse-tm-banner__breadcrumb {
		font-size: 15px;
		letter-spacing: 3px;
	}

	.mse-tm-banner__name {
		font-size: 34px;
		line-height: 40px;
	}

	.mse-tm-videos__head h2 {
		font-size: 36px;
	}

	.mse-tm-videos__intro {
		font-size: 18px;
		line-height: 27px;
	}

	.mse-tm-video {
		border-radius: 10px;
	}

	.mse-tm-video__play,
	.mse-tm-video__play-circle {
		width: 72px;
		height: 72px;
	}

	.mse-tm-video__play-icon {
		top: 22px;
		left: 27px;
		width: 26px;
		height: 28px;
	}

	.mse-tm-video__label {
		left: 12px;
		bottom: 12px;
		padding: 2px 16px;
		font-size: 15px;
		line-height: 26px;
	}
}
