/* WatchTime Advertisement Manager — defensive front-end styles.
   The theme's .adBlock / .gridWrapper .adBlock rules size the slot; these
   rules only keep the injected creative inside that box. Sizing/positioning
   stays owned by the theme. */

/* Block-level wrappers a creative may sit inside. `picture` is inline by
   default, so without this a <picture> ad would sit on a text baseline and
   carry descender space under the image. */
.adBlock > a,
.adBlock > picture,
.adBlock > a > picture,
.adContainer > a,
.adContainer > picture,
.adContainer > a > picture,
.small-ad > a,
.small-ad > picture,
.small-ad > a > picture {
	display: block;
	max-width: 100%;
}

/* Any image inside a slot, at whatever depth. This was a list of `> img` and
   `> a > img` until §107 put a <picture> between the wrapper and the image,
   which the old selectors stopped matching — silently, with no error and no
   visible failure until a creative overflowed its box. A descendant selector
   is deliberately broad: keeping the creative inside the slot is this file's
   only job, so matching too much is the safe direction to err in. */
.adBlock img,
.adContainer img,
.small-ad img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Snippet iframes (ad-network embeds) should fill the slot width without
   forcing overflow. */
.adBlock > iframe,
.adContainer > iframe,
.small-ad > iframe {
	max-width: 100%;
	border: 0;
}
