.gallery-container {
    font-family: sans-serif;
    /*background: #fafafa;*/
    padding: 20px;
    text-align: center;
}
.gallery-container .gallery {
    max-width: 400px;
    /*margin: auto;*/
}
.gallery-container .main-image img {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    cursor: pointer;
}
.gallery-container .caption {
    margin-top: 8px;
    font-size: 16px;
    color: #555;
}
.gallery-container .thumbnails-container {
    display: flex;
    justify-content: flex-start; /* links ausrichten */
    align-items: center;
    margin-top: 15px;
    gap: 10px;
    user-select: none;
}

.gallery-container .thumb-arrow {
    font-size: 30px;
    color: #007bff;
    cursor: pointer;
    padding: 5px 10px;
    user-select: none;
    border-radius: 5px;
    transition: background-color 0.2s;
}
.gallery-container .thumb-arrow:hover {
    background-color: #cce4ff;
}
.gallery-container .thumbnails {
    display: flex;
    width: 334px;
    gap: 10px;
}

/*
.gallery-container .thumbnails img {
    width: 75px;
    height: 50px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s, transform 0.2s;
    flex-shrink: 0;
}
*/

.gallery-container .thumbnails img {
    width: 75px;
    height: 50px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent; /* Standard */
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s, transform 0.2s;
}

.gallery-container .thumbnails img.active {
    border-color: #007bff; /* Blaue Border für das aktuelle Bild */
}


.gallery-container .thumbnails img:hover {
    border-color: #007bff;
    transform: scale(1.05);
}
.gallery-container .lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.gallery-container .lightbox img {
    max-width: 90%;
    max-height: 80%;
}
.gallery-container .lightbox .caption {
    color: white;
    margin-top: 15px;
    font-size: 18px;
}
.gallery-container .lightbox .close {
    position: absolute;
    top: 50px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}
.gallery-container .lightbox .gallery_arrow {
    position: absolute;
    top: 50%;
    font-size: 50px;
    color: white;
    cursor: pointer;
    user-select: none;
}
.gallery-container .lightbox .gallery_arrow.gallery_left {
    left: 30px;
}
.gallery-container .lightbox .gallery_arrow.gallery_right {
    right: 30px;
}