/* Work Detail Specific Styles */
.main-content{background: #000000b3;}
.work-detail-content {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.work-detail-header {
    margin-bottom: 60px;
}

.work-category {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.work-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    font-family: "Inter", "Noto Sans KR", sans-serif;
}

.work-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 40px;
}

.work-meta {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.work-meta-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.work-meta-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.work-meta-value {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 500;
}

.work-sections {
    margin-top: 60px;
}

.work-section {
    margin-bottom: 80px;
}

.work-section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 30px;
    font-family: "Inter", "Noto Sans KR", sans-serif;
}

.work-section-content {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.work-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Image Slider Styles */
.work-image-slider {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

/* Video Container Styles */
.work-video-container {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.work-video {
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    background: #000;
}

.video-description {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 10px;
    font-style: italic;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 500px; /* 고정 높이 설정 */
    overflow: hidden;
    border-radius: 12px;
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); */
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slider-track .work-image {
    flex: 0 0 100%;
    height: 100%;
    width: 100%;
    object-fit: cover; /* 비율 유지하면서 컨테이너 채우기 */
    object-position: center; /* 중앙 정렬 */
    margin-bottom: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    
}

.slider-track .work-image:hover {
    opacity: 0.9;
}

/* Image Lightbox */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #ffffff;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: rgba(255, 255, 255, 0.9);
    width: 30px;
    border-radius: 5px;
}

.work-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.work-image-grid img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.back-to-works {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 40px;
}

.back-to-works:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .work-detail-content {
        padding: 30px;
    }

    .work-title {
        font-size: 2.5rem;
    }

    .work-description {
        font-size: 1.1rem;
    }

    .slider-container {
        height: 400px; /* 태블릿에서 중간 높이 */
    }

    .work-video {
        /* 태블릿에서도 max-height 제한 제거 */
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .work-detail-content {
        padding: 20px;
    }

    .work-title {
        font-size: 2rem;
    }

    .work-description {
        font-size: 1rem;
    }

    .work-meta {
        gap: 20px;
    }

    .work-section-title {
        font-size: 1.5rem;
    }

    .work-section-content {
        font-size: 1rem;
    }

    .work-image-grid {
        grid-template-columns: 1fr;
    }

    .slider-container {
        height: 300px; /* 모바일에서 더 작은 높이 */
    }

    .work-video {
        /* 모바일에서도 max-height 제한 제거 */
    }

    .slider-nav {
        width: 40px;
        height: 40px;
    }

    .slider-nav.prev {
        left: 10px;
    }

    .slider-nav.next {
        right: 10px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .work-detail-content {
        padding: 15px;
    }

    .work-title {
        font-size: 1.75rem;
    }

    .work-meta {
        gap: 15px;
    }
}
