@media screen and (min-width: 74em) { /* 1184px */
	.main, #panorama.main  { max-width: 70em; } /* 1120px */
	#header.main { min-height: 10em; }
}
@media screen and (max-width: 1000px) { 
	.main { width: 100%; }
	#footer address ul { max-width: 100%!important; }
}
@media screen and (max-width: 800px) { 
	body.template {
		padding: 0;
	}
	#article {
		padding: 1em;
		line-height: 200%;
	}
	#header.main { margin-top: 0; }
	.switch {
		display: block;
		position: absolute;
		right: 1em;
		color: #f4f4f4;
		z-index: 100;
		top: 1.5em;
		border-radius: 2px;
		font-size:  1.5em;
		text-align: center;
		padding: 0.4em 0.6em;
	}
	.switch:hover { background-color: #f4f4f4; }
	.switch a {
		text-decoration: none;
		color: #444;
		text-align: center;
	}
	#nav {
		display: none;
		position: absolute;
		top: 0; right: 0; left: 0; bottom: 0; 
		background-color: rgba(68,68,68,0.96);
		z-index: 99;
		padding: 1em; margin: 0;
		float: none;
	}
	#nav ul {
		margin-top: 5px;
		width: 100%;
		display: block;
	}
	#nav ul li, #nav ul li a, #nav ul li a.active, #nav ul li a.active:hover {
		display: block;
		border: none;
		border-radius: 0;
	}
	#nav ul li { margin-bottom: 2px; }
	#nav ul li a { padding: 10px; }
	
	#article .section { column-count: 1; -webkit-column-count: 1; -moz-column-count: 1; }
	
	#footer {
		padding: 1em 0!important;
		border: none;
		line-height: 150%;
		text-align: left;
	}
	#footernav { padding: 1em; }
	#footer address ul { max-width: 100%; }
	#footer address ul li span { float: right; margin: 0.5em; }
	#footer address ul li:last-child span { margin-top: 0.35em; }
 
	#copyright {
		padding: 2em 1px;
		line-height: 1em;
		background-color: #222;
		text-align: center;
		width:100%!important;
	}
	#copyright div { display: block; }
	#copyright div:last-child { text-align: center; float: none; }
}
@media screen and (max-width: 640px) {
	label { display: none!important; }
	input { width: 90%!important; }
	fieldset.submit input[type="submit"] { width: auto!important; }
}

.bx-has-controls-direction { top: 100px; z-index: 9999; }
