/* Match framing to the selected photographs and background-cleaned copies.
 * Retain heads, hands and the patient interaction in the visible crop. */
.vd-design-refresh .vd-inner-hero__media:has(.vd-clinic-photo[data-vd-photo="consultation"]),
.vd-design-refresh .vd-inner-hero__media:has(.vd-clinic-photo[data-vd-photo="dentist-care"]) {
	aspect-ratio: 4 / 5;
	max-width: 560px;
	margin-inline: auto;
}

.vd-design-refresh .vd-inner-hero__media:has(.vd-clinic-photo[data-vd-photo^="hygiene-"]) {
	aspect-ratio: 4 / 3;
}

.vd-design-refresh .vd-inner-hero__media:has(.vd-clinic-photo[data-vd-photo="implant-treatment"]) {
	aspect-ratio: 3 / 2;
}

.vd-design-refresh .vd-inner-hero__media:has(.vd-clinic-photo[data-vd-photo="dental-model"]) {
	aspect-ratio: 1;
}

.vd-design-refresh .vd-clinic-photo[data-vd-photo="implant-treatment"],
.vd-design-refresh .vd-clinic-photo[data-vd-photo="dental-model"] {
	object-position: center;
}

.vd-design-refresh .vd-inner-hero__media:has(.vd-clinic-photo[data-vd-photo="clinic-entrance"]) {
	aspect-ratio: 3 / 4;
	max-width: 480px;
	margin-inline: auto;
}

.vd-design-refresh .vd-clinic-photo[data-vd-photo="clinic-entrance"] {
	object-position: 50% 65%;
}

.vd-design-refresh .vd-clinic-photo[data-vd-photo="consultation"] {
	object-position: 50% 58%;
}

.vd-design-refresh .vd-clinic-photo[data-vd-photo="dentist-portrait"] {
	object-position: 60% 40%;
}

.vd-design-refresh .vd-clinic-photo[data-vd-photo="dentist-care"] {
	object-position: 50% 50%;
}

.vd-design-refresh .vd-clinic-photo[data-vd-photo="hygiene-treatment"] {
	object-position: 58% 50%;
}

.vd-design-refresh .vd-philosophy__image:has(.vd-clinic-photo[data-vd-photo="consultation"]),
.vd-design-refresh .vd-team__image:has(.vd-clinic-photo[data-vd-photo="dentist-care"]) {
	height: auto;
	min-height: 0;
	max-width: 520px;
	margin-inline: auto;
}

.vd-design-refresh .vd-philosophy__image img.vd-clinic-photo[data-vd-photo="consultation"],
.vd-design-refresh .vd-team__image img.vd-clinic-photo[data-vd-photo="dentist-care"] {
	position: static;
	width: 100%;
	height: auto;
	max-height: none;
	aspect-ratio: auto;
}

.vd-design-refresh .vd-article-image img.vd-clinic-photo {
	height: auto;
	aspect-ratio: auto;
	object-fit: contain;
}

@media (max-width: 680px) {
	.vd-design-refresh .vd-inner-hero__media:has(.vd-clinic-photo[data-vd-photo^="hygiene-"]) {
		aspect-ratio: 3 / 2;
	}
}
