/* ==========================================================================
   Section 06
   ========================================================================== */

.section06 {
    width: 100%;

    padding:
        clamp(3rem, 3.65vw, 4.375rem)
        clamp(1rem, 12.5vw, 15rem);

    background: #EEFAFF;

    box-sizing: border-box;
    overflow: hidden;
}


/* ==========================================================================
   Section 06 전체 내부
   ========================================================================== */

.section06 > div:first-child {
    max-width: 1440px;
    width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: clamp(2rem, 2.55vw, 3.0625rem) !important;
}


/* ==========================================================================
   제목 영역
   ========================================================================== */

.section06 > div:first-child > div:first-child {
    width: 100% !important;

    display: flex !important;
    flex-direction: column !important;

    justify-content: center !important;
    align-items: flex-start !important;

    gap:
        clamp(1rem, 1.82vw, 2.1875rem) !important;

    box-sizing: border-box;
}


.section06 > div:first-child > div:first-child > div:first-child {
    width: auto !important;
    height: auto !important;

    color: #001E47 !important;

    font-size:
        clamp(2.5rem, 3.65vw, 4.375rem) !important;

    font-family: Inter, Pretendard, sans-serif !important;

    font-weight: 700 !important;

    line-height: 1.2 !important;

    word-break: keep-all;
}


.section06 > div:first-child > div:first-child > div:nth-child(2) {
    width: auto !important;
    height: auto !important;

    color: #777777 !important;

    font-size:
        clamp(1rem, 1.82vw, 2.1875rem) !important;

    font-family: Pretendard, sans-serif !important;

    font-weight: 500 !important;

    line-height: 1.5 !important;

    word-break: keep-all;
}


/* ==========================================================================
   페이지 이동 버튼
   ========================================================================== */

.portfolio-nav-box {
    display: flex !important;

    align-self: flex-end !important;

    gap: 0.75rem !important;

    margin-top: 0.5rem;
}


.portfolio-nav-btn {
    width: clamp(2.5rem, 2.5vw, 3rem);

    height: clamp(2.5rem, 2.5vw, 3rem);

    padding: 0;

    display: flex;

    justify-content: center;
    align-items: center;

    border-radius: 50%;

    border: 1px solid #DDDDDD;

    background-color: #FFFFFF;

    color: #001E47;

    font-size:
        clamp(1rem, 1.04vw, 1.25rem);

    font-family: Arial, sans-serif;

    font-weight: bold;

    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.2s ease-in-out,
        color 0.2s ease-in-out,
        border-color 0.2s ease-in-out;

    box-sizing: border-box;
}


.portfolio-nav-btn:hover:not(:disabled) {
    background-color: #001E47;

    color: #FFFFFF;

    border-color: #001E47;
}


.portfolio-nav-btn:disabled {
    opacity: 0.3;

    cursor: not-allowed;
}


/* ==========================================================================
   포트폴리오 컨테이너
   ==========================================================================

   중요:
   HTML 구조상 portfolio-container 하나 안에
   portfolio-img-box가 2개 존재합니다.

   각 portfolio-img-box = 카드 3개
   따라서 PC에서는

   portfolio-img-box 1
   [ 카드 ][ 카드 ][ 카드 ]

   portfolio-img-box 2
   [ 카드 ][ 카드 ][ 카드 ]

   형태로 표시합니다.
   */

.portfolio-container {
    width: 100% !important;

    height: auto !important;

    display: flex !important;

    flex-direction: column !important;

    justify-content: center !important;
    align-items: stretch !important;

    gap:
        clamp(2rem, 3vw, 3.75rem);

    box-sizing: border-box;
}


/* ==========================================================================
   한 줄 = 정확히 3개
   ========================================================================== */

.portfolio-img-box {
    width: 100% !important;

    height: auto !important;

    padding: 0 0 clamp(1.5rem, 2.08vw, 2.5rem) 0 !important;

    display: grid !important;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap:
        clamp(1rem, 1.04vw, 1.25rem);

    box-sizing: border-box;

    align-items: stretch;
}


/* ==========================================================================
   포트폴리오 카드
   ========================================================================== */

.portfolio-img {
    width: 100% !important;

    height: auto !important;

    aspect-ratio: 495 / 351;

    position: relative;

    background: #F5F5F5;

    overflow: hidden;

    border-radius:
        clamp(0.75rem, 0.83vw, 1rem);

    cursor: pointer;

    box-sizing: border-box;
}


.portfolio-img img {
    width: 100% !important;

    height: 100% !important;

    left: 0 !important;
    top: 0 !important;

    position: absolute !important;

    object-fit: cover;

    transition:
        transform 0.7s ease-in-out;
}


.portfolio-img:hover img {
    transform: scale(1.3);
}


/* ==========================================================================
   이미지 그라데이션
   ========================================================================== */

.img-gradient {
    width: 100%;

    height: 100%;

    left: 0;
    top: 0;

    position: absolute;

    background-image:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 38%,
            rgba(0, 0, 0, 0.90) 100%
        );

    pointer-events: none;

    z-index: 1;
}


/* ==========================================================================
   포트폴리오 제목
   ========================================================================== */

.portfolio-text01 {
    width: calc(100% - 3rem) !important;

    left: 1.5rem !important;

    top: auto !important;

    bottom: 3.25rem !important;

    position: absolute !important;

    display: flex;

    flex-direction: column;

    justify-content: center;

    color: #FFFFFF;

    font-size:
        clamp(0.9rem, 0.94vw, 1.125rem);

    font-family: Pretendard, sans-serif;

    font-weight: 700;

    line-height: 1.55;

    word-break: keep-all;

    z-index: 2;

    box-sizing: border-box;
}


/* ==========================================================================
   포트폴리오 주소 / 세대
   ========================================================================== */

.portfolio-text02 {
    width: calc(100% - 3rem) !important;

    left: 1.5rem !important;

    top: auto !important;

    bottom: 1.25rem !important;

    position: absolute !important;

    display: block; /* flex → block */

    color: #D8D8D8;

    font-size:
            clamp(0.7rem, 0.73vw, 0.875rem);

    font-family: Pretendard, sans-serif;

    font-weight: 700;

    line-height: 1.4;

    white-space: nowrap;       /* 줄바꿈 금지 */
    overflow: hidden;          /* 영역 밖 숨김 */
    text-overflow: ellipsis;   /* ... 표시 */

    z-index: 2;

    box-sizing: border-box;
}


/* ==========================================================================
   대형 PC
   ========================================================================== */

@media (min-width: 1441px) {

    .section06 {
        padding-left: 240px;
        padding-right: 240px;

        padding-top: 70px;
        padding-bottom: 70px;
    }


    .section06 > div:first-child {
        gap: 49px !important;
    }


    .section06 > div:first-child > div:first-child {
        gap: 35px !important;
    }


    .section06 > div:first-child > div:first-child > div:first-child {
        font-size: 70px !important;
        line-height: 85px !important;
    }


    .section06 > div:first-child > div:first-child > div:nth-child(2) {
        font-size: 35px !important;
        line-height: 28.8px !important;
    }


    .portfolio-container {
        gap: 0;
    }


    .portfolio-img-box {
        padding-bottom: 40px !important;

        gap: 15px;
    }


    .portfolio-img {
        aspect-ratio: auto;

        height: 280px !important;
    }


    .portfolio-text01 {
        width: 204px !important;

        left: 24px !important;

        bottom: 42px !important;

        top: auto !important;

        font-size: 18px;

        line-height: 28px;
    }


    .portfolio-text02 {
        width: 297px !important;

        left: 24px !important;

        bottom: 14px !important;

        top: auto !important;

        font-size: 14px;

        line-height: 20px;
    }


    .portfolio-nav-btn {
        width: 48px;
        height: 48px;

        font-size: 20px;
    }
}


/* ==========================================================================
   태블릿
   ========================================================================== */

@media (max-width: 1024px) {

    .section06 {
        padding-left: clamp(2rem, 6vw, 4rem);
        padding-right: clamp(2rem, 6vw, 4rem);
    }


    .portfolio-img-box {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 0.75rem;
    }


    .portfolio-img {
        aspect-ratio: 1.4 / 1;
    }


    .portfolio-text01 {
        width: calc(100% - 2rem) !important;

        left: 1rem !important;

        bottom: 2.5rem !important;

        font-size: 0.85rem;
    }


    .portfolio-text02 {
        width: calc(100% - 2rem) !important;

        left: 1rem !important;

        bottom: 0.75rem !important;

        font-size: 0.7rem;
    }
}


/* ==========================================================================
   모바일
   ========================================================================== */

@media (max-width: 767px) {

    .section06 {
        padding:
            3rem
            1.25rem;
    }


    .section06 > div:first-child {
        gap: 2rem !important;
    }


    .section06 > div:first-child > div:first-child {
        gap: 1rem !important;
    }


    .section06 > div:first-child > div:first-child > div:first-child {
        font-size:
            clamp(2rem, 10vw, 3rem) !important;

        line-height: 1.2 !important;
    }


    .section06 > div:first-child > div:first-child > div:nth-child(2) {
        font-size:
            clamp(0.9rem, 4vw, 1.2rem) !important;

        line-height: 1.5 !important;
    }


    .portfolio-nav-box {
        align-self: flex-start !important;

        margin-top: 0.5rem;
    }


    /*
       모바일:
       한 portfolio-img-box 안에서
       카드 1개씩 세로 배치
    */

    .portfolio-img-box {
        grid-template-columns: 1fr;

        gap: 1rem;

        padding-bottom: 1rem !important;
    }


    .portfolio-img {
        width: 100% !important;

        aspect-ratio: 495 / 351;

        height: auto !important;

        border-radius: 0.875rem;
    }


    .portfolio-text01 {
        width: calc(100% - 2rem) !important;

        left: 1rem !important;

        bottom: 3rem !important;

        font-size:
            clamp(0.85rem, 4vw, 1.1rem);

        line-height: 1.4;
    }


    .portfolio-text02 {
        width: calc(100% - 2rem) !important;

        left: 1rem !important;

        bottom: 1rem !important;

        font-size:
            clamp(0.7rem, 3vw, 0.9rem);

        line-height: 1.4;
    }
}


/* ==========================================================================
   작은 모바일
   ========================================================================== */

@media (max-width: 480px) {

    .section06 {
        padding:
            2.5rem
            1rem;
    }


    .portfolio-img-box {
        gap: 0.75rem;
    }


    .portfolio-img {
        aspect-ratio: 1.45 / 1;
    }


    .portfolio-text01 {
        bottom: 2.75rem !important;

        font-size: 0.85rem;
    }


    .portfolio-text02 {
        bottom: 0.85rem !important;

        font-size: 0.7rem;
    }
}