/* Masonry */

#masonry {
    margin-bottom: 20px;
    font-family: "Raleway", Arial, Helvetica, sans-serif;
}

#masonry .picture { padding-bottom: 30px; }

#masonry .picture a img {
    margin-bottom: 0!important;
    width: 100%;
}

#masonry .picture a .picture_title {
    bottom: 30px;
    position: absolute;
    width: calc(100% - 30px);
    opacity: 0;
    padding: 20px;
    color: white;
    background: rgba(0,0,0,0.4);
    text-align: left;
    font-size: 13px;
}

#masonry .picture a:hover .picture_title { opacity: 1; }

#infscr-loading {
    bottom: -30px;
    font-size: 1.3em;
    position: absolute;
    width: 100%;
}

#infscr-loading div {
    text-align: center;
    width: 100%;
}

#infscr-loading img { display: none; }

/* Gallery */
.hook_gallery { float: left; }
.hook_gallery .hook_gallery_subtitle { margin-bottom: 20px !important; }

/* Fancybox */
.fancybox-overlay{ background: rgba(0,0,0,0.8); }

.fancybox-skin{
    background: #000 !important;
    border-radius: 0;
    padding: 0 !important;;
}

.fancybox-title{
    margin: 0;
    right: 0;
    width: 100%;
    padding: 20px;
    color: white;
    background: rgba(0,0,0,0.4);
    text-align: left;
    font-size: 14px;
}

.fancybox-title-float-wrap .child{
    margin: 0;
    padding: 0;
    background: none;
    text-shadow: none;
    font-weight: normal;
    line-height: normal;
    border-radius: 0;
    display: block;
}

.fancybox-title .gallery-title, .fancybox-title .gallery-link{
    display: inline-block;
    vertical-align: top;
}

.fancybox-title .gallery-title{
    padding-right: 20px;
    width: 80%;
}

.fancybox-title .gallery-title span{
    display: block;
}

.fancybox-title .gallery-link{
    position: absolute;
    margin-top: -15px;
    top: 50%;
    text-align: center;
    width: 20%;
    height: 30px;
    text-decoration: none;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    padding: 10px;
    font: normal 12px/12px Georgia, "Times New Roman", Times, serif;
    cursor: pointer;
    white-space: normal;
    text-transform: uppercase;
    border: 1px solid #fff;
}

.fancybox-skin .fancybox-close, .fancybox-skin .fancybox-close:after{
    width: 25px;
    height: 25px;
}

.fancybox-nav span, .fancybox-prev span:before, .fancybox-next span:before{
    width: 50px;
    height: 50px;
}

.fancybox-close, .fancybox-prev span, .fancybox-next span{
    background-image: none;
    visibility: visible;
}

.fancybox-skin .fancybox-close:after, .fancybox-prev span:before, .fancybox-next span:before{
    content: '' !important;
    display: block;
    text-align: center;
    color: white;
    cursor: pointer;
}

.fancybox-skin .fancybox-close:after{
    background: url('../../../../../img/gallery/close.png') no-repeat;
    background-size: 100%;
}

.fancybox-prev span:before{
    background: url('../../../../../img/gallery/chevron_l.png') no-repeat;
    background-size: 100%;
}

.fancybox-next span:before{
    background: url('../../../../../img/gallery/chevron_r.png') no-repeat;
    background-size: 100%;
}

.fancybox-skin .fancybox-close{
    background: none;
    top: 20px;
    right: 20px;
    font-size: 30px;
}

.fancybox-skin .fancybox-close:after{
    content: "\f00d";
    top: 0;
}

.fancybox-inner:before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    box-shadow: 0 0 55px 10px rgba(0, 0, 0, 0.7) inset;
    background: none;
}

@media (max-width: 820px) {
    #masonry .picture { padding-bottom: 15px; }
    #masonry .picture a .picture_title{ bottom: 15px; }

    .fancybox-title{ padding: 10px 14px !important; }

    .fancybox-title .gallery-title{
        padding-right: 0;
        width: 80%;
        display: block;
    }

    .fancybox-title .gallery-link{
        padding: 0;
        position: absolute;
        right: 14px;
        top: 50%;
        margin-top: -14px;
        width: 28px;
        height: 28px;
        text-align: center;
        font-size: 0;
    }

    .fancybox-title .gallery-link:before{
        padding: 6px 0;
        content: '+';
        display: block;
        font-size: 18px;
    }

    .fancybox-title .child{ white-space: initial; }

    .fancybox-title{
        position: relative;
        padding: 15px 20px;
        background: #000;
    }

    .fancybox-title .child{ color: #fff; }

    .fancybox-nav span, .fancybox-prev span:before, .fancybox-next span:before {
        width: 30px;
        height: 30px;
    }
}