.elementor-widget-lupi-hero-bento {
	flex: 1 1 auto;
	min-height: 0;
}

.elementor-widget-lupi-hero-bento > .elementor-widget-container {
	height: 100%;
	min-height: 0;
}

.lupi-hero-bento {
	--lupi-hero-bento-gap: 16px;
	--lupi-hero-bento-radius: 8px;
	--lupi-hero-bento-bg: #e6e6e6;
	--lupi-hero-bento-button-bg: #101010;
	--lupi-hero-bento-button-color: #fff;
	--lupi-hero-bento-button-radius: 8px;

	width: 100%;
	height: 100%;
	min-height: 0;
}

.lupi-hero-bento,
.lupi-hero-bento *,
.lupi-hero-bento *::before,
.lupi-hero-bento *::after {
	box-sizing: border-box;
}

.lupi-hero-bento :where(h1, h2, h3, h4, h5, h6, p, figure) {
	margin: 0;
	padding: 0;
}

.lupi-hero-bento__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: var(--lupi-hero-bento-gap);
	width: 100%;
	height: 100%;
	min-height: 0;
}

.lupi-hero-bento__panel {
	--lupi-hero-bento-item-padding: 24px;
	--lupi-hero-bento-overlay-opacity: 0.35;
	--lupi-hero-bento-image-fit: cover;
	--lupi-hero-bento-image-position: center center;

	position: relative;
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--lupi-hero-bento-radius);
	background: var(--lupi-hero-bento-bg);
}

.lupi-hero-bento__panel--primary {
	--lupi-hero-bento-item-padding: 48px;

	grid-column: 1 / span 8;
	grid-row: 1 / span 2;
}

.lupi-hero-bento__panel--secondary {
	grid-column: 9 / span 4;
	grid-row: 1;
}

.lupi-hero-bento__panel--tertiary {
	grid-column: 9 / span 4;
	grid-row: 2;
}

.lupi-hero-bento .lupi-hero-bento__media {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.lupi-hero-bento .lupi-hero-bento__media > .lupi-hero-bento__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: var(--lupi-hero-bento-image-fit, cover);
	object-position: var(--lupi-hero-bento-image-position, center center);
}

.lupi-hero-bento__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	pointer-events: none;
	background: #000;
	opacity: 0;
}

.lupi-hero-bento__panel.has-overlay .lupi-hero-bento__overlay {
	opacity: var(--lupi-hero-bento-overlay-opacity);
}

.lupi-hero-bento__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 16px;
	width: 100%;
	height: 100%;
	padding: var(--lupi-hero-bento-item-padding);
	color: #101010;
}

.lupi-hero-bento__panel--secondary .lupi-hero-bento__content,
.lupi-hero-bento__panel--tertiary .lupi-hero-bento__content {
	justify-content: space-between;
}

.lupi-hero-bento__copy {
	display: grid;
	gap: 12px;
	width: 100%;
}

.lupi-hero-bento__panel--primary .lupi-hero-bento__copy {
	max-width: 48ch;
}

.lupi-hero-bento__title {
	margin: 0;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.1;
	color: inherit;
	text-wrap: balance;
}

.lupi-hero-bento__description {
	margin: 0;
	font-size: 16px;
	line-height: 1.45;
	color: inherit;
	text-wrap: pretty;
}

.lupi-hero-bento__panel--secondary .lupi-hero-bento__description,
.lupi-hero-bento__panel--tertiary .lupi-hero-bento__description {
	max-width: 32ch;
}

.lupi-hero-bento__panel--primary .lupi-hero-bento__title {
	font-size: 48px;
}

.lupi-hero-bento__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	max-height: 40px;
	min-height: 0;
	padding: 0 16px;
	border-radius: var(--lupi-hero-bento-button-radius);
	background: var(--lupi-hero-bento-button-bg);
	color: var(--lupi-hero-bento-button-color);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.lupi-hero-bento__button:hover,
.lupi-hero-bento__button:focus {
	color: var(--lupi-hero-bento-button-color);
	opacity: 0.9;
	text-decoration: none;
}

.lupi-hero-bento__button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

@media (max-width: 64rem) {
	.lupi-hero-bento {
		height: auto;
	}

	.lupi-hero-bento__grid {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		height: auto;
	}

	.lupi-hero-bento__panel {
		grid-column: auto;
		grid-row: auto;
		min-height: clamp(280px, 83.333vw, 320px);
		aspect-ratio: auto;
	}

	.lupi-hero-bento__panel--primary {
		aspect-ratio: 4 / 5;
	}

	.lupi-hero-bento__content {
		flex: 1 1 auto;
		padding: min(var(--lupi-hero-bento-item-padding), 24px);
	}

	.lupi-hero-bento__title,
	.lupi-hero-bento__panel--primary .lupi-hero-bento__title {
		font-size: 30px;
	}
}
