@charset "utf-8";

/* ### 기본 스타일 커스터마이징 시작 ### */

.bo_all{width:100%; margin:0 auto; overflow:hidden;}
.bo_all:after{clear:both;}
.bo_img{width:60%; float:left; }
.bo_info{width:35%; float:right;}
.bo_img .swiper-slide img{width:100%; max-width:100%; height:auto;}
.bo_img .swiper-container1{border:1px solid #ddd; box-sizing:border-box;}
.gallery-thumbs {box-sizing: border-box; padding: 10px 0; margin-top:10px !important;}
.gallery-thumbs .swiper-slide {opacity: 0.8;}
.gallery-thumbs .swiper-slide-thumb-active {opacity: 1;}
.gallery-thumbs .swiper-slide img{margin-left:1px; cursor:pointer;  border:1px solid #ddd; box-sizing:border-box;} 



.tb1{width:100%; border-top:0px solid #333;}
.tb1 th{width:28%; border-bottom:1px solid #333; height:40px; text-align:left; text-indent:5px;}
.tb1 td{width:72%; border-bottom:1px solid #ddd;}

.list_btn{background-color:#000 !important; color:#fff !important; border:1px solid #000 !important;}

/* 게시판 버튼 */
/* 목록 버튼 */
#bo_gall a.btn_b01 {}
#bo_gall a.btn_b01:focus, #bo_gall a.btn_b01:hover {}
#bo_gall a.btn_b02 {}
#bo_gall a.btn_b02:focus, #bo_gall a.btn_b02:hover {}
#bo_gall a.btn_admin {} /* 관리자 전용 버튼 */
#bo_gall a.btn_admin:focus, #bo_gall .btn_admin:hover {}

/* 읽기 버튼 */
#bo_v a.btn_b01 {}
#bo_v a.btn_b01:focus, #bo_v a.btn_b01:hover {}
#bo_v a.btn_b02 {}
#bo_v a.btn_b02:focus, #bo_v a.btn_b02:hover {}
#bo_v a.btn_admin {} /* 관리자 전용 버튼 */
#bo_v a.btn_admin:focus, #bo_v a.btn_admin:hover {}

/* 쓰기 버튼 */
#bo_w .btn_confirm {} /* 서식단계 진행 */
#bo_w .btn_submit {padding:0 20px;font-size:1em}
#bo_w button.btn_submit {}
#bo_w fieldset .btn_submit {}
#bo_w .btn_cancel {font-size:1.167em;border-radius:3px}
#bo_w button.btn_cancel {}
#bo_w .btn_cancel:focus, #bo_w .btn_cancel:hover {}
#bo_w a.btn_frmline, #bo_w button.btn_frmline {} /* 우편번호검색버튼 등 */
#bo_w button.btn_frmline {}

/* 기본 테이블 */
/* 읽기 내 테이블 */
#bo_v .tbl_head01 {}
#bo_v .tbl_head01 caption {}
#bo_v .tbl_head01 thead th {}
#bo_v .tbl_head01 thead a {}
#bo_v .tbl_head01 thead th input {} /* middle 로 하면 게시판 읽기에서 목록 사용시 체크박스 라인 깨짐 */
#bo_v .tbl_head01 tfoot th {}
#bo_v .tbl_head01 tfoot td {}
#bo_v .tbl_head01 tbody th {}
#bo_v .tbl_head01 td {}
#bo_v .tbl_head01 a {}
#bo_v td.empty_table {}

/* 쓰기 테이블 */
#bo_w table {}
#bo_w caption {}
#bo_w .frm_info {}
#bo_w .frm_address {}
#bo_w .frm_file {}

#bo_w .tbl_frm01 {}
#bo_w .tbl_frm01 th {}
#bo_w .tbl_frm01 td {}
#bo_w .tbl_frm01 textarea, #bo_w tbl_frm01 .frm_input {}
#bo_w .tbl_frm01 textarea {}
#bo_w .tbl_frm01 a {}

/* 필수입력 */
#bo_w .required, #bo_w textarea.required {}

#bo_w .cke_sc {}
#bo_w button.btn_cke_sc {}
#bo_w .cke_sc_def {}
#bo_w .cke_sc_def dl {}
#bo_w .cke_sc_def dl:after {}
#bo_w .cke_sc_def dt, #bo_w .cke_sc_def dd {}
#bo_w .cke_sc_def dt {}
#bo_w .cke_sc_def dd {}

/* ### 기본 스타일 커스터마이징 끝 ### */

/* 게시판 목록 */
#bo_cate {padding:0px;margin:10px 0; margin-bottom:20px; border-bottom:1px solid #ddd}
#bo_cate h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#bo_cate ul {zoom:1}
#bo_cate ul:after {display:block;visibility:hidden;clear:both;content:""}
#bo_cate li {display:inline-block;padding:0px; min-width:150px; padding-right:2px; text-align:center;}
#bo_cate a {display:block;line-height:40px;padding:0 20px;border-radius:0px;border:1px solid #ddd; background:#fff; border-bottom:0px; text-align:center;}
#bo_cate a:focus, #bo_cate a:hover, #bo_cate a:active {text-decoration:none;background:#d2d6dc; border:1px solid #d2d6dc; border-bottom:0px;}
#bo_cate #bo_cate_on {z-index:2;background:#333;color:#fff;font-weight:500; border:1px solid #333; border-bottom:0px; /*border-bottom-color:#1977b5;
-webkit-box-shadow: inset 0 2px 5px rgb(33, 135, 202);
-moz-box-shadow: inset 0 2px 5px rgb(33, 135, 202);
box-shadow:inset 0 2px 5px rgb(33, 135, 202);*/}
.td_subject img {margin-left:3px}

.selec_chk {position:absolute;top:0;left:0;width:0;height:0;opacity:0;outline:0;z-index:-1;overflow:hidden}
.chk_box {position:relative}
.chk_box input[type="checkbox"] + label {position:relative;padding-left:20px;color:#676e70;vertical-align:baseline; }
.chk_box input[type="checkbox"] + label:hover{color:#2172f8}
.chk_box input[type="checkbox"] + label span {position:absolute;top:10px;left:10px;width:15px;height:15px;display:block;background:#fff;border:1px solid #d0d4df;border-radius:3px; z-index:10;}
.chk_box input[type="checkbox"]:checked + label {color:#000}
.chk_box input[type="checkbox"]:checked + label span {background:url(./img/chk.png) no-repeat 50% 50% #3a8afd;border-color:#1471f6;border-radius:3px}
.all_chk.chk_box input[type="checkbox"] + label span {top:0;left:0; margin-left:0px; margin-top:3px; margin-right:5px;}


/* 갤러리 목록 */
#bo_gall h2 {margin:0;padding:0;width:1px;height:1px;font-size:0;line-height:0;overflow:hidden}
#bo_gall #gall_ul {margin:10px -10px 0;padding:0;list-style:none;zoom:1}
#bo_gall #gall_ul:after {display:block;visibility:hidden;clear:both;content:""}
#bo_gall .gall_li {}
#bo_gall .gall_li .gall_chk {position:absolute;top:0;left:0;padding:5px}
#bo_gall .gall_box {position:relative;margin:0 0 50px 0;border-radius:0 0 2px 2px}

.gall_row .col-gn-0,.gall_row .col-gn-1,.gall_row .col-gn-2,.gall_row .col-gn-3,.gall_row .col-gn-4,.gall_row .col-gn-5,.gall_row .col-gn-6,.gall_row .col-gn-7,.gall_row .col-gn-8,.gall_row .col-gn-9,.gall_row .col-gn-10 {position:relative;min-height:1px;padding-left:10px;*padding-left:0;padding-right:10px;*padding-right:0;float:left;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin-left:0}
.gall_row .col-gn-0,.gall_row .col-gn-1 {width:100%}
.gall_row .col-gn-2 {width:50%}
.gall_row .col-gn-3 {width:33.33333333%}
.gall_row .col-gn-4 {width:25%}
.gall_row .col-gn-5 {width:20%}
.gall_row .col-gn-6 {width:16.66666667%}
.gall_row .col-gn-7 {width:14.28571428%}
.gall_row .col-gn-8 {width:12.5%}
.gall_row .col-gn-9 {width:11.11111111%}
.gall_row .col-gn-10 {width:10%}

.gall_row .box_clear {clear:both}

#bo_gall .gall_now .gall_text_href a {color:#ff3061}

#bo_gall .gall_href a:link, #bo_gall .gall_href a:focus, #bo_gall .gall_href a:hover {text-decoration:none}
#bo_gall .gall_img {border-bottom:1px solid #eee;text-align:center; /*max-height:200px;*/overflow:hidden;  border:1px solid #e5e5e5; }
#bo_gall .gall_img a,#bo_gall .gall_img .no_image,#bo_gall .gall_img .is_notice {display:block}
#bo_gall .gall_img img, #bo_gall .gall_img video{max-width:100%;height:auto !important}
#bo_gall .gall_img span{display:inline-block;background:#eee;text-align:center;line-height:150px;text-transform:uppercase;font-weight:bold;font-size:1.25em;color:#777}

#bo_gall .gall_text_href {margin:0px 0; padding:10px; background-color:#fff}
#bo_gall .gall_text_href a {font-weight:bold; text-align:center;}
#bo_gall .gall_text_href img {margin:0 0 0 4px}
#bo_gall .bo_tit {display:block; /*line-height:30px;*/ font-weight:700;color:#000;font-size:1.1em}
#bo_gall .bo_tit .cnt_cmt {background:#fff;color:#333;font-size:0.7em;height:15px;line-height:15px;padding:0px 5px; padding-bottom:1px; border-radius:3px;vertical-align:middle; border:1px solid #aaa; margin-left:3px; }
#bo_gall .bo_cnt {color:#acacac;line-height:18px; display:none;}
#bo_gall .profile_img img {border-radius:50%}
#bo_gall .bo_tit .fa-heart {display:inline-block;line-height:14px;width:16px;font-size:0.833em;color:#C42828;background:none;text-align:center;border-radius:2px;font-size:12px;border:0px solid #cbe3e8;vertical-align:middle; margin-top:3px;}
#bo_gall .bo_tit .fa-lock {display:inline-block;line-height:14px;width:16px;font-size:0.833em;color:#666;background:none;text-align:center;border-radius:2px;font-size:12px;border:0px solid #cbe3e8;vertical-align:middle; margin-top:3px;}
#bo_gall .bo_tit .new_icon {display:inline-block;width:28px; height:15px; line-height:13px;font-size:0.7em; letter-spacing:0.05em; color:#fff;background:#3071CA;text-align:center;border-radius:2px;margin-left:2px;font-weight:normal;vertical-align:middle; margin-top:0px; margin-right:1px;}
#bo_gall .bo_tit .hot_icon {display:inline-block;width:16px;line-height:16px;font-size:0.833em;color:#1EA362;background:#ffb9b9;text-align:center;border-radius:2px;vertical-align:middle}
#bo_gall .bo_tit .fa-download {display:inline-block;width:16px;line-height:16px;font-size:0.833em;color:#F19717;background:none;text-align:center;border-radius:2px;margin-left:5px;vertical-align:middle; margin-top:3px;}
#bo_gall .bo_tit .fa-link {display:inline-block;width:16px;line-height:16px;font-size:0.833em;color:#BB51FD;background:none;text-align:center; border-radius:2px;margin-left:5px;vertical-align:middle; margin-top:3px;}




#bo_gall .gall_info {line-height:1.5em;line-height:20px; padding:5px 10px; padding-bottom:10px; background:#f6f6f6;}
#bo_gall .gall_info strong {display:inline-block;margin:0}
#bo_gall .gall_info i {font-size:12px}
#bo_gall .gall_info .gall_date,
#bo_gall .gall_info .gall_view {display:inline-block;margin-right:10px;color:#777}
#bo_gall .gall_name{padding:5px 10px; background:#fff;}

#bo_gall .gall_option {position:absolute;bottom:10px;right:10px}
#bo_gall .gall_option strong {background:#fff;padding:5px 10px;border-radius:30px;
/*-webkit-box-shadow:2px 2px 3px 0px rgba(0,0,0,0.2);
-moz-box-shadow:2px 2px 3px 0px rgba(0,0,0,0.2);
box-shadow:2px 2px 3px 0px rgba(0,0,0,0.2)*/}

/* 게시판 목록 공통 */
#bo_btn_top {margin:10px 0}
#bo_btn_top:after {display:block;visibility:hidden;clear:both;content:""}
.bo_fx {margin-bottom:5px;float:right;zoom:1}
.bo_fx:after {display:block;visibility:hidden;clear:both;content:""}
.bo_fx ul {margin:0;padding:0;list-style:none}
#bo_list_total {float:left;line-height:34px;font-size:0.92em;color:#4e546f}

.btn_bo_user {float:right;margin:0;padding:0;list-style:none}
.btn_bo_user li {float:left;width:auto;text-align:center;margin-left:5px;background:#fff}
.btn_bo_user > li {position:relative}
.btn_bo_adm {float:left}
.btn_bo_adm li {float:left;margin-right:5px}
.btn_bo_adm input {padding:0 8px;border:0;background:#d4d4d4;color:#666;text-decoration:none;vertical-align:middle}
.bo_notice td {background:#fff6fa !important;border-bottom:1px solid #f8e6ee}
.bo_notice td a {font-weight:bold}
.bo_notice .notice_icon {display:inline-block;line-height:25px;border-radius:5px;font-weight:bold;color:#f9267f}

.more_opt {display:none;position:absolute;top:45px;right:0;background:#fff;border:1px solid #b8bfc4;z-index:999}
.more_opt:before {content:"";position:absolute;top:-8px;right:13px;width:0;height:0;border-style:solid;border-width:0 6px 8px 6px;border-color:transparent transparent #b8bfc4 transparent}
.more_opt:after {content:"";position:absolute;top:-6px;right:13px;width:0;height:0;border-style:solid;border-width:0 6px 8px 6px;border-color:transparent transparent #fff transparent}
.more_opt li {border-bottom:1px solid #f1f1f1;padding:10px;float:inherit;width:90px;margin:0;color:#6b757c;text-align:left}
.more_opt li.wid_s {width:70px;}
.more_opt li:last-child {border-bottom:0}
.more_opt li button, .more_opt li a {width:100%;border:0;background:#fff;color:#6b757c; text-align:left;}
.more_opt li:hover a,
.more_opt li:hover button {color:#000}
.more_opt li i {float:right;line-height:20px}

.td_num strong {color:#000}
/*.bo_cate_link {font-size:0.9em; float:left;display:block;margin-right:10px;background:#666;color:#fff;font-weight:normal !important;height:20px;line-height:10px;padding:5px 8px;border-radius:5px;font-size:0.95em} *//* 글제목줄 분류스타일 */
.bo_cate_link{display:block; background:none; color:#333; border-bottom:1px solid #ddd; padding-bottom:10px; margin-bottom:5px; overflow:hidden; width:100%; text-align:center;}
.bo_cate_link:hover {text-decoration:none}
.bo_current {color:#e8180c}
#bo_list .profile_img {display:inline-block;margin-right:5px}
#bo_list .profile_img img {border-radius:50%}
#bo_list .cnt_cmt {background:#fff;color:#333;font-size:11px;height:16px;line-height:16px;padding:3px 5px; padding-bottom:1px; border-radius:3px;vertical-align:middle; border:1px solid #666; margin-left:3px; }
#bo_gall li.empty_list {padding:85px 0;text-align:center}

.bo_sch_wrap {display:none;width:100%;height:100%;position:fixed;top:0;left:0;z-index:999999999;}
.bo_sch {position:absolute;top:50%;left:50%;background:#fff;text-align:left;width:500px;max-height:300px;margin-left:-250px;margin-top:-150px;overflow-y:auto;border-radius:5px;-webkit-box-shadow:1px 1px 18px rgba(0,0,0,0.2);-moz-box-shadow:1px 1px 18px rgba(0,0,0,0.2);box-shadow:1px 1px 18px rgba(0,0,0,0.2);border:1px solid #dde7e9;background:#fff;border-radius:3px}
.bo_sch:after {display:block;visibility:hidden;clear:both;content:""}
.bo_sch h3 {padding:15px;border-bottom:1px solid #e8e8e8}
.bo_sch legend {background:red}
.bo_sch form {padding:15px;display:block}
.bo_sch select {border:0;width:100%;height:40px;border:1px solid #dddddd;border-radius:2px; /*-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075);
-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075);
box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075)*/}
.bo_sch .sch_bar {display:inline-block;width:100%;clear:both;margin-top:15px;border:1px solid #dddddd;border-radius:2px; /*-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075);
-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075);
box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075)*/}
.bo_sch .sch_input {width:80%;height:38px;border:0;padding:0;background-color:transparent;float:left}
.bo_sch .sch_btn {height:38px;float:right;color:#656565;background:none;border:0;width:40px;font-size:15px}
.bo_sch .bo_sch_cls {position:absolute;right:0;top:0;color:#b5b8bb;border:0;padding:12px 15px;font-size:16px;background:#fff}
.bo_sch_bg {background:#000;background:rgba(0,0,0,0.5);width:100%;height:100%;}

/* 게시판 쓰기 */
#char_count_desc {display:block;margin:0 0 5px;padding:0}
#char_count_wrap {margin:5px 0 0;text-align:right}
#char_count {font-weight:bold}

#autosave_wrapper {position:relative}
#autosave_pop {display:none;z-index:10;position:absolute !important;top:34px;right:0;width:350px;height:auto !important;height:180px;max-height:180px;border:1px solid #565656;background:#fff;
-webkit-box-shadow:2px 2px 3px 0px rgba(0,0,0,0.2);
-moz-box-shadow:2px 2px 3px 0px rgba(0,0,0,0.2);
box-shadow:2px 2px 3px 0px rgba(0,0,0,0.2)}
#autosave_pop:before {content:"";position:absolute;top:-8px;right:45px;width:0;height:0;border-style:solid;border-width:0 6px 8px 6px;border-color:transparent transparent #000 transparent}
#autosave_pop:after {content:"";position:absolute;top:-7px;right:45px;width:0;height:0;border-style:solid;border-width:0 6px 8px 6px;border-color:transparent transparent #fff transparent}
html.no-overflowscrolling #autosave_pop {height:auto;max-height:10000px !important} /* overflow 미지원 기기 대응 */
#autosave_pop strong {position:absolute;font-size:0;line-height:0;overflow:hidden}
#autosave_pop div {text-align:center;margin:0 !important}
#autosave_pop button {margin:0;padding:0;border:0}
#autosave_pop ul {padding:15px;border-top:1px solid #e9e9e9;list-style:none;overflow-y:scroll;height:130px;border-bottom:1px solid #e8e8e8}
#autosave_pop li {padding:8px 5px;border-bottom:1px solid #fff;background:#eee;zoom:1}
#autosave_pop li:after {display:block;visibility:hidden;clear:both;content:""}
#autosave_pop a {display:block;float:left}
#autosave_pop span {display:block;float:right;font-size:0.92em;font-style:italic;color:#999}
.autosave_close {cursor:pointer;width:100%;height:30px;background:none;color:#888;font-weight:bold;font-size:0.92em}
.autosave_close:hover {background:#f3f3f3;color:#3597d9}
.autosave_content {display:none}
.autosave_del {background:url(./img/close_btn.png) no-repeat 50% 50%;text-indent:-999px;overflow:hidden;height:20px;width:20px}

/* 게시판 읽기 */
#bo_v {margin-bottom:20px;background:#fff;box-sizing:border-box}

#bo_v_table {position:absolute;top:0;right:16px;margin:0;padding:0 5px;height:25px;background:#ff3061;color:#fff;font-weight:bold;line-height:2.2em}

#bo_v_title {border-top:1px solid #000; border-bottom:1px solid #ddd; padding:15px 15px; padding-left:10px; background-color:#F7F7F7;}
#bo_v_title .bo_v_cate {display:inline-block;line-height:20px;background:#666;color:#fff;padding:0 10px;border-radius:3px; font-size:0.9em;}
#bo_v_title .bo_v_tit {display:inline-block;font-size:1.5em;margin:5px 0 0;word-break:break-all}

#bo_v_info {margin:0;border-bottom:1px solid #f1f1f1;color:#666}
#bo_v_info:after {display:block;visibility:hidden;clear:both;content:""} 
#bo_v_info h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}

#bo_v_info .profile_info {margin:20px 0 10px;display:inline-block;float:left}
#bo_v_info .profile_info .pf_img {float:left;margin-right:10px}
#bo_v_info .profile_info .pf_img img {border-radius:50%;width:50px;height:50px}
#bo_v_info .profile_info .profile_info_ct {float:left;padding:5px 0;line-height:18px}

#bo_v_info strong {display:inline-block;margin:0 10px 0 0;font-weight:normal}
#bo_v_info .sv_member,
#bo_v_info .sv_guest,
#bo_v_info .member,
#bo_v_info .guest {font-weight:bold}
#bo_v_info .profile_img {display:none}
#bo_v_info .sv_member {color:#000}
#bo_v_info .if_date {margin:0;color:#888}

#bo_v_file h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#bo_v_file ul {margin:0;list-style:none}
#bo_v_file li {padding:15px;position:relative;margin:10px 0;border:1px solid #dfdfdf;border-radius:5px;
-webkit-box-shadow:1px 1px 5px 0px hsl(232, 36%, 96%);
-moz-box-shadow:1px 1px 5px 0px hsl(232, 36%, 96%);
box-shadow:1px 1px 5px 0px hsl(232, 36%, 96%)}
#bo_v_file li i {float:left;color:#b2b2b2;font-size:2.35em;margin-right:20px}
#bo_v_file a {float:left;display:block;text-decoration:none;word-wrap:break-word;color:#000}
#bo_v_file a:focus, #bo_v_file li:hover a, #bo_v_file a:active {text-decoration:underline;color:#3a8afd}
#bo_v_file img {float:left;margin:0 10px 0 0}
#bo_v_file .bo_v_file_cnt {color:#b2b2b2;font-size:0.92em}
#bo_v_file li:hover {border-color:#bed4f4;color:#bed4f4}
#bo_v_file li:hover i {color:#3a8afd}
#bo_v_file li:hover .bo_v_file_cnt {color:#99c2fc}


#bo_v_link h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#bo_v_file ul {margin:0;list-style:none}
#bo_v_link li {padding:15px;position:relative;margin:10px 0;border:1px solid #dfdfdf;border-radius:5px;
-webkit-box-shadow:1px 1px 5px 0px hsl(232, 36%, 96%);
-moz-box-shadow:1px 1px 5px 0px hsl(232, 36%, 96%);
box-shadow:1px 1px 5px 0px hsl(232, 36%, 96%)}
#bo_v_link li i {float:left;color:#b2b2b2;font-size:2.35em;margin-right:20px}
#bo_v_link a {float:left;display:block;text-decoration:none;word-wrap:break-word;color:#000}
#bo_v_link a:focus, #bo_v_link li:hover a, #bo_v_link a:active {text-decoration:underline;color:#3a8afd}
#bo_v_link .bo_v_link_cnt {color:#b2b2b2;font-size:0.92em}
#bo_v_link li:hover {border-color:#bed4f4;color:#bed4f4}
#bo_v_link li:hover i {color:#3a8afd}
#bo_v_link li:hover .bo_v_link_cnt {color:#99c2fc}


#bo_v_top {zoom:1}
#bo_v_top:after {display:block;visibility:hidden;clear:both;content:""}
#bo_v_top h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#bo_v_top ul {padding:0;list-style:none;word-break:break-all}

#bo_v_bot {zoom:1}
#bo_v_bot:after {display:block;visibility:hidden;clear:both;content:""}
#bo_v_bot h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#bo_v_bot ul {padding:0;list-style:none}

.bo_v_com {margin:20px 0;float:right}
.bo_v_com > li {position:relative;float:left;margin-left:5px}

.bo_v_nb {margin:20px 0;position:relative;clear:both;text-align:left}
.bo_v_nb:after {display:block;visibility:hidden;clear:both;content:""}
.bo_v_nb li {border-top:1px solid #ddd;padding:13px;border-left:1px solid #ddd;border-right:1px solid #ddd; border-bottom:1px solid #ddd;}
/*.bo_v_nb li:last-child {border-bottom:1px solid #f1f1f1}*/
.bo_v_nb li:hover {background:#f6f6f6}
.bo_v_nb li i {font-size:13px;color:#b3b3b3}
.bo_v_nb li .nb_tit {display:inline-block;padding-right:20px;color:#b3b3b3}
.bo_v_nb li .nb_date {float:right;color:#b3b3b3}

#bo_v_atc {min-height:200px;height:auto !important;height:200px}
#bo_v_atc_title {position:absolute;font-size:0;line-height:0;overflow:hidden}

#bo_v_img {width:100%;overflow:hidden;zoom:1}
#bo_v_img:after {display:block;visibility:hidden;clear:both;content:""}
#bo_v_img a.view_image {display:block}
#bo_v_img img {margin-bottom:20px;max-width:100%;height:auto}

#bo_v_con {margin:10px 0 30px;width:100%;line-height:1.7em;min-height:200px;word-break:break-all;overflow:hidden; padding-top:50px;}
#bo_v_con a {color:#000;text-decoration:underline}
#bo_v_con img {max-width:100%;height:auto}

#bo_v_act {margin-bottom:30px;text-align:center}
#bo_v_act .bo_v_act_gng {position:relative}
#bo_v_act a {margin-right:5px;vertical-align:middle;color:#4a5158}
#bo_v_act a:hover {background-color:#fff;color:#ff484f;border-color:#ff484f}
#bo_v_act i {font-size:1.4em;margin-right:5px}
#bo_v_act_good, #bo_v_act_nogood {display:none;position:absolute;top:30px;left:0;z-index:9999;padding:10px 0;width:165px;background:#ff3061;color:#fff;text-align:center}
#bo_v_act .bo_v_good {display:inline-block;border:1px solid #dedede;width:70px;line-height:46px;border-radius:30px}
#bo_v_act .bo_v_nogood {display:inline-block;border:1px solid #dedede;width:70px;line-height:46px;border-radius:30px}

#bo_v_sns {padding:0;list-style:none;zoom:1; display:inline-block; text-align:center;}
#bo_v_sns:after {display:block;visibility:hidden;clear:both;content:""}
#bo_v_sns li {display:inline-block; width:135px;margin-right:5px;text-align:left}
#bo_v_sns li a {height:35px;line-height:35px;text-align:center;border-radius:5px;color:#fff;font-size:0.95em}
#bo_v_sns li img {vertical-align:middle;margin-right:5px}
#bo_v_sns li .sns_f {display:block;background:#3b5997}
#bo_v_sns li .sns_t {display:block;background:#09aeee}
#bo_v_sns li .sns_g {display:block;background:#ea4026}
#bo_v_sns li .sns_k {display:block;background:#fbe300}

#bo_v_share {position:relative;padding:20px 0; text-align:center;}
#bo_v_share:after {display:block;visibility:hidden;clear:both;content:""}
#bo_v_share .btn {padding:0 10px;color:#555;font-weight:normal;font-size:1em;width:80px;line-height:35px;height:35px;border-color:#d5d5d5;border-radius:5px; margin-top:-3px;}
#bo_v_share .btn:hover {background:#fff}
#bo_v_share .btn i {margin-right:5px;color:#4b5259;vertical-align:middle}

/* 게시판 댓글 */
.cmt_btn {width:100%;text-align:left;border:0;border-bottom:1px solid #f0f0f0;background:#fff;font-weight:bold;margin:30px 0 0px;padding:0 0 15px}
.cmt_btn span.total {position:relative;display:inline-block;margin-right:5px;font-size:1em;color:#3a8afd}
.cmt_btn span.cmt_more {float:right;display:inline-block;width:15px;height:10px;background:url(./img/btn_cmt.png) no-repeat right 2px;margin-top:5px}
.cmt_btn_op span.cmt_more {background-position:right -8px}
.cmt_btn b {font-size:1.2em;color:#000}
.cmt_btn span.total:after {position:absolute;bottom:-17px;left:0;display:inline-block;background:#000000;content:"";width:100%;height:2px}
#bo_vc {}
#bo_vc h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#bo_vc article {margin:20px 0;position:relative;border-bottom:1px solid #f0f0f0}
#bo_vc article:after {display:block;visibility:hidden;clear:both;content:""}
#bo_vc article .profile_img img {border-radius:50%}
#bo_vc article .pf_img {float:left;margin-right:10px}
#bo_vc article .pf_img img {border-radius:50%;width:50px;height:50px}
#bo_vc article .cm_wrap {float:left;max-width:100%;width:90%;}
#bo_vc header {position:relative;width:100%}
#bo_vc header:after {display:block;visibility:hidden;clear:both;content:""}
#bo_vc header .profile_img {display:none}
#bo_vc header .icon_reply {position:absolute;top:15px;left:-20px}
#bo_vc .member, #bo_vc .guest, #bo_vc .sv_member, #bo_vc .sv_guest {font-weight:bold}
.bo_vc_hdinfo {color:#777; padding-left:15px;}
#bo_vc h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#bo_vc .cmt_contents {line-height:1.8em;padding:0 0 20px}
#bo_vc p a {text-decoration:underline}
#bo_vc p a.s_cmt {text-decoration:underline;color:#ed6479}
#bo_vc_empty {margin:0;padding:80px 0 !important;color:#777;text-align:center}
#bo_vc #bo_vc_winfo {float:left}
#bo_vc .bo_vl_opt {position:absolute;top:0;right:0}

.bo_vc_act {display:none;position:absolute;right:0;top:40px;width:70px;text-align:left;border:1px solid #b8bfc4;margin:0;list-style:none;background:#fff;zoom:1;z-index:9999}
.bo_vc_act:before {content:"";position:absolute;top:-8px;right:5px;width:0;height:0;border-style:solid;border-width:0 6px 8px 6px;border-color:transparent transparent #b8bfc4 transparent}
.bo_vc_act:after {content:"";position:absolute;top:-6px;right:5px;width:0;height:0;border-style:solid;border-width:0 6px 8px 6px;border-color:transparent transparent #fff transparent}
.bo_vc_act li {border-bottom:1px solid #f0f0f0; width:100%;}
.bo_vc_act li:last-child {border-bottom:0}
.bo_vc_act li a {display:inline-block; width:100%; padding:10px 10px; color:#6b757c; text-align:left;}
.bo_vc_act li a i {display:block;  float:right;line-height:20px;}
.bo_vc_act li a:hover {color:#3a8afd}

.bo_vc_w {position:relative;margin:10px 0;display:block}
.bo_vc_w:after {display:block;visibility:hidden;clear:both;content:""}
.bo_vc_w h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
.bo_vc_w #char_cnt {display:block;margin:0 0 5px}
.bo_vc_w textarea {border:1px solid #ccc;background:#fff;color:#000;vertical-align:middle;border-radius:3px;padding:5px;width:100%;height:120px;
/*-webkit-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1);
-moz-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1);
box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1)*/}
#wr_secret {}
.bo_vc_w_info {margin:10px 0;float:left}
.bo_vc_w_info:after {display:block;visibility:hidden;clear:both;content:""}
.bo_vc_w_info .frm_input {float:left;margin-right:5px}
.bo_vc_w_info #captcha {padding-top:10px;display:block;clear:both}
.bo_vc_w .btn_confirm {clear:both;margin-top:10px}
.bo_vc_w .btn_confirm label {display:inline-block;margin-right:10px;border-radius:3px;font-size:1.5em;text-align:center}
.bo_vc_w .btn_submit {height:45px;padding:0 20px;border-radius:3px;font-weight:bold;font-size:1.083em}
.bo_vc_w .btn_confirm .secret_cm label {font-size:1em !important}
.bo_vc_w_wr:after {display:block;visibility:hidden;clear:both;content:""}
.secret_cm {display:inline-block;float:left; position:absolute; left:0;}

#bo_vc_send_sns {display:inline-block;float:left}
#bo_vc_sns {display:inline-block;margin:0;padding:0;list-style:none;zoom:1}
#bo_vc_sns:after {display:block;visibility:hidden;clear:both;content:""}
#bo_vc_sns li {float:left;margin:0 5px 0 0}
#bo_vc_sns .sns_li_f {border-radius:3px;background:#3a589b;height:40px;line-height:40px;padding:0 0 0 10px}
#bo_vc_sns .sns_li_t {border-radius:3px;background:#00aced;height:40px;line-height:40px;padding:0 0 0 10px}
#bo_vc_sns .sns_li_off {background:#bbb}
#bo_vc_sns a {display:inline-block;padding:0 15px 0 5px}
#bo_vc_sns input {margin:0 5px 0 0}

/*글쓰기*/
#bo_w .bo_v_option li {display:inline-block;float:left;text-align:left;margin:0 5px 0 0; margin-right:15px;}
#bo_w .bo_v_option li label {vertical-align:baseline}
#bo_w .bo_v_option .chk_box input[type="checkbox"] + label span {margin-left:-10px; margin-top:-6px; margin-right:5px;}
#bo_w .write_div {margin:10px 0;position:relative}
#bo_w .write_div:after {display:block;visibility:hidden;clear:both;content:""}
#bo_w .bo_w_info:after {display:block;visibility:hidden;clear:both;content:""}
#bo_w .bo_w_info .frm_input {float:left;margin-bottom:1%}
#bo_w #wr_password, #bo_w #wr_homepage {margin-left:1%}
#bo_w .wr_content.smarteditor2 iframe {background:#fff}
#bo_w .bo_w_tit {position:relative}
#bo_w .bo_w_tit .frm_input {padding-right:120px}
#bo_w .bo_w_tit #btn_autosave {position:absolute;top:5px;right:5px;line-height:30px;height:30px}
#bo_w .bo_w_link label {position:absolute;top:1px;left:1px;border-radius:3px 0 0 3px;height:38px;line-height:38px;width:40px;font-size:1.2em;text-align:center;color:#b2b2b2}
#bo_w .bo_w_link .frm_input {padding-left:50px}
#bo_w .bo_w_flie .lb_icon {position:absolute;top:0px;left:0px;border-radius:3px 0 0 3px;height:38px;line-height:38px;width:40px;font-size:1.2em;text-align:center;color:#b2b2b2}
#bo_w .bo_w_flie .frm_file {padding-left:50px;margin-top:3px}
#bo_w .bo_w_flie .file_wr {position:relative;border:1px solid #ccc;background:#fff;color:#000;vertical-align:middle;border-radius:3px;padding:5px;height:40px;margin:0}
#bo_w .bo_w_flie .frm_input {margin:10px 0 0}
#bo_w .bo_w_flie .file_del {position:absolute;top:10px;right:10px;font-size:0.92em;color:#7d7d7d}
#bo_w .bo_w_select select {border:1px solid #dddddd;width:100%;height:40px;border-radius:3px}

.secret_cm.chk_box input[type="checkbox"] + label span {margin-left:-10px; margin-top:-6px; margin-right:5px;}
/* =====================================================================
 * 문중도록 2026 보기 스킨 (mg_)
 * ===================================================================== */
.mg_v {--mg-main:#1f4e8c; --mg-sub:#7fa6d6; --mg-panel:#f4eeee; --mg-ink:#222; --mg-mute:#777; --mg-line:#e4dede; --mg-sec:#8a2b22;
    color:var(--mg-ink); padding-top:10px}
.mg_v *, .mg_v *:before, .mg_v *:after {box-sizing:border-box}

/* 히어로 */
.mg_hero {position:relative; margin:0 0 18px}
.mg_hero {background:var(--mg-panel); border-radius:28px; overflow:hidden}
.mg_hero_in {position:relative; display:grid; grid-template-columns:150px minmax(0,1fr); column-gap:22px; padding:22px 22px 0 0}
.mg_badge {grid-row:1 / span 2; align-self:start; margin-top:24px; padding:20px 10px 22px; color:#fff; text-align:center;
    background:linear-gradient(180deg, var(--mg-main) 0%, var(--mg-sub) 100%); border-radius:22px 0 0 0;
    box-shadow:0 10px 24px rgba(31,78,140,.25)}
.mg_badge_no {display:block; font:900 2.6em/1 'Noto Serif KR', serif; letter-spacing:.02em; padding-bottom:12px; margin:0 8px 12px; border-bottom:1px solid rgba(255,255,255,.55)}
.mg_badge_hanja {display:block; font:900 4.4em/1.05 'Noto Serif KR', serif; text-shadow:0 2px 6px rgba(0,0,0,.18)}
.mg_badge_hanja.is_long {font-size:2.6em}
.mg_badge_hanja.is_kor {font-family:inherit; font-weight:800}
.mg_badge_name {display:block; margin-top:10px; font-size:1.05em; font-weight:700; letter-spacing:.08em}
.mg_photo {position:relative; min-width:0; border-radius:20px; overflow:hidden; isolation:isolate; background:#ddd; box-shadow:0 14px 30px rgba(0,0,0,.12)}
.mg_photo .swiper-container {overflow:hidden; position:relative; width:100%; border-radius:20px}
.mg_photo .swiper-slide {width:100%}
.mg_photo img {display:block; width:100% !important; max-width:100% !important; height:auto !important; max-height:85vh; object-fit:contain; margin:0 auto}
.mg_noimg {aspect-ratio:10/7; display:flex; align-items:center; justify-content:center; color:#999}
.mg_nav {position:absolute; top:50%; z-index:5; width:46px; height:46px; margin-top:-23px; border:0; border-radius:50%;
    background:rgba(255,255,255,.85); color:#222; font-size:26px; line-height:46px; cursor:pointer; opacity:0; transition:opacity .2s}
.mg_photo:hover .mg_nav {opacity:1}
.mg_prev {left:16px} .mg_next {right:16px}
.mg_caption {grid-column:2; padding:14px 0 16px; text-align:center; font-size:1.05em}
.mg_caption span {display:inline-block; margin:0 12px}
.mg_caption em {font-style:normal; color:var(--mg-sec); font-size:.82em; margin-right:6px}
.mg_caption b {font-family:'Noto Serif KR', serif; font-weight:700}

/* 썸네일 */
.mg_thumbs {overflow:hidden; margin:0 0 30px 172px}
.mg_thumbs .swiper-slide {width:96px !important; opacity:.55; cursor:pointer; transition:opacity .2s}
.mg_thumbs .swiper-slide-thumb-active {opacity:1}
.mg_thumbs img {display:block; width:96px; height:67px; object-fit:cover; border-radius:8px; border:2px solid transparent}
.mg_thumbs .swiper-slide-thumb-active img {border-color:var(--mg-main)}

/* 제목 · 정보 */
.mg_head {margin:34px 0 18px; text-align:left}
.mg_eyebrow {margin:0 0 6px; color:var(--mg-main); font-size:.95em; font-weight:700; letter-spacing:.06em}
.mg_v #bo_v_title {margin:0; padding:0 0 16px; background:none; border:0; border-bottom:2px solid var(--mg-ink)}
.mg_v #bo_v_title .bo_v_tit {font:700 1.9em/1.3 'Noto Serif KR', serif; margin:0}
.mg_meta {display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); margin:0 0 10px; border-bottom:1px solid var(--mg-line)}
.mg_meta > div {display:flex; padding:13px 4px; border-bottom:1px solid var(--mg-line); margin-bottom:-1px}
.mg_meta dt {flex:0 0 96px; color:var(--mg-mute); font-weight:700}
.mg_meta dd {margin:0; word-break:break-all}
.mg_meta a {color:var(--mg-main)}

/* 본문 (도록 2단 편집) */
.mg_v #bo_v_con.mg_body {padding-top:20px; margin:20px 0 40px; min-height:0; font-family:'Noto Serif KR', serif; font-size:16px; line-height:1.95; color:#2b2b2b; text-align:justify; word-break:keep-all; overflow:visible}
.mg_body.is_cols {column-count:2; column-gap:44px; column-rule:1px solid #eee}
.mg_body p {margin:0 0 .6em}
.mg_body img, .mg_body table, .mg_body figure {break-inside:avoid}
.mg_body .mg_sec {display:block; margin:0 0 10px; padding:4px 12px; background:#e9e7e7; color:var(--mg-sec);
    font:700 15px/1.6 'Noto Serif KR', serif; letter-spacing:.04em; break-after:avoid; break-inside:avoid}
.mg_body * + .mg_sec, .mg_body br + .mg_sec {margin-top:18px}
.mg_body > .mg_sec:first-child {margin-top:0}

/* 위치 지도 */
.mg_map {margin:50px 0 30px}
.mg_map_head {display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 16px; padding-bottom:12px; margin-bottom:16px; border-bottom:2px solid var(--mg-ink)}
.mg_map_head h3 {margin:0; font:700 1.35em/1.3 'Noto Serif KR', serif}
.mg_map_head h3 i {color:var(--mg-sec)}
.mg_map_head p {margin:0; color:var(--mg-mute)}
.mg_map_note {display:inline-block; margin-left:8px; padding:1px 8px; border-radius:10px; background:#fff4e5; color:#b26a00; font-size:.85em}
.mg_map_box {border-radius:18px; overflow:hidden; border:1px solid var(--mg-line); background:#eef1f4}
.mg_map_canvas {display:block; width:100%; height:420px; border:0}
.mg_map_label {padding:5px 12px; background:var(--mg-main); color:#fff; border-radius:16px; font-size:13px; font-weight:700; white-space:nowrap; box-shadow:0 3px 8px rgba(0,0,0,.2)}
.mg_map_btns {display:flex; flex-wrap:wrap; gap:8px; margin-top:12px}
.mg_map_btns a {display:inline-flex; align-items:center; gap:6px; height:40px; padding:0 16px; border:1px solid #d6d6d6; border-radius:20px; background:#fff; color:#333; font-weight:600}
.mg_map_btns a:hover {border-color:var(--mg-main); color:var(--mg-main); text-decoration:none}
.mg_map_btns a.is_kakao {background:#fee500; border-color:#fee500; color:#191919}

/* 이전 · 다음 */
.mg_v .view_bt:after {content:""; display:block; clear:both}
.mg_btn_dark {background:#111 !important; color:#fff !important; border-color:#111 !important}

/* 모바일 */
@media (max-width:768px) {
    .mg_hero {border-radius:20px}
    .mg_hero_in {grid-template-columns:minmax(0,1fr); padding:0}
    .mg_badge {position:absolute; z-index:6; left:12px; top:0; margin:0; padding:10px 8px 12px; min-width:74px; border-radius:0 0 14px 14px}
    .mg_badge_no {font-size:1.3em; padding-bottom:6px; margin:0 4px 6px}
    .mg_badge_hanja {font-size:2.2em}
    .mg_badge_hanja.is_long {font-size:1.4em}
    .mg_badge_name {font-size:.8em; margin-top:4px}
    .mg_photo, .mg_photo .swiper-container {border-radius:0}
    .mg_caption {grid-column:1; padding:12px 10px}
    .mg_caption span {display:block; margin:2px 0}
    .mg_thumbs {margin-left:0}
    .mg_v #bo_v_title .bo_v_tit {font-size:1.45em}
    .mg_body.is_cols {column-count:1}
    .mg_v #bo_v_con.mg_body {font-size:15px}
    .mg_map_canvas {height:300px}
}
@media print {
    .mg_map_btns, .mg_nav, .view_bt, #bo_v_share, #bo_vc, .cmt_btn {display:none !important}
}

/* 글쓰기 – 2026 도록 추가항목 */
#bo_w .mg_w_box {margin:16px 0; padding:16px 18px; border:1px solid #dfe5ee; border-radius:8px; background:#f7f9fc}
#bo_w .mg_w_row {display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; margin:0 0 12px}
#bo_w .mg_w_row > label {flex:0 0 110px; font-weight:700}
#bo_w .mg_w_row > .frm_input {flex:1 1 320px}
#bo_w .mg_w_help {flex:1 1 100%; padding-left:122px; color:#888; font-size:.9em}
#bo_w .mg_w_mapwrap {flex:1 1 320px}
#bo_w .mg_w_mapwrap .mg_w_help {padding-left:0}
#bo_w .mg_w_search {display:flex; gap:6px; margin-bottom:6px}
#bo_w .mg_w_search .frm_input {flex:1}
#bo_w .mg_w_tip {padding-top:10px; border-top:1px dashed #d5dce6; color:#555; font-size:.92em}
#bo_w .mg_w_tip code {padding:1px 5px; background:#fff; border:1px solid #ddd; border-radius:3px}
@media (max-width:768px){ #bo_w .mg_w_help {padding-left:0} #bo_w .mg_w_row > label {flex-basis:100%} }
#bo_w .mg_w_fields .mg_w_row {margin-bottom:8px}
#bo_w .mg_w_fields .mg_w_row:last-child {margin-bottom:0}
#bo_w .mg_w_fields .mg_w_row > label:after {content:" :"; color:#999}

/* 공유하기 */
.mg_v .mg_share {display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:10px; position:relative; margin:40px 0 0; padding:26px 0; border-top:1px solid var(--mg-line); border-bottom:1px solid var(--mg-line); text-align:center}
.mg_share_tit {flex:0 0 100%; margin-bottom:4px; color:var(--mg-mute); font-size:.9em; font-weight:700; letter-spacing:.1em}
.mg_sh {display:inline-flex; flex-direction:column; align-items:center; gap:6px; width:64px; color:#555 !important; text-decoration:none !important; font-size:12px}
.mg_sh svg {width:46px; height:46px; padding:12px; border-radius:50%; fill:#fff; transition:transform .15s, box-shadow .15s}
.mg_sh:hover svg {transform:translateY(-2px); box-shadow:0 6px 14px rgba(0,0,0,.15)}
.mg_sh em {font-style:normal; white-space:nowrap}
.mg_sh.is_fb svg {background:#1877f2}
.mg_sh.is_x svg {background:#111}
.mg_sh.is_kakao svg {background:#fee500; fill:#3a1d1d}
.mg_sh.is_naver svg {background:#03c75a; padding:14px}
.mg_sh.is_google svg {background:#fff; border:1px solid #ddd}
.mg_sh.is_copy svg {background:#6b7280}
.mg_sh.is_scrap svg {background:var(--mg-main)}
.mg_toast {position:absolute; left:50%; bottom:-14px; transform:translate(-50%, 10px); padding:8px 16px; border-radius:20px; background:rgba(0,0,0,.82); color:#fff; font-size:13px; white-space:nowrap; opacity:0; pointer-events:none; transition:all .25s; z-index:10}
.mg_toast.is_on {opacity:1; transform:translate(-50%, 0)}
#bo_v_sns {display:none}

/* 이전 · 다음 (사진 카드) */
.mg_nb {display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:40px 0 10px}
.mg_nb_card {display:flex; align-items:center; gap:16px; min-width:0; padding:12px; border:1px solid var(--mg-line); border-radius:16px; background:#fff; color:var(--mg-ink) !important; text-decoration:none !important; transition:border-color .2s, box-shadow .2s}
a.mg_nb_card:hover {border-color:var(--mg-main); box-shadow:0 8px 20px rgba(31,78,140,.12)}
.mg_nb_card.is_next {flex-direction:row-reverse; text-align:right}
.mg_nb_img {flex:0 0 132px; height:92px; border-radius:10px; overflow:hidden; background:#eee; display:flex; align-items:center; justify-content:center; color:#bbb; font-size:24px}
.mg_nb_img img {width:100%; height:100%; object-fit:cover; transition:transform .3s}
a.mg_nb_card:hover .mg_nb_img img {transform:scale(1.06)}
.mg_nb_txt {display:flex; flex-direction:column; gap:3px; min-width:0; flex:1}
.mg_nb_dir {color:var(--mg-main); font-size:.8em; font-weight:700; letter-spacing:.06em}
.mg_nb_no {color:var(--mg-mute); font-size:.85em}
.mg_nb_sub {font:700 1.05em/1.4 'Noto Serif KR', serif; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.mg_nb_card.is_none {justify-content:center; min-height:118px; background:#fafafa; color:#aaa !important; text-align:center}
.mg_nb_card.is_none .mg_nb_dir {color:#bbb}
.mg_nb_card.is_none .mg_nb_sub {font-weight:400; font-family:inherit; font-size:.95em}
@media (max-width:768px) {
    .mg_nb {grid-template-columns:1fr; gap:10px}
    .mg_nb_img {flex-basis:96px; height:70px}
    .mg_sh {width:56px} .mg_sh svg {width:42px; height:42px; padding:11px}
}

/* 히어로 : 테마 Swiper 높이 간섭 방지 */
.mg_photo .swiper-container, .mg_photo .swiper-wrapper, .mg_photo .swiper-slide {height:auto !important; min-height:0 !important; padding:0 !important; margin:0 !important}
.mg_hero_in {padding-bottom:0}
.mg_caption .is_empty, .mg_card_cap .is_empty {font-style:normal; font-weight:400; color:#aaa}

/* =====================================================================
 * 목록 카드 (도록 스타일)
 * ===================================================================== */
#bo_gall .gall_box {margin-bottom:34px}
#bo_gall .gall_li .gall_chk {z-index:5; top:8px; left:8px}
.mg_card {--mg-main:#1f4e8c; --mg-sub:#7fa6d6; padding:10px 10px 14px; background:#f4eeee; border-radius:18px; transition:transform .2s, box-shadow .2s}
.mg_card:hover {transform:translateY(-3px); box-shadow:0 12px 26px rgba(0,0,0,.10)}
.mg_card *, .mg_card *:before, .mg_card *:after {box-sizing:border-box}
.mg_card_photo {position:relative; display:block; border-radius:12px; overflow:hidden; background:#ddd}
.mg_card_photo img {display:block; width:100% !important; height:auto !important; aspect-ratio:10/7; object-fit:cover; transition:transform .4s}
.mg_card:hover .mg_card_photo img {transform:scale(1.04)}
.mg_card_noimg {display:flex !important; align-items:center; justify-content:center; aspect-ratio:10/7; line-height:1 !important; background:#e6e2e2 !important; color:#999 !important; font-size:.9em !important}
.mg_card_badge {position:absolute; top:0; left:14px; min-width:56px; padding:8px 6px 9px; color:#fff; text-align:center; border-radius:0 0 10px 10px;
    background:linear-gradient(180deg, var(--mg-main) 0%, var(--mg-sub) 100%); box-shadow:0 4px 10px rgba(31,78,140,.3)}
.mg_card_badge b {display:block; font-weight:900}
.mg_cb_no {font:900 1em/1 'Noto Serif KR', serif; padding-bottom:4px; margin:0 2px 4px; border-bottom:1px solid rgba(255,255,255,.55)}
.mg_cb_hanja {font:900 1.75em/1.05 'Noto Serif KR', serif}
.mg_cb_hanja.is_long {font-size:1.1em}
.mg_cb_hanja.is_kor {font-family:inherit; font-weight:800}
.mg_cb_name {margin-top:3px; font-size:.68em !important; font-weight:700 !important; letter-spacing:.04em; white-space:nowrap}
.mg_card_cap {padding:9px 2px 8px; text-align:center; font-size:.82em; line-height:1.5; border-bottom:1px solid #e4dbdb}
.mg_card_cap span {display:inline-block; margin:0 6px; white-space:nowrap}
.mg_card_cap em {font-style:normal; color:#8a2b22; margin-right:4px; font-size:.92em}
.mg_card_cap b {font-family:'Noto Serif KR', serif; font-weight:700; color:#222}
#bo_gall .mg_card_tit {display:block; padding-top:10px; text-align:center; color:#111; text-decoration:none}
.mg_card_no {display:block; color:var(--mg-main); font-size:.78em; font-weight:700; letter-spacing:.04em}
.mg_card_tit strong {display:block; margin-top:2px; font:700 1.08em/1.4 'Noto Serif KR', serif; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.mg_card_tit .new_icon {display:inline-block; padding:0 4px; margin-left:3px; font:400 10px/15px sans-serif; color:#fff; background:#3071CA; border-radius:2px; vertical-align:middle}
#bo_gall .gall_li .gall_chk {left:auto; right:8px; top:8px}
.mg_card_cap span {display:block; margin:0; overflow:hidden; text-overflow:ellipsis}

/* 목록 배지 : 왼쪽에 붙임 */
.mg_card_badge {left:0 !important; border-radius:0 0 10px 0 !important}

/* =====================================================================
 * 상단 카테고리 (가나다 초성) : 가로폭에 맞춰 한 줄 균등 배치, 테두리 정리
 * ===================================================================== */
#bo_cate {margin:10px 0 24px !important; padding:0 !important; border:0 !important}
#bo_cate ul#bo_cate_ul {display:grid !important; grid-template-columns:repeat(auto-fit, minmax(54px, 1fr)); margin:0; padding:0; list-style:none;
    border-top:1px solid #ddd; border-left:1px solid #ddd; border-radius:10px; overflow:hidden; background:#fff}
#bo_cate ul#bo_cate_ul:after {display:none}
#bo_cate #bo_cate_ul li {display:block !important; min-width:0 !important; width:auto !important; padding:0 !important; margin:0 !important; float:none !important;
    border-right:1px solid #ddd; border-bottom:1px solid #ddd}
#bo_cate #bo_cate_ul a {display:block; height:48px; line-height:48px; padding:0 !important; border:0 !important; border-radius:0 !important; background:#fff;
    color:#333; font-size:15px; font-weight:600; text-align:center; text-decoration:none; transition:background .15s, color .15s}
#bo_cate #bo_cate_ul a:hover, #bo_cate #bo_cate_ul a:focus {background:#eef3fa !important; color:#1f4e8c !important; border:0 !important}
#bo_cate #bo_cate_ul #bo_cate_on {background:#1f4e8c !important; color:#fff !important; border:0 !important; box-shadow:none}
#bo_cate #bo_cate_ul li:first-child a {font-size:14px}
@media (max-width:768px) {
    #bo_cate ul#bo_cate_ul {grid-template-columns:repeat(5, 1fr)}
    #bo_cate #bo_cate_ul a {height:42px; line-height:42px; font-size:14px}
}

/* 히어로 사진 : 원본 비율 그대로 (위아래 잘림 없음) */
.mg_photo {background:#e9e4e4}
.mg_photo .swiper-slide {display:flex; align-items:center; justify-content:center}

/* 히어로 : 배지와 사진 밀착, 사진만 네 모서리 둥글게 (빈 배경 없음) */
.mg_hero_in {column-gap:0 !important}
.mg_badge {position:relative; z-index:2; border-radius:22px 0 0 0 !important; margin-right:0}
.mg_photo {background:transparent !important; border-radius:20px !important; box-shadow:none !important; align-self:start; line-height:0}
.mg_photo .swiper-container, .mg_photo .swiper-wrapper, .mg_photo .swiper-slide {background:transparent !important; line-height:0}
.mg_photo .swiper-slide {display:block !important}
.mg_photo img {border-radius:20px; box-shadow:0 14px 30px rgba(0,0,0,.14); max-height:none !important}
@media (max-width:768px) {
    .mg_photo, .mg_photo img {border-radius:0 !important}
}

/* =====================================================================
 * 사진 모음 (첨부 2번째 이미지부터) – 책자 지면 스타일
 * ===================================================================== */
.mg_gal {margin:56px 0 30px}
.mg_gal_head {margin:0 0 34px; text-align:center}
.mg_gal_head h3 {margin:0; font:900 2.1em/1.35 'Noto Serif KR', serif; letter-spacing:-.01em; color:#1a1a1a; word-break:keep-all}
.mg_gal_head p {margin:10px 0 0; font:700 1.1em/1.5 'Noto Serif KR', serif; color:#333; word-break:keep-all}
.mg_gal_head:after {content:""; display:block; width:48px; height:3px; margin:18px auto 0; background:var(--mg-main)}
.mg_gal_grid {display:grid; grid-template-columns:1fr 1fr; gap:34px 26px; align-items:start}
.mg_gal_item {margin:0}
.mg_gal_imgs {display:grid; grid-template-columns:1fr; gap:10px}
.mg_gal_item.is_n2 .mg_gal_imgs {grid-template-columns:1fr 1fr}
.mg_gal_item.is_n3 .mg_gal_imgs {grid-template-columns:1fr 1fr 1fr}
.mg_gal_a {display:block; border-radius:10px; overflow:hidden; line-height:0; background:#eee}
.mg_gal_a img {display:block; width:100% !important; height:auto !important; transition:transform .35s}
.mg_gal_a:hover img {transform:scale(1.03)}
.mg_gal_item.is_group .mg_gal_a img {aspect-ratio:3/4; object-fit:cover}
.mg_gal_item figcaption {margin-top:9px; font-size:.92em; line-height:1.55; font-weight:700; color:#222; word-break:keep-all}
.mg_gal_item.is_group figcaption {text-align:center}
.mg_gal_item figcaption .is_sub {font-weight:400; color:#555}
.mg_body_after {margin:10px 0 40px; font-family:'Noto Serif KR', serif; font-size:16px; line-height:2; color:#2b2b2b; word-break:keep-all}
.mg_body_after p {margin:0 0 .3em}
.mg_body_after img {max-width:100%; height:auto}
@media (max-width:768px) {
    .mg_gal_head h3 {font-size:1.5em}
    .mg_gal_head p {font-size:.95em}
    .mg_gal_grid {grid-template-columns:1fr; gap:26px}
}
/* 사진 모음 : 세로로 긴 단독 사진은 높이 제한 (책자처럼 작게) */
.mg_gal_item:not(.is_group) .mg_gal_a {width:fit-content; max-width:100%}
.mg_gal_item:not(.is_group) .mg_gal_a img {width:auto !important; max-width:100% !important; max-height:460px}

/* =====================================================================
 * 배치 블록 – 보기
 * ===================================================================== */
.mg_layout {margin:56px 0 30px}
.mg_lb {margin:0 0 34px}
.mg_lb_fig {margin:0}
.mg_lb_a {display:block; line-height:0; border-radius:8px; overflow:hidden; background:#eee}
.mg_lb_a img {display:block; width:100% !important; height:auto !important; transition:transform .35s}
.mg_lb_a:hover img {transform:scale(1.02)}
.mg_lb_fig figcaption {margin-top:8px; font-size:.9em; line-height:1.55; color:#444; word-break:keep-all}
.mg_lb_fig figcaption b {color:#111; font-weight:700; margin-right:4px}
.mg_lb_text {font-family:'Noto Serif KR', serif; font-size:16px; line-height:1.95; color:#2b2b2b; text-align:justify; word-break:keep-all}
.mg_lb_text p {margin:0 0 .7em}
.mg_lb_text.is_cols {column-count:2; column-gap:44px; column-rule:1px solid #eee}
/* 사진 나란히 : 같은 높이 */
.mg_lb_row {display:grid; gap:12px; align-items:start}
.mg_lb_row.is_n1 {grid-template-columns:1fr}
.mg_lb_row.is_n2 {grid-template-columns:1fr 1fr}
.mg_lb_row.is_n3 {grid-template-columns:repeat(3, 1fr)}
.mg_lb_row.is_n4 {grid-template-columns:repeat(4, 1fr)}
.mg_lb_row.is_cover .mg_lb_a img {aspect-ratio:4/3; object-fit:cover}
/* 사진 옆 글 */
.mg_lb_side {display:grid; gap:0 30px; align-items:start}
/* 사진 칸 : 글 칸 비율 */
.mg_lb_side.is_q     {grid-template-columns:23% minmax(0,1fr)}
.mg_lb_side.is_third {grid-template-columns:32% minmax(0,1fr)}
.mg_lb_side.is_half  {grid-template-columns:48% minmax(0,1fr)}
.mg_lb_side.is_two   {grid-template-columns:64% minmax(0,1fr)}
.mg_lb_side.is_right.is_q     {grid-template-columns:minmax(0,1fr) 23%}
.mg_lb_side.is_right.is_third {grid-template-columns:minmax(0,1fr) 32%}
.mg_lb_side.is_right.is_half  {grid-template-columns:minmax(0,1fr) 48%}
.mg_lb_side.is_right.is_two   {grid-template-columns:minmax(0,1fr) 64%}
/* 3/3 : 사진들을 위에 가로로, 글은 아래 */
.mg_lb_side.is_full {grid-template-columns:1fr}
.mg_lb_side.is_full .mg_lb_col {grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); margin-bottom:24px; order:0 !important}
.mg_lb_side.is_right .mg_lb_col {order:2}
.mg_lb_side.no_col {grid-template-columns:1fr !important}
.mg_lb_col {display:grid; gap:22px}
.mg_lb_main .mg_lb_row {margin-top:26px}
@media (max-width:768px) {
    .mg_lb_text.is_cols {column-count:1}
    .mg_lb_row.is_n3, .mg_lb_row.is_n4 {grid-template-columns:1fr 1fr}
    .mg_lb_side, .mg_lb_side.is_right {grid-template-columns:1fr !important}
    .mg_lb_side .mg_lb_col {order:0 !important; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:22px}
    .mg_lb_main .mg_lb_row {grid-template-columns:1fr 1fr}
}

/* =====================================================================
 * 배치 블록 – 편집기 (글쓰기)
 * ===================================================================== */
#bo_w .mg_le {margin:24px 0; padding:18px; border:2px solid #c9d6ea; border-radius:10px; background:#f7f9fd}
#bo_w .mg_le_head h3 {margin:0 0 6px; font-size:1.15em; color:#1f4e8c}
#bo_w .mg_le_head h3 small {font-weight:400; color:#888; font-size:.8em}
#bo_w .mg_le_head p {margin:0 0 12px; color:#555; font-size:.92em; line-height:1.6}
#bo_w .mg_le_files {display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:10px; margin-bottom:14px; background:#fff; border:1px dashed #c9d6ea; border-radius:8px}
#bo_w .mg_le_flabel {font-weight:700; color:#1f4e8c; margin-right:4px}
#bo_w .mg_le_files em {font-style:normal; color:#999; font-size:.9em}
#bo_w .mg_le_fthumb {position:relative; width:64px; height:48px; border-radius:5px; overflow:hidden; background:#eee}
#bo_w .mg_le_fthumb img {width:100%; height:100%; object-fit:cover}
#bo_w .mg_le_fthumb b {position:absolute; left:0; top:0; min-width:18px; padding:0 4px; background:#1f4e8c; color:#fff; font-size:11px; line-height:18px; text-align:center; border-radius:0 0 5px 0}
#bo_w .mg_le_empty {padding:24px; text-align:center; color:#999; background:#fff; border-radius:8px; border:1px dashed #ddd}
#bo_w .mg_le_block {margin-bottom:12px; background:#fff; border:1px solid #d9e1ec; border-radius:8px; overflow:hidden}
#bo_w .mg_le_bhead {display:flex; justify-content:space-between; align-items:center; padding:8px 12px; background:#eaf0f8; border-bottom:1px solid #d9e1ec}
#bo_w .mg_le_bhead b {color:#1f4e8c}
#bo_w .mg_le_bhead button {margin-left:4px; height:28px; padding:0 10px; border:1px solid #c9d6ea; border-radius:4px; background:#fff; cursor:pointer}
#bo_w .mg_le_bhead button.is_del {color:#c0392b; border-color:#f0c4bf}
#bo_w .mg_le_bbody {padding:12px}
#bo_w .mg_le_bbody input[type=text], #bo_w .mg_le_bbody textarea, #bo_w .mg_le_bbody select {width:100%; box-sizing:border-box; border:1px solid #ccc; border-radius:4px; padding:7px 9px; margin:0 0 6px; font-size:14px; background:#fff}
#bo_w .mg_le_bbody textarea {line-height:1.6; resize:vertical}
#bo_w .mg_le_opt {display:inline-block; margin:2px 0 4px; color:#555; font-size:.92em}
#bo_w .mg_le_opts {display:flex; flex-wrap:wrap; gap:6px 16px; margin-bottom:8px}
#bo_w .mg_le_opts label {display:flex; align-items:center; gap:6px; font-size:.92em; color:#555}
#bo_w .mg_le_opts select {width:auto; margin:0}
#bo_w .mg_le_sl {margin:6px 0 6px; font-weight:700; font-size:.88em; color:#666}
#bo_w .mg_le_slots {margin-bottom:8px}
#bo_w .mg_le_slot {position:relative; display:flex; gap:10px; padding:8px 34px 2px 8px; margin-bottom:6px; border:1px solid #eee; border-radius:6px; background:#fbfbfb}
#bo_w .mg_le_sthumb {flex:0 0 96px; height:72px; border-radius:4px; overflow:hidden; background:#e9e9e9; display:flex; align-items:center; justify-content:center; color:#aaa; font-size:12px}
#bo_w .mg_le_sthumb img {width:100%; height:100%; object-fit:cover}
#bo_w .mg_le_sthumb i {font-style:normal}
#bo_w .mg_le_sfields {flex:1; min-width:0}
#bo_w .mg_le_sfields select {width:140px !important}
#bo_w .mg_le_x {position:absolute; right:6px; top:6px; width:24px; height:24px; border:0; border-radius:50%; background:#eee; color:#888; cursor:pointer; line-height:24px}
#bo_w .mg_le_addslot {height:30px; padding:0 12px; border:1px dashed #9fb5d3; border-radius:4px; background:#fff; color:#1f4e8c; cursor:pointer}
#bo_w .mg_le_add {display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:12px}
#bo_w .mg_le_add span {font-weight:700; margin-right:4px}
#bo_w .mg_le_add button {height:36px; padding:0 14px; border:1px solid #1f4e8c; border-radius:18px; background:#fff; color:#1f4e8c; font-weight:600; cursor:pointer}
#bo_w .mg_le_add button:hover {background:#1f4e8c; color:#fff}

/* 책자식 캡션 : 사진 옆/아래 사진은 제목(굵게) 다음 줄에 설명 */
.mg_lb_side .mg_lb_fig figcaption b, .mg_lb_row .mg_lb_fig figcaption b {display:block; margin:0}
.mg_lb_side .mg_lb_fig figcaption, .mg_lb_row .mg_lb_fig figcaption {margin-top:6px; font-size:.86em; line-height:1.5}
.mg_lb_col {gap:18px}
.mg_lb_a {border-radius:4px}
.mg_lb_main .mg_lb_row {gap:8px; margin-top:30px}
.mg_lb_text, .mg_lb_text p, .mg_body_after, .mg_v #bo_v_con.mg_body, .mg_v #bo_v_con.mg_body p {font-family:'Noto Serif KR', 'Nanum Myeongjo', serif !important}
.mg_lb_text {line-height:2.05; letter-spacing:-.01em}
.mg_lb_side .mg_lb_text p {margin:0}
/* 목록 : 최고관리자 일괄 등록 버튼 */
.mg_bulk_btn {width:auto !important; padding:0 12px !important; background:#1f7a43 !important; color:#fff !important; border-color:#1f7a43 !important; font-weight:700; white-space:nowrap}

/* 글쓰기 : 위치 선택 지도 */
#bo_w .mg_w_map {width:100%; height:380px; border:1px solid #ccd5e1; border-radius:8px; overflow:hidden; z-index:0}
#bo_w .mg_w_search {flex-wrap:wrap}
#bo_w .mg_w_results {display:flex; flex-direction:column; gap:4px; margin-bottom:6px}
#bo_w .mg_w_res {text-align:left; padding:7px 10px; border:1px solid #d6dfeb; border-radius:6px; background:#fff; color:#1f4e8c; cursor:pointer; font-size:13px}
#bo_w .mg_w_res:hover {background:#eef3fa}
#bo_w .mg_w_map .leaflet-control-layers label {margin:0; font-size:13px}

/* =====================================================================
 * 글쓰기 : 사진 한 번에 올리기 + 끌어서 순서
 * ===================================================================== */
#bo_w form.mg_up_on .mg_files_raw {position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden}
#bo_w .mg_up {margin:24px 0; padding:18px; border:2px solid #c9e3d3; border-radius:10px; background:#f6fbf8}
#bo_w .mg_up_head h3 {margin:0 0 10px; font-size:1.15em; color:#1f7a43}
#bo_w .mg_up_head small {font-weight:400; color:#888; font-size:.8em; margin-left:6px}
#bo_w .mg_up_drop {display:flex; flex-direction:column; align-items:center; gap:4px; padding:26px 12px; border:2px dashed #9cc9ad; border-radius:10px; background:#fff; color:#555; text-align:center; cursor:pointer; transition:background .15s, border-color .15s}
#bo_w .mg_up_drop i {font-size:34px; color:#1f7a43}
#bo_w .mg_up_drop b {font-size:15px; color:#1f7a43}
#bo_w .mg_up_drop span {font-size:13px; color:#888}
#bo_w .mg_up_drop.is_over, #bo_w .mg_up_drop:hover {background:#eaf6ef; border-color:#1f7a43}
#bo_w .mg_up_grid {display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:12px; margin-top:14px}
#bo_w .mg_up_card {position:relative; padding:8px; background:#fff; border:1px solid #dbe5df; border-radius:8px; cursor:grab; transition:box-shadow .15s, opacity .15s}
#bo_w .mg_up_card:hover {box-shadow:0 4px 12px rgba(0,0,0,.08)}
#bo_w .mg_up_card.is_drag {opacity:.4}
#bo_w .mg_up_card.is_target {outline:2px dashed #1f7a43; outline-offset:2px}
#bo_w .mg_up_card.is_hero {border:2px solid #1f4e8c}
#bo_w .mg_up_img {position:relative; height:110px; border-radius:6px; overflow:hidden; background:#eef1ef; display:flex; align-items:center; justify-content:center; color:#aaa; font-size:28px}
#bo_w .mg_up_img img {width:100%; height:100%; object-fit:cover; pointer-events:none}
#bo_w .mg_up_no {position:absolute; left:0; top:0; min-width:26px; padding:2px 7px; background:#1f7a43; color:#fff; font-size:12px; line-height:18px; text-align:center; border-radius:0 0 6px 0}
#bo_w .mg_up_card.is_hero .mg_up_no {background:#1f4e8c}
#bo_w .mg_up_new {position:absolute; left:0; bottom:0; padding:1px 6px; background:#f39c12; color:#fff; font-size:11px; font-style:normal; border-radius:0 6px 0 0}
#bo_w .mg_up_x {position:absolute; right:4px; top:4px; width:24px; height:24px; border:0; border-radius:50%; background:rgba(0,0,0,.55); color:#fff; font-size:16px; line-height:22px; cursor:pointer}
#bo_w .mg_up_name {margin:6px 0 4px; font-size:12px; color:#666; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
#bo_w .mg_up_cap {width:100%; box-sizing:border-box; height:30px; padding:0 6px; border:1px solid #ddd; border-radius:4px; font-size:12px}
#bo_w .mg_up_mv {display:flex; gap:4px; margin-top:6px}
#bo_w .mg_up_mv button {flex:1; height:26px; border:1px solid #dbe5df; border-radius:4px; background:#fff; color:#555; cursor:pointer; font-size:11px}
#bo_w .mg_up_empty {grid-column:1 / -1; padding:16px; text-align:center; color:#999}
#bo_w .mg_up_help {margin:10px 0 0; font-size:13px; color:#666}
#bo_w .mg_up_busy {margin-top:8px; font-size:13px; color:#b26a00; font-weight:700}
#bo_w .mg_up_busy:empty {display:none}

/* 사진 크게 보기 (라이트박스) */
.mg_lbx {position:fixed; inset:0; z-index:100000; display:none; align-items:center; justify-content:center}
.mg_lbx.is_on {display:flex}
.mg_lbx_bg {position:absolute; inset:0; background:rgba(8,9,12,.96)}
.mg_lbx_fig {position:relative; margin:0; max-width:92vw; max-height:88vh; display:flex; flex-direction:column; align-items:center}
.mg_lbx_fig img {display:block; max-width:92vw; max-height:78vh; width:auto; height:auto; border-radius:4px; box-shadow:0 10px 40px rgba(0,0,0,.5); background:#222}
.mg_lbx_fig figcaption {margin-top:12px; max-width:80vw; color:#eee; font-size:14px; line-height:1.6; text-align:center; word-break:keep-all}
.mg_lbx_fig figcaption b {display:inline !important; color:#fff; margin-right:6px}
.mg_lbx_btn {position:absolute; top:50%; z-index:2; width:52px; height:52px; margin-top:-26px; border:0; border-radius:50%; background:rgba(255,255,255,.14); color:#fff; font-size:22px; cursor:pointer}
.mg_lbx_btn:hover {background:rgba(255,255,255,.3)}
.mg_lbx_prev {left:18px} .mg_lbx_next {right:18px}
.mg_lbx.is_single .mg_lbx_btn {display:none}
.mg_lbx_top {position:absolute; top:0; left:0; right:0; z-index:2; display:flex; align-items:center; gap:16px; padding:12px 16px; color:#ccc; font-size:14px}
.mg_lbx_top #mg_lbx_cnt {margin-right:auto}
.mg_lbx_top a {color:#fff; text-decoration:none; padding:6px 12px; border:1px solid rgba(255,255,255,.35); border-radius:16px}
.mg_lbx_top a:hover {background:rgba(255,255,255,.15)}
.mg_lbx_close {width:40px; height:40px; border:0; border-radius:50%; background:rgba(255,255,255,.14); color:#fff; font-size:26px; line-height:40px; cursor:pointer}
.mg_layout a.mg_lb_a, .mg_gal a.mg_gal_a {cursor:zoom-in}
@media (max-width:768px) { .mg_lbx_btn {width:42px; height:42px; margin-top:-21px; font-size:18px} .mg_lbx_prev {left:6px} .mg_lbx_next {right:6px} }

/* 사진 나란히 : 자르지 않고 같은 높이 (사진 비율만큼 폭 배분) */
.mg_lb_row.is_fit {display:flex; gap:12px; align-items:flex-start}
.mg_lb_row.is_fit .mg_lb_fig {min-width:0}
.mg_lb_row.is_fit .mg_lb_a img {aspect-ratio:auto !important; object-fit:fill !important}
.mg_lb_row.is_crop .mg_lb_a img {aspect-ratio:4/3; object-fit:cover}
.mg_lb_main .mg_lb_row.is_fit {gap:8px}
/* 자동 사진모음 묶음도 잘림 없이 */
.mg_gal_item.is_group .mg_gal_imgs {display:flex !important; gap:10px; align-items:flex-start}
.mg_gal_item.is_group .mg_gal_a {min-width:0}
.mg_gal_item.is_group .mg_gal_a img {aspect-ratio:auto !important; object-fit:fill !important}
@media (max-width:768px) {
    .mg_lb_row.is_fit.is_n3, .mg_lb_row.is_fit.is_n4 {flex-wrap:wrap}
    .mg_lb_row.is_fit.is_n3 .mg_lb_fig, .mg_lb_row.is_fit.is_n4 .mg_lb_fig {flex-basis:calc(50% - 6px) !important; flex-grow:0 !important}
}

/* 목록 : 상세자료 꼬리표 (배지 아래) */
.mg_card_badge {overflow:visible}
.mg_cb_more {position:absolute; left:0; right:0; top:100%; margin-top:4px; padding:3px 0 4px; background:linear-gradient(180deg,#c8963e,#a8752a); color:#fff; font-size:10.5px !important; font-weight:700 !important; letter-spacing:.02em; text-align:center; border-radius:0 0 8px 0; box-shadow:0 3px 8px rgba(120,80,20,.35); white-space:nowrap}
.mg_cb_more i {font-size:10px; margin-right:1px}
