* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #E8E8E8;
    font-family: "helvetica-neue-lt-pro","mgothic-210", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-optical-sizing: auto;
    width: 100%;
    overflow-x: hidden;
}

::selection {
    background-color: #070707;
    color: #e8e8e8;
}

p {
    margin: 0;
}

a {
    list-style: none;
    text-decoration: none;
    color: #070707;
}

ul, li{
    padding: 0;
    list-style: none;
}

img, video, iframe {
    display: block;
    max-width: 100%;
}

/* Structure */
#main-wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 30px;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

#wrap {
    width: 100%;
    display: flex;
    flex: 10;
    flex-direction: row;
    column-gap: 30px;
    align-items: flex-start;
}


/* Header (Sidebar) */
#header {
    display: flex;
    flex: 2.5;
    flex-direction: column;
    row-gap: 50px;
    align-items: flex-start;
    color: #070707;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.header-logo {
    width: 100%;
    max-width: 200px;
}

.header-logo img {
    width: 100%;
    height: auto;
}

/* .header-logo-text{
    font-family: neue-haas-grotesk-display-pr, sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 30px;
    color: #070707;
    letter-spacing: 5px;
} */

.header-line{
    background-color: #F3F3F3;
    width: 100%;
    height: 4px;
}

.header-nav {
    display: flex;
    flex-direction: column;
    font-size: 1rem;
}

.header-nav-kr {
    font-family: "mgothic-210", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.7;
    letter-spacing: -0.1px;
    word-spacing: 0.7px;
    /* word-break: keep-all; */
}

.header-nav-en {
    font-family: "neue-haas-grotesk-display-pro", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 1rem;
    line-height: 1.4;
    word-spacing: 0.5px;
    letter-spacing: -0.1px;
    word-break: keep-all;
}

.header-nav-link {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.header-nav-link a {
    color: #070707;
    transition: opacity 0.3s;
}

.header-nav-link a:hover {
    opacity: 0.7;
}


/* Main Grid Content */
#main-contain {
    flex: 9;
    width: 100%;
}

#main-nav ul{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 10px;
    margin: 0;
    margin-bottom: 50px;
    align-items: right;
    justify-content: right;
}

#main-nav a{
    font-family: "neue-haas-grotesk-display-pro", sans-serif;
    font-weight:400;
    font-style: normal;
    font-size: 1rem;
    line-height: 1.4;
    word-spacing: 0.5px;
    letter-spacing: -0.1px;
    color: #E8E8E8;
    padding: 7px;
    width: fit-content;
    background-color: #070707;
    transition: all 0.5s ease;
}

#main-nav a:hover{
    color: rgb(0, 255, 213);
}

#main-grid {
    /* display: grid;
    grid-template-columns: repeat(4 , 1fr);
    column-gap: 20px;
    row-gap: 30px;
    width: 100%; */
    column-count: 4;
    column-gap: 50px;
    width: 100%;
}

.grid-box {
    /* display: flex;
    flex-direction: column;
    width: 100%; */
    display: flex;
    flex-direction: column;
    width: 100%;
    break-inside: avoid;
    margin-bottom: 30px;
}

.grid-item {
    display: flex;
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

.grid-item a,
.grid-item iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s ease;
}

.grid-item:hover img {
    transform: scale(0.5);
}

/* Caption Style */
.grid-caption {
    display: inline-block;
    width: fit-content;
    background-color: #070707;
    color: #E8E8E8;
    padding: 5px 8px 5px 8px;
    font-family: "mgothic-210", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 0.8rem;
    line-height: 1.7;
    letter-spacing: -0.4px;
    word-spacing: 0.5px;
    word-break: keep-all;
}

.horzLine {
    height: 4px;
    background-color: #070707;
    align-self: stretch;
}

/* 홈 화면 수직선 */
#vertLine{
    width: 4px;
    background-color: #070707;
    align-self: stretch;
}

/* Footer */
#footer {
    width: 100%;
}

#footer a{
    text-decoration: underline;

}

#footer-list{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 30px;
    row-gap: 10px;
    justify-content: space-between;
    font-family: "neue-haas-grotesk-display-pr", "mgothic-210", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.7;
    letter-spacing: 0.01px;
    word-spacing: 0.2px;
    color: #070707;
}

#footer-list li {
    width: fit-content;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 3px;
}

#footer-list li:hover {
    background-color: #070707;
    color: #e8e8e8;
}

#footer-list li:hover a {
    color: #e8e8e8;
}

.en{
    font-family: "neue-haas-grotesk-display-pr", sans-serif;
    letter-spacing: 1px;
}

.header-logo-text a {
    color: #F3F3F3;
}


/* 2. Container (Title + Main Content) */
#container {
    flex: 9; 
    min-width: 0;
    display: flex;
    flex-direction: column;
    column-gap: 50px;
}

/* 2-1. Text Box (Title) */
#container-textBox {
    flex: 3;
    display: flex;
    flex-direction: column;
    min-width: 0;
    row-gap: 15px;
    height: fit-content;
    margin-bottom: 30px;
}

.container-maintext {
    font-family: "mgothic-210", sans-serif;
    font-weight: 900;
    font-style: normal;
    font-size: 1.618rem;
    color: #070707;
    letter-spacing: -0.2px;
    color: #e8e8e8;
    background-color: #070707;
    padding: 7px;
    width: fit-content;
}

.container-maintext p {
    margin: 0;
    line-height: 1;
}

.container-subtext {
    font-family: "neue-haas-grotesk-display-pr", "mgothic-210", sans-serif;
    font-weight: 900;
    letter-spacing: -0.3px;
    font-size: 1rem;
    color: #e8e8e8;
    background-color: #070707;
    padding: 7px;
    width: fit-content;
}

/* 2-2. Main Content (Slider + Description) */
.container-main {
    flex: 6; 
    min-width: 0;
    display: flex;
    flex-direction: column;
    row-gap: 30px;
}

.container-credit{
    font-family: "neue-haas-grotesk-display-pr", "mgothic-210", sans-serif;
    font-weight: 900;
    letter-spacing: -0.3px;
    font-size: 1rem;
    color: #e8e8e8;
    background-color: #070707;
    padding: 7px;
    width: fit-content;
}

.container-credit a{
    color: #e8e8e8;
    transition: all 0.5s ease;
}

.container-credit a:hover{
    color: rgb(0, 255, 213);
}

/* Slider Style */
.container-slider {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background-color: #070707;
    margin: 0 auto;
    overflow: hidden;
    width: 100%;
    margin-bottom: 30px;
}

.slider-content {
    outline: none;
}

.slider-content img {
    width: 100%;
}

.slick-dots li button:before {
    color: #fff;
}
.slick-dots li.slick-active button:before {
    color: #15D29C;
}

/* Captions */
.container-caption{
    width: 100%;
    display: flex;
    flex-direction: row;
    column-gap: 30px;
}

.captionKr, .captionEn {
    width: 40%;
    color: #070707;
}

.captionKr a, .captionEn a {
    text-decoration: underline;
}

.captionKr {
    font-family: "mgothic-210", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.7;
    letter-spacing: -0.1px;
    word-spacing: 0.7px;
    /* word-break: keep-all; */
}

.captionEn {
    font-family: "neue-haas-grotesk-display-pro", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 1rem;
    line-height: 1.4;
    word-spacing: 0.5px;
    letter-spacing: -0.1px;
    word-break: keep-all;
}

/* =========================================
   Responsive Design (Tablet & Mobile)
   ========================================= */

@media screen and (max-width: 1024px) {
    /* 좌우 2단 배열을 상하 세로 배열로 변경 */
    #wrap {
        flex-direction: column;
        row-gap: 40px;
    }

    #header {
        position: static; /* 스크롤 시 위로 같이 올라가도록 설정 */
        width: 100%;
        flex: none;
    }

    #vertLine {
        display: none;
    }

    #main-contain {
        flex: none;
        width: 100%;
    }

    #main-grid {
        column-count: 2;
        column-gap: 20px;
    }

    .container-caption {
        flex-direction: column;
        row-gap: 20px;
    }
    .captionKr, .captionEn {
        width: 100%;
        flex: none;
    }
}

@media screen and (max-width: 768px) {
    /* 모바일에서는 여백을 조금 더 타이트하게 조정 */
    #main-wrapper {
        padding: 15px;
    }

    #header {
        row-gap: 30px;
    }

    .header-nav-kr, .header-nav-en {
        font-size: 0.85rem;
    }

    #main-grid {
        column-count: 1;
    }

    #footer-list {
        flex-direction: column;
        row-gap: 15px;
    }
    
    #main-nav ul {
        margin-bottom: 30px;
        justify-content: flex-start; /* 모바일에서는 좌측 정렬이 읽기 편함 */
    }
}   