/* Heiltropfen Avanto homepage banners, isolated from theme Custom CSS. */
body#index .row.anhp-banner-global-top {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0,1fr)) !important;
  gap: 0 !important;
  align-items: start !important;
  justify-content: start !important;
}
body#index .row.anhp-banner-global-top > .an_homeproducts-banner {
  display: block !important;
  box-sizing: border-box !important;
  grid-column: span 12;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  float: none !important;
  clear: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body#index .row.anhp-banner-global-top > .an_homeproducts-banner.col-sm-12 { grid-column: span 12 !important; }
body#index .row.anhp-banner-global-top > .an_homeproducts-banner.col-sm-6 { grid-column: span 6 !important; }
body#index .row.anhp-banner-global-top > .an_homeproducts-banner.col-sm-3 { grid-column: span 3 !important; }
body#index .row.anhp-banner-global-top > .an_homeproducts-banner.col-sm-2 { grid-column: span 2 !important; }
body#index .row.anhp-banner-global-top > .an_homeproducts-banner img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}
@media (max-width: 767px) {
  body#index .row.anhp-banner-global-top > .an_homeproducts-banner.col-sm-6 { grid-column: span 12 !important; }
  body#index .row.anhp-banner-global-top > .an_homeproducts-banner.col-sm-3 { grid-column: span 6 !important; }
  body#index .row.anhp-banner-global-top > .an_homeproducts-banner.col-sm-2 { grid-column: span 4 !important; }
}

/* Separate mobile artwork: leave all other banners untouched. */
body#index .row.anhp-banner-global-top > .htbg-has-mobile-image:first-child picture.htbg-responsive-picture {
  display: block !important;
  width: 100% !important;
}
body#index .row.anhp-banner-global-top > .htbg-has-mobile-image:first-child picture.htbg-responsive-picture img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}
@media (max-width: 767px) {
  body#index .row.anhp-banner-global-top > .htbg-has-mobile-image:first-child {
    grid-column: span 12 !important;
    padding-bottom: 12px !important;
  }
}

/* Product thumbnails must not inherit a banner-style fixed image height.
   On the homepage this also covers cards outside the top banner grid. */
body#index #content .an_homeproducts .product-miniature img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  object-position: center !important;
}
