/* Pilgrim Mural [pilgrim_mural]: pans across the artwork and zooms out as the page scrolls. */

.pgm-wrap { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; margin: 0; padding: 0; background: var(--pgm-bg, #F5F3EE); }
/* Edge to edge: mural.js sets the exact width and offset (works inside Elementor containers too).
   This is the fallback before it runs. */
.pgm-wrap--full { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); margin-right: 0; }
.elementor-widget-shortcode:has(.pgm-wrap) { width: 100%; max-width: 100%; }
.pgm { width: 100%; }
.pgm { position: relative; }
.pgm__stage { position: relative; overflow: hidden; }
html body .pgm__img { display: block; width: 100%; height: auto; max-width: none; margin: 0; border-radius: 0; }
.pgm__caption {
	padding: 14px var(--pg-inline, 24px) 0;
	font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
	color: var(--pg-muted, #4A4A44); text-align: center;
}
.pgm-wrap:has(.pgm__caption) { padding-bottom: 18px; }

/* Animated (set by mural.js): the section is tall, the stage sticks while the mural moves. */
.pgm--live { height: var(--pgm-height, 300vh); }
.pgm--live .pgm__stage {
	position: sticky; top: var(--pgm-top, 0px);
	height: calc(100vh - var(--pgm-top, 0px));
	height: calc(100svh - var(--pgm-top, 0px));
	contain: strict;
}
html body .pgm--live .pgm__img {
	position: absolute; left: 0; top: 0;
	width: var(--pgm-w, 100%); height: var(--pgm-h, auto);
	transform-origin: 0 0;
	will-change: transform;
	backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.pgm--live { height: auto; }
	.pgm--live .pgm__stage { position: relative; height: auto; contain: none; }
	html body .pgm--live .pgm__img { position: static; width: 100%; height: auto; transform: none !important; }
}
