/**
 * Editorial credit overlay — small, translucent, bottom-right of the image.
 */

.editorial-credit-wrap {
	position: relative;
	display: inline-block;
	max-width: 100%;
	line-height: 0;
	vertical-align: middle;
}

.editorial-credit-wrap--featured {
	display: block;
	width: 100%;
}

.editorial-credit-wrap img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

.editorial-credit-overlay {
	position: absolute;
	right: 0.5em;
	bottom: 0.5em;
	z-index: 2;
	max-width: calc(100% - 1em);
	padding: 0.2em 0.55em;
	margin: 0;
	border-radius: 2px;
	background: rgba(0, 0, 0, 0.4);
	color: rgba(255, 255, 255, 0.85);
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 11px;
	font-style: italic;
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 1.35;
	text-align: right;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
	pointer-events: none;
	white-space: normal;
	word-break: break-word;
}

/* Keep credit readable on very small images */
@media (max-width: 480px) {
	.editorial-credit-overlay {
		right: 0.35em;
		bottom: 0.35em;
		font-size: 10px;
		padding: 0.15em 0.4em;
	}
}
