.agents-grid {
	padding: 0 0 70px;
}
.agents-grid .agent-card {
	background: #fff;
	border: 1px solid #e8e8e8;
	text-align: center;
	padding: 40px 25px 30px;
	margin-bottom: 30px;
	transition: box-shadow 300ms ease;
}
.agents-grid .agent-card:hover {
	box-shadow: 0 6px 24px rgba(0,0,0,0.09);
}
.agents-grid .agent-photo {
	width: 160px;
	height: 160px;
	border-radius: 50%;
	overflow: hidden;
	margin: 0 auto 22px;
}
.agents-grid .agent-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.agents-grid .agent-name {
	font-size: 1.7em;
	font-weight: 700;
	color: #1F1F1F;
	margin: 0 0 6px;
	line-height: 1.3;
}
.agents-grid .agent-role {
	font-size: 1.3em;
	color: #69151A;
	margin: 0 0 18px;
	font-weight: 600;
	line-height: 1.4;
}
.agents-grid .agent-contact {
	font-size: 1.3em;
	color: #626262;
	margin-bottom: 7px;
}
.agents-grid .agent-contact a {
	color: #626262;
	text-decoration: none;
}
.agents-grid .agent-contact a:hover {
	color: #69151A;
}
.agents-grid .agent-contact i {
	color: #69151A;
	margin-right: 6px;
	width: 14px;
}
.agents-grid .agent-details-btn {
	margin-top: 24px;
}
@media (max-width: 767px) {
	.agents-grid .agent-photo {
		width: 130px;
		height: 130px;
	}
}

.agent-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(31,31,31,0.6);
	z-index: 9999;
	align-items: center;
	justify-content: center;
	padding: 20px;
	display: flex;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 220ms ease, visibility 220ms ease;
}
.agent-modal-overlay.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}
.agent-modal-box {
	background: #fff;
	position: relative;
	max-width: 820px;
	width: 100%;
	display: flex;
	align-items: flex-start;
	gap: 0;
	padding: 26px;
	max-height: 90vh;
	overflow: hidden;
	transform: translateY(18px) scale(0.985);
	opacity: 0;
	transition: transform 260ms ease, opacity 260ms ease;
	will-change: transform, opacity;
}
.agent-modal-overlay.is-open .agent-modal-box {
	transform: translateY(0) scale(1);
	opacity: 1;
}
.agent-modal-photo {
	flex: 0 0 320px;
	width: 320px;
	aspect-ratio: 1 / 1;
	align-self: flex-start;
	background: #f5f5f5;
}
.agent-modal-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.agent-modal-info {
	flex: 1 1 auto;
	padding: 40px 40px 36px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	max-height: 90vh;
	overflow-y: auto;
}
.agent-modal-name {
	font-size: 2.4em;
	font-weight: 700;
	color: #1F1F1F;
	margin: 0 0 8px;
	line-height: 1.2;
	padding-right: 30px;
}
.agent-modal-role {
	font-size: 1.4em;
	color: #69151A;
	font-weight: 600;
	margin: 0 0 20px;
	line-height: 1.4;
}
.agent-modal-bio {
	font-size: 1.4em;
	color: #626262;
	line-height: 1.75;
	margin: 0 0 22px;
}
.agent-modal-bio.is-collapsed {
	max-height: 168px;
	overflow: hidden;
}
.agent-modal-bio-toggle {
	display: inline-flex;
	align-items: center;
	background: none;
	border: none;
	padding: 0;
	margin: -10px 0 22px;
	color: #69151A;
	font-size: 1.2em;
	font-weight: 600;
	cursor: pointer;
}
.agent-modal-bio-toggle:hover {
	color: #1F1F1F;
}
.agent-modal-bio-toggle:focus {
	outline: none;
}
.agent-modal-bio-toggle[hidden] {
	display: none;
}
.agent-modal-contact {
	font-size: 1.3em;
	color: #626262;
	margin-bottom: 8px;
}
.agent-modal-contact a {
	color: #626262;
	text-decoration: none;
}
.agent-modal-contact a:hover {
	color: #69151A;
}
.agent-modal-contact i {
	color: #69151A;
	margin-right: 8px;
	width: 14px;
}
.agent-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 2.2em;
	line-height: 1;
	color: #626262;
	cursor: pointer;
	padding: 0;
	z-index: 1;
	transition: color 200ms ease;
}
.agent-modal-close:hover {
	color: #69151A;
}
@media (max-width: 767px) {
	.agent-modal-box {
		flex-direction: column;
		overflow-y: auto;
	}
	.agent-modal-photo {
		flex: 0 0 auto;
		width: 100%;
		max-width: 220px;
		align-self: center;
	}
	.agent-modal-info {
		padding: 24px 20px 28px;
		max-height: none;
		overflow-y: visible;
	}
	.agent-modal-name {
		font-size: 2em;
	}
}
