/*
 * MiFoto lightbox: any MiFoto photo opens bigger when clicked. Colours come from the system (Canvas, CanvasText) so it follows
 * light and dark themes. The photo keeps the shape the administrator chose for photos.
 */
img[src*="task=photo.show"] {
	cursor: zoom-in;
}

.mifoto-lb {
	max-width: min(92vw, 420px);
	padding: 1rem 1.25rem 1.25rem;
	border: 1px solid color-mix(in srgb, CanvasText 20%, transparent);
	border-radius: 12px;
	background: Canvas;
	color: CanvasText;
	text-align: center;
}

.mifoto-lb::backdrop {
	background: rgb(0 0 0 / .7);
}

.mifoto-lb .mifoto-lb__close {
	position: absolute;
	top: .5rem;
	right: .5rem;
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0 !important;
	border-radius: 50%;
	background: color-mix(in srgb, CanvasText 10%, transparent);
	box-shadow: none !important;
	color: inherit;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.mifoto-lb .mifoto-lb__close:hover,
.mifoto-lb .mifoto-lb__close:focus-visible {
	background: color-mix(in srgb, CanvasText 20%, transparent);
}

.mifoto-lb__img {
	display: block;
	width: 300px;
	max-width: 100%;
	height: auto;
	margin: .75rem auto 1rem;
	border-radius: 8px;
}

.mifoto-lb__contact,
.mifoto-lb__status {
	margin: 0 0 .5rem;
	font-size: .85rem;
	opacity: .8;
}

.mifoto-lb__status:empty,
.mifoto-lb__contact:empty {
	display: none;
}

.mifoto-lb__link {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-size: .85rem;
	text-decoration: underline;
	cursor: pointer;
}

.mifoto-lb__form {
	display: grid;
	gap: .5rem;
	margin-top: .75rem;
	text-align: left;
}

.mifoto-lb__form label {
	display: grid;
	gap: .25rem;
	font-size: .85rem;
}

.mifoto-lb__legend {
	margin: 0;
	font-weight: 600;
}
