.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 9, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 2px;
    transform: scale(0.95);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: var(--space-m);
    right: var(--space-m);
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--trans), transform var(--trans);
}

.lightbox-close:hover {
    color: var(--clr-accent);
    transform: scale(1.1);
}

.lightbox-caption {
    margin-top: var(--space-m);
    color: #aeaeae;
    font-size: 0.8rem;
    text-align: center;
    width: 100%;
    pointer-events: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
