/**
 * AdSlots 前台样式
 */

.adslots {
	position: relative;
	display: block;
	box-sizing: border-box;
	max-width: 100%;
	margin: 1.5em auto;
	text-align: center;
	line-height: 0;
}

.adslots *,
.adslots *::before,
.adslots *::after {
	box-sizing: border-box;
}

.adslots__link {
	display: inline-block;
	max-width: 100%;
	line-height: 0;
	text-decoration: none;
	border: 0;
}

.adslots__img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	border: 0;
	border-radius: inherit;
}

/* HTML / 联盟代码广告恢复正常排版 */
.adslots--html,
.adslots--adsense {
	line-height: normal;
	text-align: initial;
}

.adslots--html > *,
.adslots--adsense > * {
	max-width: 100%;
}

.adslots--html ins,
.adslots--adsense ins {
	display: block;
}

/* 广告标识 */
.adslots__label {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	padding: 0 6px;
	font-size: 11px;
	font-weight: 400;
	line-height: 18px;
	letter-spacing: 0.5px;
	color: #fff;
	background: rgba(0, 0, 0, 0.45);
	border-radius: 0 0 4px 0;
	pointer-events: none;
}

/* 编辑器占位 */
.adslots--placeholder {
	line-height: 1.5;
}

/* 小工具内边距由主题控制，这里只处理宽度 */
.widget_adslots .adslots,
.widget-adslots {
	margin-top: 0;
	margin-bottom: 0;
}

/* 通栏横幅容器：页头下方、Hero 上方等位置 */
.adslots-banner {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--adslots-banner-max, 1200px);
	margin: 0 auto 20px;
	padding: 0 30px;
	line-height: 0;
}

.adslots-banner .adslots {
	margin: 0 auto;
}

@media (max-width: 768px) {
	.adslots-banner {
		padding: 0 20px;
		margin-bottom: 16px;
	}
}

@media (max-width: 600px) {
	.adslots {
		margin: 1em auto;
	}
}
