/* Photo cards: port of the "Meals the whole family will actually eat." component of variation B of the live 8-week challenge estimator page. */

/* The live page sets Inter 16px and #16141C on its body; the host root size is fluid, so the section carries them. */
body.single-sa28_programs .programs-photo-cards {
	padding: 96px 0 56px;
	font-family: "Inter", sans-serif;
	font-size: 16px;
	line-height: normal;
	color: #16141C;
}

body.single-sa28_programs .programs-photo-cards-wrap {
	box-sizing: border-box;
	display: flow-root;
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 24px;
}

body.single-sa28_programs:not(#_):not(#_) :is(.programs-photo-cards-heading, .programs-photo-cards-lead, .programs-photo-cards-label, .programs-photo-cards-title, .programs-photo-cards-subtitle) {
	margin: 0;
	padding: 0;
	font-style: normal;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
}

/* Margins the capture CSS left unset take the host .entry-content values the live page rendered: h2/h3 0.5em top and bottom, p 1.2em bottom. */
body.single-sa28_programs:not(#_):not(#_) .programs-photo-cards-heading {
	margin-top: 22px;
	margin-bottom: 22px;
	font-family: "Montserrat", sans-serif;
	font-size: 44px;
	font-weight: 700;
	line-height: 48.4px;
	color: #121212;
}

body.single-sa28_programs:not(#_):not(#_) .programs-photo-cards-lead {
	margin-top: 12px;
	margin-bottom: 21.6px;
	font-family: "Inter", sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 27.9px;
	color: #4A4A55;
}

body.single-sa28_programs:not(#_):not(#_) .programs-photo-cards-label {
	margin: 24px 0 12px;
	font-family: "Inter", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 14px;
	color: #4A4A55;
}

body.single-sa28_programs .programs-photo-cards-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px;
}

body.single-sa28_programs .programs-photo-cards-label + .programs-photo-cards-chips {
	margin-top: 0;
}

/* An empty label is not printed, so the next element takes the label's top spacing. */
body.single-sa28_programs .programs-photo-cards-lead + :is(.programs-photo-cards-chips, .programs-photo-cards-row) {
	margin-top: 24px;
}

body.single-sa28_programs:not(#_):not(#_) .programs-photo-cards-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 31px;
	padding: 11px 18px;
	border: none;
	border-radius: 999px;
	background: #F2EFFF;
	font-family: "Inter", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 14px;
	letter-spacing: 0;
	color: #3A1CB0;
}

body.single-sa28_programs:not(#_):not(#_) .programs-photo-cards-chip img {
	width: 16px;
	height: 16px;
}

body.single-sa28_programs .programs-photo-cards-row {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.single-sa28_programs :is(.programs-photo-cards-card, .programs-photo-cards-more) {
	overflow: hidden;
	border-radius: 22px;
}

body.single-sa28_programs .programs-photo-cards-card {
	border: 1px solid #E3E3E8;
	background: #FFFFFF;
}

body.single-sa28_programs:not(#_):not(#_) .programs-photo-cards-card img {
	display: block;
	width: 100%;
	max-width: none;
	height: 240px;
	object-fit: cover;
}

body.single-sa28_programs .programs-photo-cards-copy {
	padding: 20px;
}

body.single-sa28_programs:not(#_):not(#_) .programs-photo-cards-title {
	margin-top: 8.5px;
	margin-bottom: 8.5px;
	font-family: "Inter", sans-serif;
	font-size: 17px;
	font-weight: 600;
	line-height: 17px;
	color: #121212;
}

body.single-sa28_programs:not(#_):not(#_) .programs-photo-cards-subtitle {
	margin-top: 4px;
	margin-bottom: 15.6px;
	font-family: "Inter", sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 13px;
	color: #4A4A55;
}

/* The background colour comes from the More card colour input (inline style).
   !important on colour and decoration because the host's link hover forces both with !important. */
body.single-sa28_programs:not(#_):not(#_) .programs-photo-cards-more,
body.single-sa28_programs:not(#_):not(#_) .programs-photo-cards-more:where(:hover, :focus, :active, :visited) {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100%;
	padding: 0 16px;
	border: none;
	box-shadow: none;
	text-align: center;
	text-decoration: none !important;
	color: #16141C !important;
	transition: none;
}

body.single-sa28_programs:not(#_):not(#_) .programs-photo-cards-more strong,
body.single-sa28_programs:not(#_):not(#_) .programs-photo-cards-more:where(:hover, :focus, :active, :visited) strong {
	margin-bottom: 6px;
	font-family: "Montserrat", sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 18px;
	letter-spacing: 0;
	text-align: center;
	text-decoration: none !important;
	color: #121212 !important;
}

body.single-sa28_programs:not(#_):not(#_) .programs-photo-cards-more > span,
body.single-sa28_programs:not(#_):not(#_) .programs-photo-cards-more:where(:hover, :focus, :active, :visited) > span {
	display: inline;
	font-family: "Inter", sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 16.9px;
	text-decoration: none !important;
	color: #5D30FF !important;
}

body.single-sa28_programs:not(#_):not(#_) .programs-photo-cards-more-tail {
	font-style: normal;
	white-space: nowrap;
}

body.single-sa28_programs:not(#_):not(#_) .programs-photo-cards-more-tail img {
	display: inline;
	width: 13px;
	max-width: none;
	height: 13px;
	margin-left: 2px;
	object-fit: contain;
	vertical-align: -3px;
}

/* At 1360px and wider the row is the live one: four 280px cards from the text column's left edge, running past it on the right. */
@media (min-width: 1360px) {
	body.single-sa28_programs .programs-photo-cards-row {
		width: 1192px;
		grid-template-columns: repeat(4, 280px);
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	body.single-sa28_programs .programs-photo-cards {
		padding: 72px 0 48px;
	}

	body.single-sa28_programs:not(#_):not(#_) .programs-photo-cards-heading {
		margin-top: 18px;
		margin-bottom: 18px;
		font-size: 36px;
		line-height: 39.6px;
	}

	body.single-sa28_programs .programs-photo-cards-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	body.single-sa28_programs .programs-photo-cards {
		padding: 56px 0 36px;
	}

	body.single-sa28_programs .programs-photo-cards-wrap {
		max-width: none;
		padding: 0 20px;
	}

	body.single-sa28_programs:not(#_):not(#_) .programs-photo-cards-heading {
		margin-top: 14.5px;
		margin-bottom: 14.5px;
		font-size: 29px;
		line-height: 33px;
		letter-spacing: -0.01em;
	}

	body.single-sa28_programs:not(#_):not(#_) .programs-photo-cards-lead {
		margin-top: 14px;
		margin-bottom: 18px;
		font-size: 15px;
		line-height: 23px;
	}

	body.single-sa28_programs:not(#_):not(#_) .programs-photo-cards-label {
		margin: 20px 0 18px;
		font-size: 13px;
		line-height: 13px;
	}

	body.single-sa28_programs:not(#_):not(#_) .programs-photo-cards-chips + .programs-photo-cards-label {
		margin: 18px 0 20px;
		font-size: 15px;
		line-height: 15px;
		color: #121212;
	}

	body.single-sa28_programs .programs-photo-cards-chips {
		flex-wrap: nowrap;
		margin: 0;
		overflow-x: auto;
		scrollbar-width: none;
	}

	body.single-sa28_programs .programs-photo-cards-chips::-webkit-scrollbar {
		display: none;
	}

	body.single-sa28_programs .programs-photo-cards-lead + :is(.programs-photo-cards-chips, .programs-photo-cards-row) {
		margin-top: 20px;
	}

	body.single-sa28_programs .programs-photo-cards-chips + .programs-photo-cards-row {
		margin-top: 18px;
	}

	body.single-sa28_programs:not(#_):not(#_) .programs-photo-cards-chip {
		flex: 0 0 auto;
	}

	body.single-sa28_programs .programs-photo-cards-row {
		display: flex;
		gap: 12px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	body.single-sa28_programs .programs-photo-cards-row::-webkit-scrollbar {
		display: none;
	}

	body.single-sa28_programs :is(.programs-photo-cards-card, .programs-photo-cards-more) {
		flex: 0 0 240px;
	}

	body.single-sa28_programs:not(#_):not(#_) .programs-photo-cards-card img {
		height: 180px;
	}

	body.single-sa28_programs .programs-photo-cards-copy {
		padding: 16px;
	}

	body.single-sa28_programs:not(#_):not(#_) .programs-photo-cards-title {
		margin-top: 7.5px;
		margin-bottom: 7.5px;
		font-size: 15px;
		line-height: 15px;
	}

	body.single-sa28_programs:not(#_):not(#_) .programs-photo-cards-subtitle {
		margin-top: 8px;
	}
}

body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-photo-cards.programs-pad-zero-top {
	padding-top: 0;
}

body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-photo-cards.programs-pad-zero-bottom {
	padding-bottom: 0;
}

body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-photo-cards.programs-pad-zero-top-bottom {
	padding-top: 0;
	padding-bottom: 0;
}
