/**
 * 1.9.9: Hero-grade Customizer pictures + school-matched hero heights.
 * Picture sources: ≥576px = desktop sizes; <576px img = mobile large/full (or desktop ≥1024).
 * Soft-crop with object-fit:cover. Do not alter Life GSAP track sizing beyond fit.
 */

body.home .main-slider img,
body.home .step-into-slider img,
body.home .news-events-featured-img img,
body.home .work-block-img img,
body.home .life-at-riverside-section img,
body.home .life-at-riverside-mobile img,
body.home .association-img-box img,
body.home .affiliation-img-box img,
body.home .whats-happening-section img,
body.home picture img {
	max-width: 100%;
	display: block;
}

/* Hero — desktop school match (~100vh cover) */
body.home .main-slider .carousel-inner,
body.home .main-slider .carousel-inner .carousel-item {
	overflow: hidden;
	width: 100%;
}

body.home .main-slider .carousel-inner .carousel-item picture {
	display: block;
	width: 100%;
	height: 100%;
}

body.home .main-slider .carousel-inner .carousel-item img.main-slider-img,
body.home .main-slider .carousel-inner .carousel-item picture img {
	width: 100% !important;
	max-width: 100%;
	height: 100vh !important;
	object-fit: cover !important;
	object-position: center center;
}

/* LIGE / Step Into */
body.home .step-into-slider,
body.home .step-into-slider .carousel-inner,
body.home .step-into-slider .carousel-item {
	overflow: hidden;
}

body.home .step-into-slider img.main-slider-img,
body.home .step-into-slider picture img {
	width: 100% !important;
	max-width: 100%;
	height: 80vh !important;
	object-fit: cover !important;
	object-position: center center;
}

/* Happenings */
body.home .news-events-featured-img {
	overflow: hidden;
}

body.home .news-events-featured-img img,
body.home .whats-happening-section .news-events-featured-img img,
body.home .news-events-featured-img picture img {
	width: 100%;
	max-width: 100%;
	height: 60vh !important;
	object-fit: cover !important;
	object-position: center center;
}

/* Life at Riverside desktop strip + mobile carousel — keep auto height for GSAP */
body.home .life-at-riverside-section .work-block-img img,
body.home .life-at-riverside-section picture img,
body.home #home_service_container .work-block-img img {
	width: 100%;
	max-width: 100%;
	height: auto;
	object-fit: cover;
	object-position: center center;
}

body.home .life-at-riverside-mobile {
	overflow: hidden;
}

body.home .life-at-riverside-mobile img {
	width: 100%;
	max-width: 100%;
	height: auto;
	object-fit: cover;
	object-position: center center;
}

/* Partners / affiliation / knowledge logos */
body.home ul.association-img li img,
body.home ul.affiliation-img li img,
body.home .association-img-box img,
body.home .affiliation-img-box img {
	width: 100%;
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

/* Promo banners under partners */
body.home .association-affiliation-block + section img,
body.home .banner-block img,
body.home .ext-img img {
	max-width: 100%;
	height: auto;
	object-fit: cover;
	width: 100%;
}

/* ≤991 — school tablet/mobile band: reinforce full-bleed cover */
@media only screen and (max-width: 991px) {
	body.home .main-slider .carousel-inner .carousel-item picture {
		display: block;
		width: 100%;
	}
	body.home .main-slider .carousel-inner .carousel-item img.main-slider-img,
	body.home .main-slider .carousel-inner .carousel-item picture img {
		width: 100% !important;
		max-width: 100%;
		object-fit: cover !important;
		object-position: center center;
	}
}

/* Tablet 768–991 — school responsive.css uses 600px hero */
@media only screen and (min-width: 768px) and (max-width: 991px) {
	body.home .main-slider .carousel-inner .carousel-item img.main-slider-img,
	body.home .main-slider .carousel-inner .carousel-item picture img {
		height: 600px !important;
		width: 100% !important;
		object-fit: cover !important;
		object-position: center center;
	}
	body.home .step-into-slider img.main-slider-img,
	body.home .step-into-slider picture img {
		height: 60vh !important;
		object-fit: cover !important;
		object-position: center center;
	}
	body.home .news-events-featured-img img,
	body.home .news-events-featured-img picture img {
		height: 40vh !important;
		object-fit: cover !important;
		object-position: center center;
	}
}

/* ≤767 — school responsive.css uses 85vh hero */
@media only screen and (max-width: 767px) {
	body.home .main-slider .carousel-inner .carousel-item img.main-slider-img,
	body.home .main-slider .carousel-inner .carousel-item picture img {
		height: 85vh !important;
		width: 100% !important;
		max-width: 100%;
		object-fit: cover !important;
		object-position: center center;
	}
	body.home .step-into-slider img.main-slider-img,
	body.home .step-into-slider picture img {
		height: 50vh !important;
		width: 100% !important;
		object-fit: cover !important;
		object-position: center center;
	}
	body.home .news-events-featured-img img,
	body.home .news-events-featured-img picture img {
		height: 36vh !important;
		object-fit: cover !important;
		object-position: center center;
	}
}

/* Mobile ≤575 — reinforce cover; never letterbox / stretch oddly */
@media only screen and (max-width: 575px) {
	body.home .main-slider .carousel-inner .carousel-item img.main-slider-img,
	body.home .main-slider .carousel-inner .carousel-item picture img {
		height: 85vh !important;
		width: 100% !important;
		max-width: 100%;
		object-fit: cover !important;
		object-position: center center;
	}
	body.home .step-into-slider img.main-slider-img,
	body.home .step-into-slider picture img {
		height: 50vh !important;
		width: 100% !important;
		object-fit: cover !important;
		object-position: center center;
	}
	body.home .news-events-featured-img img,
	body.home .news-events-featured-img picture img {
		height: 36vh !important;
		object-fit: cover !important;
		object-position: center center;
	}
}
/* Hide home hero banner crest only */
body.home .main-slider .carousel-caption-img {
  display: none !important;
}
