.gal-thumb1 {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: 10px;
}
.gal-thumb1 span {
    flex: 0 0 auto; 
    display: block;
    position: relative;
    aspect-ratio : 1 / 2;
    width: calc(28.57%); /* 3.5 images */
    max-height: 25em;
    overflow: hidden;
    
}
.gal-thumb1 span:last-child {
    margin-right: 0;
}
.gal-thumb1 span img {
    position: absolute;
    display: block;
    top: 0; bottom: 0; left: 0; right: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}
.gal-thumb1 span:hover img {
    transform: scale(1.1);
}
.gal-thumb1 span p {
    position: absolute;
    left: 50%; bottom: 1em;
    width: 90%;
    line-height: 1.1em;
    transform: translateX(-50%);
    font-family: "SofiaSansExtra";
    font-size: 1.5em;
    white-space: pre-wrap;
    text-shadow: 1px 1px 1px #00000066;
    text-overflow: ellipsis;
    text-align: center;
    color: white;
    transition: transform 1s ease;
}
.gal-thumb1 span:hover p {
    transform: translateX(-50%) scale(1.1);
}

/* chrome, edge, opera

/* scrollbar width */
.gal-thumb1::-webkit-scrollbar {
    height: 10px;
}
/* scrollbar Track */
.gal-thumb1::-webkit-scrollbar-track {
    background: var(--dark2);
}
/* scrollbar Handle */
.gal-thumb1::-webkit-scrollbar-thumb {
    background: var(--magenta);
}
/* scrollbar Handle on hover */
.gal-thumb1::-webkit-scrollbar-thumb:hover {
    background: white;
}
.gal-thumb1::-webkit-scrollbar-thumb:active {
    background: var(--magentadark);
}

/* nur mozilla */
@-moz-document url-prefix() {
    .gal-thumb1 {
        scrollbar-width: 10px;
        scrollbar-color: var(--magenta) var(--dark2);
    }

}


@media screen and (max-width:864px) {
    .gal-thumb1 span {
        width: calc(66.67%); /* 1.5 images */
    }
}