/**
 * WooBoost Reviews — Display styles.
 * Review photo thumbnails and aggregate gallery.
 */

/* Per-review photos */
.wooboost-reviews-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.wooboost-reviews-photo-link {
    display: block;
    border-radius: 4px;
    overflow: hidden;
    line-height: 0;
    transition: opacity 0.15s;
}

.wooboost-reviews-photo-link:hover {
    opacity: 0.85;
}

.wooboost-reviews-photos img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* Aggregate gallery */
.wooboost-reviews-gallery {
    margin: 2em 0;
}

.wooboost-reviews-gallery-title {
    font-size: 1.1em;
    margin-bottom: 0.75em;
}

.wooboost-reviews-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.wooboost-reviews-gallery-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* Lightbox overlay */
.wooboost-reviews-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.wooboost-reviews-lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.wooboost-reviews-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 24px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
}

.wooboost-reviews-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}
