/* ==========================================================================
   Home · Sección 3 · Slider
   100 % del ancho, 50 % del alto de la pantalla. Una imagen a la vez.
   ========================================================================== */

.ans-slider {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 50vh;
	overflow: hidden;
	background: #1a1a1a;
}

@supports (height: 100svh) {
	.ans-slider {
		height: 50svh;
	}
}

.ans-slider__track {
	position: absolute;
	inset: 0;
}

/* El JS (GSAP) controla posición y visibilidad; antes de que arranque, y sin
   JS, solo se ve el primer slide. */
.ans-slide {
	position: absolute;
	inset: 0;
	overflow: hidden;
	will-change: transform;
}

.ans-slide:not(:first-child) {
	visibility: hidden;
}

.ans-slide__media {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: var(--focus, 50% 50%);
	pointer-events: none;
}
