/* The credit itself: bottom-right corner of whatever it sits in.
   The parent must be position: relative (the frame below is; theme
   sections and cells that use a CSS background are set in the theme). */
.photo-credit {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 5;
	box-sizing: border-box;
	max-width: 100%;
	padding: 0.25em 0.7em;
	font-size: 0.75rem;
	font-style: normal;
	font-weight: 400;
	line-height: 1.4;
	text-align: right;
	color: #fff;
	background: rgba(0, 0, 0, 0.55);
	pointer-events: none;   /* never blocks a link underneath */
}

/* Wraps an <img> in content or a featured image, so the credit sits on the picture
   and not in the corner of the column. */
.photo-credit-frame {
	position: relative;
	display: inline-block;
	max-width: 100%;
	vertical-align: top;
	line-height: 0;
}

.photo-credit-frame > img,
.photo-credit-frame > a > img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Alignment classes move from the <img> to the frame. Floats shrink-wrap by
   themselves; centring needs a table so the frame still hugs the image. */
.photo-credit-frame.aligncenter {
	display: table;
	margin-left: auto;
	margin-right: auto;
}
