/* Only images selected by the client receive the logo. */
.elboya-photo-branded {
	position: relative;
	isolation: isolate;
}
.elboya-photo-branded > .elboya-photo-watermark {
	position: absolute;
	z-index: 2;
	top: 14px;
	right: 14px;
	width: clamp(44px, 18%, 80px);
	aspect-ratio: 1;
	background: center / contain no-repeat;
	opacity: 0.65;
	pointer-events: none;
	filter: drop-shadow(0 1px 2px rgba(0,0,0,.6));
}
/* Text stays on the image, with a high-contrast backing. */
.elboya-photo-branded > .elboya-photo-title {
	position: absolute;
	z-index: 3;
	bottom: 5px;
	left: 0;
	right: 0;
	display: block;
	padding: 4px 12px;
	background: transparent;
	color: rgba(255, 255, 255, 0.95);
	font-family: Arial, sans-serif;
	font-size: clamp(16px, 2vw, 20px);
	font-weight: 800;
	line-height: 1.25;
	text-align: center;
	text-shadow:
		0 1px 3px #000,
		0 2px 7px rgba(0, 0, 0, 0.85);
	overflow-wrap: anywhere;
	pointer-events: none;
}
.elboya-photo-branded {
	overflow: hidden;
}
.elboya-photo-branded > img {
	display: block;
}
/* Keep menu details below the photograph when its name is overlaid. */
.elboya-menu-dish.elboya-menu-dish--photo-title > figcaption {
	position: relative;
	inset: auto;
	padding: 12px 16px;
	background: #052f4b;
	color: #fff;
	text-shadow: none;
}
/* Keep the caption name for screen readers and the existing lightbox. */
.elboya-menu-dish--photo-title .elboya-menu-dish__name {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.elboya-menu-dish--photo-title > figcaption:has(
	> .elboya-menu-dish__name:only-child
) {
	display: none;
}

