/* 메인 상단 배너 s
PC·모바일 이미지 등록 규격: 257 × 90px
모바일 실제 출력: 약 178 × 62px (가로폭 360px 기준)
PC 가로 5개 / 모바일 가로 2개
*/
.banner_bbs_top_main {
    display:grid; margin-top:10px; margin-bottom:10px;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:4px;
    width:100%;
    height:auto;
    min-height:0;
    align-content:start;
}

.banner_bbs_top_main a,
.banner_bbs_top_main picture {
    display:block;
    min-width:0;
}

.banner_bbs_top_main img {
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:257/90;
    object-fit:fill;
}

@media screen and (max-width:768px) {
    .banner_bbs_top_main {
        margin-top:50px; margin-bottom:0px;
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}
/* 메인 상단 배너 e */

/* 메인 최신글 s */
.totoc_main_latest {
    width:100%;
    box-sizing:border-box;
    margin:16px 0 24px;
    text-align:left;
}

.totoc_main_image_section,
.totoc_main_list_section {
    min-width:0;
    border:1px solid #e5e5e5;
    border-radius:8px;
    background:#fff;
    padding:14px;
    box-sizing:border-box;
}

.totoc_main_image_section {
    margin-bottom:14px;
}

.totoc_main_section_head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:12px;
    padding-bottom:10px;
    border-bottom:2px solid #E84D37;
}

.totoc_main_section_head h2 {
    font-size:18px;
    line-height:1.4;
    font-weight:700;
    color:#222;
    margin:0;
    padding:0;
}

.totoc_main_more {
    flex-shrink:0;
    font-size:12px;
    color:#777;
    text-decoration:none;
}

.totoc_main_more:hover,
.totoc_main_image_item:hover,
.totoc_main_list_link:hover {
    color:#E84D37;
}

.totoc_main_image_grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
}

.totoc_main_image_item {
    display:block;
    min-width:0;
    color:#222;
    text-decoration:none;
    border:1px solid #e5e5e5;
    border-radius:6px;
    overflow:hidden;
}

.totoc_main_image_thumb {
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    aspect-ratio:3/2;
    overflow:hidden;
    background:#f5f5f5;
    color:#999;
}

.totoc_main_image_thumb img {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}

.totoc_main_image_title {
    padding:9px 8px;
    font-size:14px;
    font-weight:600;
    text-align:center;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.totoc_main_list_grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}

.totoc_main_list {
    margin:0;
    padding:0;
    list-style:none;
}

.totoc_main_list li {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    min-width:0;
    min-height:36px;
    border-bottom:1px solid #f0f0f0;
    margin:0;
    padding:6px 0;
    box-sizing:border-box;
}

.totoc_main_list li:last-child {
    border-bottom:0;
}

.totoc_main_list_link {
    display:flex;
    align-items:center;
    flex:1;
    min-width:0;
    gap:4px;
    font-size:14px;
    color:#333;
    text-decoration:none;
}

.totoc_main_list_subject {
    min-width:0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.totoc_main_comment,
.totoc_main_date {
    flex-shrink:0;
    font-size:12px;
}

.totoc_main_comment {
    color:#E84D37;
}

.totoc_main_date {
    color:#999;
}

.totoc_main_empty,
.totoc_main_list li.totoc_main_empty {
    display:block;
    grid-column:1/-1;
    padding:24px 0;
    color:#999;
    font-size:13px;
    text-align:center;
}

@media screen and (max-width:768px) {
    .totoc_main_latest {
        margin-top:10px;
    }

    .totoc_main_image_section,
    .totoc_main_list_section {
        padding:10px;
    }

    .totoc_main_section_head h2 {
        font-size:16px;
    }

    .totoc_main_image_grid {
        grid-template-columns:none;
        grid-auto-flow:column;
        grid-auto-columns:calc((100% - 6px) / 2);
        gap:6px;
        overflow-x:auto;
        scroll-snap-type:x mandatory;
        scrollbar-width:none;
    }

    .totoc_main_image_grid::-webkit-scrollbar {
        display:none;
    }

    .totoc_main_image_item {
        scroll-snap-align:start;
    }

    .totoc_main_image_title {
        font-size:13px;
    }

    .totoc_main_image_grid .totoc_main_empty {
        width:100%;
    }

    .totoc_main_list_grid {
        grid-template-columns:minmax(0,1fr);
        gap:10px;
    }
}
/* 메인 최신글 e */
