/*
 * Homepage — full-bleed daily media stage.
 */

.feed-stage {
	position: relative;
	width: 100%;
	height: 100dvh;
	overflow: hidden;
	background: var(--black);
}

/* <picture> is inline by default, which would leave a baseline gap
   under the image and stop it filling the stage. */
.feed-picture {
	display: block;
	width: 100%;
	height: 100%;
}

.feed-media {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* ---------------------------------------------------------------
   Overlay — whatever is written in the Classic Editor, centred in
   white over the media.

   Zero-base: everything inside is reset to nothing, then only white
   centred text and media are built back up. The !important flags
   are there to beat inline styles that pasted content carries.
   --------------------------------------------------------------- */

.feed-overlay {
	position: fixed;
	inset: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	pointer-events: none;
}

.feed-overlay__inner {
	max-width: 42rem;
	max-height: 100%;
	overflow-y: auto;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
	pointer-events: auto;
}

.feed-overlay__inner,
.feed-overlay__inner * {
	color: #fff !important;
	text-align: center !important;
}

.feed-overlay__inner * {
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	background: none !important;
}

.feed-overlay__inner > * + * { margin-top: 1em; }

.feed-overlay__inner figure,
.feed-overlay__inner .wp-caption,
.feed-overlay__inner .wp-video {
	display: block;
}

.feed-overlay__inner img,
.feed-overlay__inner video,
.feed-overlay__inner iframe,
.feed-overlay__inner figure,
.feed-overlay__inner .wp-caption,
.feed-overlay__inner .wp-video {
	float: none !important;
	max-width: 100%;
	margin-inline: auto !important;
}
