/* Only advertising shortcodes marked with their original configured ratio. */
.aopt-ad { height:auto !important; }
.aopt-picture { display:contents; }

/* Match the existing restyle's final wrapper width before its DOMContentLoaded decoration.
   Without this, the eager first image paints smaller and the next slide becomes a late LCP.
   Only the new Magazine/Social scopes; no changes to home or legacy listings. */
body.anelo-view-magazine .mcb-section:has(.aopt-banner) :is(.mcb-wrap,.mcb-column,.column_attr,.mcb-column-inner),
body.anelo-view-social .mcb-section:has(.aopt-banner) :is(.mcb-wrap,.mcb-column,.column_attr,.mcb-column-inner) {
  width:100% !important;
  margin:0 !important;
}

/* Match existing final ad-section spacing before JS; no new layout design. */
body.anelo-view-magazine .mcb-section:has(.aopt-banner) {padding-top:30px !important;padding-bottom:58px !important;}
body.anelo-view-social .mcb-section:has(.aopt-banner),
body.anelo-view-agenda .mcb-section:has(.aopt-banner) {padding-top:34px !important;padding-bottom:56px !important;}
body.anelo-view-agenda .mcb-section:has(.aopt-banner) :is(.mcb-wrap,.mcb-column,.column_attr) {width:100% !important;margin:0 !important;}
@media(max-width:767px){
 body.anelo-view-magazine .mcb-section:has(.aopt-banner) {padding-top:18px !important;padding-bottom:42px !important;}
 body.anelo-view-social .mcb-section:has(.aopt-banner),
 body.anelo-view-agenda .mcb-section:has(.aopt-banner) {padding-top:18px !important;padding-bottom:46px !important;}
}

/* Agenda's first mobile creative is 360px wide. Do not upscale it inside the
   existing 3px border; keep every rotation in the same centered slot. */
@media(max-width:767px){
 body.anelo-view-agenda .box-publiciadad-n1-xs.aopt-delivery {max-width:366px!important;margin-left:auto!important;margin-right:auto!important;}
}
