/* ============================================
   Lion Theme - Lightbox for Single Posts
   ============================================ */

.lion_lightbox-post_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

.lion_lightbox-post_overlay.active {
    opacity: 1;
    visibility: visible;
}

.lion_lightbox-post_container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.lion_lightbox-post_image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lion_lightbox-post_caption {
    color: #ccc;
    font-size: 1.4rem;
    text-align: center;
    padding: 1rem 0;
    max-width: 80vw;
}

.lion_lightbox-post_prev,
.lion_lightbox-post_next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10;
}

.lion_lightbox-post_prev:hover,
.lion_lightbox-post_next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lion_lightbox-post_prev {
    left: -70px;
}

.lion_lightbox-post_next {
    right: -70px;
}

.lion_lightbox-post_close {
    position: fixed;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    opacity: 0.8;
}

.lion_lightbox-post_close:hover {
    opacity: 1;
}

/* Dots navigation (mobile) */
.lion_lightbox-post_dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 1rem 0;
}

.lion_lightbox-post_dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lion_lightbox-post_dot.active {
    background: #fff;
}

/* Desktop: hide dots, show arrows */
@media (min-width: 768px) {
    .lion_lightbox-post_dots {
        display: none;
    }
}

/* Mobile: hide arrows, show dots */
@media (max-width: 767px) {
    .lion_lightbox-post_prev,
    .lion_lightbox-post_next {
        display: none;
    }
    
    .lion_lightbox-post_dots {
        display: flex;
    }
    
    .lion_lightbox-post_close {
        top: 10px;
        right: 15px;
        font-size: 2.4rem;
    }
}

.lion-post-content img {
    cursor: pointer;
}