.lightbox-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }

.lightbox-img {
    max-width: 90vw; max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.lightbox-overlay.active .lightbox-img { transform: scale(1); }

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute; background: none; border: none;
    color: #fff; cursor: pointer; font-size: 2rem;
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0.7; transition: opacity 0.2s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

.lightbox-close { top: 20px; right: 20px; font-size: 2.5rem; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

.lightbox-counter {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7); font-size: 0.875rem;
}

/* Make gallery images clickable */
.gallery-grid img,
.single-body img { cursor: zoom-in; }

@media (max-width: 640px) {
    .lightbox-img { max-width: 95vw; max-height: 85vh; }
    .lightbox-prev, .lightbox-next { width: 40px; font-size: 1.5rem; }
    .lightbox-prev { left: 5px; }
    .lightbox-next { right: 5px; }
    .lightbox-close { top: 10px; right: 10px; }
}
