@charset "utf-8";

/* 전체 영역 */
#before {
    --case-purple: var(--pointcolor2);
    --case-text: #252525;
    --case-muted: #f6f7f8;
    --case-line: #ececf0;

    position: relative;
    overflow: hidden;
    background: #fff;
    color: var(--case-text);
}

#before,
#before * {
    box-sizing: border-box;
}


/* 제목 */
#before .case-heading {
    margin: 0;
    color: var(--case-text);
    line-height: 1.4;
    letter-spacing: -1.5px;
}

/* 상단 도구 */
#before .case-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 32px;
}

/* 분류 버튼 */
#before .case-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

#before .case-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin: 0;
    padding: 0 21px;
    border: 0;
    border-radius: 999px;
    background: var(--case-muted);
    line-height: 1.3;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

#before .case-tab.is-active {
    background: var(--case-purple);
    color: #fff;
}

/* 더보기 및 화살표 */
#before .case-controls {
    display: flex;
    align-items: center;
    gap: 28px;
}

#before .moreBtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 42px;
    padding: 0 19px;
    border-radius: 999px;
    background: var(--case-muted);
    color: #333;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
}


#before .case-navigation {
    display: flex;
    align-items: center;
    gap: 18px;
}

#before .case-prev,
#before .case-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #333;
    font-family: Arial, sans-serif;
    line-height: 1;
    cursor: pointer;
    transition: opacity .2s;
}

#before .case-navigation .swiper-button-disabled,
#before .case-navigation.is-empty {
    opacity: .3;
    pointer-events: none;
}

#before .case-navigation .swiper-button-lock {
    display: none;
}

#before button:focus-visible,
#before .case-more:focus-visible {
    outline: 2px solid var(--case-purple);
    outline-offset: 4px;
}

/* 슬라이드 */
#before .case-content {
    margin-top: 62px;
}

#before .bfSwiper {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
}

#before .bfSwiper[hidden],
#before .case-empty[hidden] {
    display: none !important;
}

#before .bfSwiper .swiper-wrapper {
    align-items: stretch;
}

#before .case-slide {
    height: auto;
    min-width: 0;
}

#before .case-card {
    margin: 0;
}

/* 전후 사진 */
#before .case-images {
    overflow: hidden;
    border-radius: 16px;
    background: #ddd;
}

#before .case-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 726 / 400;
    overflow: hidden;
    background: #e8e8e8;
}

#before .case-photo-before {
    border-bottom: 2px solid #fff;
}

#before .case-photo > img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

/* BEFORE / AFTER 배지 */
#before .case-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 76px;
    min-height: 30px;
    padding: 6px 14px;
    border-radius: 999px;

    color: #fff;
    line-height: 1;
    pointer-events: none;
}



/* 카드 제목 */
#before .case-card-title {
    margin: 18px 0 0;
    color: #333;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -.6px;
    text-align: center;
    overflow-wrap: anywhere;
}

/* 하단 진행 표시줄 */
#before .case-progress {
    position: relative;
    inset: auto;
    width: 100%;
    height: 3px;
    margin-top: 58px;
    overflow: hidden;
    background: var(--case-line);
}

#before .case-progress .swiper-pagination-progressbar-fill {
    background: var(--case-purple);
}

/* 게시물 없음 */
#before .case-empty {
    margin: 0;
    padding: 90px 20px;
    border-radius: 16px;
    background: #f7f7f7;
    color: #777;
    line-height: 1.6;
    text-align: center;
}

/* 태블릿 */
@media (max-width: 1240px) {
    #before {
        padding: 75px 0 65px;
    }


    #before .case-content {
        margin-top: 45px;
    }

    #before .case-controls {
        gap: 16px;
    }
}

/* 모바일 */
@media (max-width: 768px) {
    #before {
        padding: 52px 0 45px;
    }

    #before .case-container {
        width: calc(100% - 40px);
    }

    #before .case-heading {
        letter-spacing: -1px;
        word-break: keep-all;
    }

    #before .case-toolbar {
        flex-wrap: wrap;
        gap: 20px;
        margin-top: 24px;
    }

    #before .case-tabs {
        gap: 8px;
    }

    #before .case-tab {
        min-height: 40px;
        padding: 0 17px;
    }

    #before .case-controls {
        justify-content: space-between;
        width: 100%;
    }

    #before .case-more {
        min-height: 36px;
        padding: 0 15px;
    }

    #before .case-navigation {
        gap: 10px;
    }

    #before .case-prev,
    #before .case-next {
        width: 30px;
        height: 36px;
    }

    #before .case-content {
        margin-top: 30px;
    }

    #before .case-images {
        border-radius: 12px;
    }

    #before .case-badge {
        bottom: 9px;
        left: 9px;
        min-width: 62px;
        min-height: 25px;
        padding: 5px 11px;
    }

    #before .case-card-title {
        margin-top: 14px;
    }

    #before .case-progress {
        margin-top: 35px;
    }
}