.cdic-image-wrapper {
	position: relative;
	display: inline-block;
	max-width: 100%;
	vertical-align: middle;
}

figure.cdic-image-wrapper {
	display: block;
}

.cdic-image-wrapper > img {
	max-width: 100%;
}

.cdic-background-marker {
	display: none !important;
}

.cdic-credit {
	--cdic-font-size: 12px;
	--cdic-text-color: #fff;
	--cdic-background-color: #000;
	--cdic-background-color-rgb: 0, 0, 0;
	--cdic-background-opacity: 60%;
	--cdic-background-alpha: 0.6;
	--cdic-padding-x: 10px;
	--cdic-padding-y: 5px;
	--cdic-edge-offset: 8px;
	--cdic-border-radius: 0px;
	--cdic-z-index: 5;
	position: absolute;
	z-index: var(--cdic-z-index);
	max-width: calc(100% - 16px);
	padding: var(--cdic-padding-y) var(--cdic-padding-x);
	border-radius: var(--cdic-border-radius);
	background-color: rgba(var(--cdic-background-color-rgb), var(--cdic-background-alpha));
	background-color: color-mix(in srgb, var(--cdic-background-color) var(--cdic-background-opacity), transparent);
	color: var(--cdic-text-color);
	font-size: var(--cdic-font-size);
	line-height: 1.35;
	white-space: normal;
	overflow-wrap: anywhere;
}

.cdic-credit--bottom-right { right: var(--cdic-edge-offset); bottom: var(--cdic-edge-offset); }
.cdic-credit--bottom-left { left: var(--cdic-edge-offset); bottom: var(--cdic-edge-offset); }
.cdic-credit--top-right { right: var(--cdic-edge-offset); top: var(--cdic-edge-offset); }
.cdic-credit--top-left { left: var(--cdic-edge-offset); top: var(--cdic-edge-offset); }
.cdic-credit--hover-background {
	background-color: transparent;
	transition: background-color .2s ease;
}
.cdic-credit--hover-background:hover,
.cdic-credit--hover-background:focus-within {
	background-color: rgba(var(--cdic-background-color-rgb), var(--cdic-background-alpha));
	background-color: color-mix(in srgb, var(--cdic-background-color) var(--cdic-background-opacity), transparent);
}
.cdic-credit a { color: inherit; text-decoration: underline; }
.cdic-credit a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.cdic-no-credit .cdic-credit { display: none !important; }

@media (prefers-reduced-motion: reduce) {
	.cdic-credit--hover-background { transition: none; }
}
