/**
 * PhD Team Page Fix 1.0.0
 *
 * Loaded only on /meet-our-team/. The theme stretches the doctors' portrait
 * photos vertically (rendered height exceeds the natural aspect ratio).
 * These rules restore natural proportions for images in the page content:
 * height follows the image's own aspect ratio, and if any frame imposes a
 * box, the photo fits inside it (contain) instead of being stretched (fill).
 */

main img,
.entry-content img,
.post-content img,
article img {
	height: auto !important;
	max-height: none !important;
	object-fit: contain !important;
}

main figure,
.entry-content figure,
.post-content figure,
article figure {
	height: auto !important;
	max-height: none !important;
}

/**
 * Desktop layout (owner, 2026-10-22): each specialist's photo sits at the
 * left at a moderate width with the bio text starting beside it at the
 * top, instead of the photo spanning the full column with all text below
 * (which made for very long scrolling). On phones the photo stacks above
 * the text as before.
 */
@media (min-width: 900px) {
	main img,
	.entry-content img,
	.post-content img,
	article img {
		float: left;
		width: 320px;
		max-width: 38%;
		margin: 6px 28px 18px 0;
	}

	main hr,
	.entry-content hr,
	.post-content hr,
	article hr {
		clear: both;
	}
}
