/* Final, shared gallery viewer corrections: entire object fits the viewport. */
.v8-lightbox[hidden]{display:none!important}
.v8-lightbox{
 box-sizing:border-box!important;
 position:fixed!important;inset:0!important;z-index:2147483000!important;
 width:100vw!important;height:100vh!important;height:100dvh!important;
 max-width:none!important;max-height:none!important;
 padding:58px 64px 57px!important;margin:0!important;
 overflow:hidden!important;display:grid!important;place-items:center!important;
 background:rgba(5,10,12,.96)!important;
}
.v8-lightbox>img{
 position:static!important;display:block!important;
 width:100%!important;height:100%!important;
 min-width:0!important;min-height:0!important;max-width:1100px!important;
 max-height:100%!important;object-fit:contain!important;
 margin:auto!important;overflow:hidden!important;
}
.v8-lightbox button{z-index:1!important;line-height:1!important;display:grid;place-items:center;}
.v8-lightbox .v8-prev,.v8-lightbox .v8-next{top:50%!important;transform:translateY(-50%)!important;bottom:auto!important;}
.v8-lightbox .v8-close{right:12px!important;top:12px!important}
.v8-lightbox-caption{position:absolute!important;bottom:15px!important;left:50px!important;right:50px!important;text-align:center!important;color:#fff!important;font-size:13px!important}
/* Photo gallery for Automotive uses a separate dialog. Apply consistent size constraints. */
.auto-lightbox[open]{
 box-sizing:border-box!important;position:fixed!important;
 width:min(98vw,1350px)!important;height:min(94vh,940px)!important;height:min(94dvh,940px)!important;
 max-width:none!important;max-height:none!important;min-width:0!important;
 margin:auto!important;padding:0!important;overflow:hidden!important;
 border:0!important;border-radius:10px!important;
 background:#10171a!important;color:#fff!important;
}
.auto-lightbox::backdrop{background:rgba(0,0,0,.92)!important}
.auto-lightbox-layout{display:flex!important;flex-direction:column!important;height:100%!important;max-height:none!important;overflow:hidden!important;}
.auto-lightbox-head{flex:0 0 auto!important;min-height:60px;}
.auto-lightbox-view{display:grid!important;grid-template-columns:46px minmax(0,1fr) 46px!important;
 flex:1 1 auto!important;min-height:0!important;max-height:none!important;align-items:stretch!important;
 gap:9px!important;padding:4px 12px 15px!important;box-sizing:border-box!important;overflow:hidden!important;}
.auto-lightbox-view img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;min-height:0!important;min-width:0!important;object-fit:contain!important;justify-self:center!important;align-self:center!important;}
.auto-lightbox-view button{align-self:center!important;min-height:46px;z-index:1;}
@media(max-width:600px){
 .v8-lightbox{padding:59px 9px 70px!important}
 .v8-lightbox>img{width:100%!important;height:100%!important}
 .v8-lightbox .v8-prev,.v8-lightbox .v8-next{top:auto!important;transform:none!important;bottom:8px!important}
 .v8-lightbox .v8-close{top:8px!important;right:8px!important}
 .v8-lightbox-caption{bottom:58px!important;left:10px!important;right:10px!important}
 .auto-lightbox[open]{width:100vw!important;height:96vh!important;height:96dvh!important;border-radius:0!important}
 .auto-lightbox-head{min-height:56px;padding:8px 10px!important}
 .auto-lightbox-view{grid-template-columns:36px minmax(0,1fr) 36px!important;gap:3px!important;padding:3px 4px 12px!important}
 .auto-lightbox-view button{min-height:42px;}
}
