/* MOBILI RENT : galerie photo autonome, sans changer la mise en page existante. */
img[data-mr-gallery]{cursor:zoom-in}
img[data-mr-gallery]:focus-visible{outline:3px solid #168bf0;outline-offset:-3px}
/* Discrete invitation visible on hover or touch, without changing card dimensions. */
.carphoto:has(>img[data-mr-gallery]),.fleet-card:has(>img[data-mr-gallery]){position:relative}
.carphoto:has(>img[data-mr-gallery])::after,.fleet-card:has(>img[data-mr-gallery])::before{content:"Voir les photos ↗";position:absolute;z-index:2;top:12px;right:12px;background:rgba(9,24,40,.82);color:#fff;border:1px solid rgba(255,255,255,.30);border-radius:5px;padding:6px 9px;line-height:1.3;font-size:11px;font-weight:750;pointer-events:none;opacity:0;transition:opacity .18s ease}
.carphoto:has(>img[data-mr-gallery]):hover::after,.carphoto:has(>img[data-mr-gallery]):focus-within::after,.fleet-card:has(>img[data-mr-gallery]):hover::before,.fleet-card:has(>img[data-mr-gallery]):focus-within::before{opacity:1}
@media (hover:none){.carphoto:has(>img[data-mr-gallery])::after,.fleet-card:has(>img[data-mr-gallery])::before{opacity:1}}
.mr-gallery-open{overflow:hidden}
.mr-gallery-modal[hidden]{display:none!important}
.mr-gallery-modal{position:fixed;inset:0;z-index:9999;background:rgba(5,13,24,.94);display:flex;align-items:center;justify-content:center;padding:18px;color:#f5f9ff;font-family:Inter,system-ui,Arial,sans-serif}
.mr-gallery-panel{display:flex;flex-direction:column;gap:10px;width:min(1100px,100%);height:min(92dvh,900px);background:#111d2a;border:1px solid #29405b;border-radius:12px;box-shadow:0 25px 85px #0008;overflow:hidden}
.mr-gallery-top{display:flex;align-items:center;gap:16px;min-height:58px;padding:10px 17px;border-bottom:1px solid #2c4054}
.mr-gallery-title{flex:1;font-weight:800;font-size:clamp(16px,2vw,22px);margin:0;line-height:1.2;letter-spacing:0}
.mr-gallery-counter{font-size:13px;color:#bcd0e2;white-space:nowrap}
.mr-gallery-close,.mr-gallery-prev,.mr-gallery-next{background:#0b1e31d9;color:white;border:1px solid #35536d;cursor:pointer;border-radius:9px;display:flex;justify-content:center;align-items:center;font-family:inherit}
.mr-gallery-close{font-size:26px;width:40px;height:40px}
.mr-gallery-viewer{position:relative;flex:1;min-height:180px;display:flex;justify-content:center;align-items:center;background:#080f18;overflow:hidden;padding:20px}
.mr-gallery-img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center center}
.mr-gallery-prev,.mr-gallery-next{position:absolute;top:50%;transform:translateY(-50%);width:43px;height:56px;font-size:33px;line-height:1;z-index:1}
.mr-gallery-prev{left:8px}.mr-gallery-next{right:8px}
.mr-gallery-prev[hidden],.mr-gallery-next[hidden]{display:none}
.mr-gallery-caption{text-align:center;color:#d0e3f2;font-size:13px;min-height:19px}
.mr-gallery-thumbs{display:flex;flex-shrink:0;gap:7px;overflow-x:auto;padding:10px 14px 14px;scrollbar-width:thin;scrollbar-color:#4b6580 #192d43}
.mr-gallery-thumb{height:66px;width:96px;flex-shrink:0;background:#142535;border:2px solid transparent;border-radius:6px;padding:0;overflow:hidden;cursor:pointer;opacity:.75}
.mr-gallery-thumb[aria-current="true"]{border-color:#168bf0;opacity:1}.mr-gallery-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.mr-gallery-close:hover,.mr-gallery-prev:hover,.mr-gallery-next:hover{background:#1877cb}
@media(max-width:640px){.mr-gallery-modal{padding:5px}.mr-gallery-panel{height:96dvh;border-radius:7px}.mr-gallery-viewer{padding:12px}.mr-gallery-prev,.mr-gallery-next{width:34px;height:46px;font-size:27px}.mr-gallery-thumbs{padding:6px 10px 10px}.mr-gallery-thumb{width:70px;height:52px}}
