/* KAEMTECH 02.11.2026 – eindeutiges Galerie-Layout. Keine Beschnitte. */
.product-detail > .gallery { min-width:0!important; display:flex!important; flex-direction:column!important; gap:12px!important; overflow:visible!important; }
.product-detail > .gallery .gallery-main {
 box-sizing:border-box!important; display:flex!important; align-items:center!important; justify-content:center!important;
 position:relative!important; width:100%!important; height:440px!important; min-height:440px!important;
 max-height:none!important; aspect-ratio:auto!important; flex:0 0 440px!important;
 padding:10px!important; margin:0!important; overflow:hidden!important;
 background:var(--field,#f7f9fc)!important;
}
.product-detail > .gallery .gallery-main .gallery-zoom-trigger {
 box-sizing:border-box!important; position:relative!important; display:flex!important;
 align-items:center!important; justify-content:center!important; width:100%!important;
 height:100%!important; min-height:0!important; max-height:100%!important;
 border:0!important; margin:0!important; padding:0!important; overflow:hidden!important;
 background:transparent!important;
}
.product-detail > .gallery .gallery-main img,
.product-detail > .gallery .gallery-main #gallery-main,
.product-detail > .gallery .gallery-main .gallery-zoom-trigger img {
 box-sizing:border-box!important; display:block!important; position:static!important;
 width:100%!important; height:100%!important; max-width:100%!important;
 max-height:100%!important; min-height:0!important; min-width:0!important;
 object-fit:contain!important; object-position:center center!important;
 transform:none!important; margin:0!important; padding:0!important;
}
.product-detail > .gallery .gallery-thumbs {
 position:relative!important; display:flex!important; flex-wrap:wrap!important; flex:0 0 auto!important;
 margin:0!important; padding:0!important; clear:both!important;
 z-index:1!important; background:transparent!important;
}
.product-detail > .gallery .gallery-thumb img { width:100%!important; height:100%!important; object-fit:contain!important; }
.kt-shopping-card .product-picture{display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
.kt-shopping-card .product-picture img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important}
@media(max-width:780px){
 .product-detail > .gallery .gallery-main{height:320px!important;min-height:320px!important;flex-basis:320px!important}
}
@media(max-width:480px){
 .product-detail > .gallery .gallery-main{height:280px!important;min-height:280px!important;flex-basis:280px!important}
}

/* Layout fix: separate main image and thumbnails into independent grid rows. */
.product-detail > .gallery.panel {
 display:grid!important;
 grid-template-columns:minmax(0,1fr)!important;
 grid-template-rows:440px auto!important;
 align-content:start!important;
 align-items:stretch!important;
 row-gap:14px!important;
 height:auto!important;
 min-height:0!important;
 overflow:visible!important;
}
.product-detail > .gallery.panel > .gallery-main {
 grid-column:1!important;grid-row:1!important;
 position:relative!important;display:flex!important;
 width:100%!important;height:440px!important;min-height:0!important;
 max-height:440px!important;flex:none!important;
 margin:0!important;padding:8px!important;overflow:hidden!important;
}
.product-detail > .gallery.panel > .gallery-thumbs {
 grid-column:1!important;grid-row:2!important;
 position:relative!important;display:flex!important;
 width:100%!important;height:auto!important;min-height:76px!important;
 flex:none!important;margin:0!important;padding:0!important;
 clear:both!important;z-index:1!important;overflow:visible!important;
}
.product-detail > .gallery.panel > .gallery-main > img,
.product-detail > .gallery.panel > .gallery-main .gallery-zoom-trigger img {
 display:block!important;max-height:100%!important;max-width:100%!important;
 width:auto!important;height:auto!important;object-fit:contain!important;
 object-position:center!important;margin:auto!important;
}
@media(max-width:780px){
 .product-detail > .gallery.panel{grid-template-rows:320px auto!important}
 .product-detail > .gallery.panel > .gallery-main{height:320px!important;max-height:320px!important}
}
@media(max-width:480px){
 .product-detail > .gallery.panel{grid-template-rows:280px auto!important}
 .product-detail > .gallery.panel > .gallery-main{height:280px!important;max-height:280px!important}
}
