@charset "utf-8";
/* 갤러리 목록·글보기·글쓰기는 게시판 스킨(g7)과 같은 지면을 쓴다. */
@import url("../g7/style.css");

#bo_gall {
    position: relative;
    margin: 0 0 24px;
    width: 100% !important;
}
#bo_gall a { text-decoration: none; }

#bo_gall #gall_ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 28px 22px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}
#bo_gall .gall_li,
#bo_gall .gall_row [class*="col-gn-"] {
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}
#bo_gall .box_clear { clear: none; }
#bo_gall .gall_box {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    background: #fff;
    border: 1px solid rgba(28, 25, 21, .12);
    transition: border-color .25s ease;
}
#bo_gall .gall_box:hover { border-color: #1e4d6b; }
#bo_gall .gall_con {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}

#bo_gall .gall_img {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #f4f6f8;
}
#bo_gall .gall_img a,
#bo_gall .gall_img .no_image,
#bo_gall .gall_img .is_notice {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
#bo_gall .gall_img img,
#bo_gall .gall_img video {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform .45s ease;
}
#bo_gall .gall_box:hover .gall_img img { transform: scale(1.04); }
#bo_gall .gall_img .no_image,
#bo_gall .gall_img .is_notice {
    background: #f4f6f8;
    color: #6d675f;
    font-size:15px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
#bo_gall .gall_img .is_notice { color: #164e86; }

#bo_gall .gall_badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 4px 8px;
    background: #164e86;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1;
}
#bo_gall .gall_text_href { margin: 0; padding: 16px 18px 0; }
#bo_gall .bo_cate_link { margin-bottom: 8px; }
#bo_gall .bo_tit {
    display: -webkit-box;
    overflow: hidden;
    color: #141210;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -.02em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
#bo_gall .bo_tit:hover { color: #164e86; }
#bo_gall .gall_now .bo_tit { color: #164e86; }
#bo_gall .bo_cnt { display: none; }
#bo_gall .new_icon,
#bo_gall .hot_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    margin-left: 4px;
    padding: 0 4px;
    color: #fff;
    font-size:15px;
    font-weight: 700;
    vertical-align: middle;
}
#bo_gall .new_icon { background: #9d2c2c; }
#bo_gall .hot_icon { background: #8a5a12; }
#bo_gall .cnt_cmt {
    display: inline-block;
    margin-left: 4px;
    padding: 0 7px;
    background: #f6f8fb;
    color: #164e86;
    font-size:15px;
    font-weight: 700;
    vertical-align: middle;
}

#bo_gall .gall_info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: auto;
    padding: 10px 18px 16px;
    color: #6d675f;
    font-size:15px;
    line-height: 1.5;
}
#bo_gall .gall_info .gall_date,
#bo_gall .gall_info .gall_view { margin: 0; color: #6d675f; }
#bo_gall .gall_option {
    position: static;
    display: flex;
    gap: 12px;
    margin-top: 8px;
    color: #6d675f;
    font-size:15px;
}
#bo_gall .gall_option strong {
    background: transparent;
    padding: 0;
    box-shadow: none;
    font-weight: 700;
}

#bo_gall .gall_chk {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 0;
}
#bo_gall li.empty_list {
    grid-column: 1 / -1;
    padding: 80px 16px;
    border-top: 2px solid #1e4d6b;
    border-bottom: 1px solid rgba(28, 25, 21, .16);
    color: #6d675f;
    font-size: 15px;
    text-align: center;
}

#gall_allchk { display: flex; justify-content: flex-end; margin: 0 0 14px; }
#gall_allchk label { font-size: 15px; color: #6d675f; }

.selec_chk {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.chk_box input[type="checkbox"] + label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3a342c;
    cursor: pointer;
}
.chk_box input[type="checkbox"] + label span {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(28, 25, 21, .28);
    background: #fff;
}
.chk_box input[type="checkbox"]:checked + label span {
    border-color: #164e86;
    background: #164e86 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M2 6l3 3 5-6'/%3E%3C/svg%3E") center / 12px no-repeat;
}

#bo_gall .btn_bo_user li {
    float: none;
    width: auto;
    margin: 0;
    background: none;
    position: relative;
}
#bo_gall .btn_bo_user .btn,
#bo_gall .btn_bo_user .btn_b01,
#bo_gall .btn_bo_user .btn_admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(28, 25, 21, .12);
    background: transparent;
    color: #6d675f;
    font-size:15px;
}
#bo_gall .btn_bo_user .btn:hover {
    border-color: #164e86;
    color: #164e86;
    box-shadow: none;
}
#bo_gall .btn_bo_user a[title="글쓰기"] {
    border-color: #164e86;
    background: #164e86;
    color: #fff;
}
#bo_gall .btn_bo_user a[title="글쓰기"]:hover {
    border-color: #0e3458;
    background: #0e3458;
    color: #fff;
}

#bo_gall .pg_wrap {
    float: none;
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 36px 0 4px;
}
#bo_gall .pg { display: flex; align-items: center; justify-content: center; gap: 4px; }
#bo_gall .pg_page,
#bo_gall .pg_current {
    box-sizing: border-box;
    min-width: 36px;
    height: 36px;
    margin: 0;
    padding: 0 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #3a342c;
    font-size:15px;
    font-weight: 700;
    line-height: 36px;
}
#bo_gall .pg_current { background: #164e86; color: #fff; }
#bo_gall .pg_page:hover { background: rgba(22, 78, 134, .08); color: #164e86; }
#bo_gall .pg_start,
#bo_gall .pg_prev,
#bo_gall .pg_end,
#bo_gall .pg_next {
    position: relative;
    width: 36px;
    padding: 0;
    background: transparent !important;
    color: transparent;
}
#bo_gall .pg_start::before,
#bo_gall .pg_prev::before,
#bo_gall .pg_end::before,
#bo_gall .pg_next::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid #1e4d6b;
    border-right: 1.5px solid #1e4d6b;
}
#bo_gall .pg_prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
#bo_gall .pg_next::before { transform: translate(-70%, -50%) rotate(45deg); }
#bo_gall .pg_start::before { transform: translate(-10%, -50%) rotate(-135deg); box-shadow: -5px 5px 0 -1.5px #1e4d6b; }
#bo_gall .pg_end::before { transform: translate(-90%, -50%) rotate(45deg); box-shadow: 5px -5px 0 -1.5px #1e4d6b; }

#bo_v_share {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin: 4px 0 28px;
}
#bo_v_share a.btn,
#bo_v_share .btn_b03 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    height: 40px;
    min-width: 112px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid #164e86;
    border-radius: 0;
    background: #fff;
    color: #164e86;
    font-size:15px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
}
#bo_v_share a.btn i { font-size: 16px; line-height: 1; }
#bo_v_share a.btn:hover,
#bo_v_share .btn_b03:hover {
    background: #164e86;
    border-color: #164e86;
    color: #fff;
}

#bo_v_img {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 8px 0 8px;
    overflow: visible;
}
#bo_v_img a.view_image {
    display: block;
    max-width: 100%;
    margin: 0 auto 20px;
}
#bo_v_img img,
#bo_v_con img {
    display: block;
    width: auto;
    max-width: min(100%, 880px);
    height: auto;
    margin-left: auto;
    margin-right: auto;
}
#bo_v_con { text-align: left; }
#bo_v_con p { text-align: left; }

@media (max-width: 640px) {
    #bo_gall #gall_ul { gap: 28px; }
    #bo_gall .bo_tit { font-size: 15px; }
}
