/* =========================
   General Reset & Typography
   ========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    background-color: #fff;
    padding: 40px;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s ease;
}

a:hover {
    color: #999;
}

/* =========================
   Header Layout
   ========================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.logo {
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    font-size: 13px;
}

/* Active navigation link */
nav ul li a.active {
    text-decoration: underline;
}

/* =========================
   Language Switch
   ========================= */
.lang-switch {
    margin-left: 20px;
    color: #ccc;
}

.lang-switch a.active {
    color: #333;
    font-weight: bold;
}

/* =========================
   Works Grid (무조건 나란히 3줄 고정!)
   ========================= */
.works-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* 칼같이 가로 3열로 쪼개기 */
    gap: 40px;                                        /* 사진들 사이의 간격 */
    width: 100% !important;
    max-width: 1200px;                                /* 가운데 정렬용 최대 너비 */
    margin: 0 auto !important;                        /* 화면 정중앙 배치 */
}

.work-item {
    display: block !important;                        /* 세로 쪼개짐 방지 무력화 */
    width: 100% !important;
}

/* Image Placeholder (기존 padding-bottom 66.66% 제거) */
.image-placeholder {
    width: 100%;
    background-color: transparent;
    margin-bottom: 12px;
    overflow: hidden;
}

/* 사진 원래 비율 그대로 가로에 맞춰 자연스럽게 흐르도록 설정 */
.image-placeholder img {
    width: 100%;
    height: auto;             /* 원본 비율 유지 */
    display: block;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.work-item:hover .image-placeholder img {
    opacity: 1;
}

.work-title {
    font-size: 13px;
    font-weight: normal;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
}

.work-expanded {
    /* width: 80%;
    height: auto; */

    max-width: 80vw;      /* or 100vw if you want full width */
    max-height: 80vh;     /* fit within screen height */
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.contact p {
    margin-bottom: 10px;
}

/* =========================
   Footer
   ========================= */
footer {
    margin-top: 80px;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* =========================
   Mobile
   ========================= */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
    }

    nav ul {
        gap: 15px;
    }

    main {
        width: 100% !important;
        padding: 0 !important;
    }
    
    main div {
        width: 100% !important;
    }

    .work-expanded {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
}
