.gallery {
    display: block;
    flex-flow: row wrap;
    justify-content: flex-start;
    gap: 20px;
    padding: 0 15px;
}

.gallery.content-left {
    justify-content: flex-start;
}

.gallery.content-center {
    justify-content: center;
}

.gallery.content-right {
    justify-content: flex-end;
}

.gallery.is-admin {
    display: block;
    position: relative;
    min-height: 60px;
    border: solid 1px #eee;
    background-color: #eee;
    padding: 10px;
}

.gallery.is-admin:before {
    content: "Galerie";
    position: absolute;
    bottom: 100%;
    right: 10px;
    background-color: #eee;
    padding: 3px 7px;
    font-size: 10px;
}

.gallery > *:not(.gallery-item) {
    flex-basis: 100%;
}

.gallery .gallery-item {
    flex: 0 1 auto;
    margin-top: 20px;
    margin-bottom: 20px;
}

.gallery .gallery-item.align-content-top {
    align-self: flex-start;
}

.gallery .gallery-item.align-content-center {
    align-self: center;
}

.gallery .gallery-item.align-content-bottom {
    align-self: flex-end;
}

.gallery .gallery-item-inner {
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    padding-top: 100%;
}

.gallery .gallery-item .image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
}

.gallery .gallery-item img {
    position: absolute;
    top: -1px;
    left: -1px;
    width: 1px;
    height: 1px;
}

.gallery .gallery-item a {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}


/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {

    .gallery {
        display: flex;
        flex-wrap: nowrap;
        gap: 40px;
        padding-left: 40px;
        padding-right: 40px;
    }

    .gallery .gallery-item {
        margin: 0;
    }

}


/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {

    .gallery {
        gap: 80px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

}


/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {

    .gallery {
        gap: 160px;
        padding-left: 100px;
        padding-right: 100px;
    }

}