/* Lightbox - Clean positioning fix  */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

.lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    width: 90%;
    max-height: 90vh;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.lightbox-close:hover {
    transform: scale(1.15);
}

.lightbox-close::before,
.lightbox-close::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 2px;
    background-color: #0d0d0d;
}

.lightbox-close::before {
    transform: rotate(45deg);
}

.lightbox-close::after {
    transform: rotate(-45deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0d0d0d;
    font-size: 2rem;
    z-index: 10;
    opacity: 0.5;
    transition: opacity 0.2s;
    user-select: none;
}

.lightbox-nav:hover {
    opacity: 1;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 85vw;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }

    .lightbox-prev {
        left: -20px;
        width: 32px;
        height: 32px;
    }

    .lightbox-next {
        right: -20px;
        width: 32px;
        height: 32px;
    }
}