/* ── Elemance Team Member Widget ──────────────── */
.elmc-tm,
.elmc-tm *,
.elmc-tm *::before,
.elmc-tm *::after {
	box-sizing: border-box;
}

.elmc-tm {
	width: 100%;
	overflow: hidden;
}

.elmc-tm__photo-wrap {
	position: relative;
	overflow: hidden;
}

.elmc-tm__photo {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.elmc-tm__body {
	padding: 20px 4px;
}

.elmc-tm__name {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 4px;
	line-height: 1.3;
	color: #111827;
}

.elmc-tm__role {
	font-size: 13px;
	font-weight: 600;
	margin: 0 0 10px;
	color: #6c63ff;
}

.elmc-tm__bio {
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 14px;
	color: #6b7280;
}

/* ── Photo shapes ─────────────────────────────── */
.elmc-tm--photo-rounded .elmc-tm__photo-wrap { border-radius: 14px; }
.elmc-tm--photo-square  .elmc-tm__photo-wrap { border-radius: 0; }
.elmc-tm--photo-circle  .elmc-tm__photo-wrap {
	border-radius: 50%;
	aspect-ratio: 1;
	width: 140px;
	margin: 0 auto;
}

/* ── Social icons: row ────────────────────────── */
.elmc-tm__social-row {
	display: flex;
	gap: 10px;
	/* Set by the Alignment control so the icons follow the text. */
	justify-content: var(--elmc-tm-justify, flex-start);
}

.elmc-tm__social {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(108,99,255,0.1);
	color: #6c63ff;
	text-decoration: none;
	font-size: 14px;
	transition: background 0.2s, color 0.2s, transform 0.2s;
}

.elmc-tm__social:hover {
	background: #6c63ff;
	color: #fff;
	transform: translateY(-2px);
	text-decoration: none;
}

.elmc-tm__social svg { width: 14px; height: 14px; fill: currentColor; }

/* ── Social icons: hover-reveal overlay ───────── */
.elmc-tm--social-hover .elmc-tm__social-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: rgba(26,26,46,0.75);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.elmc-tm--social-hover .elmc-tm__photo-wrap:hover .elmc-tm__social-overlay {
	opacity: 1;
}

.elmc-tm--social-hover .elmc-tm__social-overlay .elmc-tm__social {
	background: rgba(255,255,255,0.15);
	color: #fff;
	transform: translateY(10px);
	transition: transform 0.25s ease, background 0.2s;
}

.elmc-tm--social-hover .elmc-tm__photo-wrap:hover .elmc-tm__social-overlay .elmc-tm__social {
	transform: translateY(0);
}

.elmc-tm--social-hover .elmc-tm__social-overlay .elmc-tm__social:hover {
	background: #6c63ff;
}

/* ════ CARD (default) ════════════════════════════ */
.elmc-tm--card { display: flex; flex-direction: column; }

/* ════ OVERLAY (info on photo) ═══════════════════ */
.elmc-tm--overlay .elmc-tm__photo-wrap {
	position: relative;
}

.elmc-tm--overlay .elmc-tm__photo {
	min-height: 320px;
}

.elmc-tm--overlay .elmc-tm__photo-wrap::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
}

.elmc-tm--overlay .elmc-tm__overlay-info {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 24px;
	z-index: 2;
}

.elmc-tm--overlay .elmc-tm__overlay-info .elmc-tm__name,
.elmc-tm--overlay .elmc-tm__overlay-info .elmc-tm__role {
	color: #ffffff;
}

.elmc-tm--overlay .elmc-tm__overlay-info .elmc-tm__role {
	color: #c9c5ff;
	margin-bottom: 0;
}

/* ════ HORIZONTAL (photo left) ═══════════════════ */
.elmc-tm--horizontal {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 20px;
}

.elmc-tm--horizontal .elmc-tm__photo-wrap {
	flex-shrink: 0;
	width: 120px;
}

.elmc-tm--horizontal .elmc-tm__body {
	padding: 0;
	flex: 1;
}

/* ════ MINIMAL (circle photo, centered, no card bg) ═ */
.elmc-tm--minimal {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: none !important;
}

.elmc-tm--minimal .elmc-tm__photo-wrap {
	width: 120px;
	border-radius: 50%;
	aspect-ratio: 1;
	margin-bottom: 16px;
}

.elmc-tm--minimal .elmc-tm__body {
	padding: 0;
	text-align: center;
}

.elmc-tm--minimal .elmc-tm__social-row {
	justify-content: center;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 480px) {
	.elmc-tm--horizontal {
		flex-direction: column;
		text-align: center;
	}
	.elmc-tm--horizontal .elmc-tm__photo-wrap { width: 100px; }
	.elmc-tm--horizontal .elmc-tm__social-row { justify-content: var(--elmc-tm-justify, center); }
}
