/* =========================================================================
   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 mobile the whole cover (image OR video) becomes 80% of the
     viewport height.
   ========================================================================= */

.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;
}

/* ---- Mobile: featured image / video takes 80% of the viewport height ----
   Overrides the theme's fixed pixel heights for .magcover below 768px.
   Adjust the breakpoint or the 80vh value to taste. */
@media only screen and (max-width: 768px) {
	.magcover {
		height: 80vh !important;
		height: 80dvh !important;      /* dynamic viewport height on modern mobile browsers */
		min-height: 80vh !important;
		min-height: 80dvh !important;
		max-height: none !important;   /* clear the theme's fixed mobile caps */
	}
}
