@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&display=swap');

/* 기본 설정 */
*,
*::before,
*::after{
    box-sizing: border-box;
}

body{
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #111;
    background-color: #fff;
    line-height: 1.5;
}

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

/* 공통 레이아웃 */
.inner{
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

.section{
    padding: 60px 0;
}

.section-title{
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    text-transform: uppercase;
}

/* HEADER */
.site-header{
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #fff;
}

.site-header .inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo{
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-family: "Bodoni Moda", serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.main-nav{
    display: flex;
    gap: 28px;
    font-size: 13px;
    text-transform: uppercase;
}

.main-nav a{
    text-decoration: none;
    color: #000;
    position: relative;
    padding-bottom: 3px;
}

.main-nav a.active::after,
.main-nav a:hover::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #000;
}

/* INTRO */
.intro{
    padding: 80px 0 40px;
}
/*수정03*/
.intro p{
    font-size: 24px;
    font-weight: 400;
    max-width: 1120px;
}

/* CURRENT EXHIBITION 수정01*/
.current-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3개 가로 정렬 */
    gap: 20px;
}


/*수정02.current-item .image-wrap{
    background-color: #f5f5f5;
    overflow: hidden;
}*/

.current-item .image-wrap{
    background-color: #f5f5f5;
    overflow: hidden;
    aspect-ratio: 4 / 3;   /* 비율 고정 (예: 4:3) */
}

/* 현재 공통 img 설정을 덮어쓰기 */
.current-item .image-wrap img{
    width: 100%;
    height: 100%;
    object-fit: cover;     /* 이미지 꽉 채우기, 비율 유지하면서 잘라냄 */
    display: block;
}


.caption{
    font-size: 10px;
    margin-top: 8px;
    color: #555;
}

.caption-right{
    text-align: right;
}

.caption-right a{
    font-size: 11px;
    text-decoration: none;
    color: #000;
}

/* PAST EXHIBITION 메인 */
.past-main{
    background-color: #000;
    margin-top: 12px;
    margin-bottom: 40px;
    padding: 40px 0;
    text-align: center;
}

.past-title{
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 24px;
}

.past-main-image{
    max-width: 620px;
    margin: 0 auto;
}

/* PAST EXHIBITION 하단 그리드 */
.past-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.past-item .image-wrap{
    background-color: #f5f5f5;
}

/* ABOUT 섹션 */
.section-about{
    padding-bottom: 80px;
}

.about-layout{
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    gap: 40px;
    align-items: flex-start;
}

.about-button{
    border: 1px solid #000;
    background: transparent;
    padding: 6px 16px;
    font-size: 12px;
    cursor: pointer;
    margin-bottom: 16px;
}

.about-info{
    font-size: 11px;
    line-height: 1.7;
}

.about-hours{
    margin-top: 16px;
}

.about-image{
    background-color: #f5f5f5;
}

/* FOOTER */
.site-footer{
    border-top: 1px solid #eee;
    padding: 16px 0;
    font-size: 11px;
}

.site-footer .inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.to-top{
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #000;
    font-size: 18px;
}
/*수정*/
/* PROJECTS GRID */
.projects-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-item{
    width: 100%;
    aspect-ratio: 1 / 1; /* 정사각형 */
    overflow: hidden;
    background-color: #eee;
}

.project-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/*추가*/

/* 반응형 */
@media (max-width: 900px){
    .intro p{
        font-size: 17px;
    }

    .current-grid,
    .past-grid,
    .about-layout{
        grid-template-columns: 1fr;
    }

    .caption-right{
        text-align: left;
    }

    .site-header .inner{
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        height: auto;
        padding-top: 16px;
        padding-bottom: 16px;
    }
}

@media (max-width: 600px){
    .inner{
        padding: 0 16px;
    }

    .intro{
        padding-top: 56px;
    }

    .logo{
        font-size: 24px;
    }
}
