.works-body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
}

.works-nav-section {
    min-height: 100vh;
    height: auto;
    position: relative;
}

.works-nav-section .sticky-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.works-content {
    position: relative;
    min-height: 60vh;
    padding: 0 7%;
}

/* 필터 섹션 */
.works-filter-section {
    display: flex;
    justify-content: center;
    gap: 8vw;
    z-index: 1000;
}

.works-filter-item {
    position: relative;
    cursor: pointer;
    font-size: 1.53vw;
    letter-spacing: 3%;
    color: #A5A5A5;
    transition: color 0.3s ease;

    width: 16.63vw;
    height: 3.87vw;

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

.works-filter-item.active .filter-text {
    color: #000000;
    z-index: 10;
}

.works-filter-item.single-active .filter-icon {
    opacity: 1;
}

.works-filter-item .filter-icon {
    position: absolute;
    height: 3.87vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.filter-text {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

/* 게시글 그리드 */
.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.53vw;
    width: 100%;
}

.works-grid-item {
    position: relative;
    width: 100%;
    aspect-ratio: 850 / 478;
    overflow: hidden;
    background-color: #f0f0f0;
}

.works-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.works-grid-item {
    position: relative;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.works-grid-item:hover .work-overlay {
    opacity: 1;
}

.work-text-wrapper {
    text-align: center;
}

.work-title {
    color: #fff;
    font-size: 1.38vw;
    line-height: 1.94vw;
    font-weight: 400;
}

.work-year {
    color: #C0C0C0;
    font-size: 1.02vw;
    line-height: 1.94vw;
    font-weight: 500;
}


/* PC 상세 페이지 모달 */
.detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.detail-modal.active {
    opacity: 1;
    visibility: visible;
}

.detail-modal-content {
    position: relative;
    max-height: 90vh;
    max-width: 95vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-close {
    position: absolute;
    top: -3vw;
    right: 0;
    font-size: 3vw;
    color: #fff;
    cursor: pointer;
    z-index: 2001;
    transition: opacity 0.2s;
}

.detail-close:hover {
    opacity: 0.7;
}

.detail-image-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-image-container img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
}

/* 모바일 상세 페이지 */
.mobile-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 2000;
    display: none;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-detail-modal.active {
    display: flex;
}

.mobile-detail-header {
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.mobile-detail-close {
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 2001;
}

.mobile-detail-image-container {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.mobile-detail-image-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
}


@media (max-width: 768px) {
    .works-filter-section {
        gap: 0;
    }

    .works-filter-item {
        font-size: 14px;
        letter-spacing: 3%;

        width: 100%;
        height: 34.65px;

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

    .works-filter-item .filter-icon {
        height: 34.65px;
    }

    .works-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 1.53vw;
        width: 100%;
    }
}