@charset "utf-8";

/* ========================================
   협회소식 갤러리 스킨 - icia_news_gallery
   ======================================== */

/* 카테고리 필터 */
#bo_cate { margin: 0 0 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; padding: 0; margin: 0; list-style: none; }
#bo_cate li { display: inline-block; }
#bo_cate a { display: block; line-height: 28px; padding: 5px 18px; border-radius: 30px; border: 1px solid #dfc89a; color: #a88550; font-size: 13px; transition: all 0.2s; }
#bo_cate a:hover, #bo_cate a:focus, #bo_cate a:active { text-decoration: none; background: #a88550; color: #fff; }
#bo_cate #bo_cate_on { background: #a88550; color: #fff; font-weight: bold; border-color: #a88550; }

/* 체크박스 */
.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: 22px; color: #676e70; vertical-align: baseline; }
.chk_box input[type="checkbox"] + label span { position: absolute; top: 2px; left: 0; width: 16px; height: 16px; display: block; background: #fff; border: 1px solid #dfc89a; border-radius: 3px; }
.chk_box input[type="checkbox"]:checked + label span { background: url(./img/chk.png) no-repeat 50% 50% #a88550; border-color: #a88550; }
.all_chk.chk_box input[type="checkbox"] + label span { top: 0; left: 0; }

/* 목록 헤더 버튼 */
#bo_gall { }
#bo_gall h2 { margin: 0; padding: 0; width: 1px; height: 1px; font-size: 0; line-height: 0; overflow: hidden; }
#bo_btn_top { margin: 0 0 20px 0; display: flex; align-items: center; justify-content: space-between; }
#bo_list_total { font-size: 13px; color: #888; }
#bo_list_total span { color: #a88550; font-weight: bold; }

.btn_bo_user { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.btn_bo_user li { position: relative; }
.btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #d5c4ae; background: #fff; color: #a88550; font-size: 14px; transition: all 0.2s; cursor: pointer; text-decoration: none; }
.btn:hover { background: #a88550; color: #fff; border-color: #a88550; }
.btn_b01 { background: #fff; }
.btn_admin { background: #f0e8df; }
.more_opt { position: absolute; top: 40px; right: 0; background: #fff; border: 1px solid #e0d0bc; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); list-style: none; padding: 6px 0; min-width: 110px; z-index: 100; display: none; }
.more_opt li { padding: 0; }
.more_opt li a, .more_opt li button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 16px; font-size: 13px; color: #444; background: none; border: none; cursor: pointer; }
.more_opt li a:hover, .more_opt li button:hover { background: #f9f2eb; color: #a88550; }

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

/* 그누보드 col-gn 클래스 덮어쓰기 */
#gall_ul .gall_li {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
}

#gall_ul .box_clear { display: none; }

.gall_li .gall_box {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0 !important;
}
.gall_li .gall_box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 28px rgba(122,92,58,0.18);
}

/* 체크박스 오버레이 */
.gall_li .gall_chk {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

/* 썸네일 이미지 영역 */
.gall_li .gall_img {
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #f0ebe4;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gall_li .gall_img a {
    display: block;
    width: 100%;
    height: 100%;
}
.gall_li .gall_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.gall_li .gall_box:hover .gall_img img {
    transform: scale(1.05);
}
.gall_li .gall_img .no_image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #dfc89a;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    background: #f8f1e8;
}
.gall_li .gall_img .is_notice {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d4af7a, #a88550);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

/* 텍스트 영역 */
.gall_li .gall_con {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}
.gall_li .gall_text_href {
    margin: 0 0 10px 0;
    flex-grow: 1;
}
.gall_li .bo_cate_link {
    display: inline-block;
    font-size: 11px;
    color: #dfc89a;
    border: 1px solid #e8d8c4;
    border-radius: 3px;
    padding: 1px 7px;
    margin-bottom: 6px;
    text-decoration: none;
}
.gall_li .bo_tit {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #2c1e0f;
    line-height: 1.45;
    margin-bottom: 6px;
    word-break: keep-all;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-decoration: none;
}
.gall_li .bo_tit:hover { color: #a88550; }
.gall_li .bo_tit .new_icon {
    display: inline-block;
    width: 16px;
    line-height: 16px;
    font-size: 11px;
    color: #fff;
    background: #e8753a;
    text-align: center;
    border-radius: 3px;
    margin-left: 3px;
    font-weight: bold;
    vertical-align: middle;
}
.gall_li .bo_tit .hot_icon {
    display: inline-block;
    width: 16px;
    line-height: 16px;
    font-size: 10px;
    color: #fff;
    background: #c0392b;
    text-align: center;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 2px;
}
.gall_li .bo_cnt {
    display: block;
    font-size: 12px;
    color: #aaa;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 4px;
}
.gall_li .cnt_cmt {
    display: inline-block;
    background: #f0ebe4;
    color: #dfc89a;
    font-size: 10px;
    height: 15px;
    line-height: 15px;
    padding: 0 5px;
    border-radius: 2px;
    vertical-align: middle;
    margin-left: 2px;
}

/* 메타 정보 */
.gall_li .gall_info {
    font-size: 11px;
    color: #bbb;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #f0ebe4;
    padding-top: 10px;
    margin-top: 8px;
}
.gall_li .gall_info strong {
    color: #888;
    font-weight: 600;
}
.gall_li .gall_date, .gall_li .gall_view {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #bbb;
}

/* 현재 열람중 */
.gall_now .gall_box { border: 2px solid #dfc89a; }
.gall_now .bo_tit { color: #a88550; }

/* 현재 보기 강조 */
#bo_gall .gall_now .gall_text_href a { color: #a88550; }

/* 빈 목록 */
.empty_list {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0;
    color: #bbb;
    font-size: 15px;
}

/* ========================================
   페이지네이션
   ======================================== */
.pg_wrap { text-align: center; margin: 40px 0 20px; }
.pg_wrap a, .pg_wrap strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 2px;
    border-radius: 50%;
    font-size: 13px;
    color: #888;
    text-decoration: none;
    transition: all 0.2s;
}
.pg_wrap a:hover { background: #f0ebe4; color: #a88550; }
.pg_wrap strong { background: #a88550; color: #fff; font-weight: bold; }

/* ========================================
   목록 하단 버튼
   ======================================== */
.bo_fx { display: flex; justify-content: flex-end; margin: 10px 0; }
.bo_fx ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }

/* ========================================
   검색 영역
   ======================================== */
.bo_sch_wrap { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; }
.bo_sch { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; padding: 30px; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); width: 400px; z-index: 2; }
.bo_sch h3 { font-size: 18px; color: #2c1e0f; margin: 0 0 20px 0; }
.bo_sch select { height: 42px; padding: 0 12px; border: 1px solid #d5c4ae; border-radius: 8px; color: #555; font-size: 14px; margin-bottom: 10px; width: 100%; background: #fff; }
.sch_bar { display: flex; gap: 8px; }
.sch_input { flex: 1; height: 42px; padding: 0 14px; border: 1px solid #d5c4ae; border-radius: 8px; font-size: 14px; outline: none; }
.sch_input:focus { border-color: #dfc89a; }
.sch_btn { height: 42px; padding: 0 18px; background: #a88550; color: #fff; border: none; border-radius: 8px; font-size: 14px; cursor: pointer; }
.sch_btn:hover { background: #5a3c1a; }
.bo_sch_cls { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; background: none; border: none; font-size: 18px; color: #aaa; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.bo_sch_cls:hover { background: #f0ebe4; color: #a88550; }
.bo_sch_bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 1; }

/* ========================================
   게시물 읽기 뷰
   ======================================== */
#bo_v { max-width: 100%; }
#bo_v_title { font-size: 22px; font-weight: 700; color: #2c1e0f; margin: 0 0 16px 0; line-height: 1.4; border-bottom: 2px solid #dfc89a; padding-bottom: 16px; }
.bo_v_cate { display: inline-block; font-size: 12px; color: #dfc89a; border: 1px solid #e8d8c4; border-radius: 3px; padding: 2px 8px; margin-right: 8px; vertical-align: middle; font-weight: normal; }

#bo_v_info { margin-bottom: 20px; }
.profile_info { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0ebe4; }
.pf_img img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.profile_info_ct { font-size: 13px; color: #888; line-height: 1.8; }
.profile_info_ct strong { color: #555; margin-right: 8px; }
.profile_info_ct .if_date { margin-left: 8px; }

#bo_v_top { margin: 12px 0; }
.bo_v_com { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; justify-content: flex-end; }
.bo_v_com .btn { font-size: 13px; }

#bo_v_share { margin-bottom: 16px; }

#bo_v_img { margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
#bo_v_img img { max-width: 200px; border-radius: 8px; border: 1px solid #e8d8c4; }

#bo_v_con { line-height: 1.8; font-size: 15px; color: #333; }
#bo_v_con img { max-width: 100%; height: auto; border-radius: 8px; }

#bo_v_act { text-align: center; margin: 30px 0; display: flex; justify-content: center; gap: 12px; }
.bo_v_good, .bo_v_nogood { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; border-radius: 30px; font-size: 14px; text-decoration: none; transition: all 0.2s; }
.bo_v_good { background: #f0ebe4; color: #a88550; border: 1px solid #d5c4ae; }
.bo_v_good:hover { background: #a88550; color: #fff; }
.bo_v_nogood { background: #f9f9f9; color: #aaa; border: 1px solid #e0e0e0; }
.bo_v_nogood:hover { background: #888; color: #fff; }
.bo_v_good strong, .bo_v_nogood strong { font-size: 15px; }

/* 첨부파일 */
#bo_v_file { margin: 20px 0; padding: 16px; background: #faf6f1; border-radius: 8px; border: 1px solid #e8d8c4; }
#bo_v_file h2 { font-size: 14px; color: #a88550; margin: 0 0 12px 0; }
#bo_v_file ul { list-style: none; margin: 0; padding: 0; }
#bo_v_file li { padding: 8px 0; border-bottom: 1px solid #f0ebe4; display: flex; flex-direction: column; gap: 4px; }
#bo_v_file li:last-child { border-bottom: none; }
#bo_v_file a { color: #5a3c1a; font-size: 13px; text-decoration: none; }
#bo_v_file a:hover { color: #a88550; text-decoration: underline; }
.bo_v_file_cnt { font-size: 11px; color: #aaa; }

/* 관련 링크 */
#bo_v_link { margin: 20px 0; padding: 16px; background: #faf6f1; border-radius: 8px; border: 1px solid #e8d8c4; }
#bo_v_link h2 { font-size: 14px; color: #a88550; margin: 0 0 12px 0; }
#bo_v_link ul { list-style: none; margin: 0; padding: 0; }
#bo_v_link li { padding: 6px 0; }
#bo_v_link a { color: #5a3c1a; font-size: 13px; text-decoration: none; }
#bo_v_link a:hover { text-decoration: underline; }
.bo_v_link_cnt { font-size: 11px; color: #aaa; display: block; }

/* 이전/다음글 */
.bo_v_nb { list-style: none; margin: 30px 0 20px; padding: 0; border-top: 1px solid #e8d8c4; border-bottom: 1px solid #e8d8c4; }
.bo_v_nb li { display: flex; align-items: center; padding: 12px 0; gap: 12px; border-bottom: 1px solid #f0ebe4; }
.bo_v_nb li:last-child { border-bottom: none; }
.nb_tit { font-size: 12px; color: #dfc89a; font-weight: 600; white-space: nowrap; min-width: 55px; }
.bo_v_nb a { flex: 1; font-size: 14px; color: #555; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo_v_nb a:hover { color: #a88550; }
.nb_date { font-size: 12px; color: #aaa; white-space: nowrap; }

/* 댓글 영역 */
#bo_vc { margin: 30px 0 0; }

/* ========================================
   반응형
   ======================================== */
@media (max-width: 1024px) {
    #gall_ul { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
@media (max-width: 768px) {
    #gall_ul { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .gall_li .gall_img { height: 150px; }
    #bo_v_title { font-size: 18px; }
    .bo_sch { width: 90%; }
}
@media (max-width: 480px) {
    #gall_ul { grid-template-columns: 1fr 1fr; gap: 10px; }
    .gall_li .gall_img { height: 130px; }
    .gall_li .bo_tit { font-size: 13px; }
    #bo_btn_top { flex-direction: column; align-items: flex-start; gap: 10px; }
}
