.rt-konfigurator-gallery { margin-bottom: 1rem; }
/* Hauptbild wandert mit: beim Scrollen durch die Optionsliste bleibt die Galerie im
   Sichtfeld (Desktop). Der Vaterartikel wird bewusst nicht angezeigt. */
@media (min-width: 992px) {
    .rt-konfigurator-gallery {
        position: sticky;
        top: 90px;
    }
}
.rt-konfigurator-gallery__main {
    position: relative;
    border: 1px solid #e2e5e9;
    background: var(--k-img-bg, #fff); overflow: hidden;
}
.rt-konfigurator-gallery__main-btn {
    display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in;
}
.rt-konfigurator-gallery__img {
    display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain;
    transition: opacity .15s ease;
}
.rt-konfigurator-gallery__empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .6rem; aspect-ratio: 1 / 1; width: 100%;
    background: linear-gradient(160deg, #f7f8fa, #eef0f3);
    color: #8b929c;
}
.rt-konfigurator-gallery__empty-mark {
    width: 3.2rem; height: 3.2rem; border: 2px dashed #c3c9d1; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; line-height: 1; font-weight: 400;
}
.rt-konfigurator-gallery__empty-text { font-size: .85rem; }
.rt-konfigurator-gallery__hint {
    position: absolute; top: .6rem; left: .6rem; z-index: 2;
    background: rgba(22, 24, 27, .88); color: #fff; font-size: .72rem; font-weight: 500;
    padding: .15rem .5rem; pointer-events: none; letter-spacing: .01em;
}
.rt-konfigurator-gallery__hint:empty { display: none; }

/* gemeinsame Lightbox — auch von configurator.js für Options-Bilder genutzt */
.rt-konfigurator-lightbox {
    position: fixed; inset: 0; z-index: 100000;
    display: none; align-items: center; justify-content: center;
}
.rt-konfigurator-lightbox.is-open { display: flex; }
.rt-konfigurator-lightbox__backdrop {
    position: absolute; inset: 0; background: rgba(0, 0, 0, .8);
}
.rt-konfigurator-lightbox__body {
    position: relative; z-index: 1; max-width: min(90vw, 900px); max-height: 90vh;
    display: flex; flex-direction: column; align-items: center;
}
.rt-konfigurator-lightbox__img {
    max-width: 100%; max-height: 80vh; object-fit: contain;
    background: #fff; border-radius: 6px;
}
.rt-konfigurator-lightbox__caption {
    color: #fff; margin-top: .6rem; font-size: .9rem; text-align: center;
}
.rt-konfigurator-lightbox__close {
    position: absolute; top: -2.2rem; right: 0;
    background: none; border: 0; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer;
}

/* Bildebenen (F-5): transparente PNG/WebP der gewählten Optionen über dem Hauptbild */
.rt-konfigurator-gallery__layers {
    position: absolute; inset: 0; pointer-events: none;
}
.rt-konfigurator-gallery__layer {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
}
.rt-konfigurator-gallery__img[hidden] { display: none; }

/* Vorschaubilder der Auswahl (U-8) */
.rt-konfigurator-gallery__thumbs {
    display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem;
}
.rt-konfigurator-gallery__thumbs[hidden] { display: none; }
.rt-konfigurator-gallery__thumb {
    width: 3.4rem; height: 3.4rem; padding: 2px; border: 1px solid #e2e5e9; background: var(--k-img-bg, #fff); cursor: zoom-in;
}
.rt-konfigurator-gallery__thumb:hover, .rt-konfigurator-gallery__thumb:focus-visible { border-color: #16181b; }
.rt-konfigurator-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }

/* 0.10.1: Miniaturen wie die Standardgalerie — fünf quadratische Felder je Reihe, oben alle Bilder des Artikels */
.rt-konfigurator-gallery__roots,
.rt-konfigurator-gallery__thumbs {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; margin-top: .6rem;
}
.rt-konfigurator-gallery__roots { margin-top: .75rem; }
.rt-konfigurator-gallery__roots[hidden],
.rt-konfigurator-gallery__thumbs[hidden] { display: none; }
.rt-konfigurator-gallery__roots .rt-konfigurator-gallery__thumb,
.rt-konfigurator-gallery__thumbs .rt-konfigurator-gallery__thumb { width: 100%; height: auto; aspect-ratio: 1; }
.rt-konfigurator-gallery__thumb.is-current { border-color: #16181b; box-shadow: inset 0 0 0 1px #16181b; }
