/* [ledled_product_gallery] — verticale thumbnails links, grote afbeelding rechts. */

.v2-pgallery {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* Thumbnail-strip */
.v2-pgallery__thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 0 0 84px;
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.v2-pgallery__thumb {
    display: block;
    padding: 0;
    margin: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    background: none;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s ease, opacity 0.15s ease;
    opacity: 0.7;
}

.v2-pgallery__thumb:hover,
.v2-pgallery__thumb:focus-visible {
    opacity: 1;
}

.v2-pgallery__thumb.is-active {
    border-color: currentColor;
    opacity: 1;
}

.v2-pgallery__thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
}

/* Grote afbeelding */
.v2-pgallery__main {
    flex: 1;
    min-width: 0;
}

.v2-pgallery__main-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: zoom-in;
}

.v2-pgallery--single .v2-pgallery__main-img {
    cursor: default;
}

/* Lightbox */
.v2-pgallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vmin;
    background: rgba(0, 0, 0, 0.85);
    cursor: zoom-out;
}

.v2-pgallery-lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Mobiel: thumbnails horizontaal onder de grote afbeelding. */
@media (max-width: 767px) {
    .v2-pgallery {
        flex-direction: column-reverse;
    }

    .v2-pgallery__thumbs {
        flex-direction: row;
        flex-basis: auto;
        width: 100%;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .v2-pgallery__thumb {
        flex: 0 0 64px;
    }
}
