/* Keep every programme gallery photo fully visible in the shared frame. */
body.parent-pageid-1468 .tm-programmes-carousel .swiper-slide {
	width: 100%;
	height: auto !important;
	aspect-ratio: 128 / 90;
}

body.parent-pageid-1468 .tm-programmes-carousel .swiper-slide-inner {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	overflow: hidden;
	box-sizing: border-box;
	border: 1px solid #E5E7EB;
	border-radius: 40px;
	background: #edf4f5;
}

body.parent-pageid-1468 .tm-programmes-carousel .swiper-slide-image {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: contain !important;
	object-position: center center !important;
}

@media (max-width: 767px) {
	body.parent-pageid-1468 .tm-programmes-carousel .swiper-slide-inner {
		border-radius: 24px;
	}
}

/* Use consistent 280px programme fact cards on desktop. */
@media (min-width: 1025px) {
	body.parent-pageid-1468 .tm-programmes-facts {
		--container-max-width: 1448px;
		--flex-wrap: wrap;
		width: calc(100% - 80px) !important;
		max-width: 1448px !important;
	}

	body.parent-pageid-1468 .tm-programmes-facts > .e-con-inner {
		width: 100%;
		max-width: 100%;
		justify-content: center;
		flex-wrap: wrap;
	}

	body.parent-pageid-1468 .tm-programmes-facts .tm-programmes-fact {
		flex: 0 0 280px !important;
		width: 280px !important;
		max-width: 280px !important;
	}
}


/* Selected programme galleries fill the slider frame. */
body.page-id-1472 .tm-programmes-carousel .swiper-slide-image,
body.page-id-1453 .tm-programmes-carousel .swiper-slide-image,
body.page-id-18 .tm-programmes-carousel .swiper-slide-image {
	object-fit: cover !important;
}
