/**
 * Frontend styles for Bacon Bits embeds.
 */

/*
 * Nested trees drop `.elementor-element`, which is where Elementor resets
 * inherited flex CSS variables. Without that reset, a parent `--align-items:
 * center` leaks into every child container.
 */
.npc-ewg-scope :where(.npc-ewg-nested-el) {
	--flex-direction: initial;
	--flex-wrap: initial;
	--justify-content: initial;
	--align-items: initial;
	--align-content: initial;
	--gap: initial;
	--row-gap: var(--widgets-spacing-row, 20px);
	--column-gap: var(--widgets-spacing-column, 20px);
	--flex-basis: initial;
	--flex-grow: initial;
	--flex-shrink: initial;
	--order: initial;
	--align-self: initial;
}

.npc-ewg-scope .npc-ewg-nested-el {
	flex-basis: var(--flex-basis);
	flex-grow: var(--flex-grow);
	flex-shrink: var(--flex-shrink);
	order: var(--order);
	align-self: var(--align-self);
}

/*
 * Theme list styles (Hello / block editor resets) can leak into nested icon lists
 * when pack CSS misses the `.elementor-widget` ancestor.
 */
.npc-ewg-scope ul.elementor-icon-list-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.npc-ewg-scope .elementor-icon-list-item {
	margin: 0;
	padding: 0;
}

.npc-ewg-scope .elementor-icon-list-item,
.npc-ewg-scope .elementor-icon-list-item a {
	display: flex;
	align-items: var(--icon-vertical-align, center);
}

.npc-ewg-scope .elementor-icon-list-icon svg {
	height: var(--e-icon-list-icon-size, 1em);
	width: var(--e-icon-list-icon-size, 1em);
}

.npc-ewg-scope .e-con,
.npc-ewg-scope .e-con-full,
.npc-ewg-scope .e-flex,
.npc-ewg-scope .e-con > .e-con-inner {
	display: var(--display, flex);
	flex-direction: var(--flex-direction);
	flex-wrap: var(--flex-wrap);
	justify-content: var(--justify-content);
	align-items: var(--align-items);
	align-content: var(--align-content);
	gap: var(--row-gap) var(--column-gap);
}

.npc-ewg-scope .e-grid,
.npc-ewg-scope .e-grid > .e-con-inner {
	display: var(--display, grid);
	gap: var(--row-gap) var(--column-gap);
	grid-column-gap: var(--grid-column-gap);
	grid-row-gap: var(--grid-row-gap);
}

.npc-ewg-video-player {
	aspect-ratio: 16 / 9;
	position: relative;
	overflow: hidden;
	width: 100%;
	background: #000;
}

.npc-ewg-video-player iframe,
.npc-ewg-video-player .npc-ewg-video-hosted,
.npc-ewg-video-player .elementor-video-iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: contain;
}

/*
 * Container background videos: Elementor JS sizes the iframe. Nested trees
 * never run that handler, so cover with CSS.
 */
.npc-ewg-scope .e-con,
.npc-ewg-scope .elementor-section {
	position: relative;
}

.npc-ewg-scope .elementor-background-video-container {
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: 0;
	pointer-events: none;
}

.npc-ewg-scope .elementor-background-video-embed iframe,
.npc-ewg-scope iframe.npc-ewg-bg-video,
.npc-ewg-scope .elementor-background-video-hosted {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border: 0;
	pointer-events: none;
	max-width: none;
	width: 100vw;
	height: 56.25vw;
	min-width: 177.78vh;
	min-height: 100%;
}
