/**
 * Image attribution — © badge + credit popover.
 * See docs/plans/image-attribution.md. Deliberately minimal + non-intrusive:
 * a tiny corner © that fades in on hover/focus and reveals the full credit
 * on click. The wrapper shrink-wraps the image so the badge pins to it.
 */
.gc-attributed {
	position: relative;
	display: inline-block;
	max-width: 100%;
	line-height: 0; /* kill the inline descender gap under the image */
}
.gc-attributed > img {
	display: block;
	max-width: 100%;
	height: auto;
}
.gc-attr-badge {
	position: absolute;
	right: 4px;
	bottom: 4px;
	width: 18px;
	height: 18px;
	line-height: 18px;
	text-align: center;
	font-size: 12px;
	font-family: Arial, Helvetica, sans-serif;
	color: #fff;
	background: rgba(0, 0, 0, 0.45);
	border-radius: 50%;
	cursor: pointer;
	user-select: none;
	opacity: 0.55;
	transition: opacity 0.15s ease;
	z-index: 2;
}
.gc-attributed:hover .gc-attr-badge,
.gc-attr-badge:focus,
.gc-attr-badge[aria-expanded="true"] {
	opacity: 1;
	outline: none;
}
.gc-attr-credit {
	position: absolute;
	right: 4px;
	bottom: 26px;
	min-width: 140px;
	max-width: 280px;
	padding: 6px 8px;
	background: #fff;
	color: #222;
	border: 1px solid #c9c9c9;
	border-radius: 4px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	line-height: 1.4;
	text-align: left;
	white-space: normal;
	z-index: 3;
}
.gc-attr-credit[hidden] {
	display: none;
}
.gc-attr-credit a {
	color: #0a64c2;
	text-decoration: underline;
}

/* Alignment composition — the wrapper inherits the content image's
   alignment so a centered/aligned image keeps its placement. (Best-effort;
   verify against the active theme's block-image rules.) */
.gc-attr-aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.gc-attr-alignleft {
	float: left;
	margin: 0 1.5em 1em 0;
}
.gc-attr-alignright {
	float: right;
	margin: 0 0 1em 1.5em;
}
.gc-attr-alignwide,
.gc-attr-alignfull {
	display: block;
}
.gc-attr-alignfull {
	width: 100%;
}
/* Neutralise the inner image's own float/auto-margins so they don't
   double-apply on top of the wrapper's alignment. */
.gc-attr-alignleft > img,
.gc-attr-alignright > img,
.gc-attr-aligncenter > img {
	float: none;
	margin-left: 0;
	margin-right: 0;
}
