/* general */
.gallery_page_gallery,
.gallery_page_controls,
.gallery_page_data,
.gallery_page_container {
    display: block;
    position: relative;
    width: 100%;
}

.gallery_page_controls {
    margin: 10px 0px;
}

.gallery_page_controls > span.link-wrap {
    display: inline-block;
    position: relative;
    float: left;
    min-width: 150px;
    height: 40px;
}

.gallery_page_controls > span > a {
    display: inline-block;
    position: relative;
    float: left;
    min-width: 150px;
    height: 30px;
    line-height: 20px;
    padding: 5px 10px;
    margin: 5px 5px 5px 5px;
    background-color: #00a5dd;
    border: none;
    text-align: center;
    vertical-align: center;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    color: #fff;
    box-shadow: 0 4px 0 #0085bb;
    transition: all 0.1s ease-in-out;
}

.gallery_page_controls > span > a:hover {
    text-decoration: none;
    color: #fff;
    margin: 7px 5px 3px 5px;
    box-shadow: 0 2px 0 #0085bb;
}

.gallery_page_controls > span > a.control_active {
    margin: 9px 5px 1px 5px;
    box-shadow: 0 0px 0 #0085bb;
}

.gallery_page_container {
    margin: 10px 0px;
}

/* list */
.gallery_page_container > ul.items {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    position: relative;
    width: 100%;
    margin: 0px;
    padding: 0px;
    list-style: none;
    transition: all 1.0s ease-in-out;
}

.gallery_page_container > ul.items > li.gallery_item {
    display: inline-block;
    position: relative;
    flex-grow: 0;
    float: left;
    overflow: hidden;
    max-width: 375px;
    margin: 10px;
    padding: 0px;
    opacity: 1;
    list-style: none;
}

.gallery_page_container > ul.items > li.gallery_item_hidden {
    display: none;
} 

.gallery_page_container > ul.items > li.gallery_item > a {
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    padding: 0px;
    margin: 0px;
    text-decoration: none;
}

.gallery_page_container > ul.items > li.gallery_item > a:hover {
    text-decoration: none;
}

@media (min-width: 768px) {
    .gallery_page_container > ul.items {
        flex-direction: row;
    }
    
    .gallery_page_container > ul.items > li.gallery_item {
        max-width: auto;
        width: 305px;
        margin: 10px;
        transition: all 1.0s ease-in-out;
    }
    
    .gallery_page_container > ul.items > li.gallery_item_hidden {
        display: inline-block;
        width: 0px;
        margin: 10px 0px;
        opacity: 0;
    } 
    
    .gallery_page_container > ul.items > li.gallery_item > a {
        width: 305px;
        height: 100%;
    }
}

@media (min-width: 992px) {
    .gallery_page_container > ul.items > li.gallery_item {
        width: 355px;
    }
    
    .gallery_page_container > ul.items > li.gallery_item_hidden {
        width: 0px;
    }
    
    .gallery_page_container > ul.items > li.gallery_item > a {
        width: 355px;
    }
}


/* content */
.gallery_page_container > ul.items > li.gallery_item > a > img {
    display: block;
    position: relative;
    width: 100%;
    clear: both;
    z-index: 1; 
}

.gallery_page_container > ul.items > li.gallery_item > a > span.text {
    display: block;
    position: absolute;
    width: 100%;
    height: 50px;
    left: 0px;
    bottom: 0px;
    line-height: 20px;
    padding: 15px;
    text-align: center;
    vertical-align: center;
    text-decoration: none;
    /*text-transform: uppercase;*/
    font-weight: 600;
    font-size: 14px;/*16px;*/
    color: #555;
    background-color: #ddd;
    z-index: 5;
    transition: all 0.1s ease-in-out;
}

.gallery_page_container > ul.items > li.gallery_item > a > span.hover {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    z-index: 2;
    transition: all 0.1s ease-in-out;
}

.gallery_page_container > ul.items > li.gallery_item > a > span.hover::after {
    content: "\f00e";
    font-family: FontAwesome;
    display: block;
    position: absolute;
    width: 90px;
    height: 90px;
    left: 50%;
    top: -95px;
    margin: 0px;
    margin-top: -65px;
    margin-left: -45px;
    padding: 0px;
    text-align: center;
    vertical-align: center;
    text-decoration: none;
    line-height: 90px;
    font-size: 50px;
    color: #08c;
    background-color: transparent;
    border: 1px solid #fff;
    border-radius: 100%;
    z-index: 2;
    transition: opacity 0.1s ease-in-out, 0.2s top 0.1s ease-in-out;
}

/* effects */
.gallery_page_container > ul.items > li.gallery_item > a:hover > span.text {
    background-color: #08c;
    color: #fff;
}

.gallery_page_container > ul.items > li.gallery_item > a:hover > span.hover {
    opacity: 1;
}

.gallery_page_container > ul.items > li.gallery_item > a:hover > span.hover::after {
    top: 50%;
}
