body {
    background-color: #222;
    color: #fff;
    font-family: Arial, sans-serif;
}

#gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.thumbnail-frame {
    position: relative;
    width: 150px;
    height: 150px;
    overflow: hidden;
    margin: 5px;
    border: 2px solid #444; /* Rahmen um das Thumbnail */
    background-color: #333; /* Hintergrundfarbe für den Rahmen */
}

.thumbnail-frame img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
}

.thumbnail {
    width: 150px;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
}

#slideshow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#slideshow-container.hidden {
    display: none;
}

#slideshow-image, #slideshow-video {
    max-width: 90%;
    max-height: 80%;
}

button {
    margin: 10px;
    padding: 5px 10px;
    background-color: #444;
    color: #fff;
    border: none;
    cursor: pointer;
}

#slideshow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#slideshow-controls {
    display: flex;
    justify-content: center; /* Zentriert die Schaltflächen horizontal */
    align-items: center; /* Zentriert die Schaltflächen vertikal */
    margin-top: 20px; /* Abstand nach oben zum Inhalt */
}

#slideshow-container button {
    margin: 0 10px; /* Horizontaler Abstand zwischen den Schaltflächen */
    padding: 10px;
    background-color: #444;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, transform 0.3s;
}

#slideshow-container button:hover {
    background-color: #666;
    transform: scale(1.1);
}

#slideshow-container button:focus {
    outline: none;
}

#slideshow-container button i {
    margin: 0;
}
#placeholder-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px; /* Abstand nach unten zum Galeriebereich */
}

#placeholder {
    width: 380px;
    height: 380px;
    /*background-color: #444;  Platzhalter Hintergrundfarbe */
    /*border: 2px dashed #888;  Platzhalter Rand */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 24px;
    text-align: center;
}

#slideshow-preloader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#slideshow-preloader.hidden {
    display: none;
}

.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}