@media only screen and (max-width:1599px) {
/*LIGHTBOX*/
.lightbox .lb-image {
/*responsive*/width:auto!important;height:auto!important;
/*responsive - stop image upscaling*/max-width:100%!important;margin:0 auto;
}
.lb-outerContainer {/*responsive*/max-width:80%;height:auto!important;width:auto!important;}
.lb-dataContainer {/*responsive*/max-width:80%;height:auto!important;width:auto!important;}

#hdr,#ftr,#nav ul{padding-left:20px;padding-right:20px;}

}

@media only screen and (max-width:1000px) {
.cols2575{flex-direction:column;}.cols2575 div{width:100%;}.cols2575 div:first-child{width:100%;margin-right:0%;margin-bottom:40px;border:none;}	
}

@media only screen and (max-width:820px) {
.cols5050{display:block;}.cols5050 div{width:100%;}.cols5050 div:first-child{margin-right:0%;margin-bottom:40px;}
.cols6040{display:block;}.cols6040 div{width:100%;}.cols6040 div:first-child{width:100%;margin-right:0%;margin-bottom:40px;}
.cols4060{display:block;}.cols4060 div{width:100%;}.cols4060 div:first-child{width:100%;margin-right:0%;margin-bottom:40px;}
.cols6633{flex-direction:column;}.cols6633 div{width:100%;}.cols6633 div:first-child{width:100%;margin-right:0%;margin-bottom:40px;}
.cols3366{flex-direction:column;}.cols3366 div{width:100%;}.cols3366 div:first-child{width:100%;margin-right:0%;margin-bottom:40px;}
.text-col{margin-bottom:0px!important;}.text-col p,.text-col h2{text-align:center;}
}
@media only screen and (max-width:739px) {
.grid{justify-content:left;}
/*.grid333 div{width:48%;-webkit-flex-basis:48%;-moz-flex-basis:48%;flex-basis:48%;margin:1%;}*/
.grid333 div{width:98%;margin:1%;}

}

@media only screen and (max-width:639px) {
.cols333{display:block;}.cols333 div{width:100%;}.cols333 div:nth-child(2){margin-right:0%;margin-left:0;margin-bottom:30px;margin-top:30px;}
.grid{display:block;}
.grid5050 div{width:98%;margin:1%;}
.grid333 div{width:98%;margin:1%;}
}


/*-----------------------------------------------*/
/*-----------------------------------------------*/

@media only screen and (max-width:900px) {
	#hdr{text-align:center;padding-top:40px;}
	#logo-bar{position:static;transform:none;}
	#hdr-contact{padding-top:10px;}
	
	#section1 .cols5050{display:block;}
	#section1a{order:1;width:100%!important;margin:0;}
	#section1a div{width:100%!important;max-width:100%;}
	#section1b{order:2;width:100%!important;margin:0;text-align:center;}
	#section1b em{border-right:none;padding:100px 20px;position:static;top:auto;right:auto;transform:none;}
	
	#section3-wrapper{background:none;}
	#section3{padding:0;}
	#section3 .cols333{display:block;}
	#section3 .cols333 div{width:100%;margin:0;}
	#section3-maths{background:url(images/bgmaths.jpg) no-repeat 50% 50%;background-size:cover;padding:60px 20px;}
	#section3-english{background:url(images/bgenglish.jpg) no-repeat 50% 0%;background-size:cover;padding:60px 20px;}
	#section3-tuition{background:#94C0E4 url(images/icon-marker.svg) no-repeat 50% 60px;padding:170px 20px 60px 20px;-moz-border-radius:0px;-webkit-border-radius:0px;border-radius:0px;}
	
	
	
}


@media only screen and (max-width:820px) {
	#home3-wrapper{background:none;}
	#home3 .cols{display:block;}
	#home3 .cols div{width:100%;}
	#home3 .cols div:last-of-type{padding-left:0;/*background:url(images/beigepx.gif) repeat-y top left;*/}
	#home3 .cols div:last-of-type p{text-align:left;}
}


@media only screen and (max-width:650px) {
	#home1-cols .cols div:last-of-type{width:100%;-webkit-flex-basis:100%;-moz-flex-basis:100%;flex-basis:100%;padding-top:0;}
	#home1-cols .cols div:nth-of-type(2){width:100%;-webkit-flex-basis:100%;-moz-flex-basis:100%;flex-basis:100%;}
}




@media only screen and (max-width:450px) {
	#nav-wrapper{margin:12px 0 0 0;}
	#nav{padding:0 0 30px 0;}
	#nav ul{display:block;padding:0 20%;text-align:center;}
	#nav ul li{width:100%!important;border-top:1px solid #224D56;margin:0 auto;}#nav ul li:first-of-type{border:none;}
	#nav ul li a{padding:10px 12px;border-radius:0;}
	#nav ul li:hover a,#nav ul li.selected a{}
	#nav-toggle{cursor:pointer;display:inline-block;/*margin:0 15px 0 0;position:absolute;top:10px;right:0px;z-index:200;*/}
	
	#banner{font-size:65%;}
}





