.gallery-main {
    overflow-x: hidden;
}

/* filter bar */
.filter-bar-container {
    display: flex;
    justify-content: center;
    z-index: 5;
    /*color: white;*/
    margin: 10px 0 30px 0;
    align-items: center;
}

.filter-bar-arrow-icons {
    height: 40px;
    width: 40px;
    flex-shrink: 0;
    border: transparent 1px solid;
    padding: 3px;
    border-radius: 100%;
    transition: all 0.2s ease-in-out;
}

.filter-bar-arrow-icons:hover {
    cursor: pointer;
    transform: scale(1.4);
}

.filter-bar {
    overflow-x: hidden;
    display: flex;
    gap: 5px;
    padding: 0;
    margin: auto 50px;
    align-items: center;
}

.filter-bar {
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    transition: all 0.3s ease-in-out;
}

/* Mask start only */
.filter-bar.mask-start {
    -webkit-mask-image: -webkit-linear-gradient(left, transparent 0%, black 10%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 100%);
}

/* Mask end only */
.filter-bar.mask-end {
    -webkit-mask-image: -webkit-linear-gradient(left, black 0%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, black 0%, black 90%, transparent 100%);
}

/* Mask both sides */
.filter-bar.mask-both {
    -webkit-mask-image: -webkit-linear-gradient(left, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.filter-bar__filter-element {
    white-space: nowrap;
    color: white;
    background: black;
    border: 0;
}

.filter-bar > .filter-bar__filter-element:hover, .filter-bar > .filter-bar__filter-element--selected {
    color: black;
    background-color: white;
    border: 0;
}

#toggle-gallery-items {
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
}

#toggle-gallery-items-arrow {
    margin-left: 15px;
}

#toggle-gallery-items img {
    transition: filter 0.3s ease;
}

#toggle-gallery-items:hover img {
    filter: invert(1);
}

/* gallery-container */
.gallery-container {
    margin: -5px;
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 20px;
}

.gallery-wrapper {
    overflow: hidden;
    transition: height 0.4s ease;
}

.gallery-container > .gallery-container__element {
    width: calc(100% / 3 - 10px);
    margin: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.gallery-container__element img,
.gallery-container__element video {
    transition: all 0.3s ease-in-out;
    position: absolute;
    width: 100%;
    top: 0;
    object-fit: cover;
    height: 100%;
    opacity: 100%;
}

.gallery-container__element:hover img {
    transform: scale(1.1);
}

.gallery-container__overlay {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0%;
    width: 100%;
    height: 100%;
    padding: 30px;
    color: black;
    text-decoration: none !important;
}

.gallery-container__overlay:hover {
    opacity: 100%;
    transition: all 0.3s ease-in-out;
}

.gallery-item--hidden {
    display: none !important;
}

/* ################################# */
/* #        991px breakpoint        # */
/* ################################# */

@media (max-width: 991px) {
    .gallery-container {
        margin-bottom: 10px;
    }

    .gallery-container__overlay h2 {
        display: none;
    }
}

/* ################################# */
/* #        768px breakpoint        # */
/* ################################# */
@media (max-width: 768px) {
    .filter-bar-container, .gallery-container__overlay {
        display: none;
    }

    .gallery-container > .gallery-container__element {
        width: calc(100% / 2 - 10px);
        margin: 5px;
    }

    #toggle-gallery-items {
        margin-top: 6px;
    }

}