/* ------------------------- Menu 미디어 쿼리 ------------------*/
/*--------------------------------------------------- width: 1280px 이상 ---------------------------------------------------*/
@media all and (min-width: 1400px) {
	html { -webkit-text-size-adjust: none; -moz-text-size-adjust: none; -ms-text-size-adjust: none; }
	
    #mobile_menu { display: block !important; }
	#owl-demo .item img{ height: 100vh !important; }
	
    img.aimg { max-width:<?php echo ((int)$board['bo_image_width'] > 1 && !G5_IS_MOBILE) ? (int)$board['bo_image_width'].'px' : '100%'; ?>; }
    img.aimg { width:auto !important; }
    
    .layer_mobile_yes { display:none !important; }
    .layer_mobile_no { display:block !important; }
	
	.pbr { display: block !important; }
    .mbr { display: none !important; }
    
    /* 사이드배너2 모바일처리 */
    #slideout2 { right: 0px !important; }
    #slideout_inner2 { right: 0px !important; };
}

/*--------------------------------------------------- width: 1280px 이상 ---------------------------------------------------*/
@media all and (min-width:1112px) and (max-width: 1399px) {
	html { -webkit-text-size-adjust: none; -moz-text-size-adjust: none; -ms-text-size-adjust: none; }
	
	#top_layer_1 { display:block !important; }
	#top_layer_2 { width:35% !important; padding-left:2.5% !important; text-align:center !important; }
	#top_layer_3 { display:block !important; width:35% !important; padding-right:100px !important; }
	
    #mobile_menu { display: block !important; }
	#owl-demo .item img{ height: 100vh !important; }
	
    img.aimg { max-width:<?php echo ((int)$board['bo_image_width'] > 1 && !G5_IS_MOBILE) ? (int)$board['bo_image_width'].'px' : '100%'; ?>; }
    img.aimg { width:auto !important; }
    
    .layer_mobile_yes { display:none !important; }
    .layer_mobile_no { display:block !important; }
	
	.pbr { display: block !important; }
    .mbr { display: none !important; }

}

/*--------------------------------------------------- width: 769 ~ 1279px 이하 ---------------------------------------------------*/
@media all and (min-width:769px) and (max-width: 1111px) {
	/*------------------------------ COMMON ------------------------------*/
	html { -webkit-text-size-adjust: none; -moz-text-size-adjust: none; -ms-text-size-adjust: none; }
    img.aimg { max-width:100% !important; }
	
	#mainlogo_img{ padding:0px !important; }
	#mainmenu_bar { background-color:#FFF !important; }
	#mobile_menu { display: block !important; }
    #agnb_wrap { display: none !important; }
    
    #owl-demo .item img{ height: 60vh !important; }
    #mslide_text { position:absolute !important; z-index:1 !important; display: block !important; }
	#slide_text { width: 90% !important; }
	#section_sitemap, #SECTION_00_layer1_1, #main_mouse, .owl-prev, .owl-next { display: none !important; }
    #sub_board_layer { width: 95% !important; }
    #owl-demo { max-height:auto !important; }
    
    .onweb_img { width:100% !important; }
    .onweb_top_subtitle2 { margin-right:20px !important; }
    .subpage { width: calc(100% - 40px) !important; margin-left:20px !important; margin-right:20px !important; }
    .onweb_top_subtitle1 { left: 20px !important; font-size:28pt !important; letter-spacing:-1px !important; }
    .layer_left_50, .layer_right_50 { width:100% !important; }
    
    .layer_mobile_yes { display:block !important; }
    .layer_mobile_no { display:none !important; }
	
	.pbr { display: none !important; }
    .mbr { display: none !important; }
    
	/*------------------------------ ONWEB ------------------------------*/
	/*-- 메인로고 왼쪽여백 --*/
	#top_layer { height:auto !important;  padding:0px 0px 0px 0px !important;}
	#top_layer_1 { display:none !important; }
	#top_layer_2 { width:100% !important; text-align:center !important; padding-left:0px !important;}
	#top_layer_3 { display:none !important; }
	
    /* 사이드배너2 모바일처리 */
    #slideout2 { top: 120px !important; }
    #slideout_inner2 { top: 120px !important; }
}

/*--------------------------------------------------- width: 481 ~ 768px 이하 ---------------------------------------------------*/
@media all and (min-width:481px) and (max-width: 768px) {
	/*------------------------------ COMMON ------------------------------*/
	html { -webkit-text-size-adjust: none; -moz-text-size-adjust: none; -ms-text-size-adjust: none; }
    img.aimg { max-width:100% !important; }
	
	#mainlogo_img{ padding:0px !important; }
	#mainmenu_bar { background-color:#FFF !important; }
	#mobile_menu { display: block !important; }
    #agnb_wrap { display: none !important; }
    
    #owl-demo .item img{ height: 60vh !important; }
    #mslide_text { position:absolute !important; z-index:1 !important; display: block !important; }
	#slide_text { width: 90% !important; }
	#section_sitemap, #SECTION_00_layer1_1, #main_mouse, .owl-prev, .owl-next { display: none !important; }
    #sub_board_layer { width: 95% !important; }
    #owl-demo { max-height:auto !important; }
    
    .onweb_img { width:100% !important; }
    .onweb_top_subtitle2 { margin-right:20px !important; }
    .subpage { width: calc(100% - 40px) !important; margin-left:20px !important; margin-right:20px !important; }
    .onweb_top_subtitle1 { left: 20px !important; font-size:28pt !important; letter-spacing:-1px !important; }
    .layer_left_50, .layer_right_50 { width:100% !important; }
    
    .layer_mobile_yes { display:block !important; }
    .layer_mobile_no { display:none !important; }
	
	.pbr { display: none !important; }
    .mbr { display: block !important; }
    
	/*------------------------------ ONWEB ------------------------------*/
	/*-- 메인로고 왼쪽여백 --*/
	#top_layer { height:auto !important;  padding:0px 0px 0px 0px !important;}
	#top_layer_1 { display:none !important; }
	#top_layer_2 { width:100% !important; text-align:center !important; padding-left:0px !important;}
	#top_layer_3 { display:none !important; }
    
	#SECTION_01_02 ul li { max-width:350px !important; padding-left:60px !important;}
    
    /* 사이드배너2 모바일처리 */
    #slideout2 { top: 120px !important; }
    #slideout_inner2 { top: 120px !important; }
    
	/*-- INDEX 최근글 --*/
	.onweb_p1 li, .onweb_p2 li { width:50%; } 
	.onweb_p2 .lt_contents { min-height:90px; }
	.onweb_p1 .underbar1, .onweb_p1 .lt_contents { display:none; }
	
	/*-- 갤러리게시판 --*/
	.gall_row .col-gn-4 { width:50%; }
	.gall_content { min-height:120px; }
}

/*--------------------------------------------------- width: ~ 480px 이하 -------------------------------------------------------*/
@media all and (max-width: 480px) {
	/*------------------------------ COMMON ------------------------------*/
	html { -webkit-text-size-adjust: none; -moz-text-size-adjust: none; -ms-text-size-adjust: none; }
    img.aimg { max-width:100% !important; }
	
	#mainlogo_img{ max-width:320px !important; padding:10px 0px 0px 0px !important; }
	#mainmenu_bar { background-color:#FFF !important; }
	#mobile_menu { display: block !important; }
    #agnb_wrap { display: none !important; }
    
    #owl-demo .item img{ height: 60vh !important; }
    #sub_bgimg { padding:50px 0 !important; }
    #mslide_text { position:absolute !important; z-index:1 !important; display: block !important; }
	#slide_text { width: 90% !important; }
	#section_sitemap, #SECTION_00_layer1_1, #main_mouse, .owl-prev, .owl-next { display: none !important; }
    #sub_board_layer { width: 95% !important; }
    #owl-demo { max-height:auto !important; }
    
    .onweb_img { width:100% !important; }
    .onweb_top_subtitle2 { margin-right:20px !important; }
    .subpage { width: calc(100% - 40px) !important; margin-left:20px !important; margin-right:20px !important; }
    .onweb_top_subtitle1 { left: 20px !important; font-size:28pt !important; letter-spacing:-1px !important; }
    .layer_left_50, .layer_right_50 { width:100% !important; }
    
    .layer_mobile_yes { display:block !important; }
    .layer_mobile_no { display:none !important; }
	
	.pbr { display: none !important; }
    .mbr { display: block !important; }
    
	/*------------------------------ ONWEB ------------------------------*/
	/*-- 메인로고 왼쪽여백 --*/
	#top_layer { height:auto !important;  padding:0px 0px 0px 0px !important;}
	#top_layer_1 { display:none !important; }
	#top_layer_2 { width:100% !important; text-align:center !important; padding-left:0px !important;}
	#top_layer_3 { display:none !important; }
	
    /*-- 메인슬라이드 글자크기조절 --*/
	.slide-caption__title {	font-size: 50px !important; line-height:50px !important; letter-spacing:-2px !important; }
	.slide-caption__desc { 	max-width:420px !important; }
	
    /* 사이드배너2 모바일처리 */
    #slideout2 { top: 120px !important; }
    #slideout_inner2 { top: 120px !important; }
    
	/*-- INDEX 최근글 --*/
	.onweb_p1 li, .onweb_p2 li { width:50%; } 
	.onweb_p2 .lt_contents { min-height:90px; }
	.onweb_p1 .underbar1, .onweb_p1 .lt_contents { display:none; }
	
	/*-- 갤러리게시판 --*/
	.gall_row .col-gn-4 { width:50%; }
	.gall_content { min-height:120px; }
}
