/* Khepri Story Slider */
.khepri-story-slider {
	--khepri-teal: #003c34;
	--khepri-gold: #d6a536;
	--khepri-ink: #102a32;
	--khepri-soft: #faf9f5;
	max-width: 1180px;
	margin: 72px auto;
	padding: 0 24px;
	box-sizing: border-box;
	color: var(--khepri-ink);
	font-family: inherit;
	outline: none;
}

.khepri-story-slider__header {
	text-align: right;
	margin-bottom: 24px;
}

.khepri-story-slider__eyebrow {
	color: var(--khepri-gold);
	font-weight: 700;
	font-size: 0.95rem;
	margin-bottom: 7px;
}

.khepri-story-slider__heading {
	color: var(--khepri-teal);
	margin: 0;
	font-size: clamp(1.8rem, 3vw, 3rem);
	line-height: 1.25;
	font-weight: 700;
}

.khepri-story-slider__viewport {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr) 54px;
	align-items: center;
	gap: 18px;
}

.khepri-story-slider__slides {
	min-width: 0;
}

.khepri-story-slider__slide {
	display: none;
}

.khepri-story-slider__slide.is-active {
	display: block;
	animation: khepriSliderFade .28s ease;
}

@keyframes khepriSliderFade {
	from { opacity: 0; transform: translateY(3px); }
	to { opacity: 1; transform: translateY(0); }
}

.khepri-story-slider__image-wrap {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #e9eeec;
}

.khepri-story-slider__image {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.khepri-story-slider__image--empty {
	background: #e9eeec;
}

.khepri-story-slider__counter {
	position: absolute;
	left: 18px;
	bottom: 16px;
	padding: 7px 12px;
	background: rgba(0, 60, 52, .88);
	color: #fff;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	border-radius: 999px;
	letter-spacing: .04em;
}

.khepri-story-slider__content {
	text-align: right;
	padding: 22px 4px 4px;
}

.khepri-story-slider__title {
	margin: 0 0 10px;
	color: var(--khepri-teal);
	font-size: clamp(1.35rem, 2.2vw, 2rem);
	line-height: 1.35;
}

.khepri-story-slider__description {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.9;
	color: var(--khepri-ink);
}

.khepri-story-slider__arrow {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1.5px solid var(--khepri-teal);
	background: #fff;
	color: var(--khepri-teal);
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: .18s ease;
}

.khepri-story-slider__arrow:hover,
.khepri-story-slider__arrow:focus-visible {
	background: var(--khepri-teal);
	color: #fff;
	outline: none;
}

.khepri-story-slider__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 22px;
}

.khepri-story-slider__dots {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.khepri-story-slider__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #c7cfcc;
	cursor: pointer;
	transition: .18s ease;
}

.khepri-story-slider__dot.is-active {
	background: var(--khepri-gold);
	transform: scale(1.25);
}

.khepri-story-slider__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 132px;
	min-height: 44px;
	padding: 8px 20px;
	border: 1.5px solid var(--khepri-teal);
	color: var(--khepri-teal);
	background: #fff;
	text-decoration: none;
	font-weight: 700;
	border-radius: 4px;
	transition: .18s ease;
}

.khepri-story-slider__more:hover,
.khepri-story-slider__more:focus-visible {
	background: var(--khepri-teal);
	color: #fff;
}

.khepri-story-slider-empty {
	max-width: 1180px;
	margin: 40px auto;
	padding: 24px;
	background: #faf9f5;
	border: 1px dashed #ccd5d2;
	text-align: center;
	color: #53635f;
}

@media (max-width: 780px) {
	.khepri-story-slider {
		margin: 48px auto;
		padding: 0 16px;
	}

	.khepri-story-slider__viewport {
		grid-template-columns: 40px minmax(0, 1fr) 40px;
		gap: 8px;
	}

	.khepri-story-slider__arrow {
		width: 38px;
		height: 38px;
		font-size: 1.6rem;
	}

	.khepri-story-slider__footer {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.khepri-story-slider__dots {
		justify-content: center;
	}

	.khepri-story-slider__more {
		width: 100%;
		box-sizing: border-box;
	}
}

@media (max-width: 480px) {
	.khepri-story-slider__viewport {
		grid-template-columns: 1fr;
	}

	.khepri-story-slider__arrow {
		position: absolute;
		z-index: 3;
		margin-top: 34%;
		background: rgba(255,255,255,.9);
	}

	.khepri-story-slider__arrow--prev {
		right: 24px;
	}

	.khepri-story-slider__arrow--next {
		left: 24px;
	}

	.khepri-story-slider__viewport {
		position: relative;
	}
}


/* Slide links added in v1.1 */
.khepri-story-slider__image-link {
	display: block;
	width: 100%;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.khepri-story-slider__image-link:focus-visible {
	outline: 3px solid var(--khepri-gold);
	outline-offset: -3px;
}

.khepri-story-slider__title a,
.khepri-story-slider__description a {
	color: inherit;
	text-decoration: none;
}

.khepri-story-slider__title a:hover,
.khepri-story-slider__title a:focus-visible {
	color: var(--khepri-gold);
}

.khepri-story-slider__description a:hover,
.khepri-story-slider__description a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}


/* v1.2 — Main story title overlaid on the image, matching the featured-story treatment */
.khepri-story-slider__header {
	margin-bottom: 14px;
}

.khepri-story-slider__story-overlay {
	position: absolute;
	inset: auto 0 0 0;
	z-index: 2;
	padding: 90px 28px 24px;
	background: linear-gradient(
		to top,
		rgba(0, 60, 52, .92) 0%,
		rgba(0, 60, 52, .62) 42%,
		rgba(0, 60, 52, 0) 100%
	);
	pointer-events: none;
}

.khepri-story-slider__story-overlay .khepri-story-slider__heading {
	margin: 0;
	color: #fff;
	font-size: clamp(1.55rem, 2.8vw, 2.7rem);
	line-height: 1.28;
	font-weight: 700;
	text-align: right;
	text-shadow: 0 1px 2px rgba(0,0,0,.22);
}

.khepri-story-slider__story-overlay .khepri-story-slider__heading a {
	color: #fff;
	text-decoration: none;
	pointer-events: auto;
}

.khepri-story-slider__story-overlay .khepri-story-slider__heading a:hover,
.khepri-story-slider__story-overlay .khepri-story-slider__heading a:focus-visible {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.khepri-story-slider__counter {
	z-index: 3;
}

@media (max-width: 780px) {
	.khepri-story-slider__story-overlay {
		padding: 72px 18px 18px;
	}

	.khepri-story-slider__story-overlay .khepri-story-slider__heading {
		font-size: clamp(1.3rem, 5vw, 1.8rem);
	}
}
