/* Mobile / small-screen overrides. Desktop layout is untouched (media query only). */
@media (max-width: 800px) {
	html, body { min-width: 0 !important; height: auto; }
	body { background-size: 100% auto; overflow-x: hidden; font-size: 14px; line-height: 21px; }
	img { max-width: 100%; height: auto; }
	.main, header, footer, .container_24 { width: 100% !important; max-width: 100%; box-sizing: border-box; }

	/* grid: stack everything */
	.container_24 [class*="grid_"] { float: none; display: block; width: auto !important; margin-left: 10px; margin-right: 10px; }
	.container_24 .grid_24.content-border { margin-left: 6px; margin-right: 6px; }
	.container_24 [class*="prefix_"] { padding-left: 0; }
	.container_24 [class*="suffix_"] { padding-right: 0; }
	.container_24 [class*="push_"], .container_24 [class*="pull_"] { left: 0; }
	.wrapper, .extra-wrap { overflow: visible; }
	.wrapper:after { content: ""; display: block; clear: both; }
	.pad-1, .pad-2, .pad-3, .pad-4 { padding-left: 0; padding-right: 0; }
	.hr-border-1 { margin-right: 0; }

	/* header + logo */
	header { padding-bottom: 12px; }
	#page1 header { padding-bottom: 0; }
	header .inner { padding: 14px 12px 8px 12px; }
	.logo { display: block; }
	.logo a { width: 100%; height: 0; padding-top: 11.4%; background-size: 100% auto; text-indent: -99em; }

	/* navigation: 3 per row */
	nav { padding: 4px 0; }
	.sf-menu { min-height: 0; }
	.sf-menu > li { display: inline-block; width: 33.2%; box-sizing: border-box; text-align: center; border-left: none; border-bottom: 1px solid #eee; }
	.sf-menu > li > a { padding: 10px 4px; font-size: 15px; line-height: 20px; }

	/* slider (home): the PNGs have ~115px transparent top (overlapped by the desktop negative margin), so crop to the visible 950x369; cycle sets inline px sizes, hence !important */
	.slider-container { width: 100% !important; height: 39vw !important; margin: 0 !important; }
	.mp-slider, .mp-slider div { width: 100% !important; height: 39vw !important; }
	.mp-slider div img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
	#mp-pags, #mp-pags-cont-extra { margin-top: -34px; }
	#mp-pags li, #mp-pags-cont-extra li { width: 12px; height: 24px; margin: 0 2px; background-size: 0; }
	#mp-pags li a { padding: 0; height: 24px; font-size: 0; line-height: 0; background: none; }
	#mp-pags li.activeSlide { background-color: #6c6; }
	.top-content-box { margin-bottom: 12px; }
	.top-row .grid_5:last-child { display: none; }
	.top-row h5 { font-size: 18px; line-height: 24px; }

	/* typography */
	h2 { font-size: 24px; line-height: 30px; }
	h4 { font-size: 20px; line-height: 26px; }
	h5 { font-size: 18px; line-height: 24px; }
	.content-border { padding-bottom: 12px; }
	.indent-top { padding-top: 14px; }
	.str-1, .str-1 * { text-align: left !important; }

	/* media */
	iframe { width: 100%; max-width: 100%; height: 220px; }
	.map-container, .map-container iframe { width: 100%; }
	figure, figure img { max-width: 100%; }
	.img-indent, .img-indent-1, .img-indent-bot-1 { float: none; margin: 0 0 10px 0; max-width: 100%; }
	article img, .wrapper img { max-width: 100%; height: auto; }
	table { max-width: 100%; }

	/* forms */
	input[type="text"], input[type="email"], textarea, select { width: 100% !important; box-sizing: border-box; }

	/* footer */
	footer { padding: 16px 10px; text-align: center; }
	.copyright, .social-list { float: none; padding: 0; }
	.social-list { margin-top: 10px; }
	.aside-bg { padding: 16px 0; }
}
