/* Full-width band with a centred 960px inner box (full width for the richbox kind). The padding rules (default 12px,
   then the three zero variants) share one specificity, so their order in this file decides. The richbox look comes
   from the inline styles in the editor's HTML; the theme only sets the defaults below and the switch between
   Banner HTML and Mobile HTML at 1023px. Three ids so these rules win over site rules with id-level specificity. */

body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-banner {
	box-sizing: border-box;
	width: 100%;
	padding-top: 12px;
	padding-bottom: 12px;
}

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

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

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

body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-banner__inner {
	max-width: 960px;
	margin: 0 auto;
}

body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-banner--richbox .programs-banner__inner {
	max-width: none;
}

/* Image */
body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-banner--image .programs-banner__inner picture,
body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-banner--image .programs-banner__inner a {
	display: block;
}

body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-banner--image .programs-banner__inner img {
	display: block;
	width: 100%;
	height: auto;
}

/* Richbox: a picture without a size must not overflow, and the margin that WordPress puts on Add Media pictures
   (the alignnone class) is removed; an inline margin typed in the editor still wins. */
body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-banner--richbox .programs-banner__inner img {
	max-width: 100%;
	height: auto;
	margin: 0;
}

/* The margin: 0 above also removes the Center alignment that WordPress Add Media gives a picture, so a picture
   carrying the aligncenter class keeps auto side margins. */
body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-banner--richbox .programs-banner__inner img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* programs.css puts Inter on every element, so a font set on an outer element in the editor would not reach its children. */
body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-banner--richbox .programs-banner__inner * {
	font-family: inherit;
}

/* programs.css sets strong and b to 600; bold text typed in the editor must stay at 700. */
body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-banner--richbox .programs-banner__inner strong,
body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-banner--richbox .programs-banner__inner b {
	font-weight: 700;
}

/* Phone switch: Mobile HTML replaces Banner HTML at 1023px and below. A banner with only Mobile HTML is hidden above that. */
body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-banner--richbox .programs-banner__html--mobile {
	display: none;
}

@media (max-width: 1023px) {
	body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-banner--has-mobile .programs-banner__html--main {
		display: none;
	}

	body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-banner--has-mobile .programs-banner__html--mobile {
		display: block;
	}
}

@media (min-width: 1024px) {
	body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-banner--no-main {
		display: none;
	}
}
