/* Admin-configured ad slots; no spacing when a slot is empty. */
.ewybory-ad-slot:empty { display:none!important; }
.ewybory-ad-slot:not(:empty) { width:100%; max-width:100%; box-sizing:border-box; margin:16px auto; text-align:center; overflow:visible; }
.ewybory-ad-slot iframe,.ewybory-ad-slot img { max-width:100%; }
.ewybory-ad-results { clear:both; }
.ewm-shortcode.elections-columns > .ewybory-ad-map-mobile,
.eww-world-view.ewm-shortcode > .ewybory-ad-map-mobile {display:none!important;}
@media (max-width:1020px) {
  /* On Safari the container must be measurable BEFORE the ad script executes.
     Keep it visible while initializing; once filled :not(:empty) takes over. */
  .ewm-shortcode.elections-columns > .ewybory-ad-map-mobile.ewybory-ad-booting,
  .ewm-shortcode.elections-columns > .ewybory-ad-map-mobile:not(:empty),
  .eww-world-view.ewm-shortcode > .ewybory-ad-map-mobile.ewybory-ad-booting,
  .eww-world-view.ewm-shortcode > .ewybory-ad-map-mobile:not(:empty) {
    display:block!important;
    grid-column:1 / -1;
    width:100%;
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
    margin:16px 0;
  }
}
