.screenshot-thumb {
    cursor: zoom-in;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.88);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 9999;
}

.image-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.image-lightbox__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 96vw;
    max-height: 96vh;
}

.image-lightbox__image {
    display: block;
    max-width: 96vw;
    max-height: calc(96vh - 64px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.image-lightbox__caption {
    margin: 0;
    color: #f2f2f2;
    font-size: 0.95rem;
    text-align: center;
}

.image-lightbox__close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.image-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.32);
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .image-lightbox {
        padding: 16px;
    }

    .image-lightbox__close {
        top: -4px;
        right: -4px;
    }
}
