/**
 * AIC Ad Manager — frontend slot fit.
 *
 * Two cases, kept deliberately separate:
 *
 * 1. Fluid slots (no Width/Height set on the slot) — the common case.
 *    The creative should render at its own full natural width, exactly as
 *    if there were no wrapper at all. We only stop it overflowing the page
 *    horizontally; we never touch height, so a full-width banner never gets
 *    height-capped or shrunk down.
 *
 * 2. Fixed slots (Width AND Height both set) — e.g. a 300x250 unit. Here we
 *    actually want to fit/clip the creative inside that box, so it scales
 *    down proportionally instead of overflowing or breaking layout.
 */

.aicadm-slot {
	box-sizing: border-box;
}

/* Fluid: full natural width, untouched height. */
.aicadm-slot-fluid img,
.aicadm-slot-fluid iframe,
.aicadm-slot-fluid ins,
.aicadm-slot-fluid video,
.aicadm-slot-fluid embed,
.aicadm-slot-fluid object {
	max-width: 100%;
	height: auto;
}

/* Fixed: clip to the slot's box, scale creative down to fit inside it. */
.aicadm-slot-fixed {
	overflow: hidden;
}

.aicadm-slot-fixed img,
.aicadm-slot-fixed iframe,
.aicadm-slot-fixed ins,
.aicadm-slot-fixed video,
.aicadm-slot-fixed embed,
.aicadm-slot-fixed object {
	max-width: 100%;
	max-height: 100%;
}

/* AdSense's <ins class="adsbygoogle"> often gets inline width/height from
   Google's own script after it renders; this keeps it centered and capped
   at the slot's width even then. */
.aicadm-slot ins.adsbygoogle {
	display: inline-block !important;
	max-width: 100% !important;
}
