body {
    font-family: Arial, sans-serif;
    margin: 20px;
    padding: 0;
    background-color: #f4f4f4;
}

#filter-container {
    display: flex;
    flex-wrap: nowrap; /* Alle Fieldsets in einer Zeile halten */
    justify-content: flex-start; /* Links ausrichten */
    gap: 10px; /* Abstand zwischen den Fieldsets */
    align-items: stretch; /* Alle Fieldsets auf gleiche Höhe bringen */
    margin-bottom: 20px;
}

fieldset {
    flex-basis: 0 0 auto; /* Jedes Fieldset nimmt nur so viel Platz wie nötig ein */
    flex-wrap: nowrap;
    border: 1px solid #ccc;
    padding: 5px;
    background: white;
}
fieldset.static {
    flex: 0 0 50%;
    font-size: 0.8em;
}
#image-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.image-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    align-items: center;
}

.image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(100% / var(--max-images-per-row) - 15px ); /* Nutzt die gesamte Zeilenbreite */
    min-width: 100px;
    max-width: 100%;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    margin: 5px;
}


.text-encoder-label {
    font-size: 16px;
    font-weight:bold;
    text-align: center;
    margin-bottom: 5px;
}

.model-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    font-weight: bold;
    width: 30px;
    flex: 0 0 20px;
    margin-right: 1px;
    white-space: nowrap;
    font-size: 16px;
    /* line-height: 1em; */
    max-height: 100%;
    overflow: hidden;
}
/* Lightbox-Hintergrund */
.lightbox {
    display: none; /* Standardmäßig ausgeblendet */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Lightbox-Inhalt */
.lightbox img {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5);
}

/* Schließen-Button */
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}