@charset "utf-8";

/* =========================
   GALLERY FONT SIZE RESET
   다른 css 폰트크기 영향 차단
========================= */
.g5bm-gallery-wrap {
    font-size: 16px !important;
    line-height: 1.6 !important;
}

.g5bm-gallery-wrap *,
.g5bm-gallery-wrap input,
.g5bm-gallery-wrap textarea,
.g5bm-gallery-wrap select,
.g5bm-gallery-wrap button,
.g5bm-gallery-wrap a,
.g5bm-gallery-wrap span,
.g5bm-gallery-wrap div,
.g5bm-gallery-wrap p,
.g5bm-gallery-wrap strong,
.g5bm-gallery-wrap em,
.g5bm-gallery-wrap li {
    font-size: inherit !important;
    line-height: inherit !important;
}


.g5bm-gallery-wrap {
    width: 100%;
}

.g5bm-gallery-wrap .g5bm-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.g5bm-gallery-wrap .g5bm-search-box .g5bm-input {
    flex: 1 1 auto;
    min-width: 0;
}

.g5bm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.g5bm-gallery-card {
    position: relative;
    border: 1px solid #ececec;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.g5bm-gallery-card:hover {
    transform: translateY(-2px);
    border-color: #d9d9d9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.g5bm-gallery-check {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.g5bm-gallery-check input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.g5bm-gallery-thumb {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: #f7f7f7;
    overflow: hidden;
}

.g5bm-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.g5bm-gallery-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #f7f7f7 0%, #ededed 100%);
}

.g5bm-gallery-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #6b7280;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.g5bm-gallery-body {
    padding: 18px;
}

.g5bm-gallery-subject {
    align-items: flex-start;
    gap: 6px;
    min-height: 48px;
    color: #111;
    font-weight: 700;
    line-height: 1.5;
	text-align:center
}

.g5bm-gallery-subject span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.g5bm-gallery-comment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #4b5563;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    flex: 0 0 auto;
}

.g5bm-gallery-meta,
.g5bm-gallery-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    color: #666;
    font-size: 13px;
}

.g5bm-gallery-meta {
    margin-top: 12px;
}

.g5bm-gallery-bottom {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #f1f1f1;
}

.g5bm-gallery-hit,
.g5bm-gallery-num,
.g5bm-gallery-name,
.g5bm-gallery-date {
    display: inline-block;
}

.g5bm-gallery-empty {
    padding: 80px 20px;
    border: 1px solid #ececec;
    border-radius: 20px;
    background: #fff;
    text-align: center;
    color: #777;
    font-size: 15px;
}

.g5bm-gallery-bottom-area {
    margin-top: 28px;
}

@media (max-width: 1200px) {
    .g5bm-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .g5bm-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 767px) {
    .g5bm-gallery-wrap .g5bm-search-box {
        flex-direction: column;
        align-items: stretch;
    }

    .g5bm-gallery-wrap .g5bm-search-box .g5bm-btn {
        width: 100%;
    }

    .g5bm-gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .g5bm-gallery-card {
        border-radius: 16px;
    }

    .g5bm-gallery-body {
        padding: 16px;
    }

    .g5bm-gallery-bottom-area {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 12px;
		flex-direction: row;
    }

    .g5bm-gallery-bottom-area .g5bm-list-bottom-left,
    .g5bm-gallery-bottom-area .g5bm-list-bottom-center,
    .g5bm-gallery-bottom-area .g5bm-list-bottom-right {
        width: 100%;
        justify-content: stretch;
    }

    .g5bm-gallery-bottom-area .g5bm-btn {
        width: 100%;
    }
}

.g5bm-gallery-wrap .g5bm-board-head h2.g5bm-board-title {
    font-size: 30px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    margin: 0 0 8px !important;
}

@media (max-width: 767px) {
    .g5bm-gallery-wrap .g5bm-board-head h2.g5bm-board-title {
        font-size: 24px !important;
    }
}
