/* Insight Hero Slider
   ---------------------------------------------------------------------------
   A fixed-frame cross-fade slideshow. The frame fills its (stretched) column
   and every image covers it via object-fit, so cropping/scaling an image in
   the Media Library can never change the layout. */

.ihs {
	position: relative;
	height: 100%;
	min-height: 480px;
	border-radius: 30px;
	overflow: hidden;
}

.ihs__track {
	position: absolute;
	inset: 0;
}

.ihs__slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	transition: opacity 0.8s ease;
	pointer-events: none;
}

.ihs__slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.ihs__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Slide indicators, re-homed from the old .sliderberg-navigation-bar styling:
   a teal bar pinned bottom-left with a rounded top-right and curved cut-outs. */
.ihs__dots {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 16px;
	width: fit-content;
	padding: 16px 20px;
	background-color: #478787;
	border-top-right-radius: 30px;
}

.ihs__dot {
	flex: 0 0 auto; /* never let the flex row squish a dot into a sliver */
	width: 12px;
	height: 12px;
	padding: 0;
	margin: 0;
	border: none !important;
	border-radius: 999px;
	background-color: #f5f1e8;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	line-height: 0;
	cursor: pointer;
	transition: width 0.3s ease, background-color 0.3s ease;
}

.ihs__dot.is-active,
.ihs__dot:focus,
.ihs__dot:hover {
	width: 28px;
	background-color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
	.ihs__slide {
		transition: none;
	}
}

/* Stacked layout on small screens: the column no longer drives the height, so
   give the frame an explicit aspect ratio. */
@media only screen and (max-width: 600px) {
	.ihs {
		height: auto;
		aspect-ratio: 4 / 5;
		min-height: 0;
	}

	.ihs__dots {
		padding: 12px;
		gap: 12px;
	}
}
