/* =========================================================
   TEAM LIGHTBOX — Popup profil manajemen (seperti gallery)
   ========================================================= */

/* --- Person card jadi clickable --- */
.team-member {
	cursor: pointer;
	position: relative;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.team-member:hover {
	transform: translateY(-6px);
	box-shadow: 0 24px 60px rgba(0, 65, 85, .14);
	border-color: transparent;
}
.team-member:focus-visible {
	outline: 3px solid #19b6d8;
	outline-offset: 3px;
}

/* Zoom icon di atas card */
.team-zoom {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .95);
	color: #05212b;
	display: grid;
	place-items: center;
	opacity: 0;
	transform: scale(.8);
	transition: opacity .3s ease, transform .3s ease;
	backdrop-filter: blur(6px);
	pointer-events: none;
	z-index: 3;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}
.team-member:hover .team-zoom,
.team-member:focus-visible .team-zoom {
	opacity: 1;
	transform: scale(1);
}

/* --- Overlay --- */
.team-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(4, 16, 24, .94);
	backdrop-filter: blur(14px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 100px 140px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s ease, visibility .35s ease;
}
.team-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

/* --- Card utama --- */
.tl-card {
	display: grid;
	grid-template-columns: 380px 1fr;
	width: 100%;
	max-width: 900px;
	max-height: 100%;
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 40px 100px rgba(0, 0, 0, .55);
	opacity: 0;
	transform: scale(.96);
	transition: opacity .4s ease, transform .4s ease;
}
.team-lightbox.is-ready .tl-card {
	opacity: 1;
	transform: scale(1);
}

/* --- Foto --- */
.tl-photo {
	position: relative;
	min-height: 380px;
	background: linear-gradient(145deg, #0b5368, #19b6d8);
	overflow: hidden;
}
.tl-photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.tl-photo .tl-placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 9rem;
	font-weight: 900;
	color: rgba(255, 255, 255, .92);
	background: linear-gradient(145deg, #0b5368, #19b6d8);
	letter-spacing: -.03em;
}

/* --- Info --- */
.tl-info {
	padding: 40px 42px 36px;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	min-height: 380px;
}

.tl-counter {
	display: inline-block;
	font-size: .7rem;
	font-weight: 800;
	letter-spacing: .14em;
	color: #0089b0;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.tl-name {
	font-size: 1.85rem;
	font-weight: 800;
	letter-spacing: -.02em;
	color: #0a1e2b;
	line-height: 1.15;
	margin: 0 0 10px;
}

.tl-position {
	font-size: .95rem;
	color: #0089b0;
	font-weight: 700;
	letter-spacing: .02em;
	margin: 0 0 22px;
	padding-bottom: 22px;
	border-bottom: 1px solid #eef4f6;
}

.tl-bio {
	font-size: .96rem;
	line-height: 1.75;
	color: #4a5f6b;
	flex: 1;
	white-space: pre-wrap;
}
.tl-bio:empty {
	display: none;
}

/* --- Close --- */
.tl-close {
	position: absolute;
	top: 22px;
	right: 22px;
	z-index: 5;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .25);
	background: rgba(5, 28, 40, .55);
	backdrop-filter: blur(10px);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background .25s ease, transform .25s ease;
}
.tl-close:hover {
	background: #e74c3c;
	border-color: transparent;
	transform: rotate(90deg);
}

/* --- Nav arrows --- */
.tl-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .25);
	background: rgba(5, 28, 40, .55);
	backdrop-filter: blur(10px);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background .25s ease, transform .25s ease, border-color .25s ease;
}
.tl-nav:hover {
	background: rgba(25, 182, 216, .9);
	border-color: transparent;
	color: #05212b;
	transform: translateY(-50%) scale(1.06);
}
.tl-prev { left: 24px; }
.tl-next { right: 24px; }

/* --- Thumbnails --- */
.tl-thumbs {
	position: absolute;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 4;
	display: flex;
	gap: 10px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(5, 28, 40, .55);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, .15);
	max-width: calc(100% - 60px);
	overflow-x: auto;
	scrollbar-width: none;
}
.tl-thumbs::-webkit-scrollbar { display: none; }

.tl-thumb {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid transparent;
	padding: 0;
	cursor: pointer;
	background: linear-gradient(145deg, #0b5368, #19b6d8);
	opacity: .55;
	transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
	display: grid;
	place-items: center;
	font-weight: 800;
	color: #fff;
	font-size: .9rem;
}
.tl-thumb:hover { opacity: 1; transform: translateY(-2px); }
.tl-thumb.is-active {
	opacity: 1;
	border-color: #19b6d8;
	transform: scale(1.08);
}
.tl-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.tl-open { overflow: hidden; }

/* --- Responsive --- */
@media (max-width: 900px) {
	.team-lightbox { padding: 40px 20px 130px; }
	.tl-card {
		grid-template-columns: 1fr;
		max-width: 520px;
	}
	.tl-photo { min-height: 300px; }
	.tl-info { min-height: auto; padding: 30px 28px; }
	.tl-name { font-size: 1.5rem; }
	.tl-nav { width: 44px; height: 44px; }
	.tl-prev { left: 10px; }
	.tl-next { right: 10px; }
	.tl-close { top: 14px; right: 14px; width: 40px; height: 40px; }
}
@media (max-width: 520px) {
	.team-lightbox { padding: 20px 12px 120px; }
	.tl-photo { min-height: 240px; }
	.tl-info { padding: 24px 22px; }
	.tl-name { font-size: 1.35rem; }
	.tl-nav {
		top: auto;
		bottom: 100px;
		transform: none;
	}
	.tl-nav:hover { transform: scale(1.06); }
	.tl-prev { left: calc(50% - 52px); }
	.tl-next { right: calc(50% - 52px); }
	.tl-thumbs { bottom: 18px; }
	.tl-thumb { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
	.team-lightbox, .tl-card { transition: none !important; }
}