/**
 * PeepSo Photo Link
 *
 * The badge sits inside .ps-media-grid-fitwidth, never as a sibling of the photo anchor:
 * peepso-core-photos grid.js only ever reveals direct [data-ps-grid-item] children of the
 * gallery, so nothing may be inserted between the gallery and the anchor.
 */

.mjwp-photo-link {
	cursor: pointer;
}

.mjwp-photo-link__badge {
	position: absolute;
	right: 8px;
	bottom: 8px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 13px;
	line-height: 1;
	pointer-events: none;
	transition: background 0.15s ease-in-out;
}

.mjwp-photo-link:hover .mjwp-photo-link__badge {
	background: rgba(0, 0, 0, 0.75);
}

/* Dialog */

.mjwp-photo-link__form {
	text-align: left;
}

.mjwp-photo-link__label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.mjwp-photo-link__input {
	width: 100%;
	box-sizing: border-box;
}

.mjwp-photo-link__help {
	margin: 8px 0 0;
	opacity: 0.7;
	font-size: 0.9em;
}

.mjwp-photo-link__error {
	margin: 8px 0 0;
	color: #d63638;
	font-size: 0.9em;
}
