/**
 * Blog Image Lightbox Styles
 */

.blog-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.blog-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.blog-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
}

.blog-lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.blog-lightbox-image-container {
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.blog-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.blog-lightbox-close:hover {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    transform: rotate(90deg);
}

.blog-lightbox-prev,
.blog-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.blog-lightbox-prev {
    left: 20px;
}

.blog-lightbox-next {
    right: 20px;
}

.blog-lightbox-prev:hover,
.blog-lightbox-next:hover {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    transform: translateY(-50%) scale(1.1);
}

.blog-lightbox-prev:active,
.blog-lightbox-next:active {
    transform: translateY(-50%) scale(0.95);
}

.blog-lightbox-caption {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 14px;
    max-width: 80%;
    text-align: center;
    backdrop-filter: blur(10px);
}

.blog-lightbox-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Blog image cursor */
.blog-lightbox-image {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-lightbox-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(201, 161, 79, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-lightbox-content {
        padding: 40px 10px;
    }
    
    .blog-lightbox-image-container {
        max-width: 95%;
        max-height: 80vh;
    }
    
    .blog-lightbox-image {
        max-height: 80vh;
    }
    
    .blog-lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .blog-lightbox-prev,
    .blog-lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .blog-lightbox-prev {
        left: 10px;
    }
    
    .blog-lightbox-next {
        right: 10px;
    }
    
    .blog-lightbox-caption {
        bottom: 40px;
        font-size: 12px;
        padding: 10px 20px;
        max-width: 90%;
    }
    
    .blog-lightbox-counter {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Animation */
@keyframes blog-lightbox-fade-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.blog-lightbox.active .blog-lightbox-image {
    animation: blog-lightbox-fade-in 0.3s ease;
}
