/* Modal Base */
.tp-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	visibility: hidden;
	opacity: 0;
	transition: visibility 0.3s, opacity 0.3s;
	padding: 80px 20px 20px;
}

.tp-modal.tp-is-visible {
	visibility: visible;
	opacity: 1;
}

/* Overlay Backdrop */
.tp-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
}

/* Modal Dialog Box */
.tp-modal-dialog {
	position: relative;
	width: 100%;
	max-width: 650px;
	background: #f0efe9; /* Light cream/off-white */
	border-radius: 8px;
	border-bottom: 8px solid #cc0000;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	transform: translateY(20px);
	transition: transform 0.3s;
}

.tp-modal.tp-is-visible .tp-modal-dialog {
	transform: translateY(0);
}

/* Close Button */
.tp-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 32px;
	height: 32px;
	cursor: pointer;
	color: #333;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s;
}

.tp-modal-close:hover {
	color: #cc0000;
}

/* Content Area */
.tp-modal-content {
	position: relative;
	padding: 0 40px 40px;
	text-align: center;
}

/* Top Overlapping Image */
.tp-modal-image-wrap {
	width: 180px;
	height: 180px;
	margin: 0 auto;
	transform: translateY(-50%); /* Pulls the image halfway out of the top */
	margin-bottom: -70px; /* Offsets the transform so content doesn't overlap */
}

.tp-modal-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
	background: #ccc;
}

/* Typography */
.tp-modal-name {
	font-size: 28px;
	font-weight: 700;
	color: #111;
	margin: 0 0 10px;
	line-height: 1.2;
}

.tp-modal-role {
	font-size: 16px;
	font-weight: 400;
	color: #555;
	margin-bottom: 25px;
}

.tp-modal-bio {
	font-size: 15px;
	line-height: 1.6;
	color: #444;
	text-align: center;
}

.tp-modal-bio p {
	margin-bottom: 15px;
}
.tp-modal-bio p:last-child {
	margin-bottom: 0;
}

/* Loading State */
.tp-modal-loader {
	padding: 40px;
	font-size: 16px;
	color: #666;
	text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
	.tp-modal {
		padding: 60px 15px 15px;
	}
	.tp-modal-content {
		padding: 0 20px 30px;
	}
	.tp-modal-image-wrap {
		width: 140px;
		height: 140px;
		margin-bottom: -50px;
	}
	.tp-modal-name {
		font-size: 24px;
	}
	.tp-modal-role {
		font-size: 14px;
		margin-bottom: 15px;
	}
	.tp-modal-bio {
		font-size: 14px;
	}
}
