/* V031 – Manuell bedienbare Sanierungsgalerien, keine Fremdbibliothek. */
.design-v031 .v026-uniform-chapter .v026-uniform-pair > figure.v031-gallery-figure{
 height:auto;max-height:none;overflow:visible;aspect-ratio:auto;background:transparent;position:relative;
}
.design-v031 .v031-gallery{min-width:0;width:100%;outline-offset:5px}
.design-v031 .v031-gallery-image-wrap{position:relative;width:100%;aspect-ratio:4/3;background:#e9e7e1;overflow:hidden}
.design-v031 .v031-gallery-image-wrap img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.design-v031 .v031-gallery-bar{display:flex;align-items:center;gap:10px;justify-content:space-between;margin:12px 0 8px}
.design-v031 .v031-gallery-caption{flex:1;min-width:0;color:#26302b;font-size:13px;line-height:1.45;font-weight:650}
.design-v031 .v031-gallery-count{font-size:12px;white-space:nowrap;color:#6a736b;font-variant-numeric:tabular-nums}
.design-v031 .v031-gallery-controls{display:flex;gap:6px;align-items:center}
.design-v031 .v031-gallery button{font:inherit;cursor:pointer;touch-action:manipulation}
.design-v031 .v031-gallery-control{border:1px solid #cfd0ca;background:#fff;color:#29312d;min-height:36px;min-width:38px;padding:5px 10px}
.design-v031 .v031-gallery-control:hover,.design-v031 .v031-gallery-control:focus-visible{border-color:#bd0717;color:#b90716}
.design-v031 .v031-gallery-thumbs{display:grid;grid-template-columns:repeat(auto-fit,minmax(58px,1fr));gap:8px;margin-top:11px}
.design-v031 .v031-gallery-thumb{padding:0;aspect-ratio:4/3;min-width:0;overflow:hidden;border:2px solid transparent;background:#e9e7e1;opacity:.74}
.design-v031 .v031-gallery-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.design-v031 .v031-gallery-thumb[aria-pressed=true]{opacity:1;border-color:#c3091a}
.design-v031 .v031-gallery-thumb:focus-visible{outline:2px solid #c3091a;outline-offset:2px}
.design-v031 .v031-fallback-label{font-size:12px;color:#656e66;margin-top:7px}
.design-v031 .v031-gallery-figure:has(.v031-gallery.is-ready)>.v031-fallback-label{display:none}
.design-v031 .v031-zoom-button{position:absolute;right:10px;bottom:10px;border:0;background:rgba(255,255,255,.95);padding:8px 12px;font-size:12px;font-weight:700;color:#262c29}
.v031-lightbox{max-width:min(94vw,1100px);width:min(94vw,1100px);max-height:94vh;border:0;padding:16px;background:#faf9f6;color:#222}
.v031-lightbox::backdrop{background:rgba(14,24,19,.86)}
.v031-lightbox img{display:block;max-width:100%;max-height:calc(90vh - 112px);width:auto;height:auto;margin:0 auto;object-fit:contain}
.v031-lightbox footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 0 0;color:#333;font-size:14px;margin:0}
.v031-lightbox button{border:1px solid #bbb;background:white;color:#222;padding:8px 12px;cursor:pointer;font:inherit}
@media(max-width:640px){.design-v031 .v031-gallery-bar{flex-wrap:wrap}.design-v031 .v031-gallery-thumbs{gap:5px;grid-template-columns:repeat(auto-fit,minmax(45px,1fr))}.design-v031 .v031-gallery-caption{flex:1 1 100%;order:-1}}
