/* -- Gallery - Nav -- */

#gallery_nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
}
#gallery_nav label {
    margin: 0 10px 0 0;
}
#gallery_nav select {
    padding: 5px;
    background-color: #fff;
    max-width: 300px;
    width: 100%;
}

@media (max-width: 600px) {
    #gallery_nav {
        flex-direction: column;
    }
    #gallery_nav label {
        margin: 0 auto 10px;
    }
}



/* -- Gallery - Main -- */

#gallery_section {
    text-align: center
}
.gallery-wrapper {
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
    transition: opacity .3s, transform .3s;
}
.gallery-fade-out {
    opacity: 0;
    transform: translateX(-30px);
}
.gallery-loader {
    display: block;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border: 5px solid #eee;
    border-top-color: var(--main-blue);
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#gallery_output {
    display: flex;
    flex-wrap: wrap;
    margin: 60px auto 20px;
    padding: 0;
}
.gallery-item {
    position: relative;
    width: 24%;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px .5% 0;
}
.gallery-item img {
    width: auto;
    height: 115%;
    transition: opacity .5s, transform .5s;
}
.gallery-item img.vertical-img {
    width: 115%;
    height: auto;
}
.gallery-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    fill: #111;
    opacity: 0;
    transition: opacity .5s;
}
.gallery-item:hover .gallery-icon {
    opacity: 1;
}
.gallery-item:hover img {
    opacity: .6;
    transform: scale(1.05);
}

@media screen and (max-width: 1200px) {
    .gallery-item {
        width: 32.3333333333%;
    }
}

@media screen and (max-width: 900px) {
    .gallery-item {
        width: 49%;
    }
}

@media screen and (max-width: 600px) {
    .gallery-item,
    .gallery-item img {
        width: 100%;
        height: auto;
    }
}