/* 뉴스형 */
.board-news-list {
    display: flex;
    flex-direction: column;
}
.board-news-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 8px;
    border-bottom: 1px solid #e5e7eb;
}
.board-news-image {
    display: block;
    flex: 0 0 180px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f4f6;
}
.board-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.board-news-content {
    flex: 1;
    min-width: 0;
}
.board-news-title {
    display: block;
    color: #111827;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
}
.board-news-summary {
    margin: 8px 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.board-news-meta,
.board-image-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9ca3af;
    font-size: 11px;
}
/* 이미지형 */
.board-image-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 12px 0;
}
.board-image-item {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}
.board-image-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.board-image-thumbnail {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f4f6;
}
.board-image-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.board-image-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #9ca3af;
    font-size: 12px;
}
.board-image-content {
    padding: 10px;
}
.board-image-title {
    font-weight: 600;
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.board-image-author {
    margin: 6px 0;
    color: #6b7280;
    font-size: 11px;
}
.board-blurred {
    filter: blur(12px);
}
.board-types-empty {
    grid-column: 1 / -1;
    padding: 40px 16px;
    text-align: center;
    color: #9ca3af;
}
@media (max-width: 1024px) {
    .board-image-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .board-news-item {
        gap: 10px;
        padding: 12px 4px;
    }
    .board-news-image {
        flex-basis: 110px;
    }
    .board-news-title {
        font-size: 14px;
    }
    .board-news-summary {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    .board-image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .board-image-content {
        padding: 8px;
    }
}
/* 이미지형 게시판 전용 그리드 */
.channel-post-list .channel-gallery {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    width: 100%;
    padding: 5px;   
    align-items: start;
}
/* 카드 */
.channel-post-list .channel-gallery-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}
/* 이미지 영역 */
.channel-post-list .channel-gallery-thumb {
    width: 100%;
    height: auto !important;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f4f6;
}
/* 이미지 크기 제한 */
.channel-post-list .channel-gallery-thumb img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
}
/* 카드 내부 정보 */
.channel-post-list .channel-gallery-body {
    padding: 10px;
}
.channel-post-list .channel-gallery-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
/* 태블릿 */
@media (max-width: 1024px) {
    .channel-post-list .channel-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
/* 모바일 */
@media (max-width: 640px) {
    .channel-post-list .channel-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
    .channel-post-list .channel-gallery-body {
        padding: 8px;
    }
}
/* ====================================
   뉴스형 게시판 - 포털 뉴스 카드
==================================== */
.channel-post-list .news-card-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}
.channel-post-list .news-card {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    transition: background .2s;
}
.channel-post-list .news-card:hover {
    background: #f8fafc;
}
.channel-post-list .news-card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 125px;
    padding: 18px 12px;
    text-decoration: none;
    color: inherit;
}
.channel-post-list .news-card-content {
    flex: 1;
    min-width: 0;
}
.channel-post-list .news-card-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 11px;
    color: #64748b;
}
.channel-post-list .news-card-badge {
    color: #2563eb;
    background: #eff6ff;
    border-radius: 4px;
    padding: 2px 6px;
    font-weight: 700;
}
.channel-post-list .news-card-time {
    color: #94a3b8;
}
.channel-post-list .news-card-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.channel-post-list .news-card-link:hover .news-card-title {
    color: #2563eb;
}
.channel-post-list .news-card-summary {
    margin: 7px 0 10px;
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.channel-post-list .news-card-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: #94a3b8;
    font-size: 11px;
}
.channel-post-list .news-card-author {
    color: #475569;
    font-weight: 500;
}
.channel-post-list .news-card-thumbnail {
    flex: 0 0 155px;
    width: 155px;
    height: 105px;
    overflow: hidden;
    border-radius: 8px;
    background: #f1f5f9;
}
.channel-post-list .news-card-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.channel-post-list .news-card-thumbnail img.is-spoiler {
    filter: blur(12px);
}
.channel-post-list .news-card-empty {
    padding: 45px 15px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}
/* 모바일 */
@media (max-width: 640px) {
    .channel-post-list .news-card-link {
        gap: 12px;
        padding: 14px 8px;
        min-height: 100px;
    }
    .channel-post-list .news-card-title {
        font-size: 14px;
    }
    .channel-post-list .news-card-summary {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    .channel-post-list .news-card-thumbnail {
        flex: 0 0 100px;
        width: 100px;
        height: 85px;
    }
    .channel-post-list .news-card-bottom {
        gap: 6px;
        font-size: 10px;
    }
}