/* v194 — final category image layout correction.
   Scope: visible product/proof galleries only. Hero scenes, navigation, AI,
   RFQ, language and business data are deliberately untouched. */

/* The toys landing still uses the legacy v160 cards. Make it follow the same
   square, complete-image treatment as the five current category galleries. */
body.v172-industry-microsites .v160-product-grid,
body.v172-industry-microsites .v160-proof-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  grid-auto-rows: auto !important;
  align-items: start !important;
  gap: clamp(10px, 1vw, 16px) !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body.v172-industry-microsites .v160-product-card,
body.v172-industry-microsites .v160-proof-card {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  padding: clamp(8px, .75vw, 12px) !important;
  border-radius: 14px !important;
  background: #f6f8fa !important;
}

body.v172-industry-microsites .v160-product-card img,
body.v172-industry-microsites .v160-proof-card img {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  background: transparent !important;
}

/* Reinforce complete product visibility for every current category wall. */
body.v172-industry-microsites .industry-main-gallery-item,
body.v172-industry-microsites .industry-main-gallery-item img {
  box-sizing: border-box !important;
}

body.v172-industry-microsites .industry-main-gallery-item img,
body.v172-industry-microsites .industry-main-gallery[data-industry="fabric"] .industry-main-gallery-item img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

/* Prevent the cookie notice from covering the first product row while still
   preserving consent functionality. */
body.v172-industry-microsites .cookie-consent-banner {
  max-width: min(620px, calc(100vw - 24px)) !important;
}

@media (max-width: 1180px) {
  body.v172-industry-microsites .v160-product-grid,
  body.v172-industry-microsites .v160-proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body.v172-industry-microsites .v160-product-grid,
  body.v172-industry-microsites .v160-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
}

@media (max-width: 420px) {
  body.v172-industry-microsites .v160-product-grid,
  body.v172-industry-microsites .v160-proof-grid {
    grid-template-columns: 1fr !important;
  }
}
