/* Restaurant photo band (ManO2 Figma 242:884, ManO 242:1039): one full-width photo, 1440 × 619 at 1440 on
   ManO2, 1440 × 579 on the ManO pages (template "Restoran: Kaptol"). */

.mano-photo-band.mano-photo-band {
	margin-block: 0;
}

.mano-photo-band .wp-block-image {
	margin: 0;
}

.mano-photo-band img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1440 / 619;
	object-fit: cover;
}

.page-template-page-restoran-kaptol .mano-photo-band img {
	aspect-ratio: 1440 / 579;
}

/* Taller variant (Kontakt, Figma 296:3404): 1440 × 727. */
.mano-photo-band--tall .mano-photo-band img,
.mano-photo-band.mano-photo-band--tall img {
	aspect-ratio: 1440 / 727;
}

@media (max-width: 781px) {
	.mano-photo-band img,
	.page-template-page-restoran-kaptol .mano-photo-band img {
		aspect-ratio: 4 / 3;
	}
}

/* Phones, restaurant pages (Figma 353:392 / 370:1537): the photo under the wine / Atmosfera block,
   402 × 437 (the footer file's phone height for the band yields to it). */
@media (max-width: 781px) {
	body:has(.mano-rhero__wordmark) .mano-photo-band img {
		height: auto;
		aspect-ratio: 402 / 437;
	}

	/* ManO (370:1537): the frame crops the photo tighter than cover (arch at x142–322, the right
	   lamp out of frame). Zoom 1.325 from the top, so the lamps and the arch top stay in. */
	body.page-template-page-restoran-kaptol:has(.mano-rhero__wordmark) .mano-photo-band figure {
		overflow: hidden;
	}

	body.page-template-page-restoran-kaptol:has(.mano-rhero__wordmark) .mano-photo-band img {
		transform: scale(1.325);
		transform-origin: 114px 0;
	}
}
