/* ========================================= */
/* GLOBAL LIGHTBOX VIEWER */
/* Full-screen image overlay with navigation */
/* Used across all pages: Home, Details, Reviews */
/* ========================================= */

/* Lightbox overlay - full screen */
.lightbox {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 9999;
    /* On top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* Lightbox image */
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.5);
    cursor: default;
    /* Prevent closing when clicking image */
    object-fit: contain;
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #ffffff;
    font-size: 50px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
    user-select: none;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #b18c58;
    /* Brand gold */
}

/* Navigation arrows */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
    padding: 16px;
    z-index: 10000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #b18c58;
    /* Brand gold */
    transform: translateY(-50%) scale(1.2);
}

/* Hide arrows for single image */
.lightbox-prev.hidden,
.lightbox-next.hidden {
    display: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 40px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 32px;
        padding: 12px;
    }

    .lightbox-prev {
        left: 10px;
    }

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

@media (max-width: 480px) {

    .lightbox-prev,
    .lightbox-next {
        font-size: 28px;
        padding: 8px;
    }
}