/* Inline photo/video thumbnails injected into the front-office review list
   by views/js/product-comment-media-list.js. Plain CSS, not part of the
   theme's SCSS build -- see that file's own header comment for why. */

.zpc-comment-media {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.zpc-comment-media__thumb,
.zpc-comment-media__video {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    display: block;
    background: #f0f0f0;
    border: 1px solid #c0c9c0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.zpc-comment-media__thumb img,
.zpc-comment-media__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zpc-comment-media__thumb {
    cursor: zoom-in;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.zpc-comment-media__thumb:hover,
.zpc-comment-media__thumb:focus-visible {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
    border-color: #0e6d43;
}

.zpc-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
}

.zpc-lightbox--open {
    display: flex;
}

.zpc-lightbox__content {
    max-width: 90vw;
    max-height: 90vh;
}

.zpc-lightbox__content img {
    max-width: 90vw;
    max-height: 90vh;
    display: block;
    border-radius: 8px;
}

.zpc-lightbox__close {
    position: absolute;
    top: 16px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.zpc-lightbox__close:hover,
.zpc-lightbox__close:focus-visible {
    background: #0e6d43;
}
