/**
 * Lightbox Styles for Review Images
 */

/* Main lightbox container - covers the entire screen */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Image container */
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border: 3px solid #fff;
    box-shadow: 6px 6px 0px 0px rgba(0, 0, 0, 1);
}

/* Navigation arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 1;
}

.lightbox-prev,
.lightbox-next {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.3s;
    margin: 0 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.3s;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Image counter */
.lightbox-counter {
    position: absolute;
    bottom: -30px;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 14px;
}

/* Review images thumbnail grid */
.review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.review-image {
    width: 80px;
    height: 80px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-image:hover {
    transform: scale(1.05);
    box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 1);
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hide lightbox gallery */
.review-gallery-lightbox {
    display: none;
}

/* Responsive styles */
@media (max-width: 768px) {
    .lightbox-content img {
        max-height: 80vh;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 30px;
        height: 30px;
        font-size: 16px;
        margin: 0 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
} 