/* Only photos explicitly attached to the shared viewer receive gesture rules. */
.cadde-photo-gesture-stage{overflow:hidden!important;overscroll-behavior:contain}
.cadde-photo-gesture-image{touch-action:none!important;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;transform-origin:center center!important;cursor:zoom-in;transition:none!important}
.cadde-photo-zoomed .cadde-photo-gesture-image{cursor:grab}
.cadde-photo-zoomed .cadde-photo-gesture-image:active{cursor:grabbing}
.cadde-photo-gesture-image:focus-visible{outline:2px solid #ffab64;outline-offset:3px}
#photoLightbox.open{overflow:hidden;isolation:isolate}
#photoLightbox .lightbox-close,#photoLightbox .cadde-lightbox-prev,#photoLightbox .cadde-lightbox-next,#photoLightbox .cadde-lightbox-count,.cadde-feed-image-close{z-index:3!important}
.cadde-cover-view-gesture-wrap{width:100%;min-width:0;max-height:calc(100dvh - 90px);display:flex;align-items:center;justify-content:center}
.cadde-cover-view-gesture-wrap img{max-height:100%;object-fit:contain}

/* Existing listing and cover previews use the same viewport-level placement. */
html > #photoLightbox.open,html > #caddeCoverViewDialog:not([hidden]){position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;box-sizing:border-box!important;z-index:2147483600!important;background:rgba(6,10,17,.96)!important}
html > #photoLightbox.open{display:flex!important;align-items:center!important;justify-content:center!important;padding:16px!important}
html > #photoLightbox.open > img{width:auto!important;height:auto!important;max-width:calc(100vw - 40px)!important;max-height:calc(100dvh - 50px)!important;object-fit:contain!important;margin:auto!important}
html > #caddeCoverViewDialog:not([hidden]){display:grid!important;place-items:center!important}
