/* Proper logo normalization + fallback for the two previously broken domains */

/* Shared frame discipline on homepage cards */
a[href="/domain/crypto-billionaire-ae"] img,
a[href="/domain/maintain-ae"] img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

a[href="/domain/crypto-billionaire-ae"] .overflow-hidden img,
a[href="/domain/maintain-ae"] .overflow-hidden img {
  width: 100% !important;
  height: 100% !important;
  padding: 1rem !important;
}

/* Keep visual weight aligned with other logos */
a[href="/domain/crypto-billionaire-ae"] .overflow-hidden img {
  transform: scale(0.92) !important;
  transform-origin: center center !important;
}

a[href="/domain/maintain-ae"] .overflow-hidden img {
  transform: scale(0.90) !important;
  transform-origin: center center !important;
}

/* Detail page gallery / hero images */
img[alt^="CryptoBillionaire.ae image"],
img[alt^="Maintain.ae image"],
img[alt^="CryptoBillionaire.ae visual"],
img[alt^="Maintain.ae visual"] {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  padding: 1.25rem !important;
}

img[alt^="CryptoBillionaire.ae image"],
img[alt^="CryptoBillionaire.ae visual"] {
  transform: scale(0.93) !important;
}

img[alt^="Maintain.ae image"],
img[alt^="Maintain.ae visual"] {
  transform: scale(0.91) !important;
}

@media (max-width: 768px) {
  a[href="/domain/crypto-billionaire-ae"] .overflow-hidden img,
  a[href="/domain/maintain-ae"] .overflow-hidden img,
  img[alt^="CryptoBillionaire.ae image"],
  img[alt^="Maintain.ae image"],
  img[alt^="CryptoBillionaire.ae visual"],
  img[alt^="Maintain.ae visual"] {
    padding: 0.8rem !important;
  }
}
