/* Property gallery: reserve real space for header and the complete preview strip. */
body[data-ji-page="property"] .ji-gallery{scroll-margin-top:calc(var(--ji-header-height,104px) + 14px)}
body[data-ji-page="property"] .ji-gallery-image{aspect-ratio:auto;height:min(66.6667cqw,var(--ji-gallery-image-limit,690px));min-height:0}
body[data-ji-page="property"] .ji-gallery-image img{width:100%;height:100%;object-fit:contain}

/* Stable stage fits the viewport while preserving the 130px desktop previews. */
body[data-ji-page="property"] .ji-gallery .ji-gallery-image,body[data-ji-page="property"] .ji-gallery .ji-gallery-image.ji-gallery-wide{height:var(--ji-main-frame-height,66.6667cqw);aspect-ratio:auto;min-height:0}
body[data-ji-page="property"] .ji-gallery .ji-gallery-image img{width:100%;height:100%;object-fit:contain;object-position:center center}

/* Keep the scrollbar; remove the second decorative rule below the gallery. */
body[data-ji-page="property"] .ji-detail-main>.ji-gallery::after{content:none;border:0}
