/* 공지사항 (커뮤니티형 규격) */
.board_gallery_wrap .notice_list { list-style: none; margin: 0 -20px 15px -20px; padding: 0; }
.board_gallery_wrap .notice_list .notice { border-bottom: 1px solid #f1f5f9; transition: background 0.2s; background: #fafbff; }
.board_gallery_wrap .notice_list .notice:hover { background: #f1f5ff; }
.board_gallery_wrap .notice_list .item_wrap { display: flex; align-items: center; padding: 10px 0; gap: 15px; }
.board_gallery_wrap .notice_list .info_area { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.board_gallery_wrap .notice_list .title_line { display: flex; align-items: center; gap: 4px; }
.board_gallery_wrap .notice_list .title_text { font-size: 15px; font-weight: 600; color: var(--point-color); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board_gallery_wrap .notice_list .title_text strong { font-weight: 800; }
.board_gallery_wrap .notice_list .notice_label { display: inline-flex; align-items: center; justify-content: center; height: 18px; padding: 0 6px; background: var(--point-color); color: #fff; border-radius: 3px; font-size: 10px; font-weight: 800; }
.board_gallery_wrap .notice_list .cmt_count { display: inline-flex; align-items: center; justify-content: center; height: 18px; min-width: 18px; padding: 0 5px; background: var(--point-color); color: #fff; border-radius: 3px; font-size: 10px; font-weight: 800; line-height: 1; position: relative; top: -1px; box-sizing: border-box; }
.board_gallery_wrap .notice_list .n_icon { display: inline-flex; align-items: center; justify-content: center; height: 18px; min-width: 18px; padding: 0 5px; background: #ef4444; color: #fff; border-radius: 3px; font-size: 10px; font-weight: 800; line-height: 1; position: relative; top: -1px; box-sizing: border-box; }

@media screen and (max-width: 768px) {
    .board_gallery_wrap .notice_list .n_icon { padding: 0 6px 1px 4px !important; }
}

/* 갤러리 래퍼 및 그리드 */
.board_gallery_wrap {
    margin: 30px 0;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 모바일 여백 조정 */
@media screen and (max-width: 768px) {
    .board_gallery_wrap {
        padding: 0 15px;
    }
    .board_gallery_wrap .notice_list { margin-left: -15px; margin-right: -15px; }
}

.gallery_list {
    display: grid !important;
    gap: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    grid-template-columns: repeat(var(--pc-cols, 4), 1fr) !important;
}

@media screen and (max-width: 1024px) {
    .gallery_list {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }
}

@media screen and (max-width: 768px) {
    .gallery_list {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 12px !important;
    }
}

/* 개별 카드 아이템 */
.gallery_item {
    background: #fff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid #e1e4e8 !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gallery_item:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 24px rgba(0,0,0,0.1) !important;
}

/* 섬네일 영역 */
.thumbnail_area {
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f8f9fa !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    border-radius: 12px 12px 0 0 !important;
}

.thumb_link {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.thumb_wrap {
    width: 100% !important;
    aspect-ratio: var(--aspect-ratio, 16/9) !important;
    position: relative !important;
    margin: 0 !important;
}

.thumb_wrap .thumb {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}

/* NO IMAGE 영역 강화 */
.no_thumb {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    color: #94a3b8 !important;
}

.no_thumb_inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
}

.no_img_icon {
    width: 32px !important;
    height: 32px !important;
    opacity: 0.5 !important;
}

.no_thumb span {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    opacity: 0.7 !important;
}

/* 관리자 체크박스 플로팅 (우측 상단) */
.chk_area {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 10 !important;
}

.chk_area input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
    margin: 0 !important;
}

/* 좌측 상단 배지 그룹 */
.badge_group {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    display: flex !important;
    gap: 4px !important;
    z-index: 2 !important;
}

.category_badge, .vote_badge {
    padding: 3px 8px !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #fff !important;
    backdrop-filter: blur(4px) !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1.2 !important;
}

.category_badge {
    background: rgba(0,0,0,0.6) !important;
}

.vote_badge {
    background: rgba(225, 29, 72, 0.8) !important;
}

/* 정보 영역 */
.info_area {
    padding: 16px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.info_area .title {
    margin: 0 0 12px 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    color: #1a1d23 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    word-break: break-all !important;
    min-height: 2.8em !important;
}

.info_area .title a {
    color: inherit !important;
    text-decoration: none !important;
}

.info_area .cmt_count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 18px !important;
    min-width: 18px !important;
    padding: 0 5px !important;
    background: var(--point-color) !important;
    color: #fff !important;
    border-radius: 3px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    margin-left: 1px !important;
    box-sizing: border-box !important;
    position: relative !important;
    top: -1px !important;
}

.info_area .n_icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 18px !important;
    min-width: 18px !important;
    padding: 0 5px !important;
    background: #ef4444 !important;
    color: #fff !important;
    border-radius: 3px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    margin-left: 0 !important;
    animation: none !important;
    -webkit-animation: none !important;
    box-sizing: border-box !important;
    position: relative !important;
    top: -1px !important;
}

/* 작성자 및 메타 정보 */
.author_line {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: auto !important;
    padding-top: 12px !important;
    border-top: 1px solid #f1f3f5 !important;
}

.author_line .author {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13px !important;
}

.author_line .profile_img {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: #f1f5f9 !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.author_line .profile_img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.author_line .profile_img .no_img {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #cbd5e1 !important;
}

.author_line .profile_img .no_img svg {
    width: 12px !important;
    height: 12px !important;
}

.author_line .nick {
    color: var(--text-sub) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.author_line .date {
    font-size: 12px !important;
    color: var(--text-mute) !important;
}

.stats_line {
    margin-top: 8px !important;
    display: flex !important;
    gap: 12px !important;
    font-size: 12px !important;
    color: var(--text-mute) !important;
}

.no_documents {
    padding: 80px 0 !important;
    text-align: center !important;
    color: #adb5bd !important;
    border: 2px dashed #e9ecef !important;
    border-radius: 12px !important;
}
