/**
 * Header hero (Swiper fade). Swiper bundle supplies base slide/pagination/nav.
 */

.givingwalk-hero-carousel {
	width: 100%;
	overflow: hidden;
}

.givingwalk-hero-swiper.swiper {
	width: 100%;
	/* Desktop height: +150 vs original 498px side, then +100px more on the ratio height */
	aspect-ratio: 1170 / 748;
	min-height: 460px;
	max-height: min(85vh, 810px);
	background: #1a1a1a;
}

.givingwalk-hero-swiper .swiper-slide {
	height: 100%;
}

/* Prev/next and bullets only when there are 2+ slides (.givingwalk-hero-swiper--multi-slide). */
.givingwalk-hero-swiper.swiper:not(.givingwalk-hero-swiper--multi-slide) .swiper-button-prev,
.givingwalk-hero-swiper.swiper:not(.givingwalk-hero-swiper--multi-slide) .swiper-button-next,
.givingwalk-hero-swiper.swiper:not(.givingwalk-hero-swiper--multi-slide) .givingwalk-hero-swiper__nav,
.givingwalk-hero-swiper.swiper:not(.givingwalk-hero-swiper--multi-slide) .givingwalk-hero-swiper__pagination,
.givingwalk-hero-swiper.swiper:not(.givingwalk-hero-swiper--multi-slide) .swiper-pagination {
	display: none !important;
}

.givingwalk-hero-carousel__viewport {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 460px;
	overflow: hidden;
	background: #1a1a1a;
}

.givingwalk-hero-carousel__viewport--gradient.givingwalk-hero-carousel__viewport--tone-1 {
	background: linear-gradient(135deg, #1a1a1a 0%, #3d2914 45%, #b8860b 100%);
}

.givingwalk-hero-carousel__viewport--gradient.givingwalk-hero-carousel__viewport--tone-2 {
	background: linear-gradient(135deg, #0d1f2d 0%, #1a4a6e 50%, #2a7ab0 100%);
}

.givingwalk-hero-carousel__viewport--gradient.givingwalk-hero-carousel__viewport--tone-3 {
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 40%, #5c4a3a 100%);
}

.givingwalk-hero-carousel__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.givingwalk-hero-carousel__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.75) 0%,
		rgba(0, 0, 0, 0.35) 45%,
		rgba(0, 0, 0, 0.2) 100%
	);
	pointer-events: none;
}

.givingwalk-hero-carousel__caption {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2rem 1rem;
	z-index: 2;
}

.givingwalk-hero-carousel__caption-inner {
	max-width: 800px;
}

.givingwalk-hero-carousel__title {
	color: #fff;
	font-size: clamp(1.75rem, 4vw, 3rem);
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 0.75rem;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

.givingwalk-hero-carousel__text {
	color: rgba(255, 255, 255, 0.95);
	font-size: clamp(1rem, 2vw, 1.25rem);
	line-height: 1.5;
	margin: 0 0 1.5rem;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

/* Pagination (theme bullets) */
.givingwalk-hero-swiper .givingwalk-hero-swiper__pagination.swiper-pagination-bullets {
	bottom: 1rem;
	left: 0;
	right: 0;
	width: 100%;
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	z-index: 20;
}

.givingwalk-hero-swiper .givingwalk-hero-swiper__pagination .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	margin: 0 !important;
	background: rgba(255, 255, 255, 0.45);
	opacity: 1;
	transition: background 0.2s ease, transform 0.2s ease;
}

.givingwalk-hero-swiper .givingwalk-hero-swiper__pagination .swiper-pagination-bullet:hover,
.givingwalk-hero-swiper .givingwalk-hero-swiper__pagination .swiper-pagination-bullet:focus {
	background: rgba(255, 255, 255, 0.75);
	outline: none;
}

.givingwalk-hero-swiper .givingwalk-hero-swiper__pagination .swiper-pagination-bullet-active {
	background: #fff;
	transform: scale(1.1);
}

/* Prev / next — above fade slides / caption stacking */
.givingwalk-hero-swiper .givingwalk-hero-swiper__nav {
	width: 44px;
	height: 44px;
	margin-top: 0;
	top: 50%;
	transform: translateY(-50%);
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	transition: background 0.2s ease;
	z-index: 20;
}

.givingwalk-hero-swiper .givingwalk-hero-swiper__nav:hover,
.givingwalk-hero-swiper .givingwalk-hero-swiper__nav:focus {
	background: rgba(0, 0, 0, 0.55);
}

.givingwalk-hero-swiper .givingwalk-hero-swiper__nav::after {
	font-size: 1.25rem;
	font-weight: 600;
}

.givingwalk-hero-swiper .givingwalk-hero-swiper__nav--prev {
	left: 12px;
	right: auto;
}

.givingwalk-hero-swiper .givingwalk-hero-swiper__nav--next {
	right: 12px;
	left: auto;
}

/* Tablets / small laptops: a bit shorter than desktop so content below stays visible */
@media (max-width: 991px) {
	.givingwalk-hero-swiper.swiper {
		aspect-ratio: 1170 / 600;
		min-height: 320px;
		max-height: min(78vh, 640px);
	}

	.givingwalk-hero-carousel__viewport {
		min-height: 320px;
	}
}

@media (max-width: 767px) {
	.givingwalk-hero-swiper.swiper {
		aspect-ratio: 4 / 3;
		min-height: 280px;
		max-height: none;
	}

	.givingwalk-hero-carousel__viewport {
		min-height: 280px;
	}

	.givingwalk-hero-swiper .givingwalk-hero-swiper__nav {
		width: 40px;
		height: 40px;
	}

	.givingwalk-hero-swiper .givingwalk-hero-swiper__nav--prev {
		left: 6px;
	}

	.givingwalk-hero-swiper .givingwalk-hero-swiper__nav--next {
		right: 6px;
	}

	.givingwalk-hero-swiper .givingwalk-hero-swiper__nav::after {
		font-size: 1.1rem;
	}
}
