/**********************************
smaller than 1120
************************************/
@media screen and (max-width: 1165px) {

	/* embedded videos */
	.video embed,
	.video object,
	.video iframe {
		width: 100%;
		height: auto;
		min-height: 300px;
		}

#wrapper {
	width: 100%;
	margin: 0 auto;
	}
	
	#nav-right {
		display: inline-block;
		float: right;
		z-index: 100;
		}

h1 {font-size: 2.8em; line-height:1em; padding-top: 20px; padding-bottom: 30px; display: block;}
h2 {line-height: 1.0em; display: block; padding-bottom: 10px;}

	section {
		overflow: hidden;
		width: 100%;
		clear: none;
		}
		aside {
			overflow: hidden;
			width: 30%;
			float: right;
			clear: none;
			}
}

/**********************************
smaller than 1024
************************************/
@media screen and (max-width: 1000px) {

	/* header */
	section {
		overflow: hidden;
		max-width: 100%;
		width: 100%;
		float: none;
		margin: 0 auto;
		clear: none;
		}
		
		#cases {width: 100%; padding:10px;}
		
		aside {
			overflow: hidden;
			width: 100%;
			float: left;
			clear: none;
			}
			.one-third {width: 100%; float: left;}
			.one-third last {width: 100%; float: left;}
			.one-fourth {width: 46%; float: left;}
		
		.mobile-padding{ padding-top: 30px;}
			
		.mobile-flags {display: block;}	
		#nav-left{
			display: none;
			}

			#video-link {
				display: block;
				width: auto;
				}
				
				#citat {font-size: 30px;}

			header {height: 60px; padding: 0 0px;}
			header #logo{  margin-top: 10px;}
			header.smaller {height: 60px; padding: 0 0px;}
			header.smaller #logo{ display: block; margin-top: 15px;}

		.menu-btn {display: block; position: absolute; top: 10px; right: 10px; font-size: 20px; padding: 10px 15px; cursor: pointer;}
		.box-1, .box-3 {
			width: 50%;
			height: 0;
			padding-bottom: 50%;
			float: left;
			}
			

#header-banner-frame {
	position: relative;
	background-size: cover;
	width: 100%;
	height: 400px;
	top: 0px;
	}


#header-banner, #header-banner-q {
	position: relative;
	background-size: 100%;
	background-clip: content-box;
 	width: 100%;
 	padding: 25px;
	height: 330px;
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;         /* Opera/IE 8+ */
	display: table;
	top: 65px;
	}
	

#header-banner-2 {
	position: relative;
	background-size: 100%;
	background-clip: content-box;
 	width: 100%;
 	padding: 25px;
	height: 200px;
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;         /* Opera/IE 8+ */
	display: table;
	top: 65px;
	}

#intro-logo {max-width: 300px; position: relative; margin-top: 100px;}
.start-padding {margin-top: 0px; overflow:hidden;}


#blog-left {
	margin: 0; 
	width: 58%;
	float: left;
	}
	
#blog-right {
	width: 42%;
	float: left;	
	}

	#footer-wrap{
		margin: 0 auto;
		width: 100%;
		max-width: auto;
		}
		
		#footer {
			height: auto;
			}

.item-1, .item-2 {
	height: 300px;
	}
.item-3 {
	height: 300px;
	}

.portfolio-item, .portfolio-item-3 {
	padding-top: 10%;
}		
	.footer-wrap-padding {
		padding: 70px 20px;
		display: block;
		position: relative;
		float: left;
	}
		
.two-third,.three-fourth,.one-fifth,.two-fifth,.three-fifth,.four-fifth,.one-sixth,.five-sixth, .item-left-wrapper, .item-right-wrapper, .item-1, .item-2, .item-3, .item-4-1, .item-4-2, .item-4-3, .item-4-4{ width: 100%; position:relative; margin-right:0%; float:left; }
.last{ margin-right:0 !important; clear:right; }
.clearboth {clear:both;display:block;font-size:0;height:0;line-height:0;width:100%;}

}

/**********************************
smaller than 768
************************************/
@media screen and (max-width: 768px) {

.header-container {
	max-width: 100%;
	padding: 0 25px;
	margin: 0 auto;
}

p 	{
	font-size: 14px;
	line-height: 1.4em;
	overflow:visible;
	}

	/* header */
	section {
		overflow: hidden;
		max-width: 100%;
		width: 100%;
		float: none;
		clear: none;
		}
		
.white-wrapper {
	padding: 25px;
	padding-bottom: 0px;
	}
.white-wrapper-single {
	padding: 25px;
	}
#breadcrumbs{
	padding-left: 25px;
	padding-top: 25px;
	}
	
	.last-padding {padding-bottom: 25px;}	

.section {padding: 25px;}	
	
	
	.item-top-banner {
	 height: 300px; 
	 padding: 0;
	 }
.banner-title {
	font-weight: 900;
	text-transform: uppercase;
	font-size: 2.5em;
	letter-spacing: -2px;
	line-height: 1.0em;
	padding-bottom: 20px;
}
	 
h1 {font-size: 35px; line-height:1em; padding-top: 30px; padding-bottom: 10px; display: block;}
h2 {font-size: 27px; line-height:1em;}	 


#blog-left {
	margin: 0; 
	width: 100%;
	float: left;
	}
	
#blog-right {
	width: 100%;
	float: left;	
	}

	#footer-wrap{
		margin: 0 auto;
		max-width: 768px;
		}
		
		#footer {
			height: auto;
		}	
		
		 .one-half,.one-third,.two-third,.three-fourth,.one-fourth,.one-fifth,.two-fifth,.three-fifth,.four-fifth,.one-sixth,.five-sixth{ width: 100%; position:relative; margin-right:0%; float:left; }
.last{ margin-right:0 !important; clear:right; }
.clearboth {clear:both;display:block;font-size:0;height:0;line-height:0;width:100%;}

}

/**********************************
smaller than 657
************************************/
@media screen and (max-width: 657px) {

#apptext {font-size: 20px; margin-top:36px}
}

/**********************************
smaller than 585
************************************/

@media screen and (max-width: 585px) {

img, img a {width: 100%;}

	
h1 {font-size: 26px; line-height:1em; padding-top: 20px; padding-bottom: 10px; display: block;}
h2 {font-size: 21px; line-height:1em;}	 

.white-wrapper-single {
	padding: 15px;
	}
.white-wrapper {
	padding: 15px;
	}
.section {padding: 15px;}	

	
#intro-logo {max-width: 60%; position: relative; margin-top: 100px;}
	.box-1 h3 {font-size: 1.6em; margin-top: 35px;}
					

section {
	overflow: hidden;
	max-width: 100%;
	width: 90%;		
	float: none;
	clear: none;
	}

#header-banner-frame {
	position: relative;
	background-size: cover;
	width: 100%;
	height: 340px;
	top: 0px;
	}


#header-banner, #header-banner-q {
	position: relative;
	background-size: 100%;
	background-clip: content-box;
 	width: 100%;
 	padding: 25px;
	height: 270px;
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;         /* Opera/IE 8+ */
	display: table;
	top: 65px;
	}


#top-margin {height: 65px; width: 100%; display: block; position: relative;}

.subnav {padding: 0 25px; margin-left: 0px;}
	
.footer-nav {
	display: inline-block;
	text-align: center;
	float: none;
	margin: 0 auto;
	padding: 0 20px;
	}

.footer-nav li{
	text-align: center;
	display: block;
	}


.footer-nav ul.footer-nav > li a {
	display: inline-block;
	vertical-align: middle;
	
	text-align: center;
}
	
}