/* Product gallery: fill tiles with cover (no letterboxing / squeezing) */
.product-gallery-v2 .product-gallery-main img,
.product-gallery-v2 .product-gallery-main .glightbox img,
.product-gallery-v2 .product-gallery-main .swiper-slide img,
.product-gallery-v2 .product-gallery-mosaic img,
.product-gallery-mosaic__hero img,
.product-gallery-mosaic__tile img {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: unset !important;
    object-fit: cover !important;
    object-position: center center !important;
}

.product-gallery-v2 .product-gallery-main .glightbox,
.product-gallery-v2 .product-gallery-main .swiper-slide,
.product-gallery-mosaic__hero,
.product-gallery-mosaic__tile {
    position: relative !important;
    overflow: hidden !important;
}

/* Aufbau strip under gallery (replaces brochure teaser when diagrams exist) */
.product-gallery-v2 > .product-aufbau {
    width: auto;
    margin-top: clamp(14px, 3vw, 20px);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}
.product-aufbau {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.product-aufbau__head { display: flex; flex-direction: column; gap: 2px; }
.product-aufbau__kicker {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #171b29;
}
.product-aufbau__lead {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.35;
    color: rgba(23, 27, 41, 0.62);
}
.product-aufbau__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}
.product-aufbau__grid[data-aufbau-count="1"] { grid-template-columns: minmax(0, 1fr); }
.product-aufbau__grid[data-aufbau-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 575.98px) {
    .product-aufbau__grid,
    .product-aufbau__grid[data-aufbau-count="3"] { grid-template-columns: 1fr; }
}
.product-aufbau__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
}
.product-aufbau__frame {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(23, 27, 41, 0.08);
    aspect-ratio: 16 / 7;
}
.product-aufbau__frame img {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain !important;
    object-position: center !important;
    padding: 8px 10px;
    background: #fff;
}
.product-aufbau__caption {
    display: block;
    padding: 0 2px;
    font-size: 0.78rem;
    line-height: 1.3;
    color: rgba(23, 27, 41, 0.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
