@charset "utf-8";
/*
2024-04-04 (주)파이브센스_FIVESENSES.Corp.

본 라이브러리(라이브러리 소스코드)는 (주)파이브센스의 자산입니다.
무단으로 외부로 유출 및 일시 반출을 할 경우 손해배상 책임 및 민사/형사적 책임이 있습니다.
*/

/* 타이틀 컨테이너 */
.main_gb15 .title_container {
    width: 100%;
    margin-bottom: 87px;
    text-align: center;
}

/* 타이틀 */
.main_gb15 .main_cont_title h2,
.main_gb15 .main_cont_title h2 p {
    display: inline-block;
    width: auto;
    color: #0c0c0c;
    font-size: 64px;
    font-weight: 700;
    word-break: keep-all;
    line-height: 84px;
}

.main_gb15 .gallery_list {
    display: flex;
    flex-direction: column;
    gap: 20px 0;
}
/* 데스크탑 기본 (먼저) */
.main_gb15 .board_list .gallery_row {
    --ar-wide: 1140 / 350;
    --ar-tall: 560 / 720;
    --ar-base: 560 / 350;

    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: row dense;
    gap: 20px;
}


.main_gb15 .board_list .gallery_row:nth-child(odd) .gallery_list_inner:nth-child(1) {
    grid-column: span 2;
}

.main_gb15 .board_list .gallery_row:nth-child(odd) .gallery_list_inner:nth-child(2) {
    grid-row: span 2;
}

.main_gb15 .board_list .gallery_row:nth-child(even) .gallery_list_inner:nth-child(1) {
    grid-row: span 2;
}

.main_gb15 .board_list .gallery_row:nth-child(even) .gallery_list_inner:nth-child(2) {
    grid-column: span 2;
}


.main_gb15 .board_list .gallery_row:nth-child(odd) .gallery_list_inner:nth-child(1) .thumb_container {
    aspect-ratio: var(--ar-wide);
}

.main_gb15 .board_list .gallery_row:nth-child(odd) .gallery_list_inner:nth-child(2) .thumb_container {
    aspect-ratio: var(--ar-tall);
}

.main_gb15 .board_list .gallery_row:nth-child(odd) .gallery_list_inner:nth-child(3) .thumb_container {
    aspect-ratio: var(--ar-base);
}

.main_gb15 .board_list .gallery_row:nth-child(odd) .gallery_list_inner:nth-child(4) .thumb_container {
    aspect-ratio: var(--ar-base);
}

/* 2번째 줄 */
.main_gb15 .board_list .gallery_row:nth-child(even) .gallery_list_inner:nth-child(1) .thumb_container {
    aspect-ratio: var(--ar-tall);
}

.main_gb15 .board_list .gallery_row:nth-child(even) .gallery_list_inner:nth-child(2) .thumb_container {
    aspect-ratio: var(--ar-wide);
}

.main_gb15 .board_list .gallery_row:nth-child(even) .gallery_list_inner:nth-child(3) .thumb_container {
    aspect-ratio: var(--ar-base);
}

.main_gb15 .board_list .gallery_row:nth-child(even) .gallery_list_inner:nth-child(4) .thumb_container {
    aspect-ratio: var(--ar-base);
}

/* 모바일 (나중, 991px 이하에서 위 규칙을 덮어씀) */
@media (max-width: 991px) {
    .main_gb15 .board_list .gallery_row {
        --ar-wide: 660 / 198;
        --ar-tall: 320 / 416;
        --ar-base: 320 / 198;

        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* 1번: 그룹마다 항상 배너 (2칸 전체) */
    .main_gb15 .board_list .gallery_row .gallery_list_inner:nth-child(1) {
        grid-column: span 2;
        grid-row: unset;
    }

    /* 홀수 그룹: 2번(왼쪽) 세로형 2행 → 3·4번은 자동으로 오른쪽에 스택 */
    .main_gb15 .board_list .gallery_row:nth-child(odd) .gallery_list_inner:nth-child(2) {
        grid-column: unset;
        grid-row: span 2;
    }

    /* 짝수 그룹: 3번을 왼쪽 열에 고정 → 4번이 오른쪽 열 세로형으로 배치됨 */
    .main_gb15 .board_list .gallery_row:nth-child(even) .gallery_list_inner:nth-child(1) {
        grid-column: 2;
        grid-row: 2 / span 2;
    }
    .main_gb15 .board_list .gallery_row:nth-child(even) .gallery_list_inner:nth-child(2) {
        grid-column: 1 / 3;
        grid-row: 1;
    }
    .main_gb15 .board_list .gallery_row:nth-child(even) .gallery_list_inner:nth-child(3) {  
        grid-column: 1;
        grid-row: 2;
    }
    .main_gb15 .board_list .gallery_row:nth-child(even) .gallery_list_inner:nth-child(4) {
        grid-column: 1;
        grid-row: 3;
    }

    .main_gb15 .board_list .gallery_row:nth-child(odd) .gallery_list_inner:nth-child(2) .thumb_container {
        aspect-ratio: var(--ar-tall);
    }

    /* 2번째 줄 */
    .main_gb15 .board_list .gallery_row:nth-child(even) .gallery_list_inner:nth-child(1) .thumb_container {
        aspect-ratio: var(--ar-tall);
    }

    .main_gb15 .board_list .gallery_row:nth-child(even) .gallery_list_inner:nth-child(2) .thumb_container {
        aspect-ratio: var(--ar-wide);
    }

    .main_gb15 .board_list .gallery_row:nth-child(even) .gallery_list_inner:nth-child(3) .thumb_container {
        aspect-ratio: var(--ar-base);
    }

    .main_gb15 .board_list .gallery_row:nth-child(even) .gallery_list_inner:nth-child(4) .thumb_container {
        aspect-ratio: var(--ar-base);

    }
}

.main_gb15 .board_list .gallery_list img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main_gb15 .move_link {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.main_gb15 .move_link .thumb_container {
    flex: 1;
    overflow: hidden;
}

.main_gb15 .move_link .thumb_container {
    aspect-ratio: 560 / 350;
    border-radius: 4px;
    overflow: hidden;
}


/* 게시판 썸네일 */
.main_gb15 .thumb_container .thumb {
    width: 100%;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.12, 0, 0.39, 0);
}

.main_gb15 .move_link.on .thumb{transform: scale(1.1);}


.main_gb15 .post_container {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    background-color: rgba(0,0,0,0.85);
    opacity: 0;
    visibility: hidden;
    transition: all .3s cubic-bezier(0.12, 0, 0.39, 0);;
}

.main_gb15 .post_container .post_subject {
    text-align: center;
    line-height: 1.38;
    font-size: clamp(20px, 1.35417vw, 26px);
    font-weight: 600;
    color: #fff;
}

.main_gb15 .post_container .post_content {
    margin-top: 10px;
    font-size: clamp(12px, 0.72917vw, 14px);
    line-height: 1.38;
    color: #fff;
} 
@media (hover: hover) and (pointer: fine) {
    .main_gb15 .move_link.on .post_container {
        opacity: 1;
        visibility: visible;
    }
}

.main_gb15 .gb15_more_btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0 5px;
    width: 155px;
    height: 55px;
    margin: 60px auto 0;
    border-radius: 13px;
    background: #f36f20;
    transition: all .3s ease-in-out;
}


.main_gb15 .gb15_more_btn:hover {
    background: #221e1f;
}

.main_gb15 .gb15_more_btn .see_more {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}

.main_gb15 .gb15_more_btn .arrow {
    position: relative;
    display: block;
    width: 13px;
    height: 13px;
}

.main_gb15 .gb15_more_btn .arrow::after {
    position: absolute;
    left: 0; 
    top: 2px; 
    content: '';
    width: 9px; 
    height: 9px; 
    border-top: 2px solid #fff; 
    border-right: 2px solid #fff; 
    transform: rotate(45deg); 
}


@media all and (max-width: 991px) {
    .main_gb15 .gallery_list {
        gap: 12px;
    }
    .main_gb15 .move_link .thumb_container {
        border-radius: 0px;
    }

    .main_gb15 .gb15_more_btn {
        width: 106px;
        height: 38px;
        margin: 35px auto 0;
        border-radius: 8px;
    }

    .main_gb15 .gb15_more_btn .see_more {
        font-size: 13px;
    }

    .main_gb15 .gb15_more_btn .arrow {
        width: 9px;
        height: 9px;
    }

    .main_gb15 .gb15_more_btn .arrow::after {
        top: 2px;
        width: 6px;
        height: 6px;
        border-top: 1px solid #fff;
        border-right: 1px solid #fff;
    }
   
}