@charset "utf-8";

/* 게시판 페이지 레이아웃 (default.css overflow:hidden 등 보정) */
body.gc-board {
    overflow: auto !important;
    font-size: 16px;
    background: #fafaf8;
}

.gc-board-wrap {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 40px 80px;
    box-sizing: border-box;
}

body.gc-board #container_wr,
body.gc-board #container,
body.gc-board #wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#bo_gall.gc-gallery {
    width: 100% !important;
    max-width: 100% !important;
}

#bo_gall #bo_cate {
    margin: 0 0 24px;
    padding: 16px 20px;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 10px;
}

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

#bo_gall #bo_cate li {
    display: inline-block !important;
    width: auto !important;
    float: none !important;
    margin: 0;
    padding: 0;
}

#bo_gall #bo_cate a {
    display: inline-block !important;
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 999px;
    line-height: 1.4;
    color: var(--primary, #1565C0);
    background: #fff;
    border: 1px solid #bbdefb;
}

#bo_gall #bo_cate a:hover,
#bo_gall #bo_cate #bo_cate_on {
    background: var(--primary, #1565C0);
    color: #fff;
    border-color: var(--primary, #1565C0);
}

#bo_gall #bo_btn_top {
    margin-bottom: 20px;
    overflow: hidden;
}

#bo_gall #gall_ul.gall_row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
    width: 100%;
}

#bo_gall .gall_row .gall_li,
#bo_gall .gall_row .col-gn-2,
#bo_gall .gall_row .col-gn-3,
#bo_gall .gall_row .col-gn-4 {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
}

#bo_gall .gall_box {
    height: 100%;
    background: #fff;
    border: 1px solid #bbdefb;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

#bo_gall .gall_box:hover {
    box-shadow: 0 8px 24px rgba(21, 101, 192, 0.12);
}

#bo_gall .gall_img img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    background: #fff;
}

#bo_gall .gall_text_href .bo_tit {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: #1a1a1a;
    display: block;
    padding: 0;
}

#bo_gall .gall_text_href .bo_cate_link {
    font-size: 12px;
    color: var(--primary, #1565C0);
    margin-bottom: 6px;
}

#bo_gall .empty_list {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

@media (max-width: 992px) {
    #bo_gall #gall_ul.gall_row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .gc-board-wrap { padding: 32px 20px 60px; }
    #bo_gall #gall_ul.gall_row {
        grid-template-columns: 1fr;
    }
}
