@charset "utf-8";
/* SIR 지운아빠 (개정: Antigravity - Ultra Responsive & Premium Card Grid Skin) */

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

/* 게시판 버튼 */
/* 목록 버튼 */
#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 {}
#bo_w button.btn_submit {}
#bo_w fieldset .btn_submit {}
#bo_w .btn_cancel {}
#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 #captcha {}
#bo_w .tbl_frm01 #captcha input {}
*/
#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 h2 {width:1px;height:1px;font-size:0;line-height:0;overflow:hidden}
#bo_cate ul {margin-bottom:20px;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start}
#bo_cate li {}
#bo_cate a {display:block;padding:8px 16px;border:1px solid #e2e8f0;background:#f8fafc;color:#475569;border-radius:20px;font-size:13px;font-weight:500;text-align:center;transition:all 0.2s ease;cursor:pointer;text-decoration:none}
#bo_cate a:hover {background:#f1f5f9;color:#1e293b;border-color:cbd5e1}
#bo_cate #bo_cate_on {border:1px solid #3b82f6;background:#3b82f6;color:#fff;font-weight:600;box-shadow:0 4px 10px rgba(59, 130, 246, 0.2)}

.td_subject img {margin-left:3px}

/* =================================================================
   갤러리 목록 - 최신 반응형 그리드 & 프리미엄 카드 디자인
   ================================================================= */
#bo_gall h2 {margin:0;padding:0;width:1px;height:1px;font-size:0;line-height:0;overflow:hidden}

/* 프리미엄 4x4 그리드 레이아웃 (가로 4개 배치) */
#bo_gall #gall_ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 가로 4개 고정 배치 */
    gap: 24px; /* 4열 배치의 여유로움을 살려 간격을 24px로 확대 */
    margin: 25px 0 35px;
    padding: 0;
    list-style: none;
    width: 100%;
    box-sizing: border-box;
}

/* 프리미엄 고광택 카드 아이템 스타일 */
#bo_gall .gall_li {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px; /* 더 부드러운 라운드 처리 */
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(50, 50, 93, 0.05), 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    margin: 0 !important; /* float 마크업용 마진 전체 리셋 */
    width: auto !important; /* 고정 width 전체 리셋 */
    box-sizing: border-box;
}

/* 초고급 입체 호버 효과 */
#bo_gall .gall_li:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 20px 38px rgba(59, 130, 246, 0.15), 0 12px 12px rgba(0, 0, 0, 0.04);
}

/* 체크박스 절대 좌표 오버레이 */
#bo_gall .gall_checkbox {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}

#bo_gall .gall_con {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 이미지 및 썸네일 컨테이너 */
#bo_gall .gall_href {
    position: relative;
    width: 100%;
    height: 220px; /* 4열 배치에 맞는 황금비율의 시원시원한 이미지 높이 */
    overflow: hidden;
    background-color: #f8fafc;
    margin: 0 !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

#bo_gall .gall_href a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* 이미지 100% 꽉 차고 비율 유지, 마이크로 줌 효과 */
#bo_gall .gall_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

#bo_gall .gall_li:hover .gall_img {
    transform: scale(1.06);
}

/* 썸네일 부재 시 플레이스홀더 */
#bo_gall .no_image_placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
}

/* 공지사항 전용 대형 텍스트 블록 */
#bo_gall .gall_notice_block {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 현재 읽는 중인 글 강조 */
#bo_gall .gall_now {
    border: 2px solid #3b82f6 !important;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15) !important;
}

/* 텍스트 영역 배치 */
#bo_gall .gall_text_href {
    margin: 16px 16px 12px !important;
    padding: 0;
    width: auto !important; /* 고정폭 제거 */
}

/* 카테고리 뱃지 링크 */
#bo_gall .bo_cate_link {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb !important;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    margin-right: 6px;
    margin-bottom: 6px;
    text-decoration: none !important;
    vertical-align: middle;
    transition: background 0.2s;
}

#bo_gall .bo_cate_link:hover {
    background: #dbeafe;
}

/* 제목 텍스트 */
#bo_gall .gall_subject_title {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.45;
    text-decoration: none;
    word-break: break-all;
    vertical-align: middle;
    transition: color 0.2s;
}

#bo_gall .gall_subject_title:hover {
    color: #2563eb;
}

/* 댓글 배지 */
#bo_gall .gall_comment_badge {
    display: inline-block;
    background: #ff4d4f;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
    line-height: 1;
    vertical-align: middle;
}

/* 메타 정보(작성자, 작성일, 조회수 등) */
#bo_gall .gall_info_row {
    margin: 0 16px 8px !important;
    padding-bottom: 8px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}

#bo_gall .gall_info_row:last-child {
    border-bottom: none;
    margin-bottom: 16px !important;
}

#bo_gall .gall_info_row .gall_subject {
    color: #64748b;
    font-weight: 500;
    display: inline-block;
    width: auto !important; /* 고정 width 50px 해제 */
}

#bo_gall .gall_info_row .gall_value {
    color: #334155;
    font-weight: 500;
}

#bo_gall .gall_info_row .gall_value.text_good {
    color: #2563eb;
    font-weight: 600;
}

#bo_gall .gall_info_row .gall_value.text_nogood {
    color: #ef4444;
    font-weight: 600;
}

/* 공통 정렬 및 푸터 스타일링 */
.bo_fx {
    margin-bottom: 15px;
    zoom: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bo_fx:after {display:none;}
.bo_fx ul {margin:0;padding:0;list-style:none;display:flex;gap:6px;}

#bo_list_total {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

#bo_list_total span {
    color: #1e293b;
    font-weight: 600;
    margin-right: 6px;
}

/* 관리자/사용자 기능 버튼 스타일 프리미엄화 */
.btn_bo_user li a, .btn_bo_adm li input, .btn_bo_adm li a {
    display: inline-block;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn_bo_user li a.btn_b01 {
    background: #f1f5f9;
    color: #475569;
}

.btn_bo_user li a.btn_b01:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.btn_bo_user li a.btn_b02 {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn_bo_user li a.btn_b02:hover {
    background: #2563eb;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.btn_bo_user li a.btn_admin {
    background: #1e293b;
    color: #ffffff;
}

.btn_bo_user li a.btn_admin:hover {
    background: #0f172a;
}

.btn_bo_adm {
    display: flex;
    gap: 6px;
}

.btn_bo_adm li input {
    background: #fecaca;
    color: #dc2626;
}

.btn_bo_adm li input:hover {
    background: #fee2e2;
}

.bo_notice td {background:#f8fafc}
.bo_notice td a {font-weight:bold;color:#2563eb}
.td_num strong {color:#1e293b}
.bo_current {color:#ff3b30; font-weight:600;}

#bo_sch {
    margin: 30px auto;
    padding: 16px;
    text-align: center;
    background: #f8fafc;
    border-radius: 12px;
    max-width: 500px;
    display: flex;
    justify-content: center;
    gap: 8px;
    border: 1px solid #e2e8f0;
}

#bo_sch legend {display: none;}

#bo_sch select {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 8px;
    font-size: 13px;
    color: #334155;
    outline: none;
}

#bo_sch input.frm_input {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 8px;
    font-size: 13px;
    color: #334155;
    outline: none;
    flex-grow: 1;
}

#bo_sch input.btn_submit {
    padding: 8px 16px;
    background: #475569;
    color: #ffffff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

#bo_sch input.btn_submit:hover {
    background: #334155;
}

#bo_gall li.empty_list {
    grid-column: 1 / -1;
    padding: 100px 0;
    text-align: center;
    color: #94a3b8;
    font-size: 15px;
    font-weight: 500;
}

/* =================================================================
   모바일 & 태블릿 반응형 레이아웃 오버라이드
   ================================================================= */
@media (max-width: 1200px) {
    #bo_gall #gall_ul {
        grid-template-columns: repeat(3, 1fr); /* 1200px 이하 중형 화면에서는 3열 배치 */
        gap: 20px;
    }
    #bo_gall .gall_href {
        height: 200px;
    }
}

@media (max-width: 768px) {
    #bo_gall #gall_ul {
        grid-template-columns: repeat(2, 1fr); /* 768px 이하 태블릿 환경에서는 2열 배치 */
        gap: 16px;
    }
    #bo_gall .gall_href {
        height: 160px;
    }
}

@media (max-width: 576px) {
    #bo_gall #gall_ul {
        grid-template-columns: repeat(2, 1fr); /* 576px 이하 모바일 화면에서는 실속 있는 2열 배치 */
        gap: 10px;
        margin: 12px 0 20px;
    }
    #bo_gall .gall_li {
        border-radius: 12px;
    }
    #bo_gall .gall_href {
        height: 110px; /* 모바일 전용 높이 축소 */
    }
    #bo_gall .gall_notice_block {
        font-size: 14px;
    }
    #bo_gall .gall_text_href {
        margin: 10px 10px 8px !important;
    }
    #bo_gall .gall_subject_title {
        font-size: 12px;
    }
    #bo_gall .gall_comment_badge {
        font-size: 9px;
        padding: 1px 4px;
        margin-left: 2px;
    }
    #bo_gall .gall_info_row {
        margin: 0 10px 6px !important;
        padding-bottom: 6px;
        font-size: 10px;
    }
    #bo_gall .gall_info_row:last-child {
        margin-bottom: 10px !important;
    }
    #bo_gall .bo_cate_link {
        font-size: 9px;
        padding: 1px 4px;
        border-radius: 4px;
        margin-right: 4px;
        margin-bottom: 4px;
    }
    .bo_fx {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .btn_bo_user {
        justify-content: flex-end;
    }
    #bo_list_total {
        text-align: left;
    }
}

/* =================================================================
   게시판 쓰기 / 읽기 / 댓글 등 기본 그누보드 스타일 유지 및 보정
   ================================================================= */
#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;top:24px;right:117px;padding:8px;width:350px;height:auto !important;height:180px;max-height:180px;border:1px solid #565656;background:#fff;overflow-y:scroll}
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:right}
#autosave_pop button {margin:0;padding:0;border:0;background:transparent}
#autosave_pop ul {margin:10px 0;padding:0;border-top:1px solid #e9e9e9;list-style:none}
#autosave_pop li {padding:8px 5px;border-bottom:1px solid #e9e9e9;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}
.autosave_close {cursor:pointer}
.autosave_content {display:none}

/* 게시판 읽기 */
#bo_v {margin-bottom:20px;padding-bottom:20px}

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

#bo_v_title {padding:10px 0;font-size:1.2em}

#bo_v_info {padding:0 0 10px;border-bottom:1px solid #ddd}
#bo_v_info h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#bo_v_info strong {display:inline-block;margin:0 15px 0 5px;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_file {}
#bo_v_file h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#bo_v_file ul {margin:0;padding:0;list-style:none}
#bo_v_file li {padding:0 10px;border-bottom:1px solid #eee;background:#f5f6fa}
#bo_v_file a {display:inline-block;padding:8px 0 7px;width:100%;color:#000;word-wrap:break-word}
#bo_v_file a:focus, #bo_v_file a:hover, #bo_v_file a:active {text-decoration:none}
#bo_v_file img {float:left;margin:0 10px 0 0}
.bo_v_file_cnt {display:inline-block;margin:0 0 3px 16px}

#bo_v_link {}
#bo_v_link h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#bo_v_link ul {margin:0;padding:0;list-style:none}
#bo_v_link li {padding:0 10px;border-bottom:1px solid #eee;background:#f5f6fa}
#bo_v_link a {display:inline-block;padding:8px 0 7px;width:100%;color:#000;word-wrap:break-word}
#bo_v_link a:focus, #bo_v_link a:hover, #bo_v_link a:active {text-decoration:none}
.bo_v_link_cnt {display:inline-block;margin:0 0 3px 16px}

#bo_v_top {margin:0 0 10px;padding:10px 0;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 {margin:0;padding:0;list-style:none}

#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 {margin:0;padding:0;list-style:none}

.bo_v_nb {float:left}
.bo_v_nb li {float:left;margin-right:5px}
.bo_v_com {float:right}
.bo_v_com li {float:left;margin-left:5px}

#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 {margin:0 0 10px;width:100%;overflow:hidden;zoom:1}
#bo_v_img:after {display:block;visibility:hidden;clear:both;content:""}
#bo_v_img img {margin-bottom:20px;max-width:100%;height:auto}

#bo_v_con {margin-bottom:30px;width:100%;line-height:1.7em;word-break:break-all;overflow:hidden}
#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}
#bo_v_act strong {color:#ff3061}
#bo_v_act_good, #bo_v_act_nogood {display:none;position:absolute;top:30px;left:0;padding:10px 0;width:165px;background:#ff3061;color:#fff;text-align:center}

#bo_v_sns {margin:0 0 20px;padding:0;list-style:none;zoom:1}
#bo_v_sns:after {display:block;visibility:hidden;clear:both;content:""}
#bo_v_sns li {float:left;margin:0 5px 0 0}

/* 게시판 댓글 */
#bo_vc {margin:0 0 20px;padding:20px 20px 10px;border:1px solid #e5e8ec;background:#f5f8f9}
#bo_vc h2 {margin-bottom:10px}
#bo_vc article {padding:0 0 10px;border-top:1px dotted #ccc}
#bo_vc header {position:relative;padding:15px 0 5px}
#bo_vc header .icon_reply {position:absolute;top:15px;left:-20px}
#bo_vc .sv_wrap {margin-right:15px}
#bo_vc .member, #bo_vc .guest, #bo_vc .sv_member, #bo_vc .sv_guest {font-weight:bold}
.bo_vc_hdinfo {display:inline-block;margin:0 15px 0 5px}
#bo_vc h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#bo_vc a {color:#000;text-decoration:none}
#bo_vc p {padding:0 0 5px;line-height:1.8em}
#bo_vc p a {text-decoration:underline}
#bo_vc p a.s_cmt {text-decoration:none}
#bo_vc_empty {margin:0;padding:20px !important;text-align:center}
#bo_vc #bo_vc_winfo {float:left}
#bo_vc footer {zoom:1}
#bo_vc footer:after {display:block;visibility:hidden;clear:both;content:""}

.bo_vc_act {float:right;margin:0;list-style:none;zoom:1}
.bo_vc_act:after {display:block;visibility:hidden;clear:both;content:""}
.bo_vc_act li {float:left;margin-left:5px}

#bo_vc_w {position:relative;margin:0 0 10px;padding:0 0 20px;border-bottom:1px solid #cfded8}
#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_sns {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 20px 0 0}
#bo_vc_sns input {margin:0 0 0 5px}
