/*///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
/*                                                tablets                                                                                */            
/*///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
@media only screen and (max-width: 959px) {
	body {padding: 0;}
	#wrapper, #footer {width: 98%; max-width: 960px;}
	#header #logo {position: relative; display: block; text-align: center; top: 15px; left: 0;}
	#dropdown {display: block; text-align: center; float: none;}
	#mobile-select {display: none;}
 	#mainmenu {padding: 19px 0px 19px 0; margin-top: 10px;}
	
	/* mobile-select */
	#mobile-select {display: none;}
	
	/* ce_gallery */
	.ce_gallery .row2, .ce_gallery .row3, .ce_gallery .row4, .ce_gallery .row5, .ce_gallery .row6, .ce_gallery .row7, .ce_gallery .row8, .ce_gallery .row9, .ce_gallery .row10, .ce_gallery .row11, .ce_gallery .row12 {width: 49.5%; margin-right: 0;}
	.ce_gallery li:nth-child(2n+1) {margin-right: 1%!important;}
	
}


/*///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
/*                                                phone                                                                                  */            
/*///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
@media only screen and (max-width: 767px) {
	body {padding-top: 20px;}
	#wrapper, #footer {width: 100%;}
	#header #logo {position: relative; display: block; text-align: center; top: 10px; left: 0;}
	#dropdown {display: none;}
	#mobile-select {display: inline-block; width: 80%;}
	#main {width: 100%; margin: 0!important;}
	#main .inside {padding: 0!important;}
	html {-webkit-text-size-adjust: none;} /* disable webkit text size adjust (for iPhone) */
	#container {padding: 20px;}
	#extended {padding: 20px;}
	#footer .inside {padding: 20px;}
	
	body.sidebar_left #main,
	body.sidebar_left #left,
	body.sidebar_right #main,
	body.sidebar_right #right,
	body.sidebar_both #main,
	body.sidebar_both #left,
	body.sidebar_both #right {width: 100%; margin: 0;}
	
	body.sidebar_left #main .inside,
	body.sidebar_left #left .inside,
	body.sidebar_right #main .inside,
	body.sidebar_right #right .inside,
	body.sidebar_both #main .inside,
	body.sidebar_both #left .inside,
	body.sidebar_both #right .inside {width: 100%; float: none; border: 0; margin: 0;}
	
	body.sidebar_left #left .inside,
	body.sidebar_right #right .inside {padding: 10px;}

	
	/* css framework + extension subcolumns */
	.one_half, .half_width, .one_third, .two_third, .one_fourth, .one_fifth, .four_fifth, .one_sixth, .two_fifth, .three_fifth, .four_sixth, .three_fourth {float: none; width: 100%; padding: 0; margin: 0;}
 	.c20r, .c25r, .c33r, .c40r, .c38r, .c50r, .c60r, .c66r, .c62r, .c75r, .c80r, .c15r, .c16r, .c30r, .c45r, .c55r, .c70r, .c85r,
 	.c20l, .c25l, .c33l, .c40l, .c38l, .c50l, .c60l, .c66l, .c62l, .c75l, .c80l, .c15l, .c16l, .c30l, .c45l, .c55l, .c70l, .c85l {float: none; width: 100%; padding: 0; margin: 0;}
 	.subcr, .subcl, .subc {padding: 0!important;}

 	/* image_container */
 	.image_container {margin-bottom: 10px;} 	
 	
 	#footer .one_fifth {display: none;}
 	#mainmenu {text-align: center; padding: 30px 0px 10px 0;}
 	
 	/* tables */
 	table {font-size: 9px;}
 	
 	/* ce_gallery */
	 .ce_gallery .row2, .ce_gallery .row3, .ce_gallery .row4, .ce_gallery .row5, .ce_gallery .row6, .ce_gallery .row7, .ce_gallery .row8, .ce_gallery .row9, .ce_gallery .row10, .ce_gallery .row11, .ce_gallery .row12 { width: 100%; margin-right: 0;}
	
}
