/* ugm-pdp-fix-CTqInc02 — maple gallery size + boost text/image overlap */
/* Undo fatal 96px mobile gallery crush from boost-cfg-mob */
@media (max-width: 960px) {
  .boost-detail-gallery .product-gallery-main,
  .boost-detail-hero .product-gallery-main,
  .boost-detail-page--product-first .boost-detail-gallery .product-gallery-main {
    --gallery-max-h: min(42vh, 320px) !important;
    max-height: min(42vh, 320px) !important;
    min-height: 200px !important;
    aspect-ratio: 1 / 1 !important;
  }
  .boost-detail-gallery .product-gallery-hero,
  .boost-detail-hero .product-gallery-hero {
    width: auto !important;
    height: auto !important;
    max-width: 78% !important;
    max-height: 78% !important;
    min-width: 140px !important;
    min-height: 140px !important;
    object-fit: contain !important;
    image-rendering: pixelated;
  }
}

/* Desktop: keep package icons readable, not a speck in a void */
.boost-detail-gallery .product-gallery-main {
  --gallery-ratio: 1 / 1 !important;
  --gallery-max-h: min(48vh, 420px) !important;
  max-height: min(48vh, 420px) !important;
}
.boost-detail-gallery .product-gallery-hero {
  width: auto !important;
  height: auto !important;
  max-width: 70% !important;
  max-height: 70% !important;
  min-width: 180px !important;
  min-height: 180px !important;
  object-fit: contain !important;
}

/* Boosting PDP: never let gallery float over title/copy */
.boost-detail-main {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
  position: relative !important;
}
.boost-detail-gallery,
.boost-detail-hero {
  position: relative !important;
  float: none !important;
  inset: auto !important;
  z-index: 1 !important;
  margin: 0 0 1rem !important;
  max-width: 100% !important;
}
.boost-detail-head {
  position: relative !important;
  z-index: 2 !important;
  clear: both !important;
  max-width: 100% !important;
}
.boost-detail-head h1,
.boost-detail-head .lead,
.boost-detail-head .money-desk-kicker {
  position: relative !important;
  z-index: 2 !important;
}
