@charset "utf-8";

/* ========================================
   갤러리 게시판 전용 스타일
   - gallery- prefix로 완전 격리
   - 다른 CSS와 절대 충돌 없음
   - box-sizing: border-box 강제 적용
   ======================================== */

/* 갤러리 게시판 컨테이너 - border-box 강제 */
#bo_gall,
#bo_gall * {
    box-sizing: border-box !important;
}

/* 갤러리 메인 컨테이너 */
#bo_gall {
    margin: 0 auto;
    padding: 20px 0;
}

#bo_gall h2 {
    margin: 0;
    padding: 0;
    width: 1px;
    height: 1px;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

/* ========================================
   카테고리 네비게이션
   ======================================== */
#bo_cate {
    margin: 25px 0;
}

#bo_cate h2 {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

#bo_cate ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#bo_cate li {
    display: inline-block;
}

#bo_cate a {
    display: block;
    line-height: 28px;
    padding: 5px 15px;
    border-radius: 30px;
    border: 1px solid #d6e9ff;
    color: #6794d3;
    text-decoration: none;
    transition: all 0.3s ease;
}

#bo_cate a:focus,
#bo_cate a:hover,
#bo_cate a:active {
    text-decoration: none;
    background: #6699cc;
    color: #fff;
    border-color: #6699cc;
}

#bo_cate #bo_cate_on {
    z-index: 2;
    background: #6699cc;
    color: #fff;
    font-weight: bold;
    border: 1px solid #6699cc;
    box-shadow: inset 0 2px 5px rgba(102, 153, 204, 0.5);
}

/* ========================================
   게시판 상단 버튼 영역
   ======================================== */
#bo_btn_top {
    margin: 10px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

#bo_list_total {
    font-size: 15px;
    color: #4e546f;
    line-height: 1.5;
}

/* 갤러리 게시판 버튼 - style.css 오버라이드 */
#bo_gall .btn_bo_user,
#bo_btn_top .btn_bo_user,
.bo_fx .btn_bo_user {
    display: flex !important;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    float: none !important;
}

#bo_gall .btn_bo_user li,
#bo_btn_top .btn_bo_user li,
.bo_fx .btn_bo_user li {
    display: flex !important;
    width: auto !important;
    float: none !important;
    margin-left: 0 !important;
    background: none !important;
    text-align: left !important;
}

#bo_gall .btn_bo_user .btn,
#bo_btn_top .btn_bo_user .btn,
.bo_fx .btn_bo_user .btn,
#bo_gall .btn_bo_user a,
#bo_btn_top .btn_bo_user a,
.bo_fx .btn_bo_user a,
#bo_gall .btn_bo_user button,
#bo_btn_top .btn_bo_user button,
.bo_fx .btn_bo_user button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px 16px !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    color: #6b7280 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    white-space: nowrap;
    font-size: 14px !important;
    font-weight: 500;
}

#bo_gall .btn_bo_user .btn:hover,
#bo_btn_top .btn_bo_user .btn:hover,
.bo_fx .btn_bo_user .btn:hover,
#bo_gall .btn_bo_user a:hover,
#bo_btn_top .btn_bo_user a:hover,
.bo_fx .btn_bo_user a:hover,
#bo_gall .btn_bo_user button:hover,
#bo_btn_top .btn_bo_user button:hover,
.bo_fx .btn_bo_user button:hover {
    background: #f9fafb !important;
    border-color: #6699cc !important;
    color: #6699cc !important;
}

#bo_gall .btn_bo_user .btn_admin,
#bo_btn_top .btn_bo_user .btn_admin,
.bo_fx .btn_bo_user .btn_admin {
    background: #6699cc !important;
    border-color: #6699cc !important;
    color: #ffffff !important;
}

#bo_gall .btn_bo_user .btn_admin:hover,
#bo_btn_top .btn_bo_user .btn_admin:hover,
.bo_fx .btn_bo_user .btn_admin:hover {
    background: #5a8dc4 !important;
}

/* 뷰 페이지 버튼 오버라이드 */
#bo_v .btn_bo_user,
#bo_v_top .btn_bo_user,
.bo_v_com {
    display: flex !important;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    float: none !important;
}

#bo_v .btn_bo_user li,
#bo_v_top .btn_bo_user li,
.bo_v_com li {
    display: flex !important;
    width: auto !important;
    float: none !important;
    margin-left: 0 !important;
    background: none !important;
    text-align: left !important;
}

#bo_v .btn_bo_user .btn,
#bo_v_top .btn_bo_user .btn,
.bo_v_com .btn,
#bo_v .btn_bo_user a,
#bo_v_top .btn_bo_user a,
.bo_v_com a,
#bo_v .btn_bo_user button,
#bo_v_top .btn_bo_user button,
.bo_v_com button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px 16px !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    color: #6b7280 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    white-space: nowrap;
    font-size: 14px !important;
    font-weight: 500;
}

#bo_v .btn_bo_user .btn:hover,
#bo_v_top .btn_bo_user .btn:hover,
.bo_v_com .btn:hover,
#bo_v .btn_bo_user a:hover,
#bo_v_top .btn_bo_user a:hover,
.bo_v_com a:hover,
#bo_v .btn_bo_user button:hover,
#bo_v_top .btn_bo_user button:hover,
.bo_v_com button:hover {
    background: #f9fafb !important;
    border-color: #6699cc !important;
    color: #6699cc !important;
}

/* 스크랩 버튼 오버라이드 */
#bo_v_share .btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px 16px !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    font-size: 14px !important;
    font-weight: 500;
}

/* 댓글 버튼 오버라이드 */
.bo_vc_act .btn,
.bo_vc_act a,
.bo_vc_act button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 6px 12px !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    color: #6b7280 !important;
    cursor: pointer;
    text-decoration: none !important;
    white-space: nowrap;
    font-size: 13px !important;
    font-weight: 500;
}

.bo_vc_act .btn:hover,
.bo_vc_act a:hover,
.bo_vc_act button:hover {
    background: #f9fafb !important;
    border-color: #6699cc !important;
    color: #6699cc !important;
}

/* 댓글 작성 버튼 */
.bo_vc_w .btn_submit {
    padding: 10px 20px !important;
    height: auto !important;
    width: auto !important;
    line-height: normal !important;
    background: #6699cc !important;
    border: 1px solid #6699cc !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600;
    cursor: pointer;
}

.bo_vc_w .btn_submit:hover {
    background: #5a8dc4 !important;
    border-color: #5a8dc4 !important;
}

/* ========================================
   글쓰기 페이지 스타일
   ======================================== */
#bo_w {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

#bo_w h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 30px;
}

/* 글쓰기 폼 영역 */
.write_div {
    margin-bottom: 20px;
}

/* 인풋 필드 공통 스타일 */
#bo_w .frm_input,
#bo_w select,
#bo_w textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 15px;
    color: #1f2937;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

#bo_w .frm_input:focus,
#bo_w select:focus,
#bo_w textarea:focus {
    outline: none;
    border-color: #6699cc;
    box-shadow: 0 0 0 3px rgba(102, 153, 204, 0.1);
}

#bo_w .frm_input::placeholder {
    color: #9ca3af;
}

/* 반쪽 너비 인풋 */
#bo_w .half_input {
    width: calc(50% - 10px);
    display: inline-block;
    margin-right: 20px;
}

#bo_w .half_input:last-child {
    margin-right: 0;
}

/* 전체 너비 인풋 */
#bo_w .full_input {
    width: 100%;
}

/* 셀렉트 박스 */
#bo_w select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* 옵션 체크박스 */
.bo_v_option {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bo_v_option li {
    display: flex;
    align-items: center;
}

.bo_v_option li input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
}

.bo_v_option li label {
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 파일 업로드 */
#bo_w .frm_file {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
    cursor: pointer;
    font-size: 14px;
}

#bo_w .frm_file:hover {
    border-color: #6699cc;
    background: #ffffff;
}

/* 파일 삭제 체크박스 */
.file_del {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #6b7280;
}

.file_del input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    cursor: pointer;
}

/* 링크 입력 */
.bo_w_link label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.bo_w_link .fa {
    margin-right: 6px;
    color: #6699cc;
}

/* 제목 입력 영역 */
.bo_w_tit {
    position: relative;
}

#autosave_wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

#btn_autosave {
    padding: 10px 16px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

#btn_autosave:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

#autosave_pop {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    min-width: 300px;
}

#autosave_pop strong {
    display: block;
    margin-bottom: 12px;
    font-size: 16px;
    color: #1f2937;
}

#autosave_pop ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    max-height: 200px;
    overflow-y: auto;
}

#autosave_pop .autosave_close {
    width: 100%;
    padding: 8px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    cursor: pointer;
    font-size: 14px;
}

#autosave_pop .autosave_close:hover {
    background: #e5e7eb;
}

/* 글자수 카운트 */
#char_count_desc {
    padding: 12px;
    background: #f0f9ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    color: #1e40af;
    font-size: 14px;
    margin-bottom: 12px;
}

#char_count_wrap {
    margin-top: 8px;
    text-align: right;
    font-size: 14px;
    color: #6b7280;
}

#char_count {
    font-weight: 600;
    color: #6699cc;
}

/* 버튼 영역 */
.btn_confirm {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

#bo_w .btn_submit,
#bo_w .btn_cancel {
    padding: 14px 32px !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid;
}

#bo_w .btn_submit {
    background: #6699cc !important;
    border-color: #6699cc !important;
    color: #ffffff !important;
}

#bo_w .btn_submit:hover {
    background: #5a8dc4 !important;
    border-color: #5a8dc4 !important;
}

#bo_w .btn_cancel {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
    color: #6b7280 !important;
}

#bo_w .btn_cancel:hover {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
}

/* 레이블 */
#bo_w label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

#bo_w .sound_only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* 파일 업로드 영역 */
.bo_w_flie {
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
}

.file_wr {
    margin-bottom: 12px;
}

.lb_icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #6699cc;
    font-weight: 600;
}

/* 반응형 */
@media (max-width: 768px) {
    #bo_w .half_input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 12px;
    }

    #autosave_wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .btn_confirm {
        flex-direction: column;
    }

    #bo_w .btn_submit,
    #bo_w .btn_cancel {
        width: 100%;
    }
}

/* ========================================
   뷰 페이지 스타일
   ======================================== */
#bo_v {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 제목 영역 */
#bo_v header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #1f2937;
}

#bo_v_title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.4;
    margin: 0;
}

.bo_v_cate {
    display: inline-block;
    padding: 4px 12px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-right: 12px;
}

.bo_v_tit {
    display: inline;
}

/* 페이지 정보 섹션 */
#bo_v_info {
    margin-bottom: 30px;
}

#bo_v_info h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.profile_info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 20px;
}

.pf_img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.pf_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile_info_ct {
    flex: 1;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

.profile_info_ct strong {
    color: #1f2937;
    font-weight: 600;
    margin-right: 12px;
}

.profile_info_ct a {
    color: #6b7280;
    text-decoration: none;
}

.profile_info_ct a:hover {
    color: #6699cc;
}

.profile_info_ct .fa {
    margin-right: 4px;
}

.if_date {
    display: inline-block;
}

/* 버튼 영역 */
#bo_v_top {
    margin-bottom: 30px;
}

/* 본문 영역 */
#bo_v_atc {
    margin-bottom: 40px;
}

#bo_v_atc_title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

#bo_v_share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

#bo_v_share .btn {
    padding: 8px 16px !important;
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    color: #6b7280 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: all 0.2s ease;
}

#bo_v_share .btn:hover {
    background: #e5e7eb !important;
    border-color: #d1d5db !important;
}

/* 본문 컨텐츠 */
#bo_v_con {
    padding: 30px 0;
    line-height: 1.8;
    font-size: 16px;
    color: #1f2937;
    min-height: 300px;
}

#bo_v_con img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* 이미지 첨부 */
#bo_v_img {
    margin-bottom: 30px;
}

#bo_v_img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* 추천/비추천 */
#bo_v_act {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 40px 0;
    padding: 30px;
    background: #f9fafb;
    border-radius: 8px;
}

.bo_v_act_gng {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bo_v_good,
.bo_v_nogood {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #6b7280;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.bo_v_good:hover {
    border-color: #10b981;
    color: #10b981;
    background: #f0fdf4;
}

.bo_v_nogood:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

.bo_v_good .fa,
.bo_v_nogood .fa {
    font-size: 24px;
}

.bo_v_good strong,
.bo_v_nogood strong {
    font-size: 18px;
    font-weight: 700;
}

/* 첨부파일 */
#bo_v_file {
    margin: 30px 0;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
}

#bo_v_file h2 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

#bo_v_file ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#bo_v_file li {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

#bo_v_file li:last-child {
    border-bottom: none;
}

.view_file_download {
    color: #6699cc;
    text-decoration: none;
    font-weight: 500;
}

.view_file_download:hover {
    text-decoration: underline;
}

.bo_v_file_cnt {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #9ca3af;
}

/* 링크 */
#bo_v_link {
    margin: 30px 0;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
}

#bo_v_link h2 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

#bo_v_link ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#bo_v_link li {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

#bo_v_link li:last-child {
    border-bottom: none;
}

#bo_v_link a {
    color: #6699cc;
    text-decoration: none;
    font-weight: 500;
}

#bo_v_link a:hover {
    text-decoration: underline;
}

.bo_v_link_cnt {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #9ca3af;
}

/* 이전/다음글 */
.bo_v_nb {
    list-style: none;
    padding: 0;
    margin: 40px 0;
    border-top: 1px solid #e5e7eb;
}

.bo_v_nb li {
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

.bo_v_nb a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 500;
}

.bo_v_nb a:hover {
    color: #6699cc;
}

.nb_tit {
    display: inline-block;
    min-width: 80px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    margin-right: 12px;
}

.nb_date {
    float: right;
    color: #9ca3af;
    font-size: 14px;
}

/* 댓글 섹션 숨김 */
#bo_vc {
    display: none;
}

.cmt_btn {
    display: none;
}

/* 댓글 쓰기 영역 숨김 */
#bo_vc_w,
.bo_vc_w {
    display: none !important;
}

/* 댓글 0건 텍스트 숨김 */
.profile_info_ct a[href="#bo_vc"] {
    display: none;
}

/* 스크랩 버튼 숨김 */
#bo_v_share {
    display: none !important;
}

/* 반응형 */
@media (max-width: 768px) {
    #bo_v {
        padding: 20px 16px;
    }

    #bo_v_title {
        font-size: 22px;
    }

    .profile_info {
        flex-direction: column;
        align-items: flex-start;
    }

    #bo_v_act {
        flex-direction: column;
    }

    .nb_date {
        float: none;
        display: block;
        margin-top: 8px;
    }
}

/* ========================================
   전체 선택 체크박스
   ======================================== */
#gall_allchk {
    margin: 15px 0;
}

.selec_chk {
    position: static;
    width: auto;
    height: auto;
    opacity: 1;
    overflow: visible;
}

.chk_box {
    position: relative;
}

.chk_box input[type="checkbox"] + label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    color: #374151;
}

.chk_box input[type="checkbox"] + label span {
    display: none;
}

.chk_box input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ========================================
   갤러리 그리드 레이아웃
   ======================================== */
#gall_ul {
    display: flex;
    flex-wrap: wrap;
    margin: 20px -10px 0;
    padding: 0;
    list-style: none;
}

.gall_li {
    position: relative;
    padding: 0 10px;
    margin-bottom: 40px;
    float: left;
}

/* 컬럼 수별 너비 설정 */
.col-gn-1 {
    width: 100%;
}

.col-gn-2 {
    width: 50%;
}

.col-gn-3 {
    width: 33.33333333%;
}

.col-gn-4 {
    width: 25%;
}

.col-gn-5 {
    width: 20%;
}

.col-gn-6 {
    width: 16.66666667%;
}

/* 줄바꿈 처리 */
.box_clear {
    clear: both;
}

/* ========================================
   갤러리 아이템 박스
   ======================================== */
.gall_box {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gall_box:hover {
    border-color: #6699cc;
}

/* 현재 선택된 게시물 */
.gall_now .gall_box {
    border-color: #6699cc;
}

/* 체크박스 영역 */
.gall_chk {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
}

/* ========================================
   썸네일 이미지
   ======================================== */
.gall_img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-bottom: 1px solid #e5e7eb;
    overflow: hidden;
    background: #f3f4f6;
}

.gall_img a {
    display: block;
    width: 100%;
    height: 100%;
}

.gall_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gall_box:hover .gall_img img {
    transform: scale(1.05);
}

/* 이미지 없을 때 */
.gall_img .no_image,
.gall_img .is_notice {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
}

/* ========================================
   게시물 정보
   ======================================== */
.gall_text_href {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gall_text_href a {
    text-decoration: none;
}

.gall_date {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
    order: 1;
}

.bo_tit {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    order: 2;
}

.bo_tit:hover {
    color: #6699cc;
}

/* 아이콘들 */
.bo_tit .cnt_cmt {
    display: inline-block;
    background: #e9eff5;
    color: #6699cc;
    font-size: 11px;
    height: 18px;
    line-height: 18px;
    padding: 0 6px;
    border-radius: 4px;
    margin-left: 4px;
    font-weight: 600;
}

.bo_tit .new_icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 10px;
    color: #10b981;
    background: #d1fae5;
    text-align: center;
    border-radius: 4px;
    margin-left: 4px;
    font-weight: bold;
}

.bo_tit .hot_icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 10px;
    color: #fff;
    background: #ef4444;
    text-align: center;
    border-radius: 4px;
    margin-right: 4px;
    font-weight: bold;
}

.bo_tit .fa-lock {
    color: #9ca3af;
    font-size: 14px;
    margin-right: 4px;
}

/* 게시물 정보 (날짜, 조회수 등) - 숨김 */
.gall_info {
    display: none;
}

.gall_info strong {
    font-weight: 500;
}

.gall_view {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gall_option {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.gall_option strong {
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #6699cc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ========================================
   빈 목록
   ======================================== */
.empty_list {
    width: 100% !important;
    padding: 100px 20px !important;
    text-align: center !important;
    color: #9ca3af;
    font-size: 15px;
}

/* ========================================
   반응형
   ======================================== */
@media (max-width: 1024px) {
    .col-gn-4,
    .col-gn-5,
    .col-gn-6 {
        width: 33.33333333%;
    }
}

@media (max-width: 768px) {
    #bo_gall {
        padding: 15px 0;
    }

    #bo_btn_top {
        margin: 10px 0 15px;
    }

    #gall_ul {
        margin: 15px -8px 0;
    }

    .gall_li {
        padding: 0 8px;
        margin-bottom: 30px;
    }

    .col-gn-2,
    .col-gn-3,
    .col-gn-4,
    .col-gn-5,
    .col-gn-6 {
        width: 50%;
    }

    .gall_text_href {
        padding: 12px;
    }

    .bo_tit {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .col-gn-2,
    .col-gn-3,
    .col-gn-4,
    .col-gn-5,
    .col-gn-6 {
        width: 100%;
    }
}
