/* =========================================================================
   Anymag Child — Featured Video
   - The <video> fills the cover image area, matching the theme's
     object-fit: cover behaviour, and sits above the featured-image
     (interlace) layer that stays behind it as a fallback.
   - On phones the whole cover (image OR video) takes a share of the
     screen's height, set in Appearance > Customise > Cover (default 75%).
   ========================================================================= */

.cover-image .anymag-child-featured-video,
.single-post-image .anymag-child-featured-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	-o-object-fit: cover;
	object-position: center center;
	background: #000;
	z-index: 2; /* above the interlace fallback image */
	display: block;
}

/* The <video>'s inner <img> fallback (only rendered by browsers that
   cannot play <video> at all). */
.cover-image .anymag-child-featured-video > img,
.single-post-image .anymag-child-featured-video > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	-o-object-fit: cover;
}

/* ---- Phones: featured image / video height ----
   Overrides the theme's fixed pixel heights for .magcover below 768px.
   The value comes from Appearance > Customise > Cover (default 75%). */
@media only screen and (max-width: 768px) {
	.magcover {
		height: var(--fesheni-cover-mobile, 75vh) !important;
		height: var(--fesheni-cover-mobile-d, 75dvh) !important;   /* dynamic viewport height on modern mobile browsers */
		min-height: var(--fesheni-cover-mobile, 75vh) !important;
		min-height: var(--fesheni-cover-mobile-d, 75dvh) !important;
		max-height: none !important;   /* clear the theme's fixed mobile caps */
	}
}
