/* Accessible header slider (replaces Nivo Slider) */
.anj-slider {
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid #d7dbdc;
	background: #000;
}

.anj-slider__slides {
	position: relative;
	aspect-ratio: 2500 / 1050;
}

.anj-slider__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

.anj-slider__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.8s ease, visibility 0s;
}

.anj-slider__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.anj-slider__controls {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 1000; /* above the site title overlay (z-index 999) */
	display: flex;
	gap: 6px;
}

.anj-slider__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.anj-slider__btn:hover {
	background: rgba(0, 0, 0, 0.85);
}

.anj-slider__btn:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
	box-shadow: 0 0 0 6px #000;
}

/* Pause icon (two bars), switches to a play triangle when paused */
.anj-slider__icon {
	display: block;
	width: 12px;
	height: 14px;
	border-left: 4px solid currentColor;
	border-right: 4px solid currentColor;
	box-sizing: border-box;
}

.anj-slider.is-paused .anj-slider__icon {
	width: 0;
	height: 0;
	margin-left: 4px;
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	border-left: 13px solid currentColor;
	border-right: 0;
}

@media (prefers-reduced-motion: reduce) {
	.anj-slider__slide,
	.anj-slider__slide.is-active {
		transition: none;
	}
}

@media (max-width: 600px) {
	.anj-slider__controls {
		right: 6px;
		bottom: 6px;
		gap: 4px;
	}

	.anj-slider__btn {
		width: 32px;
		height: 32px;
		font-size: 20px;
		border-width: 1px;
	}

	.anj-slider__icon {
		width: 10px;
		height: 12px;
		border-left-width: 3px;
		border-right-width: 3px;
	}

	.anj-slider.is-paused .anj-slider__icon {
		margin-left: 3px;
		border-top-width: 6px;
		border-bottom-width: 6px;
		border-left-width: 10px;
	}
}
