/* Gallery geometry follows the photograph rather than a landscape placeholder. */
.warehouse-view,.gallery-main{aspect-ratio:var(--photo-ratio,4/3);width:min(100%,var(--photo-width,100%));height:auto;max-height:none;margin-inline:auto;background:transparent;isolation:auto}
.warehouse-view::before,.fleet-image::before{display:none}
.warehouse-enlarge,.gallery-open{width:100%;height:100%;display:block;background:transparent}
.warehouse-enlarge>img,.gallery-current{display:block;width:100%;height:100%;object-fit:contain!important;object-position:center!important;background:transparent}
.fleet-image{aspect-ratio:16/10;overflow:hidden}.fleet-image img{object-fit:cover;object-position:var(--image-position,50% 60%)}
.warehouse-modal,#gallery-dialog,#lightbox{width:fit-content;max-width:96vw;max-height:96dvh;padding:12px;background:#111;color:#fff;border:1px solid #444;overflow:auto}
.warehouse-modal>img,#gallery-dialog>img,#lightbox>img{display:block;width:auto;height:auto;max-width:calc(96vw - 26px);max-height:calc(96dvh - 140px);object-fit:contain;margin:auto;touch-action:pan-y}
.warehouse-modal>div{min-height:44px}.warehouse-thumb img{object-position:center}.catalog-specs dd{overflow-wrap:anywhere}
@media(max-width:600px){.warehouse-view,.gallery-main{width:min(100%,calc(480px * var(--photo-ratio,1)));}.warehouse-modal,#gallery-dialog,#lightbox{padding:8px}.warehouse-modal>img,#gallery-dialog>img,#lightbox>img{max-width:calc(96vw - 18px)}}
