.home-gallery-categories {
    font-size: 1rem;
    padding-top: 8em;
    padding-bottom: 8.8em;
    text-align: center;
}
.home-gallery-categories-title {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 4.615em;
    text-align: center;
    color: #36c2ff;
    letter-spacing: 0.02em;
    margin-bottom: 0.15em;
}
.home-gallery-categories-subtitle {
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    font-size: 1.66em;
    margin-bottom: 2.8em;
}
.home-gallery-categories-text {
    display: flex;
    justify-content: center;
    font-size: 1.38em;
    font-weight: 500;
    text-transform: uppercase;
    margin: 0 0 3em;
}
.home-gallery-categories-text a {
    display: inline-block;
    margin: 0 1.7em;
    opacity: 0.25;
    transition: opacity .3s ease-in-out;
}
.home-gallery-categories-text a:hover {
    opacity: 1;
}
.home-gallery-categories-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 65px;
}
.home-gallery-categories-gallery > li {
    width: calc( 33.33333% - 20px );
    margin-bottom: 35px;
}
.home-gallery-categories-gallery .hide {
    display: none;
}
.home-gallery-categories-gallery a {
    display: block;
    position: relative;
}
.home-gallery-categories-gallery-title {
    position: absolute;
    top: 50%;
    margin: 0;
    width: 100%;
    transform: translateY(-50%);
    text-transform: uppercase;
    font-size: 2.77em;
    color: #fff;
    min-height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 25%;
    background-color: #000;
    transition-property: opacity, background-color;
    transition-duration: .3s;
    transition-timing-function: ease-in-out;
}
.home-gallery-categories-gallery img {
    opacity: 0.45;
    transition: opacity .3s ease-in-out;
    height: auto;
    width: auto;
    max-height: 100%;
    max-width: 100%;
}
a:hover .home-gallery-categories-gallery-title{
    background-color: rgba(0,0,0,0.5);
    opacity: 1;
}
.home-gallery-categories-gallery a:hover img {
    opacity: 0.65;
}
.home-gallery-categories-btn {
    cursor: pointer;
    border: solid 1px #555f76;
    font-size: 1.38em;
    color: #555f76;
    background-color: transparent;
    padding: 1em 3.7em;
    border-radius: 2em;
    transition: all .3s ease-in-out;
}
.home-gallery-categories-btn:hover {
    color: #fff;
    border-color: #36c2ff;
    background-color: #36c2ff;
}



@media screen and ( max-width: 1600px ) {
    .home-gallery-categories {
        font-size: 0.75rem;
    }
}

@media screen and ( max-width: 1199px ) {
    .home-gallery-categories {
        font-size: 0.6rem;
    }
}

@media screen and ( max-width: 991px ) {
    .home-gallery-categories {
        font-size: 0.5rem;
    }
}

@media screen and ( max-width: 767px ) {
    .home-gallery-categories-gallery {
        max-width: 550px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 0;
    }
    .home-gallery-categories-gallery > li {
        width: calc( 50% - 10px );
        margin-bottom: 20px;
    }
    .home-gallery-categories-text a {
        margin: 0 0.7em;
    }
    .home-gallery-categories-text {
        flex-wrap: wrap;
    }
}

@media screen and ( max-width: 575px ) {
    .home-gallery-categories-gallery {
        max-width: 320px;
        font-size: 0.5rem;
    }
    .home-gallery-categories-gallery > li {
        width: 100%;
    }
    a .home-gallery-categories-gallery-title{
        background-color: rgba(0,0,0,0.5);
        opacity: 1;
    }
    .home-gallery-categories-text a {
        opacity: 1;
    }
    .home-gallery-categories-gallery a img {
        opacity: 0.65;
    }
}