/* SportsPress Staff Modal
-------------------------------------------------------------- */

.gmspm-modal {
	--gmspm-modal-max-height: 700px;

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

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

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

.gmspm-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(900px, 100%);
	max-height: min(var(--gmspm-modal-max-height), calc(100vh - 48px));
	overflow: hidden;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
	outline: none;
}

.gmspm-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: #111;
	font: inherit;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
}

.gmspm-modal__close:hover,
.gmspm-modal__close:focus {
	background: #fff;
}

.gmspm-modal__content {
	height: min(var(--gmspm-modal-max-height), calc(100vh - 48px));
	min-height: 0;
	overflow: hidden;
}

.gmspm-modal__status {
	padding: 70px 32px;
	text-align: center;
}

.gmspm-profile {
	display: flex;
	height: 100%;
	min-height: 0;
	overflow: hidden;
}

.gmspm-profile__media {
	flex: 0 0 38%;
	height: 100%;
	min-height: 0;
	overflow: hidden;
	background: #f2f2f2;
}

.gmspm-profile__image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: cover;
}

.gmspm-profile__body {
	flex: 1 1 auto;
	width: 0;
	height: 100%;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: scroll;
	box-sizing: border-box;
	padding: 58px 52px 48px;
	-webkit-overflow-scrolling: touch;
}

.gmspm-profile__title {
	margin: 0;
}

.gmspm-profile__role {
	margin-top: 8px;
	font-weight: 600;
}

.gmspm-profile__content {
	margin-top: 28px;
}

.gmspm-profile__content > :first-child {
	margin-top: 0;
}

.gmspm-profile__content > :last-child {
	margin-bottom: 0;
}

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

@media (max-width: 700px) {
	.gmspm-modal {
		padding: 12px;
		align-items: flex-start;
	}

	.gmspm-modal__dialog {
		max-height: calc(100vh - 24px);
		overflow-y: auto;
	}

	.gmspm-modal__content {
		height: auto;
		min-height: 0;
		max-height: none;
		overflow: visible;
	}

	.gmspm-profile {
		display: block;
		height: auto;
		min-height: 0;
		overflow: visible;
	}

	.gmspm-profile__media {
		width: 100%;
		height: auto;
		max-height: 380px;
	}

	.gmspm-profile__image {
		width: 100%;
		height: auto;
		aspect-ratio: 1 / 1;
		object-fit: cover;
	}

	.gmspm-profile__body {
		width: auto;
		height: auto;
		min-height: 0;
		overflow: visible;
		padding: 34px 24px 30px;
	}
}
