diff --git a/feature-libs/product/image-zoom/styles/_product-image-zoom-view.scss b/feature-libs/product/image-zoom/styles/_product-image-zoom-view.scss index 97f4aa38405..5f277500411 100644 --- a/feature-libs/product/image-zoom/styles/_product-image-zoom-view.scss +++ b/feature-libs/product/image-zoom/styles/_product-image-zoom-view.scss @@ -42,13 +42,16 @@ cx-product-image-zoom-view { .cx-default-image-zoom { display: flex; justify-content: center; - max-height: calc(90vh - 200px); - + &:has(picture) { + max-height: calc(90vh - 200px); + } @include media-breakpoint-up(lg) { height: calc(90vh - 200px); // TODO: (CXSPA-7492) - Remove feature flag next major release. @include forFeature('a11yKeyboardAccessibleZoom') { - height: unset; + &:has(picture) { + height: unset; + } } }