@charset "utf-8";

/* ========== 게시판 공통 컨테이너 ========== */
#bo_gall, #bo_v, #bo_w {
    max-width: 1280px;
    margin: 30px auto 60px;
    padding: 0 20px;
    font-family: 'Pretendard','Apple SD Gothic Neo',sans-serif;
    color: var(--color-text);
}
#bo_gall h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    font-size: 0;
}

/* ========== 게시판 카테고리 ========== */
#bo_cate {
    margin: 0 0 20px;
}
#bo_cate ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}
#bo_cate li {
    list-style: none;
    padding: 0;
    display: inline-block;
}
#bo_cate a {
    display: inline-block;
    padding: 7px 16px;
    line-height: 1.4;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: #fff;
    color: var(--color-text-sub);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
    box-shadow: none;
}
#bo_cate a:hover,
#bo_cate a:focus,
#bo_cate a:active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: #fff;
    text-decoration: none;
    box-shadow: none;
}
#bo_cate #bo_cate_on {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    font-weight: 700;
    box-shadow: none;
}

/* ========== 상단 페이지 정보 / 버튼 ========== */
#bo_btn_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--color-bg-dark);
    margin-bottom: 20px;
}
#bo_btn_top:after {
    display: none;
}
#bo_list_total {
    float: none;
    line-height: 1.5;
    font-size: 14px;
    color: var(--color-text-sub);
}
#bo_list_total span {
    color: var(--color-text);
    font-weight: 700;
    margin-right: 6px;
}

.btn_bo_user {
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    float: none;
}
.btn_bo_user li {
    list-style: none;
    width: auto;
    margin: 0;
    background: none;
    float: none;
    position: relative;
}
.btn_bo_user .btn,
.btn_bo_user .btn_b01,
.btn_bo_user .btn_admin,
.btn_bo_user button.btn_bo_sch,
.btn_bo_user button.btn_more_opt {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fff;
    color: var(--color-text-sub);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
}
.btn_bo_user .btn:hover,
.btn_bo_user .btn_b01:hover,
.btn_bo_user .btn_admin:hover,
.btn_bo_user button.btn_bo_sch:hover,
.btn_bo_user button.btn_more_opt:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: #fff;
}

/* 더보기 옵션(드롭다운) */
.more_opt {
    display: none;
    position: absolute;
    top: 44px;
    right: 0;
    min-width: 130px;
    width: auto;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    z-index: 50;
    padding: 6px 0;
}
.more_opt:before,
.more_opt:after {
    display: none;
}
.more_opt li {
    width: auto;
    padding: 0;
    margin: 0;
    border: 0;
    text-align: left;
    list-style: none;
}
.more_opt li button,
.more_opt li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    background: #fff;
    border: 0;
    color: var(--color-text);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.more_opt li button:hover,
.more_opt li a:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}
.more_opt li i {
    color: var(--color-text-sub);
    font-size: 12px;
    margin-left: 10px;
}

/* ========== 체크박스(공통) ========== */
.selec_chk {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    opacity: 0;
    z-index: -1;
    overflow: hidden;
}
.chk_box {
    position: relative;
}
.chk_box input[type="checkbox"] + label {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--color-text-sub);
    cursor: pointer;
    padding-left: 0;
    vertical-align: middle;
}
.chk_box input[type="checkbox"] + label span {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 3px;
    margin-right: 6px;
    flex-shrink: 0;
    position: relative;
    top: auto;
    left: auto;
}
.chk_box input[type="checkbox"]:checked + label {
    color: var(--color-text);
}
.chk_box input[type="checkbox"]:checked + label span {
    background: var(--color-primary) url(./img/chk.png) no-repeat 50% 50%;
    border-color: var(--color-primary);
}
.write_div .chk_box input[type="checkbox"] + label,
.bo_vc_w .chk_box input[type="checkbox"] + label {
    padding-left: 0;
}
.write_div .chk_box input[type="checkbox"] + label span,
.bo_vc_w .chk_box input[type="checkbox"] + label span {
    width: 16px;
    height: 16px;
}

/* 전체선택 체크박스 (목록 위) */
#gall_allchk {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0 0 14px;
    padding: 8px 12px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--color-text-sub);
}
#gall_allchk label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

/* ========== 갤러리 카드 그리드 ========== */
#bo_gall #gall_ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}
#bo_gall #gall_ul:after {
    display: none;
}

/* 컬럼 수 (board 설정에 의해 col-gn-N 클래스로 들어옴) */
#bo_gall #gall_ul.gall_row .gall_li {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none;
    box-sizing: border-box;
}
#bo_gall #gall_ul.gall_row .box_clear {
    clear: none;
}

/* 컬럼 수 별 그리드 변경 */
#bo_gall #gall_ul:has(.col-gn-1) {
    grid-template-columns: 1fr;
}
#bo_gall #gall_ul:has(.col-gn-2) {
    grid-template-columns: repeat(2, 1fr);
}
#bo_gall #gall_ul:has(.col-gn-3) {
    grid-template-columns: repeat(3, 1fr);
}
#bo_gall #gall_ul:has(.col-gn-4) {
    grid-template-columns: repeat(4, 1fr);
}
#bo_gall #gall_ul:has(.col-gn-5) {
    grid-template-columns: repeat(5, 1fr);
}
#bo_gall #gall_ul:has(.col-gn-6) {
    grid-template-columns: repeat(6, 1fr);
}

/* 갤러리 카드 박스 */
#bo_gall .gall_box {
    position: relative;
    margin: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
#bo_gall .gall_box:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
#bo_gall .gall_now .gall_box {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px var(--color-accent);
}
#bo_gall .gall_con {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* 갤러리 카드 - 체크박스 */
#bo_gall .gall_li .gall_chk {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    padding: 0;
}
#bo_gall .gall_li .gall_chk .chk_box input[type="checkbox"] + label span {
    background-color: rgba(255,255,255,0.92);
    border-color: var(--color-border);
    margin-right: 0;
}
#bo_gall .gall_li .gall_chk .chk_box input[type="checkbox"]:checked + label span {
    background-color: var(--color-primary);
}

/* 갤러리 카드 - 썸네일 */
#bo_gall .gall_img {
    position: relative;
    aspect-ratio: 1;
    background: var(--color-bg);
    border: 0;
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
    text-align: center;
}
#bo_gall .gall_img a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
#bo_gall .gall_img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
    max-width: 100%;
}
#bo_gall .gall_box:hover .gall_img img {
    transform: scale(1.04);
}
#bo_gall .gall_img .no_image,
#bo_gall .gall_img .is_notice {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    color: var(--color-text-sub);
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    line-height: 1 !important;
}
#bo_gall .gall_img .is_notice {
    background: var(--color-secondary);
    color: #fff;
    font-weight: 700;
}

/* 갤러리 카드 - 텍스트 영역 */
#bo_gall .gall_text_href {
    margin: 0;
    padding: 14px 16px 6px;
}
#bo_gall .gall_text_href .bo_cate_link {
    display: inline-block;
    margin: 0 0 6px;
    padding: 2px 8px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text-sub);
    font-size: 11px;
    font-weight: 500 !important;
    line-height: 1.4;
    height: auto;
}
#bo_gall .gall_text_href .bo_cate_link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
}
#bo_gall .gall_text_href a {
    font-weight: 600;
}
#bo_gall .bo_tit {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    word-break: break-all;
    min-height: 2.9em;
}
#bo_gall .bo_tit:hover {
    color: var(--color-primary);
    text-decoration: none;
}
#bo_gall .gall_now .bo_tit {
    color: var(--color-accent);
}
#bo_gall .bo_tit .cnt_cmt {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 6px;
    background: var(--color-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    border-radius: 10px;
    vertical-align: middle;
    font-family: 'Roboto', sans-serif;
    height: auto;
}
#bo_gall .bo_tit .new_icon {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 5px;
    background: var(--color-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    border-radius: 3px;
    vertical-align: middle;
    width: auto;
}
#bo_gall .bo_tit .hot_icon {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 5px;
    background: var(--color-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    border-radius: 3px;
    vertical-align: middle;
    width: auto;
}
#bo_gall .bo_tit .fa-lock {
    display: inline-block;
    margin-left: 3px;
    color: var(--color-text-sub);
    font-size: 12px;
    vertical-align: middle;
    background: transparent;
    width: auto;
    height: auto;
    line-height: 1;
}
#bo_gall .bo_tit .fa-download,
#bo_gall .bo_tit .fa-link {
    display: inline-block;
    margin-left: 3px;
    background: transparent;
    color: var(--color-text-sub);
    font-size: 11px;
    width: auto;
    height: auto;
    line-height: 1;
    border-radius: 0;
    text-align: center;
    vertical-align: middle;
}

/* 본문 미리보기 */
#bo_gall .bo_cnt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 6px;
    line-height: 1.5;
    font-size: 12.5px;
    color: var(--color-text-sub);
    word-break: break-all;
}

/* 메타정보 (작성자/날짜/조회수) */
#bo_gall .gall_info {
    padding: 0 16px 14px;
    line-height: 1.4;
    font-size: 12px;
    color: var(--color-text-sub);
}
#bo_gall .gall_info strong {
    margin: 0;
    font-weight: 500;
    color: var(--color-text-sub);
}
#bo_gall .gall_info i {
    margin-right: 3px;
    color: #bbb;
    font-size: 11px;
}
#bo_gall .gall_info .gall_date,
#bo_gall .gall_info .gall_view {
    display: inline-block;
    margin-left: 8px;
    color: var(--color-text-sub);
}

/* 추천/비추천 (오른쪽 상단 플로팅) */
#bo_gall .gall_option {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: flex;
    gap: 4px;
}
#bo_gall .gall_option strong {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text);
    font-family: 'Roboto', sans-serif;
}
#bo_gall .gall_option strong i {
    color: var(--color-text-sub);
    font-size: 11px;
}

/* 빈 게시판 */
#bo_gall li.empty_list {
    grid-column: 1 / -1;
    list-style: none;
    padding: 80px 20px;
    text-align: center;
    color: var(--color-text-sub);
    background: var(--color-bg);
    border: 1px dashed var(--color-border);
    border-radius: 8px;
    font-size: 14px;
}

/* ========== 하단 버튼 영역 ========== */
.bo_fx {
    display: flex;
    justify-content: flex-end;
    margin: 20px 0 0;
    float: none;
}
.bo_fx:after {
    display: none;
}

/* ========== 게시판 검색 모달 ========== */
.bo_sch_wrap {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
}
.bo_sch_bg {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}
.bo_sch {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 360px;
    max-height: 320px;
    margin: -160px 0 0 -180px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
    overflow: hidden;
}
.bo_sch h3 {
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
}
.bo_sch form {
    padding: 18px 20px;
}
.bo_sch select {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
    font-size: 13px;
    box-shadow: none;
}
.bo_sch .sch_bar {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: none;
}
.bo_sch .sch_input {
    flex: 1;
    height: 38px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    width: auto;
    float: none;
}
.bo_sch .sch_btn {
    width: 44px;
    height: 38px;
    background: var(--color-primary);
    color: #fff;
    border: 0;
    cursor: pointer;
    transition: background 0.15s;
    float: none;
}
.bo_sch .sch_btn:hover {
    background: var(--color-primary-dark);
}
.bo_sch .bo_sch_cls {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: 0;
    color: var(--color-text-sub);
    cursor: pointer;
    transition: color 0.15s;
    padding: 0;
    font-size: 14px;
}
.bo_sch .bo_sch_cls:hover {
    color: var(--color-text);
}

/* ========== 게시판 읽기 (basic 동일) ========== */
#bo_v {
    background: #fff;
}
#bo_v_title {
    padding: 0 0 18px;
    border-bottom: 2px solid var(--color-bg-dark);
    margin-bottom: 0;
}
#bo_v_title .bo_v_cate {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 10px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-sub);
    font-size: 12px;
    border-radius: 4px;
    line-height: 1.4;
}
#bo_v_title .bo_v_tit {
    display: block;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--color-text);
    word-break: break-all;
}

#bo_v_info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-sub);
    margin: 0;
}
#bo_v_info:after {
    display: none;
}
#bo_v_info h2 {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    font-size: 0;
}
#bo_v_info .profile_info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    float: none;
}
#bo_v_info .profile_info .pf_img {
    margin: 0;
    float: none;
    flex-shrink: 0;
}
#bo_v_info .profile_info .pf_img img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
#bo_v_info .profile_info_ct {
    float: none;
    padding: 0;
    line-height: 1.6;
    font-size: 13px;
    color: var(--color-text-sub);
}
#bo_v_info strong {
    margin: 0 10px 0 0;
    font-weight: 600;
    color: var(--color-text);
}
#bo_v_info .if_date {
    color: var(--color-text-sub);
    font-weight: 400;
}
#bo_v_info i {
    margin-right: 3px;
    color: #bbb;
}
#bo_v_info a {
    color: var(--color-text);
}
#bo_v_info a:hover {
    color: var(--color-primary);
}

#bo_v_top {
    margin-left: auto;
}
#bo_v_top:after {
    display: none;
}
.bo_v_com {
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    float: none;
}
.bo_v_com > li {
    margin: 0;
    float: none;
}

#bo_v_atc {
    min-height: 240px;
    padding: 0;
    margin: 0;
}
#bo_v_atc_title {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    font-size: 0;
}

#bo_v_share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 0;
}
#bo_v_share:after {
    display: none;
}
#bo_v_share .btn,
#bo_v_share .btn_b03 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    width: auto;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fff;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    transition: all 0.15s;
}
#bo_v_share .btn:hover,
#bo_v_share .btn_b03:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: #fff;
}
#bo_v_share .btn i {
    color: inherit;
    margin: 0;
}

#bo_v_img {
    margin: 10px 0 20px;
}
#bo_v_img:after {
    display: none;
}
#bo_v_img a.view_image {
    display: block;
    margin-bottom: 14px;
}
#bo_v_img img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 0;
}

#bo_v_con {
    padding: 24px 0 32px;
    min-height: 200px;
    line-height: 1.8;
    font-size: 15px;
    color: var(--color-text);
    word-break: break-all;
}
#bo_v_con a {
    color: var(--color-primary);
    text-decoration: underline;
}
#bo_v_con img {
    max-width: 100%;
    height: auto;
}

#bo_v_act {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 0 30px;
    text-align: center;
}
#bo_v_act .bo_v_act_gng {
    position: relative;
}
#bo_v_act a,
#bo_v_act .bo_v_good,
#bo_v_act .bo_v_nogood {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: 80px;
    height: 44px;
    padding: 0 20px;
    border: 1px solid var(--color-border);
    border-radius: 30px;
    background: #fff;
    color: var(--color-text-sub);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: all 0.15s;
}
#bo_v_act a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: #fff;
}
#bo_v_act .bo_v_nogood:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}
#bo_v_act i {
    font-size: 16px;
    margin: 0;
}
#bo_v_act_good,
#bo_v_act_nogood {
    display: none;
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    padding: 8px 12px;
    background: var(--color-bg-dark);
    color: #fff;
    font-size: 12px;
    border-radius: 6px;
    z-index: 100;
}

#bo_v_file,
#bo_v_link {
    margin: 0 0 20px;
}
#bo_v_file h2,
#bo_v_link h2 {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    font-size: 0;
}
#bo_v_file ul,
#bo_v_link ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#bo_v_file li,
#bo_v_link li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: none;
    transition: all 0.15s;
}
#bo_v_file li:hover,
#bo_v_link li:hover {
    border-color: var(--color-primary);
    background: #fff;
}
#bo_v_file li i,
#bo_v_link li i {
    color: var(--color-text-sub);
    font-size: 22px;
    margin: 0;
    flex-shrink: 0;
    float: none;
}
#bo_v_file li:hover i,
#bo_v_link li:hover i {
    color: var(--color-primary);
}
#bo_v_file a,
#bo_v_link a {
    flex: 1;
    color: var(--color-text);
    text-decoration: none;
    word-break: break-all;
    float: none;
    display: block;
}
#bo_v_file li:hover a,
#bo_v_link li:hover a {
    color: var(--color-primary);
    text-decoration: none;
}
#bo_v_file a strong,
#bo_v_link a strong {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}
#bo_v_file .bo_v_file_cnt,
#bo_v_link .bo_v_link_cnt {
    display: block;
    margin-top: 4px;
    color: var(--color-text-sub);
    font-size: 12px;
}

/* 이전글/다음글 */
.bo_v_nb {
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--color-border);
    text-align: left;
}
.bo_v_nb:after {
    display: none;
}
.bo_v_nb li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 4px;
    border-top: none;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.12s;
}
.bo_v_nb li:last-child {
    border-bottom: 1px solid var(--color-border);
}
.bo_v_nb li:hover {
    background: var(--color-bg);
}
.bo_v_nb li i {
    color: var(--color-text-sub);
    font-size: 12px;
}
.bo_v_nb li .nb_tit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 80px;
    padding: 0;
    color: var(--color-text-sub);
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}
.bo_v_nb li a {
    flex: 1;
    color: var(--color-text);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.bo_v_nb li a:hover {
    color: var(--color-primary);
}
.bo_v_nb li .nb_date {
    float: none;
    color: var(--color-text-sub);
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

/* SNS */
#bo_v_sns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    float: none;
}
#bo_v_sns:after {
    display: none;
}
#bo_v_sns li {
    width: auto;
    margin: 0;
    text-align: center;
    float: none;
}
#bo_v_sns li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
}
#bo_v_sns li img {
    width: 16px;
    height: 16px;
    margin: 0;
    vertical-align: middle;
}

/* ========== 댓글 ========== */
.cmt_btn {
    width: 100%;
    margin: 30px 0 0;
    padding: 0 0 14px;
    background: #fff;
    border: 0;
    border-bottom: 2px solid var(--color-bg-dark);
    text-align: left;
    font-weight: 700;
    cursor: pointer;
}
.cmt_btn span.total {
    position: relative;
    display: inline-block;
    margin-right: 6px;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 700;
}
.cmt_btn span.total:after {
    display: none;
}
.cmt_btn b {
    color: var(--color-text);
    font-size: 16px;
    font-weight: 700;
}
.cmt_btn span.total b {
    color: var(--color-primary);
    font-family: 'Roboto', sans-serif;
    margin-left: 4px;
}
.cmt_btn span.cmt_more {
    float: right;
    width: 14px;
    height: 14px;
    margin-top: 4px;
    background: url(./img/btn_cmt.png) no-repeat right 2px;
}
.cmt_btn_op span.cmt_more {
    background-position: right -8px;
}

#bo_vc {
    margin: 0;
}
#bo_vc h2 {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    font-size: 0;
}
#bo_vc article {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}
#bo_vc article:after {
    display: none;
}
#bo_vc article .pf_img {
    margin: 0;
    flex-shrink: 0;
    float: none;
}
#bo_vc article .pf_img img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
#bo_vc article .cm_wrap {
    flex: 1;
    max-width: none;
    width: auto;
    min-width: 0;
    float: none;
}
#bo_vc header {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--color-text-sub);
}
#bo_vc header:after {
    display: none;
}
#bo_vc header h2 {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    font-size: 0;
}
#bo_vc .member,
#bo_vc .guest,
#bo_vc .sv_member,
#bo_vc .sv_guest {
    color: var(--color-text);
    font-weight: 700;
}
.bo_vc_hdinfo {
    color: var(--color-text-sub);
    font-size: 12px;
}
.bo_vc_hdinfo i {
    color: #bbb;
    margin-right: 3px;
}
#bo_vc .cmt_contents {
    padding: 0;
    line-height: 1.7;
    font-size: 14px;
    color: var(--color-text);
}
#bo_vc .cmt_contents p {
    margin: 0;
    word-break: break-all;
}
#bo_vc p a {
    color: var(--color-primary);
    text-decoration: underline;
}
#bo_vc_empty {
    margin: 0;
    padding: 60px 20px !important;
    text-align: center;
    color: var(--color-text-sub);
    background: var(--color-bg);
    border-radius: 8px;
    border: 1px dashed var(--color-border);
    font-size: 14px;
}

#bo_vc .bo_vl_opt {
    position: absolute;
    top: 20px;
    right: 0;
}
.btn_cm_opt {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fff;
    color: var(--color-text-sub);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}
.btn_cm_opt:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.bo_vc_act {
    display: none;
    position: absolute;
    top: 38px;
    right: 0;
    min-width: 100px;
    width: auto;
    padding: 6px 0;
    margin: 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    text-align: left;
    z-index: 50;
}
.bo_vc_act:before,
.bo_vc_act:after {
    display: none;
}
.bo_vc_act li {
    border-bottom: 0;
}
.bo_vc_act li a {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--color-text);
    transition: all 0.15s;
}
.bo_vc_act li a:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}

/* 댓글 작성 폼 */
.bo_vc_w {
    position: relative;
    margin: 16px 0 0;
}
.bo_vc_w:after {
    display: none;
}
.bo_vc_w h2 {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    font-size: 0;
}
.bo_vc_w #char_cnt {
    display: block;
    margin: 0 0 6px;
    text-align: right;
    font-size: 12px;
    color: var(--color-text-sub);
}
.bo_vc_w textarea {
    width: 100%;
    min-height: 110px;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: none;
    resize: vertical;
}
.bo_vc_w textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}
.bo_vc_w_wr {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}
.bo_vc_w_wr:after {
    display: none;
}
.bo_vc_w_info {
    float: none;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.bo_vc_w_info:after {
    display: none;
}
.bo_vc_w_info .frm_input {
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
    font-size: 13px;
    float: none;
    margin: 0;
}
.bo_vc_w_info #captcha {
    width: 100%;
    padding-top: 6px;
}
.bo_vc_w .btn_confirm {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    clear: none;
}
.bo_vc_w .btn_confirm .secret_cm {
    display: inline-flex;
    align-items: center;
    float: none;
}
.bo_vc_w .btn_confirm .secret_cm label {
    margin: 0;
    font-size: 13px !important;
}
.bo_vc_w .btn_submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 6px;
    background: var(--color-primary);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.bo_vc_w .btn_submit:hover {
    background: var(--color-primary-dark);
}

/* ========== 글쓰기 (basic 동일) ========== */
#bo_w {
    background: #fff;
}
#bo_w h2.sound_only {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    font-size: 0;
}
#bo_w form {
    padding: 0;
}
#bo_w .write_div {
    position: relative;
    margin: 0 0 14px;
}
#bo_w .write_div:after {
    display: none;
}
#bo_w .frm_input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    color: var(--color-text);
    box-sizing: border-box;
}
#bo_w .frm_input:focus {
    outline: none;
    border-color: var(--color-primary);
}
#bo_w .full_input {
    width: 100%;
}
#bo_w .half_input {
    width: 49%;
}
#bo_w .bo_w_info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
#bo_w .bo_w_info:after {
    display: none;
}
#bo_w .bo_w_info .frm_input {
    flex: 1 1 200px;
    margin: 0;
    float: none;
    width: auto;
}
#bo_w #wr_password,
#bo_w #wr_homepage {
    margin-left: 0;
}

#bo_w .bo_v_option {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 12px 14px;
    list-style: none;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
}
#bo_w .bo_v_option li {
    display: inline-flex;
    align-items: center;
    margin: 0;
    text-align: left;
    float: none;
}

#bo_w .bo_w_select select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
}

#bo_w .bo_w_tit {
    position: relative;
}
#bo_w .bo_w_tit .frm_input {
    padding-right: 170px;
}
#bo_w .bo_w_tit #btn_autosave {
    position: absolute;
    top: 6px;
    right: 6px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: #fff;
    color: var(--color-text-sub);
    font-family: inherit;
    font-size: 12px;
    line-height: 30px;
    cursor: pointer;
    transition: all 0.15s;
}
#bo_w .bo_w_tit #btn_autosave:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

#bo_w .wr_content {
    border-radius: 6px;
    overflow: hidden;
}
#bo_w .wr_content textarea {
    width: 100%;
    min-height: 280px;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text);
    resize: vertical;
}
#bo_w .wr_content textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}
#bo_w .wr_content.smarteditor2 iframe {
    background: #fff;
}

#char_count_desc {
    display: block;
    margin: 0 0 6px;
    color: var(--color-text-sub);
    font-size: 12px;
}
#char_count_desc strong {
    color: var(--color-primary);
}
#char_count_wrap {
    margin: 6px 0 0;
    text-align: right;
    color: var(--color-text-sub);
    font-size: 12px;
}
#char_count {
    color: var(--color-primary);
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
}

#bo_w .bo_w_link {
    position: relative;
}
#bo_w .bo_w_link label {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 44px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    color: var(--color-text-sub);
    background: var(--color-bg);
    border-radius: 6px 0 0 6px;
    font-size: 14px;
}
#bo_w .bo_w_link .frm_input {
    padding-left: 56px;
}

#bo_w .bo_w_flie {
    position: relative;
}
#bo_w .bo_w_flie .file_wr {
    position: relative;
    height: 44px;
    padding: 0;
    margin: 0;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fff;
}
#bo_w .bo_w_flie .lb_icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    color: var(--color-text-sub);
    background: var(--color-bg);
    border-radius: 6px 0 0 6px;
    font-size: 14px;
}
#bo_w .bo_w_flie .frm_file {
    width: 100%;
    height: 42px;
    padding: 8px 12px 8px 56px;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    color: var(--color-text);
    margin: 0;
    box-sizing: border-box;
}
#bo_w .bo_w_flie .frm_input {
    width: 100%;
    margin: 8px 0 0;
}
#bo_w .bo_w_flie .file_del {
    display: inline-block;
    margin-top: 8px;
    padding: 0;
    background: transparent;
    color: var(--color-text-sub);
    font-size: 12px;
    position: static;
}

#bo_w #captcha {
    margin: 0;
}

#bo_w .btn_confirm {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}
#bo_w .btn_submit,
#bo_w .btn_cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 30px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}
#bo_w .btn_submit {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
#bo_w .btn_submit:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}
#bo_w .btn_cancel {
    background: #fff;
    color: var(--color-text);
    border-color: var(--color-border);
}
#bo_w .btn_cancel:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* 임시저장 팝업 */
#autosave_wrapper {
    position: relative;
}
#autosave_pop {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    width: 340px;
    max-height: 240px;
    z-index: 50;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    overflow: hidden;
}
#autosave_pop:before,
#autosave_pop:after {
    display: none;
}
#autosave_pop strong {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    font-size: 0;
}
#autosave_pop ul {
    margin: 0;
    padding: 8px 0;
    max-height: 180px;
    overflow-y: auto;
    list-style: none;
    border-bottom: 1px solid var(--color-border);
}
#autosave_pop li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    font-size: 13px;
}
#autosave_pop li:last-child {
    border-bottom: 0;
}
#autosave_pop a {
    flex: 1;
    color: var(--color-text);
    float: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#autosave_pop a:hover {
    color: var(--color-primary);
}
#autosave_pop span {
    flex-shrink: 0;
    margin-left: 10px;
    color: var(--color-text-sub);
    font-size: 11px;
    font-style: normal;
    font-family: 'Roboto', sans-serif;
    float: none;
}
#autosave_pop div {
    margin: 0 !important;
    text-align: center;
}
.autosave_close {
    width: 100%;
    height: 36px;
    background: #fff;
    color: var(--color-text-sub);
    border: 0;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}
.autosave_close:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}
.autosave_del {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url(./img/close_btn.png) no-repeat 50% 50%;
    text-indent: -9999px;
    overflow: hidden;
    margin-left: 8px;
}

/* ========== 반응형 ========== */
@media (max-width: 1023px) {
    /* :has() 미지원 환경/넓은 컬럼은 4컬럼이 너무 좁을 수 있음 */
    #bo_gall #gall_ul,
    #bo_gall #gall_ul:has(.col-gn-5),
    #bo_gall #gall_ul:has(.col-gn-6) {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 767px) {
    #bo_gall, #bo_v, #bo_w {
        margin: 16px auto 40px;
        padding: 0 12px;
    }

    #bo_gall #gall_ul,
    #bo_gall #gall_ul:has(.col-gn-3),
    #bo_gall #gall_ul:has(.col-gn-4),
    #bo_gall #gall_ul:has(.col-gn-5),
    #bo_gall #gall_ul:has(.col-gn-6) {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    #bo_gall .gall_text_href {
        padding: 12px 12px 4px;
    }
    #bo_gall .bo_tit {
        font-size: 13.5px;
    }
    #bo_gall .gall_info {
        padding: 0 12px 12px;
        font-size: 11.5px;
    }

    /* 게시판 검색 모달 */
    .bo_sch {
        width: 90%;
        max-width: 360px;
        left: 50%;
        margin-left: -45%;
    }

    /* 보기 페이지 */
    #bo_v_title .bo_v_tit {
        font-size: 19px;
    }
    #bo_v_info {
        align-items: flex-start;
    }
    #bo_v_top {
        margin-left: 0;
        width: 100%;
    }
    .bo_v_com {
        justify-content: flex-end;
    }
    #bo_v_con {
        font-size: 14px;
    }
    .bo_v_nb li {
        flex-wrap: wrap;
        gap: 4px 12px;
    }
    .bo_v_nb li .nb_tit {
        width: auto;
    }
    .bo_v_nb li a {
        flex: 1 0 100%;
        order: 3;
    }

    /* 글쓰기 */
    #bo_w .bo_w_info .frm_input {
        flex: 1 1 100%;
    }
    #bo_w .bo_w_tit .frm_input {
        padding-right: 14px;
    }
    #bo_w .bo_w_tit #btn_autosave {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 6px;
        width: 100%;
    }
    #autosave_pop {
        width: 100%;
        right: 0;
        left: 0;
    }
    #bo_w .btn_submit,
    #bo_w .btn_cancel {
        flex: 1;
        min-width: 0;
        padding: 0 12px;
        font-size: 14px;
    }

    /* 댓글 */
    #bo_vc article {
        gap: 10px;
        padding: 16px 0;
    }
    #bo_vc article .pf_img img {
        width: 34px;
        height: 34px;
    }
    .bo_vc_w textarea {
        font-size: 13px;
    }
    .bo_vc_w_wr {
        flex-direction: column;
        align-items: stretch;
    }
    .bo_vc_w .btn_confirm {
        justify-content: space-between;
    }
    .bo_vc_w .btn_submit {
        flex: 1;
    }
}

@media (max-width: 480px) {
    #bo_gall #gall_ul,
    #bo_gall #gall_ul:has(.col-gn-3),
    #bo_gall #gall_ul:has(.col-gn-4),
    #bo_gall #gall_ul:has(.col-gn-5),
    #bo_gall #gall_ul:has(.col-gn-6) {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
