/* Laatjehuren.nl – advertentiefoto's; uitsluitend de publieke detailpagina. */
.lh-gallery{margin:22px 0 27px;--lh-gallery-orange:#ff7417;--lh-gallery-blue:#0c3670}
.lh-gallery__stage{position:relative;overflow:hidden;border:1px solid #d7e2ef;border-radius:12px;background:linear-gradient(135deg,#eef3f9 0%,#f9fbfd 52%,#e7eef7 100%)}
.lh-gallery__open{border:0;background:transparent;display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:16/10;min-height:230px;max-height:490px;padding:14px;cursor:zoom-in}
.lh-gallery__image{width:100%;height:100%;max-height:462px;object-fit:contain;display:block;border-radius:6px}
.lh-gallery__open:focus-visible,.lh-gallery__thumb:focus-visible,.lh-gallery__arrow:focus-visible,.lh-gallery__lightbox button:focus-visible{outline:3px solid var(--lh-gallery-orange);outline-offset:3px}
.lh-gallery__counter{position:absolute;bottom:15px;left:15px;background:rgba(8,29,58,.88);color:white;border-radius:22px;padding:7px 12px;font-size:13px;font-weight:700;line-height:1.1;pointer-events:none}
.lh-gallery__hint{position:absolute;bottom:15px;right:15px;background:rgba(255,255,255,.94);color:#153c6b;border-radius:22px;padding:7px 12px;font-size:12px;font-weight:700;pointer-events:none}
.lh-gallery__arrow{position:absolute;top:50%;transform:translateY(-50%);width:41px;height:41px;border-radius:50%;border:1px solid #d6e4f5;background:rgba(255,255,255,.94);box-shadow:0 3px 10px rgba(9,40,82,.14);color:#0b3672;font-size:27px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s ease}
.lh-gallery__arrow:hover{background:#fff3e9;color:#a74400}
.lh-gallery__arrow--prev{left:12px}.lh-gallery__arrow--next{right:12px}
.lh-gallery__strip{display:flex;gap:10px;overflow-x:auto;padding:12px 2px 4px;scrollbar-width:thin;scrollbar-color:#a9c5df #f4f7fb;scroll-snap-type:x proximity}
.lh-gallery__thumb{position:relative;flex:0 0 105px;height:80px;padding:3px;border:2px solid #d9e4f1;background:#f4f7fb;border-radius:9px;cursor:pointer;scroll-snap-align:start;transition:border-color .15s ease,box-shadow .15s ease}
.lh-gallery__thumb:hover{border-color:#90add0}.lh-gallery__thumb.is-active{border-color:var(--lh-gallery-orange);box-shadow:0 0 0 1px var(--lh-gallery-orange)}
.lh-gallery__thumb img{display:block;width:100%;height:100%;object-fit:cover;border-radius:4px}
.lh-gallery__thumb-number{position:absolute;bottom:5px;left:7px;color:white;background:rgba(8,29,58,.78);font-size:10px;font-weight:750;border-radius:12px;padding:2px 5px;line-height:1.2}
.lh-gallery__caption{color:#5e7691;font-size:12px;margin:7px 0 0}
.lh-gallery__lightbox{position:fixed;margin:auto;padding:0;border:0;border-radius:12px;background:#06182e;color:white;width:min(96vw,1200px);max-width:1200px;max-height:96vh;overflow:hidden;box-shadow:0 18px 65px rgba(0,0,0,.55)}
.lh-gallery__lightbox::backdrop{background:rgba(4,15,30,.89)}
.lh-gallery__lightbox-body{position:relative;display:flex;align-items:center;justify-content:center;min-height:min(75vh,720px);padding:50px 62px 22px}
.lh-gallery__lightbox-image{display:block;width:100%;max-height:calc(85vh - 75px);object-fit:contain}
.lh-gallery__close{position:absolute;top:10px;right:12px;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:rgba(255,255,255,.14);color:white;font-size:23px;line-height:1;width:37px;height:37px;cursor:pointer}
.lh-gallery__lightbox-arrow{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.28);border-radius:50%;width:39px;height:39px;color:#fff;font-size:28px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.lh-gallery__lightbox-arrow--prev{left:10px}.lh-gallery__lightbox-arrow--next{right:10px}
.lh-gallery__lightbox-footer{text-align:center;font-size:13px;color:#d5e5f6;padding:0 15px 15px}
@media(max-width:720px){.lh-gallery__open{aspect-ratio:4/3;min-height:190px;padding:8px}.lh-gallery__image{max-height:350px}.lh-gallery__arrow{width:34px;height:34px;font-size:22px}.lh-gallery__arrow--prev{left:7px}.lh-gallery__arrow--next{right:7px}.lh-gallery__thumb{flex-basis:86px;height:67px}.lh-gallery__hint{font-size:11px;bottom:12px;right:9px}.lh-gallery__counter{bottom:12px;left:9px}.lh-gallery__lightbox-body{min-height:50vh;padding:42px 43px 14px}.lh-gallery__lightbox-image{max-height:75vh}}
@media(prefers-reduced-motion:reduce){.lh-gallery__thumb,.lh-gallery__arrow{transition:none}}

/* Correctie 2026-11-19: compacte galerij op desktop, tablet en mobiel. */
.lh-gallery,.lh-gallery * {box-sizing:border-box}
.lh-gallery {width:100%;max-width:100%;min-width:0;overflow:hidden}
.detail-layout > div:first-child {min-width:0}
.lh-gallery__stage {width:100%;max-width:100%;overflow:hidden}
.lh-gallery__open {height:clamp(230px, 34vw, 390px);min-height:0;max-height:none;aspect-ratio:auto;padding:10px}
.lh-gallery__image {width:100%;height:100%;max-height:100%;object-fit:contain}
.lh-gallery__strip {max-width:100%;overflow-x:auto}
.lh-gallery__thumb {flex:0 0 96px;width:96px;height:72px}
.lh-gallery__thumb img {width:100%;height:100%;object-fit:cover}
@media (max-width:750px) {
 .lh-gallery__open {height:clamp(210px, 56vw, 330px);padding:7px}
 .lh-gallery__thumb {flex-basis:78px;width:78px;height:62px}
 .lh-gallery__arrow {width:34px;height:34px}
}
