/**
 * TMT Image Source Referrer – base frontend styling.
 *
 * These are defaults, not the final word: the custom CSS from the settings page
 * is inlined at wp_head priority 20 while this file prints at priority 8, so
 * anything saved there overrides these rules at equal specificity.
 *
 * Before 1.1.0 no stylesheet was shipped at all and the "default CSS" was only a
 * template inside the settings editor, so a fresh install rendered credits as
 * unstyled inline text — and background credits had no rule anywhere.
 */

/* ── Images ──────────────────────────────────────────────────────────────── */

.tmt-credit-wrapper {
	position: relative;
	display: inline-block;
	max-width: 100%;
}

/* ── Background images ───────────────────────────────────────────────────── */

/*
 * Added by the script to a background element that is still position: static,
 * so the absolutely positioned label has something to anchor to. Add
 * .tmt-isr-no-position in the markup to opt out where making an element a
 * containing block would disturb absolutely positioned descendants.
 */
.tmt-credit-host {
	position: relative;
}

/* ── Label ───────────────────────────────────────────────────────────────── */

.tmt-credit-text,
.tmt-credit-text--bg {
	position: absolute;
	bottom: 6px;
	left: 6px;
	z-index: 2;
	max-width: 100%;
	padding: 2px 7px;
	border-radius: 3px;
	background: rgba( 0, 0, 0, 0.55 );
	color: #ffffff;
	font-size: 11px;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
}
