/*
 Theme Name:   ColorMag Pro Child
 Description:  EV Central child theme for ColorMag Pro. Restores custom ad placements and tracking.
 Author:       EV Central
 Template:     colormag-pro
 Version:      1.0.3
 Text Domain:  colormag-pro-child
*/

/* =========================================================
   EV Central — Ad placement styles
   ========================================================= */

.evcen-target {
	margin: 0 auto 2rem !important;
}

/* Hide takeover on screens too narrow to show gutters */
@media screen and (max-width: 1280px) {
	.ev-takeover {
		display: none;
	}
}

/* Hide takeover on page-model template */
.page-template-page-model .ev-takeover {
	display: none;
}

/* Mobile-only ad units hidden by default */
.ev-ads-mobile,
.evcen-billboard-mobile,
.evcen-mobile-banner {
	display: none;
}

/* Swap desktop/mobile ads at 768px */
@media screen and (max-width: 768px) {
	.ev-ads-mobile,
	.evcen-billboard-mobile,
	.evcen-mobile-banner {
		display: block;
	}
	.ev-ads-desktop,
	.evcen-billboard {
		display: none;
	}
}

/* Base ad container */
.ev-ads {
	margin: 0 auto;
}
.ev-ads img {
	display: block;
	margin: 0 auto;
}

/* Billboard spacing */
.ev-ads.ev-billboard {
	margin-bottom: 30px;
}

/* Half-page sidebar ad spacing */
.ev-ads.ev-halfpage {
	margin-bottom: 35px;
}

/* Takeover wrapper — centred to match content width */
.ev-takeover {
	position: relative;
	margin: 0 auto;
	max-width: 1200px;
}

/* Left gutter */
.ev-ads.ev-takeover-left {
	position: absolute;
	width: 405px;
	height: 100vh;
	left: -405px;
	top: 0;
	z-index: 3;
}

/* Right gutter */
.ev-ads.ev-takeover-right {
	position: absolute;
	width: 405px;
	height: 100vh;
	right: -405px;
	top: 0;
	z-index: 3;
}
