/* Only image loading and logo dimensions. Existing layouts, links and menus stay intact. */
img[data-ah-image-state="retry"],img[data-ah-image-state="fallback-loading"]{visibility:hidden}
img[data-ah-image-kind="logo"]{object-fit:contain;flex-shrink:0}
.admin-logo:has(img[data-ah-image-kind="logo"]){flex-shrink:0}
.admin-logo img[data-ah-image-kind="logo"]{min-width:32px;aspect-ratio:1}
.ah-main-logo img[data-ah-image-kind="logo"]{width:34px;height:34px;min-width:34px}
.promoMini img[data-ah-image-kind]{display:block;object-fit:cover}
/* Prevent a broken/slow image's intrinsic alt-text width from widening a mobile grid. */
.promoGrid,.promoGrid>div,.promoGrid>a{min-width:0}
/* The search input's intrinsic width otherwise pushes the neighbouring category grid
   beyond narrow phone screens, clipping the right-hand images. */
.hero>.heroCard,.heroCard .searchWrap,.heroCard .searchWrap input{min-width:0}

/* Desktop correction only. Keep the existing phone/tablet layout (<=900px). */
@media (min-width:901px){
  .promoGrid .promoMini{background:radial-gradient(ellipse at 55% 38%,rgba(154,174,53,.2),transparent 62%),linear-gradient(145deg,#263b29,#111e22)}
  .promoGrid .promoMini img[data-ah-image-kind]{object-fit:contain;object-position:center;transform:none}
  .promoGrid .promoMini:hover img[data-ah-image-kind],
  .promoGrid .promoMini.locked:hover img[data-ah-image-kind]{transform:none}
}
