/* AFTABIN_AD_SIZES_LAYOUT_SAFE_V1: purely visual slot normalization.
   CSS sets maximum rendered size, not CSS cropping; legacy creatives retain object-fit:contain.
   Image file dimensions for NEW reservations come from placement DB (desktop+mobile).
*/
.av4-public-root .av4-ad-slot { margin-block:clamp(12px,2vw,20px); min-width:0; }
.av4-public-root .av4-ad-slot__inner { box-sizing:border-box; padding:10px; max-width:100%; margin-inline:auto; }
.av4-public-root .av4-ad-slot--wide .av4-ad-slot__inner { max-width:970px; }
.av4-public-root .av4-ad-slot--embedded .av4-ad-slot__inner,
.av4-public-root .av4-ad-slot--inline .av4-ad-slot__inner { max-width:728px; }
.av4-public-root .av4-ad-slot--sidebar .av4-ad-slot__inner { max-width:300px; }
.av4-public-root .av4-ad-slot__inner picture,
.av4-public-root .av4-ad-slot__inner a { display:block; max-width:100%; }
.av4-public-root .av4-ad-slot__image { display:block; width:100%; max-width:100%; height:auto; max-height:120px; object-fit:contain; margin-inline:auto; }
.av4-public-root .av4-ad-slot--embedded .av4-ad-slot__image { max-height:120px; }
.av4-public-root .av4-ad-slot--inline .av4-ad-slot__image { max-height:150px; }
.av4-public-root .av4-ad-slot--sidebar .av4-ad-slot__image { max-height:200px; }
/* Full-width hook but compact mid-feed advertising. */
.av4-public-root .av4-ad-slot[data-av4-ad-placement="home.inline"] .av4-ad-slot__inner,
.av4-public-root .av4-ad-slot[data-av4-ad-placement="content.guide.archive.inline"] .av4-ad-slot__inner { max-width:728px; }
.av4-public-root .av4-ad-slot[data-av4-ad-placement="home.inline"] .av4-ad-slot__image,
.av4-public-root .av4-ad-slot[data-av4-ad-placement="content.guide.archive.inline"] .av4-ad-slot__image { max-height:120px; }
/* Home top bar lives outside the main public root (before the header). */
[data-advertisement-top-bar] picture,
[data-advertisement-top-bar] a { display:block; max-width:100%; }
[data-advertisement-top-bar] picture img { display:block; width:100%; max-width:970px; height:auto; max-height:70px; object-fit:contain; margin-inline:auto; }
@media (max-width:639px) {
 .av4-public-root .av4-ad-slot { margin-block:12px; }
 .av4-public-root .av4-ad-slot__inner { width:100%; max-width:calc(100vw - 28px) !important; padding:8px; }
 .av4-public-root .av4-ad-slot__image { width:100%; max-width:320px; max-height:100px; margin-inline:auto; }
 .av4-public-root .av4-ad-slot--inline .av4-ad-slot__image,
 .av4-public-root .av4-ad-slot--sidebar .av4-ad-slot__image { max-height:160px; }
 [data-advertisement-top-bar] picture img { max-width:320px; max-height:60px; }
}
