/* Lightbox for Blog Posts */
.post-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.post-lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.post-lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    background: #fff;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.post-lightbox-overlay.active .post-lightbox-image {
    transform: scale(1);
}

.post-lightbox-caption {
    margin-top: 20px;
    font-family: 'Fira Sans', sans-serif;
    color: #1e293b;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
}

/* Controls */
.post-lightbox-close {
    position: absolute;
    top: -50px;
    right: -20px;
    font-size: 2rem;
    color: #1e293b;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    transition: transform 0.3s ease;
    z-index: 10001;
}

.post-lightbox-close:hover {
    transform: scale(1.1);
    color: #0f172a;
}

.post-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.05);
    color: #1e293b;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.post-lightbox-nav:hover {
    background: rgba(15, 23, 42, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.post-lightbox-prev {
    left: -80px;
}

.post-lightbox-next {
    right: -80px;
}

/* Responsive */
@media (max-width: 1100px) {
    .post-lightbox-prev { left: 10px; background: rgba(255, 255, 255, 0.8); }
    .post-lightbox-next { right: 10px; background: rgba(255, 255, 255, 0.8); }
    .post-lightbox-close { top: 10px; right: 10px; background: rgba(255, 255, 255, 0.8); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
}
