/* VJW Hero Slider — minimal stylesheet */

.vjw-hero-slider {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vjw-hero-slider__images {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.vjw-hero-slider__pic {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.vjw-hero-slider__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 100%;
	object-fit: cover;
	object-position: center;
	opacity: 0;
	transition: opacity var(--vjw-transition, 500ms) ease-in-out;
	will-change: opacity;
}

.vjw-hero-slider__img.is-active {
	opacity: 1;
}

.vjw-hero-slider__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.vjw-hero-slider__content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 800px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

.vjw-hero-slider__title {
	margin: 0;
	color: #fff;
	line-height: 1.1;
}

.vjw-hero-slider__subtitle {
	margin: 0;
	color: #fff;
}

.vjw-hero-slider__btn {
	/* Inherits all styling from Elementor's button kit (.elementor-button).
	   Only this widget-specific layout class remains for spacing. */
	margin-top: 1rem;
}

/* Editor preview fallback — without this the widget would collapse to 0px
   inside the Elementor editor when set to "inherit" mode. */
.elementor-editor-active .vjw-hero-slider:not([style*="min-height"]) {
	min-height: 400px;
}
