.product-gallery{min-width:0}
.product-gallery-open{position:relative;display:block;color:var(--text);text-decoration:none;border-radius:12px}
.product-gallery-open:focus-visible,.product-gallery-thumbs button:focus-visible{outline:2px solid var(--brand);outline-offset:4px}
.product-gallery-picture{display:block;overflow:hidden;border-radius:12px}
.product-gallery-zoom{position:absolute;right:8px;bottom:8px;padding:5px 9px;border:1px solid var(--line-2);border-radius:6px;background:rgba(10,10,11,.88);font:500 11px var(--sans);color:var(--text)}
.product-gallery-thumbs{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:100%;padding:5px 3px 10px;margin:12px 0 0}
.product-gallery-thumbs[hidden]{display:none}
.product-gallery-thumbs button{flex:0 0 auto;display:block;padding:4px;border:1px solid var(--line-2);border-radius:8px;background:var(--bg-1);cursor:pointer}
.product-gallery-thumbs button[aria-pressed="true"]{border-color:var(--text);box-shadow:inset 0 0 0 1px var(--text)}
.product-gallery-thumbs img,.software-offer .product-gallery-thumbs img,.held-bild .product-gallery-thumbs img{display:block;width:52px;height:52px;max-width:none;object-fit:contain;margin:0;border-radius:4px}
.product-gallery-caption{margin:0 0 16px;color:var(--muted);font-size:.8rem;line-height:1.6;overflow-wrap:anywhere}
.software-program-views .product-gallery{max-width:880px;margin:12px auto 0}
.software-program-views .product-gallery-picture img{display:block;width:100%;height:clamp(200px,45vw,480px);object-fit:contain;background:var(--bg-1)}
.held-bild.product-gallery,html.js-reveal .held-bild.product-gallery.reveal.in{aspect-ratio:auto;background:none;box-shadow:none;overflow:visible;transform:none}
.held-bild.product-gallery .product-gallery-picture{aspect-ratio:1;background:var(--bg-1);box-shadow:var(--kante)}
.held-bild.product-gallery .product-gallery-picture img{display:block;width:100%;height:100%;object-fit:contain}
.product-gallery-lightbox{width:fit-content;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:16px;border:1px solid var(--line-2);border-radius:12px;background:var(--bg);color:var(--text);overflow:auto}
.product-gallery-lightbox::backdrop{background:rgba(0,0,0,.88)}
.product-gallery-lightbox>img{display:block;width:auto;height:auto;max-width:min(1280px,calc(100vw - 66px));max-height:calc(100dvh - 120px);margin:0 auto;object-fit:contain}
.product-gallery-lightbox-tools{display:flex;gap:10px;align-items:center;margin:0 0 12px}
.product-gallery-lightbox-tools p{flex:1;margin:0;font:400 .85rem/1.5 var(--sans);color:var(--muted)}
.product-gallery-lightbox-tools button{flex:none;border:1px solid var(--line-2);border-radius:6px;padding:9px 12px;background:var(--bg-1);color:var(--text);font:500 .85rem var(--sans);cursor:pointer}
.product-gallery-lightbox-tools button:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
@media(max-width:619px){
  .held-inhalt:has(>.product-gallery){grid-template-columns:minmax(0,1fr)}
  .held-inhalt:has(>.product-gallery)>.krumen{grid-column:1;grid-row:1}
  .held-inhalt:has(>.product-gallery)>h1{grid-column:1;grid-row:2}
  .held-inhalt:has(>.product-gallery)>.held-unter{grid-column:1;grid-row:3}
  .held-inhalt:has(>.product-gallery)>.product-gallery{grid-column:1;grid-row:4;width:min(100%,360px);justify-self:center}
  .held-inhalt:has(>.product-gallery)>.held-spez{grid-column:1;grid-row:5}
  .held-inhalt:has(>.product-gallery)>.held-angebot{grid-column:1;grid-row:6}
  .product-gallery-lightbox{padding:10px;max-width:calc(100vw - 16px)}
  .product-gallery-lightbox-tools{gap:6px;flex-wrap:wrap}
  .product-gallery-lightbox-tools p{flex-basis:50%;font-size:.75rem}
  .product-gallery-lightbox>img{max-width:calc(100vw - 38px);max-height:calc(100dvh - 140px)}
}
