/* Post Image / Post Custom Field: "Fit the whole image" option.
   !important: Impreza sets object-fit: cover in several selectors of higher specificity
   (grid aspect ratio, has_aspect_ratio, has_ratio, has_height, media preview slider) and loads after this file. */
.w-post-elm.ip-img-contain img {
	object-fit: contain !important;
}

/* Media preview (hover gallery): stretch every frame to the aspect-ratio box so contain letterboxes. */
.w-post-elm.post_image.ip-img-contain .w-post-slider-trigger + img,
.w-post-elm.post_image.ip-img-contain .w-post-slider-trigger + picture {
	bottom: 0;
	height: 100%;
	width: 100%;
}
.w-post-elm.post_image.ip-img-contain .w-post-slider-trigger + picture img {
	width: 100%;
	height: 100%;
	object-fit: contain !important;
}
