/* Shared source-photo preview and fullscreen controls, independent of public galleries. */
.rn-redata-media{margin:14px 0 20px;border:1px solid #dbe5ec;border-radius:14px;background:#fff;overflow:hidden}
.rn-redata-media-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;border-bottom:1px solid #e8eef2;font-size:12px}
.rn-redata-media-header small,.rn-redata-media-notice{font-size:10px;color:var(--rn-muted,#617180)}
.rn-redata-media-status{padding:18px 15px;margin:0!important;font-size:12px}
.rn-redata-media>.rn-button{margin:0 15px 14px}
.rn-redata-gallery{padding:12px;margin:0!important}
.rn-redata-gallery>.rn-photo-open{display:block;width:100%;height:clamp(180px,30vh,320px);padding:0;overflow:hidden;border-radius:10px}
.rn-redata-image{display:block;position:relative;width:100%;height:100%;min-height:inherit;background:linear-gradient(135deg,#eaf1f6,#f6f8fa);overflow:hidden}
.rn-redata-image>img{display:block;width:100%;height:100%;object-fit:cover}
.rn-redata-image>img:not([src]){visibility:hidden}
.rn-redata-image-note{position:absolute;inset:0;display:grid;place-items:center;padding:12px;color:#62788b;font-size:11px}
.rn-redata-image-note[hidden]{display:none}
.rn-redata-image-error{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;height:100%;padding:16px;color:#607386;text-align:center;font-size:11px}
.rn-redata-image-error .rn-button{font-size:11px;min-height:36px;padding:7px 12px}
.rn-redata-media-caption{font-size:10px;color:var(--rn-muted,#617180);margin:8px 0!important;overflow-wrap:anywhere}
.rn-redata-thumbs{display:flex!important;gap:8px!important;overflow-x:auto;overscroll-behavior-x:contain;padding:3px 0 8px!important;scroll-snap-type:x proximity}
.rn-redata-thumbs>button{flex:0 0 72px;width:72px;height:60px;min-height:44px;padding:0;border-radius:7px;overflow:hidden;scroll-snap-align:start}
.rn-redata-thumbs [data-media-frame]{border-radius:4px}
.rn-redata-thumbs .rn-redata-image-note{font-size:9px;padding:3px}
.rn-redata-thumbs .rn-redata-image-error{font-size:9px;padding:3px;gap:2px}
.rn-redata-thumbs .rn-redata-image-error .rn-button{min-height:30px;padding:2px 4px;font-size:9px}
.rn-redata-media-notice{display:block;margin-top:10px;line-height:1.45}
.rn-redata-more{margin-top:7px;min-height:38px!important;font-size:11px!important}
.rn-redata-media-compact{margin:0 0 10px;width:100%}.rn-redata-media-compact .rn-redata-media-header{padding:8px 10px;font-size:10px}.rn-redata-media-compact .rn-redata-gallery{padding:8px}.rn-redata-media-compact .rn-redata-gallery>.rn-photo-open{height:160px}.rn-redata-media-compact .rn-redata-media-notice{display:none}.rn-redata-media-compact .rn-redata-media-caption{font-size:9px}
.rn-valuation-list article:has(>.rn-redata-media){display:grid;grid-template-columns:180px minmax(0,1fr) auto;align-items:center}.rn-valuation-list article>.rn-redata-media{margin:0}.rn-valuation-list article>.rn-redata-media .rn-photo-open{height:125px}.rn-valuation-list article>.rn-redata-media .rn-redata-media-header{display:none}.rn-valuation-list article>.rn-redata-media .rn-redata-media-caption{margin-bottom:0!important}
.rn-redata-photo-dialog{max-width:100vw!important;max-height:100dvh!important;width:100vw!important;height:100dvh!important;margin:0!important;border:0!important;border-radius:0!important;box-sizing:border-box;color:#fff;background:#0b1723!important;padding:0!important}
.rn-redata-photo-dialog[open]{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}
.rn-redata-photo-dialog::backdrop{background:#0b1723}
.rn-redata-photo-dialog header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 20px;min-height:56px;box-sizing:border-box}
.rn-redata-photo-dialog header strong{font-size:13px;overflow-wrap:anywhere}
.rn-redata-photo-dialog header svg{height:20px;width:20px}
.rn-redata-photo-dialog header .rn-redata-photo-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;font-size:28px;line-height:1}
.rn-redata-photo-dialog .rn-photo-stage{height:100%;min-height:0;display:grid;place-items:center;touch-action:pan-y;overflow:hidden;padding:10px 20px}
.rn-redata-photo-dialog .rn-photo-stage .rn-redata-image{width:100%;height:100%;min-height:0;background:transparent}
.rn-redata-photo-dialog .rn-photo-stage img{object-fit:contain!important;max-height:100%;max-width:100%}
.rn-redata-photo-dialog .rn-redata-image-note,.rn-redata-photo-dialog .rn-redata-image-error{color:#c8d7e1}
.rn-redata-photo-dialog footer{padding:12px 20px max(12px,env(safe-area-inset-bottom));text-align:center}
.rn-redata-photo-dialog footer p{font-size:10px;margin:7px 0 0!important;color:#aabcc9;overflow-wrap:anywhere}
.rn-redata-photo-dialog .rn-photo-controls{display:flex;align-items:center;justify-content:center;gap:10px}
.rn-redata-photo-dialog .rn-photo-controls>span{min-width:62px;font-size:12px;font-variant-numeric:tabular-nums}
.rn-redata-photo-dialog .rn-button{min-width:44px;min-height:44px;padding:9px 13px;background:#172c3e;color:#fff;border-color:#41596c}
@media(max-width:600px){.rn-redata-media-header{padding:10px 12px}.rn-redata-gallery{padding:9px}.rn-redata-gallery>.rn-photo-open{height:220px}.rn-redata-photo-dialog header{padding:10px 12px}.rn-redata-photo-dialog .rn-photo-stage{padding:5px}.rn-redata-photo-dialog footer{padding-left:12px;padding-right:12px}.rn-redata-thumbs>button{flex-basis:64px;width:64px;height:55px}}
@media(max-width:700px){.rn-valuation-list article:has(>.rn-redata-media){grid-template-columns:1fr}.rn-valuation-list article>.rn-redata-media .rn-photo-open{height:170px}.rn-valuation-list article:has(>.rn-redata-media)>.rn-button{justify-self:end}}
@media(prefers-reduced-motion:no-preference){.rn-redata-gallery>.rn-photo-open img{animation:rn-redata-photo-in .2s ease-out}@keyframes rn-redata-photo-in{from{opacity:.3}to{opacity:1}}}

/* Optional gallery explorer. The default preview and fullscreen viewer stay shared. */
.rn-redata-media-explorer{container:rn-source-gallery / inline-size;min-width:0}
.rn-redata-explorer{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0;max-width:1120px;margin:0 auto}
.rn-redata-explorer>*,.rn-redata-browser{min-width:0}
.rn-redata-focus{min-width:0}
.rn-redata-focus>.rn-photo-open{width:100%;max-width:560px;aspect-ratio:4/3;height:auto;max-height:420px;margin:0 auto;background:#f1f5f8;border:1px solid #e0e8ed;border-radius:10px}
.rn-redata-focus>.rn-photo-open>.rn-redata-image{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;border-radius:0;background:#f1f5f8;backdrop-filter:none}
.rn-redata-focus .rn-photo-open img{object-fit:contain}
.rn-redata-inline-controls{display:flex;align-items:center;justify-content:center;gap:12px;margin:9px 0}
.rn-redata-inline-controls .rn-button{min-width:44px;min-height:44px;padding:8px}
.rn-redata-inline-controls>span{font-size:11px;color:#607789;min-width:65px;text-align:center;font-variant-numeric:tabular-nums}
.rn-redata-browser-label{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#3f5f78;font-size:11px;margin:0 0 8px}
.rn-redata-browser-label>span{font-size:10px;color:#738a9b}
.rn-redata-media-explorer .rn-redata-thumbs{margin:0;min-width:0}
.rn-redata-media-explorer .rn-redata-thumbs>button{position:relative}
.rn-redata-tile-number{position:absolute;right:4px;bottom:4px;border-radius:4px;background:#132c43d9;color:#fff;font-size:9px;padding:2px 5px;line-height:1.4}
.rn-redata-media-explorer .rn-redata-media-caption{font-size:9px;line-height:1.5}
.rn-redata-explorer.is-single{max-width:560px}
@container rn-source-gallery (min-width:620px){
 .rn-redata-explorer:not(.is-single){grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr);gap:16px}
 .rn-redata-media-explorer .rn-redata-thumbs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;align-items:start;gap:9px!important;height:clamp(240px,38vh,420px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y proximity;padding:2px 4px 5px 0!important;align-content:start;scrollbar-width:thin}
 .rn-redata-media-explorer .rn-redata-thumbs>button{width:100%;height:auto;aspect-ratio:4/3;min-width:0;flex:none;border-radius:8px}
 .rn-redata-media-explorer .rn-redata-thumbs>button[aria-pressed=true]{border-color:#b6995a;box-shadow:0 0 0 1px #b6995a}
}
@container rn-source-gallery (min-width:980px){.rn-redata-media-explorer .rn-redata-thumbs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.rn-redata-focus>.rn-photo-open{max-height:300px}.rn-redata-inline-controls{margin:8px 0}.rn-redata-browser-label{font-size:10px}.rn-redata-tile-number{font-size:8px}}
