/* Gifts by Bee v3.19.1 — Full-height product photography in the single-product gallery.
   Gallery only; do not change the square-ish homepage product cards or product data.
   The original theme set aspect-ratio: 1/1.04 + object-fit:cover and clipped tall photos.
   Portrait catalogue images are 3:4; contain ensures no trimming for other ratios. */

.gbb-single-product .gbb-product-gallery-wrap .woocommerce-product-gallery__image {
    overflow: hidden;
    background: #FAF6F1 !important;
}

/* WooCommerce's standard image element is wrapped in a zoom/lightbox anchor.
   Give it a stable portrait canvas so its whole product remains visible. */
.gbb-single-product .gbb-product-gallery-wrap .woocommerce-product-gallery__image > a {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #FAF6F1;
}

.gbb-single-product .gbb-product-gallery-wrap .woocommerce-product-gallery__image > a > img:not(.zoomImg) {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #FAF6F1 !important;
}

/* Product-gallery thumbnails: display the full arrangement, not a cut-off crop. */
.gbb-single-product .gbb-product-gallery-wrap .flex-control-thumbs img {
    object-fit: contain !important;
    object-position: center center !important;
    background: #FAF6F1 !important;
}
