/* 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/IcoMoon.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-ellipsis {
    font-weight: bold;
    margin: 0 15px 0 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-scrollable .modal-nav {
    left: 0;
    position: fixed;
    right: 0;
    top: 45%;
    width: 100%;
    z-index: 1600;
}

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

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

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

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

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

.modal-scrollable a.icon-delete:hover {
    opacity: 1;
}

/* 
/* Modal header
*/

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

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

/* 
/* Moon icons 
*/

.modal-scrollable [class^="icon-"],
.modal-scrollable [class*=" icon-"],
.ba-modal [class^="icon-"],
.ba-modal [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,
.modal-scrollable [class^="icon-"]:before, 
.modal-scrollable [class*=" icon-"]:before {
    font-family: 'IcoMoon';
    font-style: normal;
    speak: none;
}

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

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

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

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

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

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

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

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

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

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

/* Like tooltip */
.ba-modal .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-modal .ba-like:hover > .ba-likes {
    opacity: 1;
    top: 60px;
    visibility: visible;
}

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

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

.ba-modal .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-modal .ba-social:hover > .ba-share-icons {
    opacity: 1;
    top: 60px;
    visibility: visible;
}

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

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

/* 
/* Modal body
*/

.modal-scrollable.ba-scrollable {
    bottom: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    left: 0;
    overflow-y: scroll;
    margin-right: -17px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1500;
}

.modal-open {
    overflow: hidden;
}

.ba-modal {
    display: none;
}

.ba-modal:not(.ba-resize) {
    border-radius: 2px;
    border: 0;
    bottom: auto;
    box-shadow: none;
    left: 0;
    margin: 0 auto 50px;
    overflow: visible;
    position: relative;
    margin-top: 5%;
}

.ba-modal.ba-resize {
    margin-left: auto;
    margin-right: auto;
    position: relative !important;
    overflow: visible;
    left: 0;
    height: 100%;
}

.ba-modal.ba-resize {
    border: 0;
    box-shadow: none;
    margin-bottom: 50px;
    margin-top: 0;
}

.ba-modal.ba-resize .reload {
    width: 77px;
    height: 22px;
    position: absolute;
    top: calc(50% - 11px);
    top: -webkit-calc(50% - 11px);
    left: calc(50% - 39px);
    left: -webkit-calc(50% - 39px);
}

.ba-modal.ba-resize .reload-parent {
    width: 100%;
    height: 100%;
}

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

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

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

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

/* Description */
.ba-modal .modal-description,
.ba-modal #disqus_thread{
    padding: 25px;
}

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

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

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


/* 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;
}

/*
/* Shortcode modal
*/

#modal-filter {
    margin: 20px 0;
}

.modal-shortcode input#filter_search {
    height: 32px;
    width: 85%;
}

.modal-shortcode button {
    margin-left: 5px;
}

.gallery-table {
    background: #fff;
    border: 1px solid #f3f3f3;
    min-height: 400px;
    padding: 20px 20px 20px 0;
}

th.gallery-title {
    border-left: 4px solid transparent;
    padding: 15px 20px;
    text-align: left;
    width: 100%;
}

th.gallery-title:hover {
    border-left: 4px solid #02adea;
}

.gallery-table tr > th > a {
    color: #333;
    font-weight: normal;
}

th.gallery-title:hover a {
    color: #999;
    text-decoration: none;
}

.contentpane.component {
    height: 0;
}

.ba-btn {
    background-color: #f1f1f1;
    border-radius: 2px;
    border: 1px solid #e3e3e3;
    font-weight: bold;
    padding: 10px 15px;
}

.com_bagallery a.ba-btn {
    color: inherit;
    text-decoration: none;
}

.ba-btn.active,
.ba-btn:hover {
    background-color: #eaeaea;
}

/* ========================================================================
    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-modal.gallery-modal:not(.ba-resize)  {
        margin: 50px 20px !important;
        width: auto !important;
    }
        
    /* Category filters */
    .ba-gallery select.ba-select-filter {
        display: block !important;
        width: 100%;
    }
    
    .ba-gallery .category-filter input.ba-filter, 
    .ba-gallery .category-filter input.ba-filter-active {
        display: none;
    }

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

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

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

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

    .ba-modal .ba-like:hover > .ba-likes,
    .ba-modal .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%;
    }
}