.lncu-caption-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0 auto;
    overflow: hidden;
    max-width: 100%;
    page-break-inside: avoid;
}

.lncu-caption-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    width: 100%;
    overflow: hidden;
    gap: 0.5rem;
}

.lncu-caption-content * {
    flex-shrink: 1;
}

.lncu-caption {
    display: flex;
    flex-direction: row;
    /*flex-wrap: wrap;*/
    width: 100%;
    gap: 0.5rem;
    justify-content: center;
    background-color: var(--bricks-color-blue-600);
    padding: 0.5rem;
    border-radius: 1rem;
}

.lncu-caption::before {
    font-weight: 700;
    white-space: nowrap;
}

/* Counter defined in assets/css/lncu-standard.css */
.lncu-abbildung {
    counter-increment: imageCounter;
}

.lncu-presentation {
    counter-increment: presentationCounter;
}

.lncu-tabelle {
    counter-increment: tableCounter;
}

.lncu-video {
    counter-increment: videoCounter;
    width: 100%;
}

.lncu-video video {
    object-fit: contain;
    background-color: black;
}

.lncu-galerie {
    counter-increment: galerieCounter;
}

.lncu-abbildung .lncu-caption::before {
    content: 'Abb. ' counter(imageCounter) ':';
}

.lncu-tabelle .lncu-caption::before {
    content: 'Tab. ' counter(tableCounter) ':';
}

.lncu-video .lncu-caption::before {
    content: 'Video ' counter(videoCounter) ':';
}

.lncu-galerie .lncu-caption::before {
    content: 'Galerie ' counter(galerieCounter) ':';
}

@media (max-width: 478px) {
    .lncu-caption-content {
        flex-direction: column;
    }

    .lncu-caption-block {
        max-width: 100% !important;
    }
}

@media print {
    .lncu-caption-block {
        break-inside: avoid;
    }
}