.elementor-widget-hologram-expanding-gallery,
.elementor-widget-hologram-expanding-gallery > .elementor-widget-container {
	width: 100%;
	max-width: none;
}

.heg-gallery {
	--heg-count: 4;
	--heg-duration: 340ms;
	--heg-inactive-overlay: 0;
	--heg-divider-opacity: 0;
	display: flex;
	align-items: stretch;
	width: 100%;
	height: 620px;
	gap: 0;
	overflow: hidden;
	isolation: isolate;
	background: transparent;
	border-radius: 14px;
	-webkit-tap-highlight-color: transparent;
	transform: translateZ(0);
	transition: opacity 140ms ease;
}

.heg-gallery:not(.is-ready) {
	opacity: 0;
}

.heg-gallery.is-ready {
	opacity: 1;
}

.heg-card {
	position: relative;
	flex: 0 0 calc(100% / var(--heg-count));
	min-width: 0;
	height: 100%;
	overflow: hidden;
	cursor: pointer;
	outline: none;
	isolation: isolate;
	transition: flex-basis var(--heg-duration) cubic-bezier(.25, .46, .45, .94);
	will-change: flex-basis;
}

.heg-card::before {
	content: "";
	position: absolute;
	z-index: 4;
	inset: 0 auto 0 0;
	width: 1px;
	pointer-events: none;
	background: rgba(255, 255, 255, var(--heg-divider-opacity));
}

.heg-card:first-child::before {
	display: none;
}

.heg-card::after {
	content: "";
	position: absolute;
	z-index: 2;
	inset: 0;
	pointer-events: none;
	background: rgba(0, 0, 0, var(--heg-inactive-overlay));
	opacity: 0;
	transition: opacity 150ms ease;
}

.heg-gallery.has-active .heg-card:not(.is-active)::after {
	opacity: 1;
}

.heg-card__media {
	position: absolute;
	z-index: 1;
	inset: 0;
	overflow: hidden;
}

/*
 * La imagen conserva siempre la misma escala: alto completo, ancho automático.
 * La animación sucede únicamente en el ancho del panel que la recorta.
 */
.heg-card__media > img.heg-card__image {
	position: absolute !important;
	top: 0 !important;
	display: block !important;
	width: auto !important;
	height: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	min-height: 0 !important;
	max-height: none !important;
	object-fit: fill !important;
	object-position: initial !important;
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
	transition: none !important;
	animation: none !important;
	will-change: auto;
}

.heg-card__image--center {
	left: 50% !important;
	right: auto !important;
	transform: translateX(-50%) !important;
}

.heg-card__image--left {
	left: 0 !important;
	right: auto !important;
	transform: none !important;
}

.heg-card__image--right {
	left: auto !important;
	right: 0 !important;
	transform: none !important;
}

.heg-card__content {
	position: absolute;
	z-index: 5;
	inset: 0;
	display: flex;
	align-items: flex-end;
	padding: 28px;
	pointer-events: none;
	background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, .46) 100%);
	opacity: 0;
	transition: opacity 180ms ease;
}

.heg-card.is-active .heg-card__content {
	opacity: 1;
}

.heg-card__content-inner {
	max-width: 520px;
	pointer-events: auto;
}

.heg-card__title {
	margin: 0;
	color: #fff;
	font-size: clamp(28px, 3vw, 52px);
	line-height: 1;
}

.heg-card__description {
	margin-top: 12px;
	color: #fff;
}

.heg-card__button {
	display: inline-flex;
	margin-top: 18px;
	color: #fff;
	text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
	.heg-card,
	.heg-card::after,
	.heg-card__content,
	.heg-gallery {
		transition-duration: 1ms !important;
	}
}

@media (max-width: 767px) {
	.heg-gallery,
	.heg-gallery:not(.is-ready) {
		display: block;
		height: auto !important;
		overflow: hidden;
		opacity: 1;
	}

	.heg-card {
		flex: none !important;
		width: 100%;
		height: auto;
		min-height: 0;
		transition: none !important;
	}

	.heg-card__media {
		position: relative;
		inset: auto;
		overflow: visible;
	}

	.heg-card__media > img.heg-card__image,
	.heg-card__image--center,
	.heg-card__image--left,
	.heg-card__image--right {
		position: relative !important;
		top: auto !important;
		left: auto !important;
		right: auto !important;
		display: block !important;
		width: 100% !important;
		height: auto !important;
		max-width: 100% !important;
		transform: none !important;
	}

	.heg-card::before,
	.heg-card::after {
		display: none;
	}

	.heg-card__content {
		opacity: 1;
	}
}
