@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@400;500;600&display=swap');

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.6;
}

ul {
    list-style: none;
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
header {
    padding: 60px 0 20px;
    margin-bottom: 20px;
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 36px;
    /* Adjusted size for Oswald */
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 44px;
    /* Adjust height to match text balance */
    width: auto;
}

nav ul {
    display: flex;
    gap: 40px;
}

nav a {
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
}

nav a.active {
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* Main Content */
main {
    min-height: 80vh;
    padding-bottom: 100px;
}

/* Section Titles */
.page-title {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 60px;
}

.work-detail .page-title {
    font-size: 20px;
    margin-bottom: 5px;
    /* Reduced from default to accommodate subtitle */
}

.work-detail .project-subtitle-ko {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
    font-weight: 400;
}

.work-detail .location-year {
    font-size: 13px;
}

/* Works Grid (Home) */
.works-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.work-item {
    display: flex;
    align-items: flex-start;
    /* Top alignment */
    cursor: pointer;
    width: 66%;
    /* margin: 0 auto; Removed to align left */
}

.work-image {
    width: 55%;
    /* Keep image width 55% relative to container? Or relative to screen? 
       Wait, previous step set .work-item width to 55%. 
       If we want side-by-side, we should probably increase .work-item width 
       back to something larger or 100%, and set image width to fixed or percentage.
       Let's assume the user wants the IMAGE to be 55% of the screen width?
       Or the whole row?
       Let's set .work-item width to 100% (or large enough) and keep .work-image width fixed/percent.
       Actually, let's keep .work-item flex container width e.g., 80%? 
       Let's stick to the prompt interpretation. 
       Let set .work-item width back to 100% or auto to fill container width, 
       then set .work-image to fixed width or percentage. 
    */
    width: 83%;
    /* 55% of total ~66%? No. 
       Let's simply set .work-image to a pixel width or flex-basis.
       Let's revert to: .work-item width 100% (flex container)
       .work-image width: 55vw (viewport width) or similar? 
       Let's try to match the previous visual size. 
       Previous visual size was "55% of container(1400px)".
    */
    aspect-ratio: 4/3;
    margin-bottom: 0;
    /* Remove bottom margin for side-by-side */
    margin-right: 20px;
    overflow: hidden;
    flex-shrink: 0;
}

.detail-image {
    width: 66%;
    /* Left aligned by default */
    background-color: #f0f0f0;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-item:hover .work-image img {
    transform: scale(1.03);
}

.work-info {
    display: flex;
    flex-direction: column;
    padding-top: 0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    /* Clean vertical layout */
}

.work-info h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    /* Spacing between lines in vertical mode */
}

.work-info p {
    font-size: 14px;
    color: #555;
    margin-bottom: 0;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid #eee;
    margin-top: 80px;
    font-size: 12px;
    color: #888;
}

/* About Page */
.about-section h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 30px;
}


.news-desc-ko {
    font-size: 13px;
    color: #999;
    margin-top: 5px;
    font-weight: 400;
}


/* Carousel */
.carousel-container {
    position: relative;
    width: 66%;
    /* Match original image width preference */
    margin-bottom: 60px;
    user-select: none;
}

.carousel-track {
    position: relative;
    width: 100%;
}

.detail-image {
    display: none;
    cursor: pointer;
    width: 100%;
    /* Fill container */
}

.detail-image img {
    width: 100%;
    height: 500px;
    /* Fixed height for consistency */
    object-fit: cover;
}

.detail-image.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: #fff;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 10px;
    z-index: 10;
    transition: color 0.3s ease;
}

.carousel-arrow:hover {
    color: #fff;
}

.carousel-arrow.prev {
    left: 10px;
}

.carousel-arrow.next {
    right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    header {
        padding: 40px 0;
    }

    .works-grid {
        grid-template-columns: 1fr;
    }
}