/* Mobile enlargement fills the screen width; image remains uncropped. */
.ji-mobile-view-tools{display:none}
@media(max-width:1200px){
body .ji-lightbox{width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important}
body .ji-lightbox .ji-lightbox-frame{inset:60px 0 106px!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;margin:0!important}
body .ji-lightbox .ji-lightbox-image{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important}
body .ji-lightbox .ji-lightbox-image img{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important}
body .ji-lightbox .ji-lightbox-close{top:10px!important;right:10px!important;width:44px!important;height:44px!important;padding:8px!important}
body .ji-lightbox .ji-lightbox-caption{bottom:76px!important;left:12px!important;right:12px!important;font-size:12px!important;line-height:1.3!important}
.ji-mobile-view-tools{position:absolute;z-index:5;bottom:max(10px,env(safe-area-inset-bottom));left:12px;right:12px;display:flex;align-items:center;justify-content:center;gap:12px;color:#444;font:400 12px/1.4 Inter,Arial,sans-serif}
.ji-rotate-hint{display:flex;align-items:center;justify-content:center;gap:8px;max-width:240px;margin:0}
.ji-rotate-hint svg{flex:0 0 26px;width:26px;height:26px;stroke:#756a58;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.ji-mobile-fullscreen{flex:0 0 auto;min-height:40px;padding:8px 12px;background:#fff;border:1px solid #c2b6a0;border-radius:0;color:#232323;font:400 12px/1.3 Inter,Arial,sans-serif;cursor:pointer}
}
@media(max-width:1200px) and (orientation:landscape){
body .ji-lightbox .ji-lightbox-frame{inset:0!important}
body .ji-lightbox .ji-lightbox-caption{bottom:8px!important;left:64px!important;right:128px!important;width:auto!important;background:#ffffffcc;padding:3px 6px!important;font-size:11px!important}
.ji-mobile-view-tools{bottom:max(6px,env(safe-area-inset-bottom));left:auto;right:8px}
.ji-rotate-hint{display:none}
.ji-mobile-fullscreen{min-height:34px;padding:6px 10px}
}

@media(max-width:1200px){body .ji-lightbox .ji-rotate-hint,body .ji-lightbox .ji-rotate-hint span{font:400 12px/1.4 Inter,Arial,sans-serif!important;color:#444!important}body .ji-lightbox .ji-rotate-hint{max-width:240px!important;margin:0!important}}

/* Main detail gallery and thumbnail strip reach both screen edges on phones. */
@media(max-width:780px){html body:is([data-ji-page="property"],[data-ji-page="project"]) .ji-detail-main>.ji-gallery{box-sizing:border-box!important;width:100vw!important;max-width:none!important;margin-left:calc((100% - 100vw)/2)!important;margin-right:calc((100% - 100vw)/2)!important;padding-left:0!important;padding-right:0!important}html body:is([data-ji-page="property"],[data-ji-page="project"]) .ji-gallery :is(.ji-gallery-display,.ji-gallery-stage,.ji-thumbnail-slider,.ji-thumbnails){box-sizing:border-box!important;width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important}html body:is([data-ji-page="property"],[data-ji-page="project"]) .ji-gallery .ji-thumbnail-slider{padding-left:0!important;padding-right:0!important}}

.ji-gallery-display,.ji-lightbox-frame{touch-action:pan-y pinch-zoom}.ji-gallery-display img,.ji-lightbox-frame img{-webkit-user-drag:none;user-select:none}

/* Enlarged gallery: no caption overlay over the photograph. */
.ji-lightbox .ji-lightbox-caption{display:none!important}

.ji-lightbox:fullscreen{width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important}.ji-lightbox:fullscreen .ji-lightbox-frame{inset:0!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;margin:0!important}.ji-lightbox:fullscreen .ji-lightbox-image,.ji-lightbox:fullscreen .ji-lightbox-image img{width:100%!important;height:100%!important;object-fit:contain!important;max-width:none!important;max-height:none!important}

html:fullscreen .ji-lightbox{width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important}html:fullscreen .ji-lightbox .ji-lightbox-frame{inset:0!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;margin:0!important}html:fullscreen .ji-lightbox .ji-lightbox-image,html:fullscreen .ji-lightbox .ji-lightbox-image img{width:100%!important;height:100%!important;object-fit:contain!important;max-width:none!important;max-height:none!important}

body .ji-lightbox .ji-mobile-fullscreen{display:inline-flex!important;align-items:center;justify-content:center}body .ji-lightbox .ji-mobile-view-tools{z-index:20!important}

/* Lift mobile controls clear of browser/navigation overlays. */
@media(max-width:1200px){body .ji-lightbox .ji-mobile-view-tools{bottom:calc(42px + env(safe-area-inset-bottom))!important}}
@media(max-width:1200px) and (orientation:landscape){body .ji-lightbox .ji-mobile-view-tools{bottom:calc(30px + env(safe-area-inset-bottom))!important}}

/* Keep gallery controls above Chrome fullscreen exit notice. */
@media(max-width:1200px){body .ji-lightbox .ji-mobile-view-tools{bottom:calc(112px + env(safe-area-inset-bottom))!important}}
@media(max-width:1200px) and (orientation:landscape){body .ji-lightbox .ji-mobile-view-tools{bottom:calc(82px + env(safe-area-inset-bottom))!important}}

@media(max-width:1200px){body .ji-lightbox .ji-mobile-view-tools{bottom:calc(160px + env(safe-area-inset-bottom))!important}}
@media(max-width:1200px) and (orientation:landscape){body .ji-lightbox .ji-mobile-view-tools{bottom:calc(100px + env(safe-area-inset-bottom))!important}}

@media(max-width:1200px){body .ji-lightbox .ji-mobile-view-tools{bottom:calc(184px + env(safe-area-inset-bottom))!important;gap:14px!important}body .ji-lightbox .ji-rotate-hint,body .ji-lightbox .ji-rotate-hint span{font:400 14px/1.4 Inter,Arial,sans-serif!important}body .ji-lightbox .ji-rotate-hint svg{width:36px!important;height:36px!important;flex-basis:36px!important}body .ji-lightbox .ji-mobile-fullscreen{font-size:14px!important;min-height:44px!important}}
@media(max-width:1200px) and (orientation:landscape){body .ji-lightbox .ji-mobile-view-tools{bottom:calc(114px + env(safe-area-inset-bottom))!important}}

.ji-gallery-display{position:relative}.ji-gallery-enlarge-cue{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:6;display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 14px;background:rgba(255,255,255,.87);color:#232323;pointer-events:none;font:400 13px/1.3 Inter,Arial,sans-serif;animation:viason-enlarge-cue 4.2s both}.ji-gallery-enlarge-cue svg{width:34px;height:34px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round}@keyframes viason-enlarge-cue{0%{opacity:0}10%,80%{opacity:1}100%{opacity:0}}@media(prefers-reduced-motion:reduce){.ji-gallery-enlarge-cue{animation:none}}

.ji-gallery-enlarge-cue{animation:viason-enlarge-cue-ready 6.2s both}@keyframes viason-enlarge-cue-ready{0%,80%{opacity:1}100%{opacity:0}}@media(prefers-reduced-motion:reduce){.ji-gallery-enlarge-cue{animation:none}}

@media(max-width:780px){html body .ji-expose-download{min-height:36px!important;padding:6px 10px!important;font-size:12px!important;line-height:1.3!important;gap:6px!important}html body .ji-expose-download svg{width:14px!important;height:14px!important}}

@media(max-width:780px){html body .ji-expose-download{font-size:12.5px!important;position:relative!important;top:8px!important}}

.ji-gallery-swipe-cue{position:absolute;z-index:25;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:7px;padding:12px 16px;max-width:80vw;background:rgba(255,255,255,.76);color:#333;font:400 13px/1.4 Inter,Arial,sans-serif;text-align:center;pointer-events:none;animation:viason-swipe-cue 4.8s both}.ji-gallery-swipe-cue svg{width:54px;height:42px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}@keyframes viason-swipe-cue{0%,75%{opacity:1}100%{opacity:0}}@media(prefers-reduced-motion:reduce){.ji-gallery-swipe-cue{animation:none}}

.ji-gallery-main-swipe-cue{z-index:7!important;animation:viason-swipe-cue 5.8s both!important}.ji-gallery-display .ji-gallery-swipe-cue span{font:400 13px/1.4 Inter,Arial,sans-serif!important}

@media(max-width:780px){body[data-ji-page="project"] .pv-table-wrap{scrollbar-width:none!important;-ms-overflow-style:none!important}body[data-ji-page="project"] .pv-table-wrap::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}}

.pv-table-swipe-hint{display:flex!important;align-items:center;justify-content:flex-end;gap:7px;margin:4px 0 8px!important;padding:0!important;color:#655f55!important;font:400 12px/1.4 Inter,Arial,sans-serif!important}.pv-table-swipe-hint span{font:inherit!important}.pv-table-swipe-hint svg{flex:0 0 27px;width:27px;height:22px;stroke:currentColor;fill:none;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}

@media(max-width:1200px) and (orientation:portrait){.ji-lightbox .ji-gallery-swipe-cue{top:calc(50% - 23px)}}html:fullscreen .ji-lightbox .ji-gallery-swipe-cue,.ji-lightbox:fullscreen .ji-gallery-swipe-cue{top:50%}

.pv-table-swipe-hint svg.pv-table-swipe-demo{width:44px;height:30px;flex-basis:44px;overflow:visible}.pv-table-swipe-demo-rows{animation:pv-table-demo-shift 1.7s ease-in-out 2}@keyframes pv-table-demo-shift{0%,100%{transform:translateX(0)}50%{transform:translateX(-13px)}}@media(prefers-reduced-motion:reduce){.pv-table-swipe-demo-rows{animation:none}}

.pv-table-wrap{position:relative}.pv-table-swipe-hint.pv-table-row-swipe-cue{position:absolute;left:0;z-index:5;box-sizing:border-box;display:flex!important;flex-direction:column;justify-content:center!important;gap:5px!important;min-height:66px;margin:0!important;padding:7px 6px!important;background:rgba(255,255,255,.9);border:1px solid rgba(194,182,160,.55);pointer-events:none}.pv-row-cue-title{font:400 10px/1.3 Inter,Arial,sans-serif!important;text-align:center}.pv-row-cue-demo{display:flex;align-items:center;justify-content:space-between;gap:4px;width:100%}.pv-row-cue-arrow{font:300 27px/1 Arial,sans-serif!important;color:#756a58}.pv-row-cue-values{display:flex;justify-content:space-around;align-items:center;gap:5px;flex:1;animation:pv-row-cue-slide 1.6s ease-in-out 2}.pv-row-cue-values>span{display:flex;flex-direction:column;gap:2px;white-space:nowrap}.pv-row-cue-values small{font:400 8px/1.2 Inter,Arial,sans-serif!important}.pv-row-cue-values strong{font:500 9px/1.3 Inter,Arial,sans-serif!important}@keyframes pv-row-cue-slide{0%,100%{transform:translateX(0)}33%{transform:translateX(-4px)}66%{transform:translateX(4px)}}@media(prefers-reduced-motion:reduce){.pv-row-cue-values{animation:none}}

/* Landscape phones use available width instead of height-derived portrait width. */
@media(max-width:1200px) and (max-height:600px) and (orientation:landscape){body[data-ji-page="project"],body[data-ji-page="property"]{--ji-detail-width:1120px!important}body:is([data-ji-page="project"],[data-ji-page="property"]) main>.hero>.inner,body:is([data-ji-page="project"],[data-ji-page="property"]) main>.ji-section{width:100%!important;max-width:1120px!important;box-sizing:border-box!important;padding-left:20px!important;padding-right:20px!important}}

/* These instructional overlays belong only to the mobile/touch gallery. */
@media(min-width:781px) and (hover:hover) and (pointer:fine){.ji-gallery-enlarge-cue,.ji-gallery-main-swipe-cue,.ji-lightbox .ji-gallery-swipe-cue,.ji-mobile-view-tools{display:none!important}}
