.orientation-strip.visit{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1fr) minmax(0,1.35fr);gap:32px;align-items:start;width:100%;max-width:none}
.orientation-strip>*{min-width:0}.orientation-strip .church-plan-figure{width:100%;max-width:none;margin:0}.orientation-strip .story-photo{width:100%;max-width:none}.orientation-strip .story-photo img{width:100%;height:auto;max-height:none;object-fit:contain}.orientation-strip iframe{width:100%;height:420px;min-width:0}.orientation-strip .plan-legend{font:12px/1.5 Arial,sans-serif;text-align:right;margin:12px 0 0;padding:0;list-style-position:inside}.orientation-strip figcaption{font:12px/1.5 Arial,sans-serif;text-align:right}.orientation-strip .trim-plan .story-photo{overflow:hidden}.orientation-strip .trim-plan img{width:114%;max-width:none;margin-inline:-7%}
.story-photo:has(img[src*="piazza04-img_4951"]),.story-photo:has(img[src*="pincio-obelisk"]){overflow:hidden}
img[src*="piazza04-img_4951"]{transform:rotate(.5deg) scale(1.012);filter:contrast(1.07) saturate(1.1)}
img[src*="pincio-obelisk"]{transform:rotate(-1deg) scale(1.025)}
@media(max-width:800px){.orientation-strip.visit{grid-template-columns:1fr;gap:28px}.orientation-strip iframe{height:340px}.orientation-strip .orientation-plan{width:min(100%,420px);justify-self:center}.comparison.portraits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.comparison.portraits figure{margin:0;min-width:0}}
.popolo-story .story-photo img[src*="popolo-facade"],.popolo-story .story-photo img[src*="popolo-arch"]{height:auto;max-height:none;object-fit:contain}
@media(max-width:1099px){.story-photo img[src*="pincio-obelisk"]{aspect-ratio:.86;object-fit:cover;object-position:center top;height:auto}}

@media(min-width:801px){.orientation-strip iframe{height:var(--visit-height,420px)}.orientation-strip .church-plan-figure .story-photo{height:var(--visit-height,420px);display:block}.orientation-strip .church-plan-figure img{height:100%;width:100%;object-fit:contain;object-position:right bottom}.orientation-strip .orientation-plan{width:100%}}
.comparison.paired-gates,.comparison.paired-plans{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.comparison.paired-gates figure,.comparison.paired-plans figure{margin:0;min-width:0}
/* Keep the plan and its legend on the same right edge, overriding legacy centering. */
.orientation-strip .church-plan-figure .story-photo{width:100%;max-width:100%;margin-inline:0}
.orientation-strip .church-plan-figure img{object-position:right bottom}
.orientation-strip .plan-legend{direction:rtl;text-align:right;margin-inline:0;padding-inline:0;list-style-position:inside}
/* One comparison group; no nested legacy portrait grid. */
.pincio-story .comparison.portraits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.pincio-story .comparison.portraits>figure{display:block;min-width:0;width:100%;margin:0}
.pincio-story .comparison.portraits .story-photo{width:100%;height:auto;aspect-ratio:auto}
.pincio-story .comparison.portraits .story-photo img{width:100%;height:auto!important;max-height:none;object-fit:contain}
@media(max-width:600px){
 .pincio-story .comparison.portraits{display:block;width:calc(100% + 40px);max-width:none;margin:26px -20px}
 .pincio-story .comparison.portraits>figure{margin-bottom:28px}
 .pincio-story .comparison.portraits figcaption{padding-inline:20px}
}
