/* Zen Template — Work Detail Styles */

.work-detail {
    max-width: 960px;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: var(--spacing-2xl);
    transition: color 0.2s ease;
}

.back-link::before {
    content: '\2190';
    font-size: 16px;
}

.back-link:hover {
    color: var(--primary-color);
}

/* Work Header */
.work-header {
    margin-bottom: var(--spacing-2xl);
}

.work-title {
    font-size: 42px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
}

.work-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    font-size: 14px;
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
}

.work-metadata dt {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 2px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.work-metadata dd {
    color: var(--secondary-color);
}

/* Status badges */
.work-metadata dd[data-status="for_sale"] { color: #16A34A; font-weight: 500; }
.work-metadata dd[data-status="sold"] { color: #DC2626; font-weight: 500; }
.work-metadata dd[data-status="on_loan"] { color: #D97706; font-weight: 500; }
.work-metadata dd[data-status="nfs"] { color: var(--secondary-color); font-weight: 500; }

/* Work Images */
.work-images {
    margin-bottom: var(--spacing-2xl);
}

.featured-image {
    margin-bottom: var(--spacing-xl);
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    cursor: pointer;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.gallery-image {
    position: relative;
    background: var(--placeholder-bg);
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.gallery-image:hover img {
    opacity: 0.92;
}

/* Work Description */
.work-description {
    max-width: 720px;
    margin-bottom: var(--spacing-2xl);
}

.work-description p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
}

/* Navigation */
.work-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
    margin-top: var(--spacing-2xl);
}

.nav-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link.prev {
    align-items: flex-start;
}

.nav-link.next {
    align-items: flex-end;
    text-align: right;
}

.nav-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light-color);
}

.nav-title {
    font-weight: 500;
    font-size: 15px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.96);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: var(--spacing-xl);
    right: var(--spacing-xl);
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary-color);
    cursor: pointer;
    transition: opacity 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .work-title {
        font-size: 32px;
    }

    .work-metadata {
        gap: var(--spacing-lg);
    }

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

    .work-navigation {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .nav-link.prev,
    .nav-link.next {
        align-items: flex-start;
        text-align: left;
    }
}

/* Video Embed */
.work-video { margin: 2rem 0; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
