/**
 * Public Styles for Mero News Publisher - Ad Autofit & Responsive Utilities
 * Version: 2.0.6
 * Pure Native Responsive CSS - Zero external CSS frameworks
 */

/* Reset ad container and any theme wrapper */
.mam-slot-wrapper,
.mero-ad-slot,
.mero-ad-unit,
.mam-ad-container,
.mam-ad-creative-wrapper,
.jeg_ad,
.jeg_ad img {
  box-sizing: border-box !important;
}

.mam-slot-wrapper,
.mero-ad-slot,
.mero-ad-unit,
.mam-ad-container,
.mam-ad-creative-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Force fluid scaling on all nested creatives */
.mam-slot-wrapper img,
.mero-ad-slot img,
.mero-ad-unit img,
.mam-ad-container img,
.mam-ad-creative-wrapper img,
.mam-slot-wrapper picture img,
.mam-ad-img,
.mam-slot-img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

.mam-slot-wrapper a,
.mero-ad-slot a,
.mero-ad-unit a,
.mam-ad-container a {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  text-align: center !important;
}

/* Fluid Iframes & Embeds */
.mam-slot-wrapper iframe,
.mero-ad-slot iframe,
.mero-ad-unit iframe,
.mam-ad-container iframe {
  max-width: 100% !important;
  border: 0 !important;
}
