.epm-profile-trigger {
	display: inline-block;
	cursor: pointer;
	text-decoration: none;
}

.epm-profile-trigger:hover,
.epm-profile-trigger:focus {
	text-decoration: underline;
}

.epm-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.epm-modal.is-open {
	display: flex;
}

.epm-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
}

.epm-modal__dialog {
	position: relative;
	z-index: 1;
	width: 1162px;
	max-width: calc(100vw - 48px);
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	background-color: #f6f3eb;
	background-image: url('../images/modal-bg.webp');
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	border-radius: 14px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
	padding: 32px;
}

.epm-modal__close {
	position: absolute;
	top: 12px;
	right: 14px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border: 0;
	background: rgba(255, 255, 255, 0.72);
	border-radius: 50%;
	font-size: 30px;
	line-height: 0;
	cursor: pointer;
	display: inline-flex;
	justify-content: center;
	padding: 18px 0 0 0;
}

.epm-modal__layout {
	display: grid;
	grid-template-columns: minmax(0, 46%) minmax(0, 54%);
	gap: 64px;
	align-items: center;
	min-height: 520px;
}

.epm-modal__photo-wrap {
	margin: 0;
	min-width: 0;
}

.epm-modal__photo {
	display: block;
	width: 80%;
	max-width: 80%!important;
	margin: 0 auto;
	height: auto;
	max-height: 500px;
	object-fit: contain;
	object-position: center;
	border-radius: 0;
}

.epm-modal__content {
	min-width: 0;
}

.epm-modal__content:only-child {
	grid-column: 1 / -1;
}

.epm-modal__name {
	margin: 0 0 24px;
	font-size: 38px;
	line-height: 1.1;
}

.epm-modal__bio {
	max-width: 100%;
	font-size: 18px;
	line-height: 1.55;
}

.epm-modal__bio > :first-child {
	margin-top: 0;
}

.epm-modal__bio > :last-child {
	margin-bottom: 0;
}

body.epm-modal-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.epm-modal {
		padding: 16px;
	}

	.epm-modal__dialog {
		width: 100% !important;
		max-width: 430px;
		max-height: calc(100vh - 32px);
		padding: 24px;
		overflow-x: hidden;
		overflow-y: auto;

		/* Versão vertical do fundo para o mobile */
		background-image: inherit;
		background-repeat: no-repeat;
		background-position: center center;
		background-size: cover;
	}

	.epm-modal__layout {
		display: flex;
		flex-direction: column;
		gap: 28px;
		min-height: 0;
		align-items: stretch;
	}

	.epm-modal__photo-wrap {
		width: 100%;
		margin: 0;
	}

	.epm-modal__photo {
		display: block;
		width: 100%;
		height: auto;
		max-height: none;
		object-fit: contain;
	}

	.epm-modal__content {
		width: 100%;
	}

	.epm-modal__name {
		font-size: 28px;
		margin-bottom: 16px;
	}

	.epm-modal__bio {
		font-size: 16px;
	}
}
