/* Approved rental card frame, shared card standard for sale and rental detail pages. */
body[data-ji-page="property"] .ji-buy-card-standard::before{display:none}
.ji-buy-facts-card{border:1px solid #e4e0d9;border-radius:12px;padding:24px 28px;background:#fff}
body[data-ji-page="property"] .ji-buy-facts-card .ji-facts-heading{margin-top:0}
/* Keep the existing contact grid and container breakpoints. */
.ji-inquiry-left>h3{font-size:23px;margin-bottom:24px}
.ji-property-form textarea{font-size:13px}
/* Thumbnail strip follows the painted photo, including contain side margins. */
.ji-gallery .ji-thumbnail-slider{max-width:100%;margin-inline:auto;box-sizing:border-box;overflow:hidden}
.property-project-note-photo-link{display:block}
@media(max-width:700px){.ji-buy-facts-card{padding:20px 18px}}

/* Fixed property preview width, aligned with the video and section rule. */
body[data-ji-page="property"] .ji-gallery .ji-thumbnail-slider{width:100%;margin-inline:0}
body[data-ji-page="property"] .ji-gallery-image img{object-position:center center}
body[data-ji-page="property"] .ji-gallery{--ji-preview-width:clamp(100px,calc((100cqw - 24px)/5),176px)}
body[data-ji-page="property"] .ji-thumbnails{gap:6px;padding-top:4px}
body[data-ji-page="property"] .ji-thumbnail{border:0}
body[data-ji-page="property"] .ji-strip-arrow{top:4px;bottom:8px}
@media(max-width:600px){body[data-ji-page="property"] .ji-gallery{--ji-preview-width:calc((100cqw - 12px)/2.5)}}

/* Keep native horizontal scrolling without a visible bar over preview photos. */
body[data-ji-page="property"] .ji-thumbnails{scrollbar-width:thin;overflow-y:hidden;padding-bottom:12px}
body[data-ji-page="property"] .ji-thumbnails::-webkit-scrollbar{display:block;height:10px}

body:is([data-ji-page="property"],[data-ji-page="project"]) .ji-gallery-drag-hint{position:absolute;z-index:3;top:50%;left:50%;transform:translate(-50%,-50%);padding:8px 12px;max-width:calc(100% - 24px);width:max-content;box-sizing:border-box;border-radius:3px;background:rgba(255,255,255,.95);color:#222;border:1px solid #ddd;box-shadow:0 2px 8px #0002;font:400 12px/1.4 Arial,sans-serif;text-align:center;pointer-events:none}

/* Landscape photos use full gallery width at their original aspect ratio. */
body[data-ji-page="property"] .ji-gallery-image.ji-gallery-wide{height:auto;aspect-ratio:var(--ji-photo-ratio,3/2)}

/* Reserve clearance for the native horizontal scrollbar, including overlay scrollbars. */
body[data-ji-page="property"] .ji-thumbnails::-webkit-scrollbar-thumb{background:#999;border:2px solid #fff;border-radius:6px}
body[data-ji-page="property"] .ji-thumbnails::-webkit-scrollbar-track{background:#fff}
body:is([data-ji-page="property"],[data-ji-page="project"]) .ji-gallery-drag-hint::before{content:'↔';display:inline-block;margin-right:7px;animation:ji-drag-hint 1s ease-in-out 2}
@keyframes ji-drag-hint{0%,100%{transform:translateX(-3px)}50%{transform:translateX(3px)}}
@media(prefers-reduced-motion:reduce){body:is([data-ji-page="property"],[data-ji-page="project"]) .ji-gallery-drag-hint::before{animation:none}}

/* Stable uncropped stage: reserve room for previews and their scrollbar. */
body[data-ji-page="property"] .ji-gallery-image,body[data-ji-page="property"] .ji-gallery-image.ji-gallery-wide{height:auto;aspect-ratio:3/2}

/* First-view swipe instruction; no layout shift or blocked controls. */
body:is([data-ji-page="property"],[data-ji-page="project"]) .ji-gallery-swipe-cue{display:flex;flex-direction:column;align-items:center;gap:0;padding:4px 22px;min-width:200px;max-width:calc(100% - 24px);top:calc(var(--ji-preview-width) * .35 + 4px);background:rgba(255,255,255,.62);box-shadow:0 2px 12px #0002;animation:ji-swipe-cue-fade 3.5s both}
/* Center over the thumbnail image boxes, independently of the scrollbar below. */
body[data-ji-page="project"] .ji-gallery-swipe-cue{top:calc(var(--ji-preview-width) * .35 + 10px)}
body:is([data-ji-page="property"],[data-ji-page="project"]) .ji-gallery-swipe-cue::before{content:none;animation:none}
.ji-gallery-swipe-cue svg{display:block;width:71.111px;height:32px;fill:none;stroke:#333;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.ji-gallery-swipe-cue .ji-swipe-hand path{vector-effect:non-scaling-stroke;stroke-width:1.2}
.ji-gallery-swipe-cue .ji-swipe-hand{animation:ji-swipe-hand 1s ease-in-out 3}
@keyframes ji-swipe-hand{0%,100%{transform:translateX(-5px)}50%{transform:translateX(5px)}}
@keyframes ji-swipe-cue-fade{0%{opacity:0}10%,85%{opacity:1}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){body:is([data-ji-page="property"],[data-ji-page="project"]) .ji-gallery-swipe-cue,.ji-gallery-swipe-cue .ji-swipe-hand{animation:none}}
