/* ==========================================================================
   [1] 기본 초기화 및 안티앨리어싱 사전 주입
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ★ 상단 여백 영역(20px)에 스크롤 진입 시 부드러운 불투명도 조절 Overlay */
.fog-overlay {
    position: fixed;
    top: 0;
    left: 320px;                    /* 사이드바 너비만큼 오른쪽에서 시작 */
    width: calc(100% - 320px); 
    height: 60px; /* 엄격하게 20px 영역 유지 */
    background: linear-gradient(to bottom,
     rgba(255,255,255,1) 0%, 
     rgba(255,255,255,1) 40%, 
     rgba(255,255,255,0) 100%);
    pointer-events: none;
    z-index: 50;
}

body {
    background-color: #ffffff;
    color: #000000;
    font-size: 1.125em;
    overflow-y: scroll; 
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: 0.06em;

    -webkit-text-size-adjust: none !important;
    -moz-text-size-adjust: none !important;
    text-size-adjust: none !important;

    opacity: 0;
    transition: opacity 0.5s ease; 

    word-break: keep-all;
    overflow-wrap: break-word;
}

body.typo-ready {
    opacity: 1;
}

/* 데스크톱(PC) 화면에서의 EN 버튼 스타일 */
.work-title {
    font-style: italic;
}

i {
    display: inline-block;
}

.lang-toggle-btn {
    position: static !important;
    display: block !important;   
    width: fit-content;
    margin-top: 5px;           
    font-size: 1em; 
    color: #000000;
    text-decoration: none; 
    letter-spacing: 0.06em;
    font-weight: normal;
    background-color: transparent; 
    padding-left: 0px;             
    z-index: 100; 

    text-decoration: underline;
    text-underline-offset: 3.5px;
    text-decoration-thickness: 0.8px;
}

.lang-toggle-btn:hover {
    opacity: 0.5;
}

/* ==========================================================================
   [2] 데스크톱 마스터 레이아웃 (PC 스크린 기준)
   ========================================================================== */
.master-viewport {
    display: flex;
    width: 100%;
    max-width: 1300px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    padding: 0 20px; 
    position: relative;
}

/* [SECTION 1] 좌측 타이틀 영역 */
.sidebar-left {
    position: sticky !important; 
    top: 20px;  
    left: 0; 
    width: 320px; 
    flex-shrink: 0; 
    white-space: nowrap;
    height: calc(100vh - 20px);
    border-right: none; 
    padding-top: 0px; 
    padding-right: 20px; 
    padding-bottom: 40px;
    background-color: #ffffff;
    z-index: 10;
}

.sidebar-left h1 {
    font-size: 1em; 
    font-weight: normal;
    line-height: 1.125em;
    margin-bottom: 25px;
}

/* 영문 페이지 h1 줄간격 */
[lang="en"] .sidebar-left h1 {
    line-height: 0.9em;
}

/* 우측 메인 영역 정밀 매칭 */
.main-content-right {
    flex: 1;
    margin-left: 0px !important; 
    padding-top: 15em; 
    padding-left: 20px; 
    padding-right: 10px;
    padding-bottom: 60px;
    overflow: visible; 
}

/* 내부 2열 분할 서브 그리드 판 */
.sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 0px 30px; 
    width: 100%;
}

/* [SECTION 2] 서문 스테이트먼트 영역 */
.statement-box {
    grid-column: 1 / span 2;
    font-size: 1em;
    text-align: left;
    padding-bottom: 0px !important; 
    margin-bottom: 80px; 
    width: 100%;
}

.statement-box p {
    margin-top: 0;
    padding-top: 0;
    line-height: 1.5em;
    margin-bottom: 1.5em;
}

/* 영문 페이지 서문 줄간격 */
[lang="en"] .statement-box p {
    line-height: 1.3em;
    margin-bottom: 1em;
}

.statement-box p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   [SECTION 3] 아티스트 통합 섹션 그리드 블록
   ========================================================================== */
.artists-section-block {
    grid-column: 1 / span 2;
    display: flex !important; 
    flex-direction: column !important;
    width: 100% !important;
    gap: 0px !important; 
    padding-bottom: 0px !important; 
    margin-bottom: 0px !important;
    border-top: 1.35px solid #000000 !important;
}

/* 개별 아티스트 행 */
.artist-card {
    /* ★ 수정: block으로 변경하여 하단 크레딧이 메인 영역 바로 아래 자연스럽게 위치하도록 설정 */
    display: block !important; 
    width: 100% !important;
    padding-top: 60px;
    padding-bottom: 60px;
    border-bottom: 0.75px solid #000000 !important;
}

.sub-text {
    grid-column: 1 / span 2;
    font-size: 0.85em;
    padding-left: 2em;
    text-indent: -0.5em;
    line-height: 1.3em !important;
    width: 100%;
    padding-bottom: 50px;

}
.artist-card:last-child {
    border-bottom: none !important;
}

/* ★ 신설: 스티키 고정 범위 가두리용 메인 본문 래퍼 */
.artist-main-body {
    display: grid !important;
    grid-template-columns: 3.5fr 6.5fr !important; 
    gap: 0px 40px; 
    width: 100% !important;
}

/* 좌측 열: 타이틀 및 사양정보 */
.artist-meta-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
    
    /* ★ 고정 기능 주입 */
    position: sticky !important;
    top: 137px !important;            
    height: fit-content !important;  
    
    /* ★ 수정: 크레딧 상단에서 자연스럽게 고정이 풀리므로, 중첩 방어용 흰색 가림막을 걷어내고 투명화 */
    background-color: transparent !important; 
    width: 100% !important;               
    z-index: 5 !important;               
    
    padding-bottom: 10px !important;
}

.artist-card h2 {
    font-size: 1em;
    font-weight: normal;
    line-height: 1.15em;
    text-align: left !important;
    margin-bottom: 0;
}

/* 영문 페이지 h2 줄간격 및 여백 */
[lang="en"] .artist-card h2 {
    line-height: 0.9em;
    padding-top: 0.2em;
}

.artist-specs {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9em;
    line-height: 1.15em;
    text-align: left;
}

/* 영문 페이지 스펙 줄간격 */
[lang="en"] .artist-specs {
    line-height: 0.9em;
}

/* 우측 열: 설명 본문, 이미지 */
.artist-content-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
}

.artist-card p {
    font-size: 1em;
    text-align: left;
    line-height: 1.5em;
    margin-top: 0;
}

/* 영문 페이지 본문 줄간격 */
[lang="en"] .artist-card p {
    line-height: 1.3em;
}

/* 이미지 박스 비례 설정 */
.artist-stamp-box {
    align-self: flex-start !important; 
    width: fit-content !important; 
    max-width: 420px !important;   
    height: auto !important;      
    margin: 0 !important; 
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important; 
}

.artist-stamp-box img {
    max-width: 100% !important;
    width: auto !important; 
    height: auto !important;
    max-height: 380px !important; 
    display: block;
    margin: 0 auto; 
}

/* 이미지 카피라이트 */
.image-copyright {
    width: 100% !important; 
    text-align: right !important; 
    margin-top: 3px !important;   
    font-size: 0.65em !important; 
    color: #000000;
    line-height: 1.15em;
    letter-spacing: 0.06em; 
}

/* 개별 작가 크레딧 조판 영역 (데스크톱 3열 전개) */
.artist-credits {
    grid-column: 1 / span 2 !important; 
    display: block !important;
    column-count: 3 !important;        
    column-gap: 40px !important;       
    column-fill: balance !important;
    width: 100%;
    font-size: 0.8em; 
    line-height: 2em;
    margin-top: 0px !important;       
    padding-top: 30px !important;
}

/* 영문 페이지 크레딧 줄간격 */
[lang="en"] .artist-credits {
    line-height: 1em;
}

[lang="en"] .artist-credit-group p {
    line-height: 1em;
}

.artist-credit-group {
    display: inline-block !important; 
    break-inside: avoid !important;
    -webkit-break-inside: avoid !important;
    /* line-height: 20em; */
    width: 100%;
    margin-bottom: 1em; 
}

.artist-credit-group:last-child {
    margin-bottom: 0;
}

.artist-credit-group .label {
    display: block;
    font-weight: normal;
    margin-bottom: 0;
    line-height: 0.8em;
}

.artist-credit-group p {
    font-size: 1em; 
    margin-left: 1em; 
    margin-bottom: 0;
    line-height: 1em;
}
.artist-credit-group p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   [SECTION 4] 안내 정보 섹션 블록
   ========================================================================== */
.info-block {
    grid-column: 1 / span 2; 
    border-top: 1.35px solid #000000; 
    border-bottom: none !important; 
    padding-top: 40px;                  
    margin-top: 0px;
    width: 100%;
}

.info-group {
    display: block;
    width: 100%;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 0.75px solid #000000;
}

.info-group:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.info-label {
    display: block;
    width: 100%; 
    font-size: 1em;
    font-weight: normal;
    color: #000000;
    margin-bottom: 0.5em; 
}

.info-content {
    display: block;
    width: 100%;
    font-size: 0.95em; 
    line-height: 1.125em; 
}

.info-content p {
    margin-top: 0;
    margin-bottom: 8px; 
    margin-left: 1.5em;
}

.info-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   [SECTION 5] 하단 크레딧 블록 - 데스크톱
   ========================================================================== */
.credit-block {
    grid-column: 1 / span 2;
    border-top: 1.35px solid #000000; 
    padding-top: 40px;             
    margin-top: 0px;
    font-size: 0.9em; 
    width: 100%;
    line-height: 1.15em;
}

[lang="en"] .credit-block {
    line-height: 0.875em;
}


.credits-columns {
    column-count: 4;          
    column-width: 200px;      
    column-gap: 30px;         
    column-fill: balance;     
    width: 100%;
}

.credit-group {
    display: inline-block;    
    break-inside: avoid;      
    width: 100%;
    margin-bottom: 1em;
    font-size: 0.9em;
}

.credit-group p {
    margin-left: 1em;
}

.credit-group .label {
    display: block;
    font-weight: normal;
}

/* 파트너 로고 리스트 */
.logo-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    display: flex; 
    flex-wrap: wrap;     
    align-items: center; 
    gap: 1em 1.5em; 
    width: 100%;
}

.logo-list li {
    display: block; 
    break-inside: avoid; 
    width: 90px;  
    height: 40px;  
}

.logo-list img {
    width: 100%;
    height: 100%;
    object-fit: contain;  
    object-position: center; 
    display: block;
    filter: grayscale(100%) opacity(75%);
}

.underline {
    text-decoration: underline;
    text-underline-offset: 3.5px;
    color: #000000;
    text-decoration-thickness: 0.75px;
}

.underline-ko {
    text-decoration: underline;
    text-underline-offset: 5px;
    color: #000000;
    text-decoration-thickness: 0.75px;
}


/* ==========================================================================
   [3] 모바일 환경 반응형 단독 레이아웃 리셋 (기존 기능 100% 보존)
   ========================================================================== */
@media (max-width: 900px) {
    .fog-overlay {
    position: fixed;
    top: 0;
    left: 0px;                    /* 사이드바 너비만큼 오른쪽에서 시작 */
    width: 100%;
    height: 30px; /* 엄격하게 20px 영역 유지 */
    background: linear-gradient(to bottom,
     rgba(255,255,255,1) 0%, 
     rgba(255,255,255,1) 40%, 
     rgba(255,255,255,0) 100%);
    pointer-events: none;
    z-index: 50;
}
    
    body {
        font-size: 1.16em !important; 
    }



    .master-viewport {
        display: flex;
        flex-direction: column; 
        padding: 0 20px; 
    }



    .sidebar-left {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        white-space: normal !important;
        border-right: none !important;
        padding-top: 20px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-bottom: 10px !important; 
    }
    



    .main-content-right {
        margin-top: 60%;
        margin-left: 0 !important;
        width: 100% !important;
        padding-top: 20px !important; 
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-bottom: 40px !important;
    }

    .sub-grid {
        grid-template-columns: 1fr;
        gap: 0px;
        width: 100%;
    }

    .statement-box {
        grid-column: 1 / span 1 !important;
        width: 100% !important;
        padding-bottom: 60px !important;
        margin-bottom: 60px !important;
        line-height: 1.5em;
    }

    .statement-box p {
        margin-bottom: 1.5em;
    }

    .artists-section-block {
        grid-column: 1 / span 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0px !important;
        width: 100% !important;
        border-bottom: none !important;
    }

    .artist-card {
        display: flex !important; 
        flex-direction: column !important;
        width: 100% !important;
        padding-top: 30px !important;
        padding-bottom: 40px !important;
    }

    /* ★ 핵심 모바일 방어: 메인 본문 래퍼 박스의 물리 구조를 투명화(가상 소멸)시켜 h2의 고정 바운더리를 카드 전체로 격상 */
    .artist-main-body {
        display: contents !important;
    }

    /* 모바일에서는 정해진 구조 재배치 플랫화 유지 */
    .artist-meta-col {
        display: contents !important;
    }

    /* 모바일 h2 단독 최상단 스티키 및 마스킹 */
    .artist-card h2 {
        order: 1 !important;                 
        position: sticky !important; 
        top: 10px !important;                    
        background-color: #ffffff !important; 
        z-index: 20 !important;               
        width: 100% !important;
        padding-top: 30px !important;
        padding-bottom:20px !important;
        margin-top: 0px !important;       
        margin-bottom: 120px;  
        text-align: left !important;
        overflow: visible !important;
    }

    .artist-card h2::after {
        content: '';
        position: absolute;
        top: 100%;
        left: -20px;
        right: -20px;
        height: 120px;
        background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
        pointer-events: none;
        z-index: 20;
    }

    .artist-specs {
        order: 1 !important;                  
        margin-bottom: 30px !important;
        text-align: left !important; 
        line-height: 1.15em;
        padding-top: 20px;
    }

    .artist-content-col {
        order: 2 !important; 
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .artist-stamp-box {
        order: 3 !important;
        align-self: center !important;
        width: 100% !important; 
        max-width: 100% !important; 
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important; 
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .artist-stamp-box img {
        width: 100% !important; 
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important; 
        object-fit: contain;
        object-position: center;
    }

    .image-copyright {
        text-align: right !important; 
        width: 100% !important;
    }

    /* 모바일 크레딧 2열 흐름 */
    .artist-credits {
        order: 3 !important;
        column-count: 2 !important; 
        column-gap: 20px !important;     
        column-fill: balance !important; 
        margin-top: 20px !important;
        width: 100% !important;
        padding-top: 15px !important;
    }

    .artist-credit-group {
        display: inline-block !important; 
        break-inside: avoid !important;
        -webkit-break-inside: avoid !important;
        width: 100% !important;
        margin-bottom: 0.8em !important; 
    }
    
    .artist-credit-group:last-child {
        margin-bottom: 0 !important;
    }

    .info-block {
        grid-column: 1 / span 1 !important;
        width: 100% !important;
        display: block !important;
    }

    .info-group {
        display: block !important; 
        width: 100% !important;
    }

    .info-label {
        display: block !important;
        width: 100% !important;
        margin-bottom: 6px !important;
    }

    .info-content {
        display: block !important;
        width: 100% !important;
    }

    .credit-block {
        grid-column: 1 / span 1 !important;
        width: 100% !important;
        display: block !important; 
        padding-top: 60px !important;
    }

    .credits-columns {
        display: block !important;
        float: none !important;
        column-width: auto !important; 
        column-count: 2 !important; 
        column-fill: balance !important;
        column-gap: 15px !important; 
        width: 100% !important;
    }

    .credit-group {
        display: block !important;
        display: inline-block !important; 
        break-inside: avoid !important;
        -webkit-break-inside: avoid !important;
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    .credit-group .label {
        display: block !important;
        margin: 0 0 3px 0 !important;
    }
    
    .credit-group p {
        display: block !important;
        margin-left: 1em; 
        margin-top: 0 !important;
    }

    .logo-list {
        gap: 15px 10px; 
    }
    
    .logo-list li {
        display: block; 
        break-inside: avoid; 
        width: 75px;  
        height: 30px;  
    }


    .lang-toggle-btn {
        position: static !important; 
        display: block !important; 
        width: fit-content !important;
        margin-top: 20px !important;  
        margin-bottom: 10px !important;
        padding-left: 0 !important;
        font-size: 1em !important;
        letter-spacing: 0.06em !important;
        text-decoration: underline;
        text-underline-offset: 3.5px;
        color: #000000;
        text-decoration-thickness: 0.8px;
    }
}