/* Sparrow Lightbox */

.sparrow-lb-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
}

.sparrow-lb-overlay.sparrow-lb-visible {
    opacity: 1;
    visibility: visible;
}

.sparrow-lb-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 92vw;
    max-height: 90vh;
    cursor: default;
}

.sparrow-lb-img {
    display: block;
    max-width: 92vw;
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
}

.sparrow-lb-visible .sparrow-lb-img {
    opacity: 1;
    transform: scale(1);
}

.sparrow-lb-caption {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
    max-width: 640px;
    padding: 0 16px;
}

.sparrow-lb-close {
    position: fixed;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    z-index: 1;
    padding: 4px 10px;
}

.sparrow-lb-close:hover,
.sparrow-lb-close:focus {
    opacity: 1;
}

.entry-content img,
.post-content img,
.site-content article img {
    cursor: zoom-in;
}

.no-lightbox img,
img.no-lightbox {
    cursor: default;
}
