.quiqqer-control-gallery-grid__gap {
    overflow: hidden;
}

.quiqqer-control-gallery-grid-list {
    display: flex;
    flex-wrap: wrap;
}

.quiqqer-control-gallery-grid__gap .quiqqer-control-gallery-grid-list {
    margin-left: -1%;
    margin-right: -1%;
}

.quiqqer-control-gallery-grid-entry-wrapper-1 {
    width: 100%;
}

.quiqqer-control-gallery-grid-entry-wrapper-2 {
    width: 50%;
}

.quiqqer-control-gallery-grid-entry-wrapper-3 {
    width: 33.3333%;
}

.quiqqer-control-gallery-grid-entry-wrapper-4 {
    width: 25%;
}

.quiqqer-control-gallery-grid-entry-wrapper-5 {
    width: 20%;
}

.quiqqer-control-gallery-grid-entry-wrapper-6 {
    width: 16.6666%;
}

.quiqqer-control-gallery-grid__gap .quiqqer-control-gallery-grid-entry-wrapper {
    padding: 1%;
}

.quiqqer-control-gallery-grid-entry {
    position: relative;
    padding-top: 75%;
    width: 100%;
}

.quiqqer-control-gallery-grid__border .quiqqer-control-gallery-grid-entry {
    border: 1px solid #ddd;
}

.quiqqer-control-gallery-grid-entry a {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.quiqqer-control-gallery__centerImage picture {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.quiqqer-control-gallery-grid__scaleImage img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-position: center;
}

.quiqqer-control-gallery-grid-text {
    position: absolute;
    bottom: 0;
    width: 100%;
    color: #fff;
    background: rgba(0,0,0,0.5);
    padding: 2px 10px;
    font-size: 14px;
    z-index: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media screen and (max-width: 500px) {
    .quiqqer-control-gallery-grid-entry-wrapper {
        width: 50%;
    }
}

@media screen and (max-width: 400px) {
    .quiqqer-control-gallery-grid-entry-wrapper {
        width: 100%;
    }
}