.single-product .woocommerce-product-gallery { opacity: 1 !important; }
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper { display: flex; align-items: flex-start; }
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image { flex-shrink: 0; }
.single-product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper { overflow: hidden; }
.single-product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image { width: 100% !important; }
.single-product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery .flex-viewport { aspect-ratio: var(--tomko-gallery-ratio, auto); min-height: 0; }

.single-product .woocommerce-product-gallery .flex-viewport { width: 100%; max-width: 100%; }
