/*
 * Final client-request overrides.
 * Loaded after site.css so these rules win without changing image files.
 */

@media (max-width: 720px) {
	.home-editorial-slider {
		padding: 18px 16px 28px !important;
		margin: 0 !important;
		min-height: 0 !important;
		height: auto !important;
		overflow: visible !important;
	}

	.home-editorial-slider__frame {
		height: auto !important;
		min-height: 0 !important;
		overflow: hidden !important;
		border-radius: 28px !important;
		background: #123f31 !important;
	}

	.home-editorial-slider .home-slide,
	.home-editorial-slider .home-slide.is-active {
		position: relative !important;
		height: auto !important;
		min-height: 0 !important;
		display: none !important;
		flex-direction: column !important;
		grid-template-columns: 1fr !important;
		background: #123f31 !important;
	}

	.home-editorial-slider .home-slide.is-active {
		display: flex !important;
		opacity: 1 !important;
	}

	.home-editorial-slide__media {
		order: 1 !important;
		position: relative !important;
		inset: auto !important;
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		padding: 14px 14px 0 !important;
		background: #123f31 !important;
		overflow: visible !important;
	}

	.home-editorial-slide__media img,
	.home-slide.is-active .home-editorial-slide__media img {
		position: relative !important;
		inset: auto !important;
		display: block !important;
		width: 100% !important;
		height: auto !important;
		max-height: none !important;
		object-fit: contain !important;
		object-position: center center !important;
		border-radius: 18px !important;
		opacity: 1 !important;
		transform: none !important;
		filter: brightness(0.82) contrast(1.04) saturate(0.96) !important;
	}

	.home-editorial-slide__panel {
		order: 2 !important;
		position: relative !important;
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		padding: 0 !important;
		background: #123f31 !important;
	}

	.home-editorial-slide__inner {
		width: 100% !important;
		max-width: 100% !important;
		min-height: 0 !important;
		padding: 26px 24px 32px !important;
	}

	.home-editorial-slide__title {
		font-size: clamp(2rem, 10.5vw, 3.2rem) !important;
		line-height: 0.98 !important;
		max-width: 100% !important;
	}

	.home-editorial-slide__text {
		font-size: 1rem !important;
		line-height: 1.58 !important;
	}

	.home-editorial-slide__actions {
		display: grid !important;
		grid-template-columns: 1fr !important;
		gap: 12px !important;
	}

	.home-editorial-slide__actions .button {
		width: 100% !important;
		min-width: 0 !important;
		justify-content: center !important;
	}

	.home-editorial-slider__stats,
	.home-editorial-slider__cut {
		display: none !important;
	}
}

.initiatives-editorial-intro__image,
.initiatives-editorial-livelihood__image,
.initiatives-editorial-forest__visual,
.impact-editorial-why__images {
	position: relative !important;
	align-self: stretch !important;
}

.initiatives-editorial-intro__image img,
.initiatives-editorial-livelihood__image img,
.initiatives-editorial-forest__media-grid > img,
.impact-editorial-why__images > img:first-child {
	width: 100% !important;
	height: 100% !important;
	min-height: 560px !important;
	max-height: none !important;
	object-fit: contain !important;
	object-position: center !important;
	padding: clamp(14px, 1.5vw, 22px) !important;
	background: rgba(255, 255, 255, 0.86) !important;
	box-shadow: 0 28px 70px rgba(16, 40, 29, 0.14) !important;
}

.initiatives-editorial-intro__image img,
.initiatives-editorial-livelihood__image img {
	min-height: 620px !important;
}

.impact-editorial-why__images > img:first-child {
	min-height: 640px !important;
}

.initiatives-editorial-intro__image::after,
.initiatives-editorial-forest__caption {
	display: none !important;
}

.initiatives-editorial-livelihood__image::after,
.about-editorial-who__image::after {
	display: block !important;
}

.about-editorial-stand__caption,
.impact-editorial-why__label {
	display: flex !important;
}

@media (max-width: 980px) {
	.initiatives-editorial-intro__image img,
	.initiatives-editorial-livelihood__image img,
	.initiatives-editorial-forest__media-grid > img,
	.impact-editorial-why__images > img:first-child {
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
	}
}
