/* ============================================
   COMPONENT: Entry figure (master image holder)
   Canonical pattern from single Resource pages.
   Shared by resources, timeline singles, and feed covers.
   ============================================ */

.aiad-entry-figure,
.resource-activity-figure {
	margin: 0;
	overflow: hidden;
	aspect-ratio: 16 / 7;
	max-height: 520px;
	background: var(--gray-900, #111);
	line-height: 0;
}

.aiad-entry-figure__img,
.resource-activity-figure__img,
.aiad-entry-figure img,
.resource-activity-figure img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	/* Default when no per-post focal point; overridden inline via _aiad_thumbnail_focal_point */
	object-position: center 30%;
}

/* Partner logos / wide assets — shrink inside the frame */
.aiad-entry-figure__img--fit-contain,
.resource-activity-figure__img--fit-contain,
.timeline-cover-img--fit-contain {
	object-fit: contain;
	object-position: center;
	box-sizing: border-box;
	padding: clamp(0.75rem, 6%, 1.5rem);
	transform: none;
}

/* Resource single: full-bleed hero band */
.single-resource .resource-activity-card .aiad-entry-figure,
.single-resource .resource-activity-card .resource-activity-figure {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-top: 2rem;
	margin-bottom: 2rem;
	max-width: none;
}

/* Timeline single: contained within article column, taller frame (more image visible) */
.single-timeline .single-timeline-entry__media .aiad-entry-figure,
.single-timeline .single-timeline-entry__media .resource-activity-figure,
.single-timeline .single-timeline-entry__media .resource-activity-figure--timeline-single {
	width: 100%;
	margin: 0;
	aspect-ratio: 3 / 2;
	max-height: none;
}

.single-timeline .single-timeline-entry__media .resource-activity-figure__img,
.single-timeline .single-timeline-entry__media .resource-activity-figure--timeline-single .resource-activity-figure__img {
	object-position: center 50%;
}

/* Stacked single: rounded 16:10 hero */
.single-timeline-entry--stacked .single-timeline-entry__media .resource-activity-figure--timeline-single,
.single-timeline-entry--stacked .single-timeline-entry__media .resource-activity-figure--timeline-fallback {
	aspect-ratio: 16 / 10;
	border-radius: 0.75rem;
}

/* Fallback gradient: contain inside figure (avoid absolute bleed to viewport) */
.single-timeline .single-timeline-entry__media .resource-activity-figure--timeline-fallback {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 2;
	max-height: none;
	overflow: hidden;
}

.single-timeline .resource-activity-figure--timeline-fallback .timeline-entry__cover-fallback {
	position: relative;
	inset: auto;
	width: 100%;
	height: 100%;
	min-height: 100%;
	max-height: none;
	box-sizing: border-box;
}

.single-timeline .resource-activity-figure--timeline-fallback .timeline-entry__cover-fallback--minimal {
	min-height: 100%;
	height: 100%;
	max-height: none;
	padding: 0;
}

/* Inline images in post body (resource + timeline) */
.single-resource .entry-content.entry-content--resource img,
.single-resource .entry-content.entry-content--resource video,
.single-timeline .entry-content.entry-content--timeline img,
.single-timeline .entry-content.entry-content--timeline video {
	max-width: 100%;
	height: auto;
}

.single-resource .entry-content.entry-content--resource iframe,
.single-resource .entry-content.entry-content--resource embed,
.single-timeline .entry-content.entry-content--timeline iframe,
.single-timeline .entry-content.entry-content--timeline embed {
	max-width: 100%;
}
