/* Gallery Lightbox Styles */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.gallery-lightbox__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.gallery-lightbox__content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.gallery-lightbox__image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.gallery-lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s ease;
    z-index: 2;
}

.gallery-lightbox__close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.gallery-lightbox__prev,
.gallery-lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s ease;
    z-index: 2;
}

.gallery-lightbox__prev {
    left: 20px;
}

.gallery-lightbox__next {
    right: 20px;
}

.gallery-lightbox__prev:hover,
.gallery-lightbox__next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.gallery-lightbox__counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    z-index: 999999;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gallery-lightbox__content {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .gallery-lightbox__image {
        max-height: 85vh;
    }
    
    .gallery-lightbox__close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }
    
    .gallery-lightbox__prev,
    .gallery-lightbox__next {
        width: 40px;
        height: 40px;
    }
    
    .gallery-lightbox__prev {
        left: 10px;
    }
    
    .gallery-lightbox__next {
        right: 10px;
    }
    
    .gallery-lightbox__counter {
        bottom: 10px;
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Cursor pointer for gallery images */
.gallery__slide img {
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery__slide img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

