/* Scoped to Hubice a nástavce product details only. Original images remain intact. */
body[data-gallery-group="hubice-nastavce"] .detail-media {
 min-width:0;padding:16px;align-self:start;border:1px solid var(--line);border-radius:7px;background:#fff;
}
body[data-gallery-group="hubice-nastavce"] .main-photo {
 position:relative;display:block;width:100%;height:auto;aspect-ratio:4 / 3;margin:0;padding:0;border:0;background:#fff;
}
body[data-gallery-group="hubice-nastavce"] .main-photo img {
 position:absolute;inset:0;display:block;box-sizing:border-box;width:100%;height:100%;max-width:100%;max-height:100%;padding:12px;object-fit:contain;object-position:50% 50%;
}
body[data-gallery-group="hubice-nastavce"] .thumbnails {
 display:grid;grid-template-columns:repeat(auto-fill,72px);justify-content:start;align-items:start;gap:10px;margin:16px 0 0;padding:14px 0 0;border-top:1px solid var(--line);
}
body[data-gallery-group="hubice-nastavce"] .thumbnails button {
 display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:72px;height:72px;min-width:0;min-height:0;margin:0;padding:6px;border:1px solid var(--line);border-radius:6px;background:#fff;
}
body[data-gallery-group="hubice-nastavce"] .thumbnails button[aria-pressed="true"] {border-color:var(--green);}
body[data-gallery-group="hubice-nastavce"] .thumbnails img {
 display:block;position:static;box-sizing:border-box;width:100%;height:100%;max-width:100%;max-height:100%;margin:0;padding:0;object-fit:contain;object-position:50% 50%;
}
body[data-gallery-group="hubice-nastavce"] .product-page {margin-bottom:32px;}
body[data-gallery-group="hubice-nastavce"] .product-page + .product-description {margin-top:0;padding-top:0;}
body[data-gallery-group="hubice-nastavce"] .product-page + .product-description > h2:first-child {margin-top:0;}
@media(max-width:767px){
 body[data-gallery-group="hubice-nastavce"] .detail-media {padding:12px;}
 body[data-gallery-group="hubice-nastavce"] .main-photo img {padding:10px;}
 body[data-gallery-group="hubice-nastavce"] .thumbnails {grid-template-columns:repeat(auto-fill,64px);gap:8px;margin-top:12px;padding-top:12px;}
 body[data-gallery-group="hubice-nastavce"] .thumbnails button {width:64px;height:64px;padding:5px;}
 body[data-gallery-group="hubice-nastavce"] .product-page {margin-bottom:24px;}
}
