/**
 * Governance JetPopup — cap member photo inside the modal.
 *
 * The JetPopup template (id 2055) uses an Elementor image widget with
 * height 100% and object-fit contain, but the container has no explicit
 * height, so the image falls back to its natural pixel size. For HD
 * sources (DG 1944×2560 → large variant 777×1024, Ali 960×1440) this
 * pushes the modal past the viewport, top and bottom overflow.
 *
 * Scoped to the governance page (10079) via wp_enqueue_style, so only
 * the Conseil / Comex cards popup is affected.
 */

#jet-popup-2055 .elementor-widget-image {
	max-height: 80vh;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
}

#jet-popup-2055 .elementor-widget-image img {
	max-height: 80vh !important;
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	object-fit: contain;
	object-position: bottom left;
}

/* Keep the popup content scrollable if bio is long */
#jet-popup-2055 .jet-popup__container-content {
	max-height: 90vh;
	overflow-y: auto;
}

/* Hide LinkedIn icon in member bio modal */
#jet-popup-2055 .elementor-widget-social-icons {
	display: none !important;
}
