.absturz-gallery {
    --ag-accent: #c8102e;
    --ag-border: #e3e6ea;
    --ag-ratio: 4 / 3;
    margin: 1em 0;
    outline: none;
}
.absturz-gallery .ag-stage {
    position: relative;
    aspect-ratio: var(--ag-ratio);
    background: #f5f6f7;
    border: 1px solid var(--ag-border);
    border-radius: 12px;
    overflow: hidden;
}
.absturz-gallery .ag-slide {
    position: absolute; inset: 0;
    display: none;
    align-items: center; justify-content: center;
}
.absturz-gallery .ag-slide.is-active { display: flex; }
.absturz-gallery .ag-img {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
}

/* Video-facade */
.absturz-gallery .ag-facade {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0; padding: 0; margin: 0;
    cursor: pointer; background: #000;
}
.absturz-gallery .ag-poster {
    width: 100%; height: 100%;
    object-fit: cover; opacity: .92;
    transition: opacity .2s ease;
}
.absturz-gallery .ag-facade:hover .ag-poster { opacity: 1; }
.absturz-gallery .ag-playbtn {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 68px; height: 48px;
    border-radius: 12px;
    background: var(--ag-accent);
    box-shadow: 0 4px 18px rgba(0,0,0,.35);
    transition: transform .15s ease, background .15s ease;
}
.absturz-gallery .ag-facade:hover .ag-playbtn { transform: translate(-50%, -50%) scale(1.08); }
.absturz-gallery .ag-playbtn::after {
    content: ""; position: absolute; top: 50%; left: 53%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent #fff;
}
.absturz-gallery .ag-iframe-wrap, .absturz-gallery iframe {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* Navigatiepijlen */
.absturz-gallery .ag-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.85); color: #1d2327;
    font-size: 24px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: background .15s ease;
}
.absturz-gallery .ag-nav:hover { background: #fff; }
.absturz-gallery .ag-prev { left: 10px; }
.absturz-gallery .ag-next { right: 10px; }

/* Miniaturen */
.absturz-gallery .ag-thumbs {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 10px;
}
.absturz-gallery .ag-thumb {
    position: relative;
    width: 72px; height: 56px;
    padding: 0; border: 2px solid transparent; border-radius: 8px;
    overflow: hidden; cursor: pointer; background: #f5f6f7;
}
.absturz-gallery .ag-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.absturz-gallery .ag-thumb.is-active { border-color: var(--ag-accent); }
.absturz-gallery .ag-thumb-play {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 0; height: 0;
    border-style: solid; border-width: 7px 0 7px 12px;
    border-color: transparent transparent transparent #fff;
    filter: drop-shadow(0 0 2px rgba(0,0,0,.6));
}
.absturz-gallery.ag-solo .ag-stage { border-radius: 12px; }
