/* =========================================================
   HAEDAM COMPANY / BUSINESS CONTENT PHOTO PATCH
   기존 onepage CSS를 덮어쓰지 않고 사진 영역만 추가
========================================================= */

/* -------------------------
   COMPANY
------------------------- */
#hdCompanyOnepage .hd-company-content-photo {
    margin: clamp(64px, 6vw, 96px) 0 0;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: clamp(34px, 5vw, 72px);
    align-items: center;
}
 
#hdCompanyOnepage .hd-company-content-photo--philosophy {
    grid-template-columns: minmax(300px, .65fr) minmax(0, 1.35fr);
}

#hdCompanyOnepage .hd-company-content-photo--philosophy .hd-company-content-photo-frame {
    grid-column: 2;
    grid-row: 1;
}

#hdCompanyOnepage .hd-company-content-photo--philosophy figcaption {
    grid-column: 1;
    grid-row: 1;
}

#hdCompanyOnepage .hd-company-content-photo-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e8e5df;
}

#hdCompanyOnepage .hd-company-content-photo-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 68%, rgba(0,0,0,.08));
}

#hdCompanyOnepage .hd-company-content-photo-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2,.8,.2,1);
}

#hdCompanyOnepage .hd-company-content-photo:hover img {
    transform: scale(1.025);
}

#hdCompanyOnepage .hd-company-content-photo figcaption {
    margin: 0;
}

#hdCompanyOnepage .hd-company-content-photo figcaption > span {
    display: block;
    color: #9c815c;
    font-family: "Outfit", "Pretendard", sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .15em;
}

#hdCompanyOnepage .hd-company-content-photo figcaption > strong {
    display: block;
    margin-top: 21px;
    color: #111;
    font-size: clamp(26px, 2.6vw, 40px);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -.055em;
    word-break: keep-all;
}

#hdCompanyOnepage .hd-company-content-photo figcaption > p {
    margin: 22px 0 0;
    color: #666;
    font-size: 18px;
    line-height: 1.9;
    word-break: keep-all;
}

/* -------------------------
   BUSINESS
------------------------- */
#hdBusinessOnepage .hd-business-content-photo {
    margin: clamp(68px, 7vw, 112px) 0 0;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr);
    gap: clamp(34px, 5vw, 78px);
    align-items: center;
}

#hdBusinessOnepage .hd-business-content-photo-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #e8e5df;
}

#hdBusinessOnepage .hd-business-content-photo-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 66%, rgba(0,0,0,.10));
}

#hdBusinessOnepage .hd-business-content-photo-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2,.8,.2,1);
}

#hdBusinessOnepage .hd-business-content-photo:hover img {
    transform: scale(1.025);
}

#hdBusinessOnepage .hd-business-content-photo figcaption {
    margin: 0;
}

#hdBusinessOnepage .hd-business-content-photo figcaption > span {
    display: block;
    color: #9c815c;
    font-family: "Outfit", "Pretendard", sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .15em;
}

#hdBusinessOnepage .hd-business-content-photo figcaption > strong {
    display: block;
    margin-top: 21px;
    color: #111;
    font-size: clamp(27px, 2.7vw, 42px);
    font-weight: 600;
    line-height: 1.42;
    letter-spacing: -.055em;
    word-break: keep-all;
}

#hdBusinessOnepage .hd-business-content-photo figcaption > p {
    margin: 22px 0 0;
    color: #666;
    font-size: 15px;
    line-height: 1.9;
    word-break: keep-all;
    font-size: 18px;
}

#hdBusinessOnepage .hd-business-content-photo + .hd-business-lcc-link {
    margin-top: clamp(52px, 5vw, 78px);
}

/* -------------------------
   RESPONSIVE
------------------------- */
@media (max-width: 900px) {
    #hdCompanyOnepage .hd-company-content-photo,
    #hdCompanyOnepage .hd-company-content-photo--philosophy,
    #hdBusinessOnepage .hd-business-content-photo {
        grid-template-columns: 1fr;
        gap: 27px;
    }

    #hdCompanyOnepage .hd-company-content-photo--philosophy .hd-company-content-photo-frame,
    #hdCompanyOnepage .hd-company-content-photo--philosophy figcaption {
        grid-column: auto;
        grid-row: auto;
    }

    #hdCompanyOnepage .hd-company-content-photo--philosophy figcaption {
        order: 2;
    }
}

@media (max-width: 760px) {
    #hdCompanyOnepage .hd-company-content-photo,
    #hdBusinessOnepage .hd-business-content-photo {
        margin-top: 54px;
    }

    #hdCompanyOnepage .hd-company-content-photo-frame {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    #hdBusinessOnepage .hd-business-content-photo-frame {
        aspect-ratio: 4 / 3;
    }

    #hdCompanyOnepage .hd-company-content-photo figcaption > strong,
    #hdBusinessOnepage .hd-business-content-photo figcaption > strong {
        font-size: 25px;
    }

    #hdCompanyOnepage .hd-company-content-photo figcaption > p,
    #hdBusinessOnepage .hd-business-content-photo figcaption > p {
        font-size: 14px;
    }
}
