/* Paid campaign banners (core/advertising/func.ad_render.php).
   Same reserved-box + scale-down pattern as flow_ads.css / warventure_ads.css:
   the wrapper carries the native aspect-ratio and max-width inline, so the
   height is right before any JS runs; js/campaign_ads.js scales an HTML5
   iframe down to the available width (never up). Images scale by themselves. */

.cmp-ad-slot{
    margin: 0 auto;
    width: 100%;
    line-height: 0;
}
.cmp-ad-slot .cmp-ad-label{
    display: block;
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #8a8797;
    line-height: 1.2;
    margin: 0 0 6px;
}
.cmp-ad-embed{
    position: relative;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    line-height: 0;
    background: #ffffff;
}
.cmp-ad-embed.cmp-kind-html > iframe{
    position: absolute;
    top: 0;
    left: 0;
    border: 0;
    display: block;
    transform-origin: top left;
    background: #ffffff;
}
.cmp-ad-embed.cmp-kind-image .cmp-ad-link{ display: block; }
.cmp-ad-embed.cmp-kind-image img{
    display: block;
    width: 100%;
    height: auto;
}
/* The existing vote-page frame (.ad-slot) prints its own label. */
.ad-slot .cmp-ad-slot .cmp-ad-label{ display: none; }
