/* Grid Layout */

div#custom-product-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
}

.custom-grid-gallery .grid-item {
    cursor: pointer;
    overflow: hidden;
}

.custom-grid-gallery img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .3s ease;
}

.custom-grid-gallery .grid-item:hover img {
    transform: scale(1.04);
}

/* Lightbox */

#custom-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#custom-lightbox img {
    max-width: 92%;
    max-height: 92%;
}

#custom-lightbox.active {
    display: flex;
}