/* ----------------------------------------------------------------
   Product / technology galleries
   Replaces the template's isotope .grid-layout, which keeps every
   item invisible until all images have downloaded. Each thumbnail
   here has a fixed frame, so photos appear one by one as they load
   without the layout jumping.
-----------------------------------------------------------------*/
.product-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.product-gallery--4-columns {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-gallery__item {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    background-color: #ffffff;
    cursor: zoom-in;
}

.product-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .4s ease;
}

.product-gallery__item:hover img,
.product-gallery__item:focus-visible img {
    transform: scale(1.05);
}

@media (max-width: 991px) {
    .product-gallery,
    .product-gallery--4-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-gallery__item img {
        transition: none;
    }
}
