/* Copyright @ Balbooa, http://www.gnu.org/licenses/gpl.html GNU/GPL */

@font-face {
    font-family: 'IcoMoon';
    src: url('../../../../media/jui/fonts/IcoMoon.eot');
    src: url('../../../../media/jui/fonts/IcoMoond41d.eot?#iefix') format('embedded-opentype'),
    url('../../../../media/jui/fonts/IcoMoon.woff') format('woff'),
    url('../../../../media/jui/fonts/IcoMoon.ttf') format('truetype'),
    url('../../../../media/jui/fonts/IcoMoon.svg#IcoMoon') format('svg');
    font-weight: normal;
    font-style: normal;
}

@import "../../../../media/jui/less/icomoon.less";

/* ========================================================================
    Gallery
 ========================================================================== */

/* Category list */
.ba-gallery select.ba-select-filter,
.ba-gallery .category-filter {
    margin-top: 20px;
}

.ba-gallery select.ba-select-filter {
    display: none;
}

.ba-gallery .ba-goback input[type="button"],
.ba-gallery .category-filter input.ba-filter,
.ba-gallery .category-filter input.ba-filter-active {
    box-shadow: none;
    cursor: pointer;
    display: inline-block;
    height: auto;
    margin: 10px 10px 10px 0;
    padding: 10px 15px;
    text-shadow: none;
}

/* Thumbnail */
.ba-gallery-grid {
    width: 100%;
}

.ba-image img {
    border: 0;
    height: auto;
    margin: 0;
    width: 100%;
    vertical-align: middle;
    width: auto \9;
}

.ba-album-items,
.ba-gallery-items {
    cursor: pointer;
}

/* 
/* Pagination 
*/

.ba-gallery .ba-pagination {
    margin: 20px 10px;
}

.ba-gallery .ba-pagination a.ba-btn {
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
    margin-right: 5px;
    padding: 10px 15px;
}

/* Dots */
.ba-pagination a.ba-btn.ba-dots {
    height: 25px;
    padding: 0;
    width: 25px;
}

.ba-gallery .ba-pagination a:hover {
    text-decoration: none;
}

.ba-gallery .ba-pagination .ba-btn.ba-dissabled {
    cursor: default;
    opacity: .6;
}

/* 
/* Album title and btn 
*/

.ba-goback h3 {
    width: 80%;
    float: left;
}

.ba-goback input[type="button"] {
    float: right;
}

/* ========================================================================
    Modal
 ========================================================================== */

/* 
/* Arrows
*/

.ba-gallery .modal-nav {
    left: 0;
    position: fixed;
    right: 0;
    top: 45%;
    width: 100%;
    z-index: 1600;
}

.ba-gallery a.icon-arrow-left,
.ba-gallery a.icon-arrow-right {
    background: #f1f1f1;
    box-sizing: content-box;
    color: #000;
    cursor: pointer;
    font-size: 14px;
    padding: 15px;
    position: absolute;
}

.ba-gallery a.icon-arrow-left:hover,
.ba-gallery a.icon-arrow-right:hover {
    opacity: .8;
}

/* Left arrow */
.ba-gallery a.icon-arrow-left {
    left: 50px;
}

/* Right arrow */
.ba-gallery a.icon-arrow-right {
    right: 50px;
}

/* Icon close */
.ba-gallery a.icon-delete {
    cursor: pointer;
    font-size: 21px;
    opacity: .6;
    position: fixed;
    right: 3%;
    top: 3%;
    z-index: 1600;
}

.ba-gallery a.icon-delete:hover {
    opacity: 1;
}

/* 
/* Modal header
*/

.ba-gallery .modal-header {
    border-bottom: 0;
    min-height: 80px;
    padding: 0;
    position: absolute;
    z-index: 1;
}

/* Modal title */
.ba-gallery .modal-title {
    margin: 0;
    padding: 25px 15px;
    text-align: left;
}

/* 
/* Moon icons 
*/

.ba-gallery [class^="icon-"],
.ba-gallery [class*=" icon-"] {
    display: inline-block;
    height: 14px;
    line-height: 14px;
    margin-right: .25em;
    width: 14px;
}

.ba-gallery [class^="icon-"]:before, 
.ba-gallery [class*=" icon-"]:before {
    font-family: 'IcoMoon';
    font-style: normal;
    speak: none;
}

/* Share icon */
.ba-gallery .icon-bookmark:before {
    content: "\e023";
}

/* Like icon */
.ba-gallery .icon-heart:before {
    content: "\e277";
}

/* Close icon */
.ba-gallery .icon-delete:before {
    content: "\49";
}

/* Left arrow icon */
.ba-gallery .icon-arrow-left:before {
    content: "\e008";
}

/* Right arrow icon */
.ba-gallery .icon-arrow-right:before {
    content: "\e006";
}

/* Header on mouse hover */
.ba-gallery .modal.display-header .modal-header {
    visibility: hidden;
    opacity: 0;
}

.ba-gallery .modal.display-header:hover .modal-header {
    visibility: visible;
    opacity: 1;
}

/* Icons */
.ba-social,
.ba-like {
    display: inline-block;
    position: relative;
}

.ba-gallery  .modal-header a {
    box-sizing: content-box;
    color: #333;
    cursor: pointer;
    display: inline-block;
    font-size: 18px;
    margin-top: 25px;
    padding: 10px 15px;
}

.ba-gallery  .modal-header a:hover {
    opacity: .8;
}

/* Like tooltip */
.ba-gallery .ba-likes {
    background: #D34F37;
    height: 50px;
    opacity: 0;
    position: absolute;
    right: 1px;
    top: 160px;
    transition: all .3s;
    visibility: hidden;
    width: 50px;
    z-index: 1;
}

.ba-gallery .ba-like:hover > .ba-likes {
    opacity: 1;
    top: 60px;
    visibility: visible;
}

.ba-gallery .ba-likes p {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    line-height: 50px;
    text-align: center;
    margin: 0;
}

/* Social share icons */
.ba-gallery .header-icons {
    text-align: right;
}

.ba-gallery .ba-share-icons {
    background-color: #fff;
    left: -4px;
    line-height: 0;
    opacity: 0;
    position: absolute;
    top: 160px;
    transition: all .3s;
    visibility: hidden;
    width: 60px;
    z-index: 1;
}

.ba-gallery .ba-social:hover > .ba-share-icons {
    opacity: 1;
    top: 60px;
    visibility: visible;
}

.ba-gallery .ba-share-icons a {
    margin: 0;
    padding: 0;
}

.ba-gallery .ba-share-icons a:hover {
    opacity: .9;
}

/* 
/* Modal body
*/

.ba-gallery .modal-scrollable.ba-scrollable {
    bottom: 0;
    left: 0;
    overflow-y: scroll;
    margin-right: -17px;
    position: fixed;
    right: 0;
    top: 0;
}

.modal-open {
    overflow: hidden;
}

.ba-gallery .hide {
    display: none;
}

.ba-gallery .modal {
    border-radius: 2px;
    border: 0;
    bottom: auto;
    box-shadow: none;
    left: 50%;
    margin: 0 0 50px 0;
    overflow: visible;
    position: absolute !important;
    top: 10%;
}

.ba-gallery .modal.in {
    display: block !important;
}

.ba-gallery .modal-body {
    max-height: none;
    overflow-y: hidden;
    padding: 0;
    position: relative;
    width: 100%;
}

.ba-gallery .ba-resize {
    transition: all 0.5s ease;
}

.ba-gallery .ba-resize .modal-description{
    transition: all 0.5s ease;
    overflow-x: auto;
}

.ba-gallery .gallery-modal {
    background-color: transparent;
}

/* Image */
.ba-gallery .modal-image img {
    margin: 0;
    vertical-align: middle;
    width: 100%;
}

/* Description */
.ba-gallery .modal-description {
    padding: 25px;
}

/* Modal background */
body .modal-backdrop {
    background-color: transparent; 
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
}

/* Modal embed code 100% width */
.ba-gallery .modal-image.embed {
    height: 0px;
    overflow: hidden;
    padding-bottom: 56.25%;
    padding-top: 30px;
    position: relative;
}

.ba-gallery .modal-image.embed iframe {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

/* ========================================================================
    Reset
 ========================================================================== */

/* Disable default lightbox options */
body .modal-backdrop, 
body .modal-backdrop.fade.in {
    opacity: inherit;
}

/* Disable the default border highlight */
.ba-gallery input:focus,
.ba-gallery select:focus,
.ba-gallery textarea:focus,
.ba-gallery button:focus {
    outline: none;
}

.ba-gallery a,
.ba-gallery a:hover {
    text-decoration: none;
    background: none;
}

/* ========================================================================
    Responsive
 ========================================================================== */

@media only screen and (max-device-width: 1200px) {
    .ba-gallery a.icon-arrow-left, 
    .ba-gallery a.icon-arrow-right {
        display: none;
    }
}

@media (max-width: 1200px) {
    .ba-gallery .modal.gallery-modal:not(.ba-resize)  {
        left: 20px;
        margin: 0 0 50px 0 !important;
        right: 20px;
        width: auto !important;
    }
        
    /* Category filters */
    .ba-gallery select.ba-select-filter {
        display: block !important;
    }
    
    .ba-gallery .category-filter input.ba-filter, 
    .ba-gallery .category-filter input.ba-filter-active {
        display: none;
    }
    
    /* Disable caption */
    .ba-caption {
        display: none;
    }

     /* Enable caption for albums mode */
    .ba-album .ba-caption {
        display: block;
    }

    /* Album title and btn */
    .ba-goback h3,
    .ba-goback input[type="button"] {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .ba-gallery .modal-header a {
        margin-top: 0;
    }

    /* Header */
    .ba-gallery .modal-header {
        position: relative;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Header icons and title */
    .ba-gallery .modal-title,
    .ba-gallery .header-icons {
        text-align: center;
    }

    .ba-gallery .ba-like:hover > .ba-likes,
    .ba-gallery .ba-social:hover > .ba-share-icons {
        top: 34px;
    }
}

/* Bootstrap */
@media (min-width: 1200px) {
 
    .ba-gallery .row-fluid [class*="span"] {
        margin-left: 2.564102564102564%;
        min-height: 1px;
    }

    .ba-gallery .row-fluid [class*="span"]:first-child {
        margin-left: 0;
    }

    .ba-gallery .row-fluid:before, .row-fluid:after {
        display: table;
        content: "";
        line-height: 0;
    }

    .ba-gallery .row-fluid:after {
        clear: both;
    }

    [class*="span"] {
        float: left;
    }

    /* Bootstrap Grid */

    .ba-gallery .row-fluid .span12 {
        width: 100%;
    }

    .ba-gallery .row-fluid .span11 {
        width: 91.45299145299145%;
    }

    .ba-gallery .row-fluid .span10 {
        width: 82.90598290598291%;
    }

    .ba-gallery .row-fluid .span9 {
        width: 74.35897435897436%;
    }

    .ba-gallery .row-fluid .span8 {
        width: 65.81196581196582%;
    }

    .ba-gallery .row-fluid .span7 {
        width: 57.26495726495726%;
    }

    .ba-gallery .row-fluid .span6 {
        width: 48.717948717948715%;
    }

    .ba-gallery .row-fluid .span5 {
        width: 40.17094017094017%;
    }

    .ba-gallery .row-fluid .span4 {
        width: 31.623931623931625%;
    }

    .ba-gallery .row-fluid .span3 {
        width: 23.076923076923077%;
    }

    .ba-gallery .row-fluid .span2 {
        width: 14.52991452991453%;
    }

    .ba-gallery .row-fluid .span1 {
        width: 5.982905982905983%;
    }
}