.therapevtries-profile {
	--therapevtries-sticky-top: 32px;
	--therapevtries-admin-offset: 0px;
	box-sizing: border-box;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: clamp(32px, 5vw, 80px) 24px;
}

body.admin-bar .therapevtries-profile {
	--therapevtries-admin-offset: 32px;
}

.therapevtries-profile__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
}

.therapevtries-profile__identity {
	align-self: start;
	position: sticky;
	top: calc(var(--therapevtries-sticky-top) + var(--therapevtries-admin-offset));
	max-height: calc(100vh - var(--therapevtries-sticky-top) - var(--therapevtries-admin-offset) - 24px);
	overflow-y: auto;
}

.therapevtries-profile__photo {
	display: block;
	width: 100%;
	height: auto;
	max-height: 60vh;
	object-fit: contain;
	object-position: top center;
	border-radius: 12px;
}

.therapevtries-profile__profession {
	text-align: center;
	margin: 8px 0 0;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.therapevtries-profile__body {
	min-width: 0;
	overflow-wrap: anywhere;
}

.therapevtries-profile__name {
	text-align: center;
	margin: 20px 0 0;
	font-size: clamp(28px, 2.5vw, 36px);
	font-weight: 700;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.therapevtries-profile__text {
	font-size: 18px;
	line-height: 1.8;
}

.therapevtries-profile__text img {
	max-width: 100%;
	height: auto;
}

.therapevtries-profile__text .alignwide,
.therapevtries-profile__text .alignfull {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

@media (max-width: 782px) {
	body.admin-bar .therapevtries-profile {
		--therapevtries-admin-offset: 46px;
	}
}

@media (max-width: 767px) {
	.therapevtries-profile__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.therapevtries-profile__identity {
		position: static;
		max-height: none;
		overflow: visible;
	}

	.therapevtries-profile__photo {
		max-width: 400px;
		margin-inline: auto;
	}
}
