#photo-menu-wrapper {
    position: relative;
}

#gallery-menu-wrapper {
    background-color: var(--lighter-grey);
    padding: 20px 0;
}

#gallery-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

#gallery-menu li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

#gallery-menu li a {
    font-size: 16px;
    line-height: 16px;
    color: #292929;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    /*background-color: rgba(255, 255, 255, .1);*/
    border: 1px solid rgba(0, 0, 0, 0);
    text-decoration-line: none;
}

#gallery-menu li a:hover,
#gallery-menu li a.active {
    font-size: 16px;
    color: #292929;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, .1);
    border: 1px solid rgba(0, 0, 0, .1);
    text-decoration-line: none;
}

#gallery-menu #all {
    order: 1;
}

#people {
    order: 2;
}

#nature {
    order: 4;
}

#drone {
    order: 3;
}

#industrial {
    order: 5;
}

#indigenous {
    order: 6;
}

#other {
    order: 7;
}

.image-wrapper.active {
    /*height: 280px;*/
    opacity: 1;
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;

}

.image-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0;
    height: 280px;
    width: 0;
    flex-basis: 0;
    flex: 0;
    max-width: 0;
    -webkit-transition: all .5s ease-out;
    -moz-transition: all .5s ease-out;
    -o-transition: all .5s ease-out;
    transition: all .5s ease-out;
    opacity: 0;
    /*visibility: hidden;*/
    /*display: none;*/

}

.gallery-image-link {
    width: 100%;
    flex-basis: 100%;
    position: relative;
}

.image-wrapper.visible {
    display: flex;
    visibility: visible;
}

.photo-image-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
    border: 1px solid var(--dark-grey);
    overflow: hidden;
}

.photo-image-inner img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    object-fit: cover;
    opacity: 0;
    -webkit-transition: all .5s ease-out;
    -moz-transition: all .5s ease-out;
    -o-transition: all .5s ease-out;
    transition: all .5s ease-out;
}

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

.active .photo-image-inner img {
    opacity: 1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

#button-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
}

#button-wrapper .normal-button .text,
#button-wrapper .subtle-button .text {
    padding-right: 0;
}

@media (min-width: 768px) {
    .image-wrapper.active {
        -ms-flex: 0 0 33.33333%;
        flex: 0 0 33.33333%;
        max-width: 33.33333%;
    }

    #mobile-filter-toggle {
        display: none;
    }
}

@media (min-width: 1200px) {
    .image-wrapper.active {
        -ms-flex: 0 0 25%;
        flex: 0 0 25%;
        max-width: 25%;
    }
}


@media (max-width: 1400px) {
    .image-wrapper {
        height: 220px;
    }
}

@media (max-width: 991.8px) {
    .image-wrapper {
        height: 180px;
    }
}

@media (max-width: 767.8px) {
    #gallery-menu-wrapper {
        background-color: var(--dark-grey);
        border-top: 1px solid rgba(255, 255, 255, .1);
    }

    #mobile-filter-toggle {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        flex-basis: 100%;
        text-decoration-line: none;
        padding: 0 5px 0 15px;
    }

    .placeholder {
        font-size: 20px;
        color: #b0b0b0;
        font-weight: 700;
        padding-right: 15px;
    }

    #filter-value {

        font-size: 20px;
        color: rgba(255, 255, 255, .3);
        font-weight: 400;
    }

    .gallery-arrow {
        margin-left: auto;
        margin-right: 0;
    }

    .gallery-arrow.active {
        transform: rotate(180deg);
    }

    .gallery-arrow .icon {
        display: block;
        width: 35px;
        height: 22px;
        position: relative;
    }

    .gallery-arrow .icon::before {
        content: "";
        display: block;
        width: 35px;
        height: 22px;
        mask: url(../../assets/images/gallery-arrow.svg) no-repeat center;
        -webkit-mask: url(../../images/gallery-arrow.svg) no-repeat center;
        background-size: contain;
        background-position: center center;
        background-repeat: no-repeat;
        background-color: rgba(223, 223, 223, .5);
        position: absolute;
        top: 0;
        right: 0;
        -webkit-transition: all .5s ease-out;
        -moz-transition: all .5s ease-out;
        -o-transition: all .5s ease-out;
        transition: all .5s ease-out;
    }

    #gallery-menu {
        display: block;
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        z-index: -1;
        background-color: var(--dark-grey);
        opacity: 0;
        height: 0;
        -webkit-transition: all .5s ease-out;
        -moz-transition: all .5s ease-out;
        -o-transition: all .5s ease-out;
        transition: all .5s ease-out;
    }

    #gallery-menu.visible {
        display: block;
        height: auto;
        opacity: 1;
        z-index: 1;
    }

    #gallery-menu li {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
        flex-basis: 100%;
        justify-content: center;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    #gallery-menu li:first-of-type {
        border-top: 1px solid rgba(255, 255, 255, .1);
    }

    #gallery-menu li a {
        width: 100%;
        flex-basis: 100%;
        font-size: 26px;
        line-height: 26px;
        color: #b0b0b0;
        font-weight: 400;
        padding: 25px 15px;
        text-align: center;
        border-radius: 0;
    }

    #gallery-menu li a:hover, #gallery-menu li a.active {
        font-size: 26px;
        line-height: 26px;
        color: #b0b0b0;
        font-weight: 400;
        background-color: #3f3f3f;
        padding: 25px 15px;
        text-align: center;
        border-radius: 0;
    }

    .image-wrapper {
        height: 210px;
    }
}

@media (max-width: 575.8px) {
    .image-wrapper {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .image-wrapper {
        height: 140px;
    }
}

@media (max-width: 420px) {
    .image-wrapper {
        height: 130px;
    }
}

@media (max-width: 380px) {
    .image-wrapper {
        height: 120px;
    }
}

#photos-list {
    background-color: var(--white);
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    padding: 100px;
}

#photos-list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    width: 50%;
    flex-basis: 50%;
    border: 1px solid #000;
}

#photos-list li .image-number {
    width: 50px;
    flex-basis: 50px;
    padding: 10px;
}

#photos-list li .image-name {
    width: 250px;
    flex-basis: 250px;
    padding: 10px;
}

#photos-list li .image-wrapepr {
    width: 250px;
    flex-basis: 250px;
}

#photos-list li .mage-categories {
    width: calc(100% - 550px);
    flex-basis: calc(100% - 550px);
}