/* Simple Lightbox for standard images in blog/portfolio posts */
#simple-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    z-index: 15000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

#simple-lightbox.active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

#simple-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    transform: scale(0.95);
}

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

#simple-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: background 0.2s;
}
#simple-lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}
#simple-lightbox-close::before,
#simple-lightbox-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: #fff;
    margin-top: -1px;
    margin-left: -10px;
}
#simple-lightbox-close::before { transform: rotate(45deg); }
#simple-lightbox-close::after { transform: rotate(-45deg); }

.simple-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    border-radius: 50%;
}
.simple-lightbox-nav:hover { background: rgba(255,255,255,0.15); }
.simple-lightbox-prev { left: 30px; }
.simple-lightbox-next { right: 30px; }

/* Add cursor to images that can be opened in lightbox */
.blog-body img:not(.embedded-photo .image),
.project-body img:not(.embedded-photo .image) {
    cursor: zoom-in;
}