/* CG Advertising — Front-end */

.cg-ad {
	display: block;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}
.cg-ad__inner {
	position: relative;
	display: inline-block;
}
.cg-ad__inner > a {
	display: block;
}
.cg-ad__inner img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* "About this ad" trigger */
.cg-about-trigger {
	position: absolute;
	bottom: 4px;
	right: 4px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	border: none;
	padding: 2px 6px;
	font-size: 11px;
	line-height: 1.4;
	border-radius: 3px;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.15s;
}
.cg-about-trigger:hover,
.cg-about-trigger:focus-visible {
	opacity: 1;
	outline: 2px solid #005fcc;
	outline-offset: 1px;
}

/* Modal overlay */
.cg-about-modal[hidden] {
	display: none !important;
}
.cg-about-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.5);
}

.cg-about-modal__inner {
	background: #fff;
	color: #333;
	border-radius: 6px;
	padding: 24px 28px;
	max-width: 380px;
	width: 90%;
	position: relative;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cg-about-modal__name {
	display: block;
	font-size: 16px;
	margin-bottom: 8px;
}
.cg-about-modal__desc {
	font-size: 14px;
	color: #555;
	margin: 0 0 8px;
}
.cg-about-modal__dates {
	font-size: 13px;
	color: #777;
	margin: 0 0 12px;
}
.cg-about-modal__report {
	display: inline-block;
	font-size: 13px;
	color: #b32d2e;
	text-decoration: underline;
}
.cg-about-modal__report:hover,
.cg-about-modal__report:focus-visible {
	color: #8b0000;
}

.cg-about-modal__close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	font-size: 22px;
	cursor: pointer;
	line-height: 1;
	color: #999;
}
.cg-about-modal__close:hover,
.cg-about-modal__close:focus-visible {
	color: #333;
	outline: 2px solid #005fcc;
	outline-offset: 2px;
}
