/* --- VISION ARTIFACT STYLING (Lightbox Mode) --- */
.vision-artifact {
    position: relative;
    width: 100%;
    margin: 20px 0;
    /* Standard Border */
    border: 1px solid var(--gold-dim);
    background: #000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    transition: transform 0.2s ease, filter 0.2s ease;
    cursor: zoom-in;
    /* Indicates scalable */
}

.vision-artifact:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}

.vision-artifact img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    /* Blend the image a bit so it's not too stark */
    filter: sepia(20%) contrast(1.1);
    object-fit: cover;
}

/* The Holographic Border Overlay */
.vision-artifact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;

    /* Inner Glow & Border */
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.3), inset 0 0 20px rgba(0, 0, 0, 0.8);

    /* Scanline Texture */
    background: linear-gradient(rgba(18, 16, 16, 0) 50%,
            rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg,
            rgba(255, 0, 0, 0.03),
            rgba(0, 255, 0, 0.01),
            rgba(0, 0, 255, 0.03));
    background-size: 100% 4px, 6px 100%;
    z-index: 2;
}

/* Metadata Tag */
.vision-meta {
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-family: var(--font-heading);
    font-size: 0.5rem;
    color: var(--gold);
    opacity: 0.7;
    z-index: 5;
    letter-spacing: 2px;
    text-shadow: 0 0 2px #000;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 4px;
    border-left: 1px solid var(--gold);
}


/* --- LIGHTBOX MODAL --- */
#vision-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 2, 5, 0.95);
    z-index: 5000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s;
    backdrop-filter: blur(10px);
    visibility: hidden;
}

#vision-lightbox.active {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 0 50px rgba(0, 0, 0, 1);
    border: 1px solid var(--gold);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#vision-lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    display: block;
}

.lightbox-ui {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-lightbox {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 10px 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all 0.2s;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-lightbox:hover {
    background: var(--gold);
    color: #000;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--gold);
    cursor: pointer;
    font-size: 2rem;
    background: none;
    border: none;
}