.sptw-accordion-item {
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
}

.sptw-accordion-toggle {
    width: 100%;
    background-color: #979797;
    padding: 10px 15px;
    text-align: left;
    font-weight: bold;
    cursor: pointer;
    border: none;
    outline: none;
}

.sptw-accordion-content {
    display: none; /* bleibt so, wird via JS auf flex gesetzt, wenn geöffnet */
    padding: 10px 15px;
    background-color: #fff;
    /* Für flexbox Layout im geöffneten Zustand: */
    flex-wrap: wrap;
    gap: 10px;
}

/* Wenn das Accordion geöffnet wird, setzt JS display auf block - wir überschreiben das: */
.sptw-accordion-content[style*="display: block"] {
    display: flex !important;
}

#sptw-lightbox {
    display: none;
    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: 9999;
}

#sptw-lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 10px #000;
}

.sptw-accordion-content img.sptw-thumb {
    border-radius: 8px;
    max-width: 150px;
    height: auto;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.sptw-accordion-content img.sptw-thumb:hover {
    transform: scale(1.05);
}
