/* WP Consultant Toolkit — Team widget. Based on .people-mosaic / .team-photo in outputs/style.css. */

.wpct-team-mosaic {
	display: flex;
	gap: var(--wpct-team-gap, 16px);
}

.wpct-team-secondary {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: var(--wpct-team-gap, 16px);
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Makes the card inside each <li> the actual flex item. */
.wpct-team-slot {
	display: contents;
}

/* Needed because `display: contents` above overrides the browser's own [hidden] rule. */
.wpct-team-slot[hidden] {
	display: none;
}

.wpct-team-photo {
	position: relative;
	display: flex;
	flex: 1 1 0;
	min-width: 0;
	min-height: var(--wpct-team-photo-h, 220px);
	align-items: flex-end;
	overflow: hidden;
	padding: 24px;
	border-radius: 28px;
	color: #ffffff;
	box-shadow: 0 8px 24px rgba(7, 24, 47, .08);
	transition: opacity .25s ease;
}

.wpct-team-photo.wpct-team-hero {
	flex: 1.25 1 0;
	min-height: var(--wpct-team-hero-h, 560px);
}

.wpct-team-photo--navy {
	background: var(--wpct-team-shape, none), linear-gradient(145deg, var(--wpct-team-navy-start, #123056), var(--wpct-team-navy-end, #245bff));
}

.wpct-team-photo--mint {
	color: #07182f;
	background: var(--wpct-team-shape, none), linear-gradient(145deg, var(--wpct-team-mint-start, #baf6e5), var(--wpct-team-mint-end, #42d9b0));
}

.wpct-team-photo--coral {
	color: #07182f;
	background: var(--wpct-team-shape, none), linear-gradient(145deg, var(--wpct-team-coral-start, #ffd0c6), var(--wpct-team-coral-end, #ff7357));
}

/* Decorative circle + curve; only visible behind the initials (a photo covers them). */
.wpct-team--shapes .wpct-team-photo {
	--wpct-team-shape: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .2) 0 15%, transparent 15.5%);
}

.wpct-team--shapes .wpct-team-photo::after {
	position: absolute;
	right: -12%;
	bottom: -24%;
	width: 78%;
	height: 70%;
	border-radius: 50% 50% 20% 20%;
	background: rgba(255, 255, 255, .12);
	content: "";
}

/* Two classes deep so a theme reset like `.entry-content img { height: auto }` can't win. */
.wpct-team-photo .wpct-team-photo-img {
	position: absolute;
	z-index: 1;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.wpct-team-initials {
	position: absolute;
	top: 50%;
	left: 50%;
	font-family: "Manrope", Arial, sans-serif;
	font-size: clamp(4rem, 8vw, 7rem);
	font-weight: 800;
	line-height: 1;
	opacity: .9;
	transform: translate(-50%, -50%);
}

.wpct-team-caption {
	position: relative;
	z-index: 2;
	display: flex;
	width: 100%;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
}

.wpct-team-caption-text {
	min-width: 0;
}

.wpct-team-photo .wpct-team-name {
	margin: 0;
	color: inherit;
	font-family: "Manrope", Arial, sans-serif;
	font-size: 1.08rem;
	font-weight: 700;
	line-height: 1.3;
}

.wpct-team-photo .wpct-team-role {
	display: block;
	margin-top: 2px;
	color: inherit;
	font-size: .76rem;
	opacity: .78;
}

.wpct-team-tag {
	flex: 0 0 auto;
	padding: .3rem .6rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: .66rem;
	font-weight: 800;
	opacity: .8;
	white-space: nowrap;
}

/* Set by team.js for one frame while a card moves, so it fades in. */
.wpct-team-photo.is-entering {
	opacity: 0;
}

.wpct-team-actions {
	display: grid;
	justify-items: center;
	margin-top: var(--wpct-team-gap, 16px);
}

.wpct-team-next {
	font-size: .92rem;
}

/* Breakpoints follow outputs/style.css (767px = Elementor's default mobile breakpoint). */
@media (max-width: 767px) {
	.wpct-team-mosaic {
		flex-direction: column;
	}

	.wpct-team-photo.wpct-team-hero {
		flex: none;
	}

	.wpct-team-secondary {
		flex: none;
		flex-direction: row;
	}
}

@media (max-width: 520px) {
	.wpct-team-secondary {
		flex-direction: column;
	}

	.wpct-team-secondary .wpct-team-photo {
		flex: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpct-team-photo {
		transition: none;
	}
}
