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

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

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

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

.ba-gallery .ba-goback a,
.ba-gallery .category-filter a.ba-filter,
.ba-gallery .category-filter a.ba-filter-active {
    box-shadow: none;
    cursor: pointer;
    display: inline-block;
    height: auto;
    line-height: 1em;
    margin: 10px 10px 10px 0;
    padding: 15px 25px;
    text-shadow: none;
}

.ba-gallery .ba-goback a,
.ba-gallery .ba-goback h2 {
    display: inline-block;
    margin: 0;
}

.ba-gallery .ba-goback h2 {
    text-align: left !important;
    width: -webkit-calc(100% - 110px);
    width: calc(100% - 110px);
    border: none;
}

.ba-gallery .ba-goback > a {
    border-radius: 50% !important;
    box-sizing: content-box;
    float: left;
    font-size: 24px !important;
    margin-right: 50px;
    padding: 15px;
    text-align: center;
    width: 24px;
}

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

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

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

.disabled-lightbox .ba-gallery-items,
.disabled-lightbox .ba-album-items {
    cursor: default;
}

.ba-gallery-items {
    cursor: zoom-in;
}

.ba-gallery-items .ba-caption h3,
.ba-gallery-items .ba-caption .image-category,
.ba-gallery-items .ba-caption .short-description {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*Album Thumbnail */
.ba-album-items .ba-caption {
    bottom: 0;
    box-shadow: inset 0px -115px 108px -70px rgb(71, 71, 71);
    padding-top: 50px;
    position: absolute;
    width: 100%;
}

.ba-album-items .ba-caption h3,
.ba-album-items .ba-caption p {
    color: #fff;
    line-height: normal !important;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 90%;
}

.ba-album-items .ba-caption h3 {
    font-size: 24px !important;
    line-height: 150% !important;
}

/* 
/* Pagination 
*/

.ba-pagination.ba-empty {
    display: none;
}

.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.ba-next span,
.ba-gallery .ba-pagination a.ba-btn.ba-last-page span,
.ba-gallery .ba-pagination a.ba-btn.ba-first-page span,
.ba-gallery .ba-pagination a.ba-btn.ba-prev span {
    line-height: 18px;
}

.ba-gallery .ba-pagination a.ba-btn {
    cursor: pointer;
    box-sizing: content-box;
    font-weight: bold;
    margin-right: 10px;
    padding: 10px 0 ;
    line-height: 18px;
    text-align: center;
    width: 38px !important;
}

.ba-gallery .ba-pagination a.ba-btn.scroll-to-top,
.ba-gallery .ba-pagination a.ba-btn.load-more {
    padding: 15px 50px;
    width: auto !important;
}

.ba-gallery .ba-pagination a.ba-btn.ba-prev {
    transform: scale(-1);
    -webkit-transform: scale(-1);
}

.ba-gallery .ba-pagination a.ba-btn.ba-prev span{
    vertical-align: middle;
}

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

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

.ba-modal-header .zmdi:hover,
.modal-nav .zmdi-chevron-right:hover,
.modal-nav .zmdi-chevron-left:hover,
.ba-gallery .ba-pagination .ba-btn.ba-dissabled {
    background: transparent;
    cursor: default;
    opacity: .6;
}

.ba-pagination a.ba-btn.ba-dots.ba-prev,
.ba-pagination a.ba-btn.ba-dots.ba-next,
.ba-pagination a.ba-btn.ba-dots.ba-first-page,
.ba-pagination a.ba-btn.ba-dots.ba-last-page {
    display: none !important;
}

/* 
/* Album title and btn 
*/

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

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

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

/*
/* Scrollable
*/

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

/* Gallery Modal */
.gallery-modal {
    margin: 0 auto;
    box-sizing: content-box;
}

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

.modal-open {
    -webkit-transition: width .3s;
    box-sizing: border-box;
    height: initial;
    overflow: hidden;
    transition: width .3s;
    width: -webkit-calc(100% - 16px);
    width: calc(100% - 16px);
}

.modal-open .modal-scrollable.ba-forms-modal{
    z-index: 99999;
}

/* Nav */
.modal-nav {
    left: 0;
    position: fixed;
    right: 0;
    top: calc(50% - 23px);
    top: -webkit-calc(50% - 23px);
    z-index: 1;
}

.modal-nav i {
    border-radius: 50%;
    box-sizing: content-box;
    font-size: 36px;
    line-height: 36px;
    padding: 10px;
    position: absolute;
    text-align: center;
    transition: opacity .2s ease-in-out;
    -webkit-transition: opacity .2s ease-in-out;
    width: 36px;
    z-index: 10;
}

.modal-nav .zmdi-chevron-left {
    left: 25px;
}

.modal-nav .zmdi-chevron-right {
    right: 25px;
}

/*
/* Modal Header
*/

.modal-scrollable:not(.ba-scrollable) .description-wrapper,
.modal-scrollable:not(.ba-scrollable) .ba-modal-header,
.hide-animation .description-wrapper,
.hide-animation .ba-modal-header {
    display: none;
}

.gallery-modal .ba-modal-header {
    box-sizing: border-box;
    height: 115px;
    left: 0;
    max-width: none;
    padding: 0 10px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 10;
}

.gallery-modal .ba-modal-header .ba-modal-title,
.gallery-modal .ba-modal-header .ba-center-icons,
.gallery-modal .ba-modal-header .ba-right-icons {
    display: inline-block;
    float: left;
    min-height: 50px;
    width: 33.3%;
}

.gallery-modal .ba-modal-header .modal-title,
.gallery-modal .ba-modal-header .zmdi {
    font-size: 24px;
    line-height: 24px;
}

.gallery-modal .ba-modal-header .zmdi {
    box-sizing: content-box;
    display: inline-block;
    margin-left: 10px;
    padding: 20px 10px;
    text-align: center;
    text-decoration: none;
    transition: all .2s ease-in-out;
    -webkit-transition: all .2s ease-in-out;
    width: 24px;
}

@keyframes like-shadow {
    0% { opacity: 0; transform: scale(3); -webkit-transform: scale(3); }
    30% { opacity: 1; transform: scale(4); -webkit-transform: scale(4); }
    100% { opacity: 0; transform: scale(6); -webkit-transform: scale(6); }
}

@-webkit-keyframes like-shadow {
    0% { opacity: 0; transform: scale(3); -webkit-transform: scale(3); }
    30% { opacity: 1; transform: scale(4); -webkit-transform: scale(4); }
    100% { opacity: 0; transform: scale(6); -webkit-transform: scale(6); }
}

.gallery-modal .ba-modal-header .likes-animation .ba-likes p:after {
    -webkit-animation: like-shadow .4s ease-in-out both ;
    animation: like-shadow .4s ease-in-out both;
    color: rgba(211, 79, 55, 1);;
    content: '\f15f';
    font: normal normal normal 14px/1 'Material-Design-Iconic-Font';
    left: 9px;
    opacity: 0;
    position: absolute;
    text-shadow: -.2px -.2px .2px rgba(211, 79, 55, 0.5), .2px -.2px .2px rgba(211, 79, 55, 0.5), -.2px .2px .2px rgba(211, 79, 55, 0.5), .2px .2px .2px rgba(211, 79, 55, 0.5);
    top: 20px;
    z-index: -1;
}

@keyframes icon-fade {
    from {opacity: 0;}
}

@-webkit-keyframes icon-fade {
    from {opacity: 0;}
}

.gallery-modal .ba-modal-header .zmdi-zoom-in,
.gallery-modal .ba-modal-header .ba-zoom-out,
.gallery-modal .ba-modal-header .ba-download-img {
    -webkit-animation: icon-fade .3s ease-in-out ;
    animation: icon-fade .3s ease-in-out ;
}

@keyframes icon-fade-out {
    from {opacity: 1;}
    to {opacity: 0;}
}

@-webkit-keyframes icon-fade-out {
    from {opacity: 1;}
    to {opacity: 0;}
}
.gallery-modal .ba-modal-header .zmdi-zoom-in.ba-hidden-icons,
.gallery-modal .ba-modal-header .ba-zoom-out.ba-hidden-icons,
.gallery-modal .ba-modal-header .ba-download-img.ba-hidden-icons {
    -webkit-animation: icon-fade-out .3s ease-in-out both;
    animation: icon-fade-out .3s ease-in-out both;
}

.gallery-modal .ba-modal-header .disabled-item {
    opacity: 0.2 !important;
    cursor: default !important;
}

.gallery-modal .ba-modal-header .ba-like-wrapper {
    display: inline-block;
    position: relative;
}

.ba-gallery .ba-goback a,
.category-filter a,
.ba-pagination a,
.ba-add-like {
    transition: color .3s, background-color .3s;
    -webkit-transition: color .3s, background-color .3s;
}

.ba-likes:hover + .ba-add-like,
.ba-add-like:hover {
    transform: scale(2);
    -webkit-transform: scale(2);
    color:  #D34F37 !important;
}

.ba-like {
    position: relative;
}

.ba-modal-header .modal-title {
    margin: 0;
    padding: 20px 10px;
    text-align: left !important;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ba-modal-header .ba-center-icons {
    text-align: center;
}

.ba-modal-header .ba-right-icons {
    text-align: right;
}

.ba-modal-header .zmdi:hover {
    color: inherit;
    text-decoration: none;
}

.modal-nav i.zmdi:hover,
.zmdi {
    cursor: pointer !important;
}

.ba-modal-header .ba-download-img,
.ba-modal-header .ba-icon-close {
    font-size: 28px;
}

/*
/*  Tooltip
*/

.ba-tooltip {
    backface-visibility: hidden;
    background: #2c2c2c;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: #fff;
    display: block;
    font: 500 14px 'Roboto', sans-serif;
    max-width: 200px;
    opacity: 1;
    padding: 15px;
    position: fixed;
    text-align: center;
    transition: margin-top .25s ease-out, opacity .25s ease-out;
    -webkit-transition: margin-top .25s ease-out, opacity .25s ease-out;
    visibility: visible;
    z-index: 1060;
}

body > .ba-tooltip:before {
    box-sizing: content-box;
    content: "";
    height: 5px;
    position: absolute;
    bottom: -14px;
    left: 50% !important;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top: 5px solid #2c2c2c;
}

/* Top Tooltip */
body > .ba-tooltip.ba-top {
    -webkit-transform: translateY(-160%) translateX(-50%);
    transform: translateY(-160%) translateX(-50%);
    box-sizing: content-box;
}

@keyframes ba-tooltip-top {
    from { opacity: 0; margin-top: -20px;}
}

@-webkit-keyframes ba-tooltip-top  {
    from { opacity: 0; margin-top: -20px;}
}

body > .ba-tooltip {
    -webkit-transform: translateY(-115%) translateX(-50%);
    transform: translateY(-115%) translateX(-50%);
    -webkit-animation: ba-tooltip-top .3s;
    animation: ba-tooltip-top .3s;

}

@keyframes tooltip-top-hidden {
    to { opacity: 0; margin-top: -20px;}
}

@-webkit-keyframes tooltip-hidden  {
    to { opacity: 0; margin-top: -20px;}
}

body > .ba-tooltip.tooltip-hidden {
    -webkit-animation: tooltip-top-hidden .3s both;
    animation: tooltip-top-hidden .3s both;
}

/* Like tooltip */
.ba-modal .ba-likes {
    display: none;
    position: absolute;
    right: -webkit-calc(50% - 17px);
    right: calc(50% - 17px);
    text-align: center;
    top: 5px;
    transition: all .1s .3s;
    -webkit-transition: all .1s .3s;
    width: 25px;
}

.ba-modal .ba-like:hover > .ba-likes {
    display: block;
    cursor: pointer;
    z-index: 1;
}

.ba-modal .ba-likes p {
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    line-height: 50px;
    letter-spacing: normal;
    margin: 0;
    text-align: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.ba-modal .ba-likes p,
.ba-modal .header-icons *{
    outline: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-focus-ring-color:  rgba(0, 0, 0, 0);
}

/* Sharing */
.ba-share-icons {
    left: 0;
    position: fixed;
    top: 0;
    height: 0;
    opacity: 0;
}

.ba-share-icons.visible-sharing {
    align-items: center;
    -webkit-align-items: center;
    bottom: 0;
    display: flex;
    height: auto;
    justify-content: center;
    -webkit-justify-content: center;
    opacity: 1 ;
    right: 0;
    transition: opacity .3s;
    -webkit-transition: opacity .3s;
    z-index: 15;
}

.ba-share-icons.visible-sharing.sharing-out {
    opacity: 0;
    transition: opacity .3s;
    -webkit-transition: opacity .3s;
}

.ba-share-icons.visible-sharing.sharing-out .ba-share {
    margin-top: -webkit-calc(50vh);
    margin-top: calc(50vh);
    opacity: 0;
    transition: all .5s;
    -webkit-transition: all .5s;   
}

.ba-share-icons .ba-share i {
    box-sizing: content-box;
    font-size: 36px;
    height: 36px;
    margin-right: 20px;
    padding: 20px;
    position: relative;
    width: 36px;
}

.ba-share-icons .ba-share {
    visibility: hidden;
}

.ba-share-icons.visible-sharing .ba-share {
    text-align: center;
    visibility: visible;
}

@keyframes sharing-animation {
    0%{ opacity: 0; transform: translateY(300%); -webkit-transform: translateY(300%);}
    100% {opacity: 1; transform: none; -webkit-transform: none;}
}

@-webkit-keyframes sharing-animation {
    0%{ opacity: 0; transform: translateY(300%); -webkit-transform: translateY(300%);}
    100% {opacity: 1; transform: none; -webkit-transform: none;}
}

.ba-share-icons.visible-sharing .ba-share i {
    -webkit-animation: sharing-animation .5s  ease-in-out both ;
    animation: sharing-animation .5s  ease-in-out both ;
}

.ba-share-icons .ba-share i:after {
    border-radius: 50%;
    content: "";
    display: block;
    height: 1px;
    left: 50%;
    position: absolute;
    top: 50%;
    width: 1px;
    z-index: -1;
    transition: all .3s;
    -webkit-transition: all .3s;
}
.ba-share-icons .ba-share i:hover:after {
    height: 100px;
    margin: -50px;
    width: 100px;
}

.ba-share-icons .ba-share i:hover {
    color: #fff !important;
}

/* Social Colors*/
.ba-share-icons .ba-share i.ba-twitter-share-button {
    color: #32CDFD;
} 

.ba-share-icons .ba-share i.ba-twitter-share-button:after {
    background: #32CDFD;
} 

.ba-share-icons .ba-share i.ba-facebook-share-button {
    color: #3B5997;
} 

.ba-share-icons .ba-share i.ba-facebook-share-button:after {
    background: #3B5997;
}

.ba-share-icons .ba-share i.ba-google-share-button {
    color: #D95433;
} 

.ba-share-icons .ba-share i.ba-google-share-button:after {
    background: #D95433;
} 

.ba-share-icons .ba-share i.ba-pinterest-share-button {
    color: #CB2027;
} 

.ba-share-icons .ba-share i.ba-pinterest-share-button:after {
    background: #CB2027;
} 

.ba-share-icons .ba-share i.ba-linkedin-share-button {
    color: #007AB5;
} 

.ba-share-icons .ba-share i.ba-linkedin-share-button:after {
    background: #007AB5;
} 

.ba-share-icons .ba-share i.ba-vk-share-button {
    color: #4C75A3;
} 

.ba-share-icons .ba-share i.ba-vk-share-button:after {
    background: #4C75A3;
} 

/* Modal Resize */
.ba-modal.ba-resize {
    border: 0;
    box-shadow: none;
    left: 0;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    overflow: visible;
}

.ba-modal.ba-resize .reload {
    background-color: transparent;
    height: 40px;
    left: -webkit-calc(50% - 20px);
    left: calc(50% - 20px);
    position: absolute;
    top: calc(50% - 20px);
    top: -webkit-calc(50% - 20px);
    width: 40px;
}

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

/* Image */
.ba-modal .modal-image img {
    background-color: #fff;
    margin: 0;
    vertical-align: middle;
    width: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.hide-animation .ba-modal .modal-image img {
    height: auto !important;
    left: 0 !important;
    width: 100% !important;
}

.ba-zoom-image {
    transition: top .15s, left .15s, width .15s, height .15s;
    -webkit-transition: top .15s, left .15s, width .15s , height .15s;
}

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

@keyframes description-fade {
    from {opacity: 0;}
    to {opacity: 1;}
}

@-webkit-keyframes description-fade {
    from {opacity: 0;}
    to {opacity: 1;}
}

.categories-description {
    width: 100%;
}

.ba-gallery .categories-description a {
    padding: 0;
}

.categories-description .com-baforms,
.ba-modal.ba-description-right .modal-description,
.ba-modal.ba-description-left .modal-description,
.ba-modal.ba-description-below .modal-description {
    overflow: hidden;
    -webkit-animation: description-fade .3s .3 both ;
    animation: description-fade .3s .3s both;
}

.ba-description-below .ba-modal-body {
    transition: background-color .15s .15s;
    -webkit-transition: background-color .15s .15;
}

.ba-description-below.hidden-description .ba-modal-body {
    background-color: transparent !important;
}

.ba-description-below.hidden-description .ba-modal-body {
    transition: .3s;
    -webkit-transition: .3s;
}

.ba-description-below.hidden-description .modal-image img {
    z-index: 1;  
}

.ba-description-below .description-wrapper {
    transition: opacity .15s .3s;
    -webkit-transition: opacity .15s .3s;
}

.ba-description-below.hidden-description .description-wrapper {
    opacity: 0;
    visibility: hidden; 
}

/* Description Right */
@keyframes ba-description-right {
    from { right: -417px;}
}

@-webkit-keyframes ba-description-right {
    from { right: -417px;}
}
.gallery-modal.ba-description-right .description-wrapper {
    animation: ba-description-right .5s both;
    -webkit-animation: ba-description-right .5s both;
    background: inherit;
    max-height: 100vh;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    position: fixed;
    right: -17px;
    top: 0;
    width: 417px;
}

.ba-description-right.gallery-modal {
    padding-right: 400px;    
}

.modal-nav .zmdi-chevron-left,
.modal-nav .zmdi-chevron-right,
.ba-modal-header {
    transition: right .5s, left .5s, width .5s;
    -webkit-transition: right .5s, left .5s, width .5s;
}

.gallery-modal {
    transition: padding-right .5s, padding-left .5s;
    -webkit-transition: padding-right .5s, padding-left .5s;
}

.gallery-modal.ba-description-right + input + .modal-nav .zmdi-chevron-right {
    right: 425px;
}

.gallery-modal.ba-description-right .ba-modal-header {
    right: 400px;
    width: calc(100% - 400px);
    width: -webkit-calc(100% - 400px);
}

.gallery-modal.ba-description-right .reload {
    left: calc(50% - 239px);
    left: -webkit-calc(50% - 239px);
}

/* Description Left */ 
@keyframes ba-description-left {
    from { left: -417px;}
}

@-webkit-keyframes ba-description-left {
    from { left: -417px;}
}
.gallery-modal.ba-description-left .description-wrapper{
    animation: ba-description-left .5s both;
    background: inherit;
    direction: rtl;
    left: -17px;
    max-height: 100vh;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    position: fixed;
    top: 0;
    width: 417px;
}

.gallery-modal.ba-description-left .modal-description {
    direction: ltr;
}

.gallery-modal.ba-description-left {
    padding-left: 400px;
}

.gallery-modal.ba-description-left .ba-modal-header {
    left: 400px;
    width: calc(100% - 400px);
    width: -webkit-calc(100% - 400px);
}

.gallery-modal.ba-description-left + input + .modal-nav .zmdi-chevron-left {
    left: 425px;
}

.gallery-modal.ba-description-left .reload {
    left: calc(50% + 161px);
    left: -webkit-calc(50% + 161px);
}

/*
/* Comments
*/

/* VK comments */
.modal-open > iframe[src*= "vk.com"] {
    z-index: 10010 !important;
}


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

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

.ba-modal-body {
    backface-visibility: hidden;
}

.gallery-modal.ba-modal:not(.ba-resize) .ba-modal-body {
    margin-top: 60px;
}

/* Album */
.ba-goback {
    align-items: center;
    -webkit-align-items: center;
    display: flex;
    display: -webkit-flex;
    flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    margin: 25px 0; 
    overflow: hidden;
}

/*
/* Notification
*/

#ba-notification {
    background: #2c2c2c;
    border-radius: 6px;
    bottom: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: #fff;
    display: flex;
    display: -webkit-flex;
    padding: 25px;
    position: fixed;
    right: 50px;
    visibility: hidden;
    z-index: 10000;
}

#ba-notification p {
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 40px;
    letter-spacing: normal;
    margin: 0;
}

.saving-backdrop + img,
#ba-notification img {
    box-sizing: content-box;
    height: 40px;
    padding-left: 40px;
    width: 40px;
}

@keyframes notification-in {
    from {bottom: 0; transform: translateY(100%); opacity: 0;}
}

@-webkit-keyframes notification-in {
    from {bottom: 0; -webkit-transform: translateY(100%); opacity: 0;}
}

#ba-notification.notification-in {
    opacity: 1;
    visibility: visible;
    -webkit-animation: notification-in .4s cubic-bezier(.25,.98,.26,.99) both;
    animation: notification-in .4s cubic-bezier(.25,.98,.26,.99) both;
}

@keyframes notification-out {
    to { bottom: 0; transform: translateY(100%); opacity: 0;}
}

@-webkit-keyframes notification-out  {
    to { bottom: 0; -webkit-transform: translateY(100%); opacity: 0;}
}

#ba-notification.animation-out {
    opacity: 1;
    visibility: visible;
    -webkit-animation: notification-out .4s cubic-bezier(.25,.98,.26,.99) both;
    animation: notification-out .4s cubic-bezier(.25,.98,.26,.99) both;
}

@keyframes saving-backdrop {
    from { opacity: 0; }
}

@-webkit-keyframes saving-backdrop  {
    from { opacity: 0; }
}

.saving-backdrop {
    -webkit-animation: saving-backdrop .3s ease-in-out ;
    animation: saving-backdrop .3s ease-in-out ;
    background: #fff;
    bottom: 0;
    left: 0;
    opacity: .65;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 10000;
}

.saving-backdrop + img {
    position: fixed;
    top: calc(50% - 20px);
    top: -webkit-calc(50% - 20px);
    left: -webkit-calc(50% - 20px);
    left: calc(50% - 20px);
    padding: 0;
    z-index: 10010;
}

/* ========================================================================
    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 input:focus {
    border-color: transparent !important;
}

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

/*
/* Shortcode modal
*/
.contentpane {
    background: #fafafa;
    margin: 0 !important;
}

.contentpane:not(.modal) {
    padding: 20px; 
}

.contentpane #main { 
    margin: 0;
    padding: 0;
}

.modal-shortcode form {
    background: #fafafa;
}

.modal-shortcode input#filter_search {
    border: none;
    box-shadow: none;
    box-sizing: border-box;
    color: #3f3f3f;
    font-size: 16px;
    height: 50px;
    margin: 0;
    padding: 0 25px;
    padding-left: 80px;
    width: 100%;
}

.modal-shortcode #filter_search + i {
    color: #3f3f3f;
    font-size: 24px;
    left: 35px;
    opacity: .5;
    position: absolute;
    top: 13px;
}

.modal-shortcode button {
    display: none;
}

.modal-shortcode .gallery-table {
    background: #fff;
    min-height: 400px;
    height: 430px;
    overflow-y: auto;
}

.modal-shortcode .gallery-list {
    width: 100%;
    border: none;
}

#category-dialog thead th,
.modal-shortcode .gallery-list tbody tr td,
.modal-shortcode .gallery-list tbody tr th,
.modal-shortcode .gallery-list thead tr th {
    border-bottom: 1px solid #f3f3f3;
    border-left: 1px solid #f3f3f3;
    box-sizing: border-box;
    display: inline-block;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    float: left;
    font-weight: 500;
    color: #333;
    padding: 20px 25px;
    text-align: left;
    width: 10%;
}

.modal-shortcode .gallery-list thead tr th:first-child,
.modal-shortcode .gallery-list tbody tr th {
    padding-left: 30px;
}

.modal-shortcode .gallery-list tbody tr th,
.modal-shortcode .gallery-list thead tr th:first-child {
    background: transparent;
    border-left: none;
    text-align: left;
    width: 70%;
}

.modal-shortcode .gallery-list thead tr th:nth-child(2),
.modal-shortcode .gallery-list thead tr th:nth-child(3),
.modal-shortcode .gallery-list tbody tr td {
    background: transparent;
    color: #333;
    justify-content: center;
    text-align: center;
}

.modal-shortcode .gallery-list tbody .gallery-title + td,
.modal-shortcode .gallery-list thead tr th:nth-child(2) {
    width: 20%;
}

.modal-shortcode .gallery-list tbody tr th,
.modal-shortcode .gallery-list tbody tr td {
    align-items: center;
    border: none;
    -webkit-align-items: center;
    display: flex;
    display: -webkit-flex;
    height: 70px;
}

.modal-shortcode .gallery-category {
    color: #999;
}

#category-dialog tbody tr:hover, .modal-shortcode tbody tr:hover {
    background: #1da6f4;
}

#category-dialog tbody tr:hover td i,
#category-dialog tbody tr:hover td,
.modal-shortcode tbody tr:hover td,
.modal-shortcode tbody tr:hover a {
    color: #fff !important;
}

.modal-shortcode a,
.modal-shortcode a:hover {
    text-decoration: none!important;
    background: transparent!important;
}

#category-dialog {
    border-radius: 6px;
    box-sizing: border-box;
    height: 400px;
    left: 50%;
    margin-left: -250px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    top: -webkit-calc(50% - 200px) !important;
    top: calc(50% - 200px) !important;
    width: 500px;
    z-index: 1050;
}

#category-dialog .modal-body {
    background: #fff;
    padding: 0;
    width: 100%;
}

#category-dialog table {
    display: block;
    width: 100%;    
} 

#category-dialog thead,
#category-dialog tbody {
    display: inherit;
    width: 100%;
}

#category-dialog tbody {
    height: 340px;
    overflow-y: auto;
}

#category-dialog thead th {
    background: #fff;
    display: table-cell;
    float: none;
}

#category-dialog thead th:first-child {
    border-left: none;
}

#category-dialog thead th:nth-child(2){
    width: 90%;
    border-left: none;
    padding-left: 20px;
}

#category-dialog tbody tr td {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400 !important;
    padding: 20px;
}

#category-dialog tbody tr:hover td {
    background: transparent;
} 

#category-dialog tbody tr td:last-child {
    text-align: center;
}

#category-dialog .checkbox {
    position: relative;
    width: 5% ;
}

#category-dialog .checkbox input {
    opacity: 0;    
}

#category-dialog tbody tr td i.zmdi {
    color: #ddd;
    font-size: 24px;
    left: 25px;
    position: absolute;
    top: 18px;
}

#category-dialog tbody tr td i.zmdi-check {
   color: #757575; 
   opacity: 0;
}

#category-dialog .checkbox input:checked + i {
    opacity: 0;
}

#category-dialog .checkbox input:checked + i + i {
    opacity: 1;
}

#category-dialog .title {
    width: 70%;
}

.contentpane .modal-backdrop {
    background-color: rgba(0,0,0,.5);
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1040;
}

#modal-filter {
    border: none;
    margin: 20px 0;
    padding: 0;
    position: relative;
}

.contentpane:not(.modal) #modal-filter {
    margin-top: 0; 
}

.contentpane:not(.modal) form {
    margin: 0;
}

.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;
}

/*
/* Edit Gallery Button 
*/

.ba-gallery {
    position: relative;
}

.ba-edit-gallery-btn {
    background: #f64231 !important;
    border-radius: 50%;
    box-shadow: 0 5px 12px rgba(0,0,0,0.23);
    color: #fff !important;
    display: block;
    font-size: 24px;
    margin: 25px 0;
    margin-left: calc(100% - 60px);
    margin-left: -webkit-calc(100% - 60px);
    overflow: hidden;
    letter-spacing: normal;
    line-height: 24px;
    padding: 18px;
    height: 24px;
    text-align: center;
    width: 24px;
    top: 20px;
}

.ba-edit-gallery-btn i {
    transition: all 1s ; 
    -webkit-transition: all 1s ; 
    vertical-align: super;
}

.ba-edit-gallery-btn:hover i {
    color: #fff;
    transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
}

.ba-edit-gallery-btn span {
    display: none;
}

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

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

@media (max-width: 1200px) {
    /* Category filters */
    .ba-gallery select.ba-select-filter {
        background-color: #fff;
        border: 1px solid #f3f3f3;
        color: #999;
        display: block !important;
        font-size: 16px;
        height: 50px;
        width: 100%;
    }
    
    .ba-gallery .category-filter a.ba-filter, 
    .ba-gallery .category-filter a.ba-filter-active {
        display: none;
    }

    /* Album title and btn */
    .ba-gallery .ba-goback h2 {
        box-sizing: border-box;
        text-align: center !important;
        width: 100% !important;
        word-wrap: break-word;
    }
}

@media (max-width: 1024px) {
    .modal-nav {
        display: none !important;
    }

    .gallery-modal .ba-modal-header .ba-center-icons {
        float: right;
        margin-right: 50px;
        width: 110px;
    }

    .gallery-modal .ba-modal-header .ba-center-icons i.zmdi {
        line-height: 36px;
        padding: 20px 15px;
        margin: 0; 
    }

    .ba-scrollable {
        background: #000 !important;
    }

    .ba-modal .ba-modal-header {
        box-shadow: inset 0px 130px 100px -125px rgba(0, 0, 0, 1) !important;
    }

    .ba-modal .header-icons {
        box-shadow: rgba(0, 0, 0, 1) 0px -85px 150px -85px inset !important;
    }
    
    .gallery-modal .ba-modal-header .zmdi:not(.zmdi-favorite) {
        color: #fff !important;
    }

    .gallery-modal .ba-modal-header .ba-modal-title {
        width: calc(100% - 160px);
        width: -webkit-calc(100% - 160px);
    }

    .ba-modal-header .modal-title {
        font-size: 18px !important;
        line-height: 36px !important;
        max-width: 100%;
    }
    
    .ba-modal-header .header-icons {
        bottom: 0;
        padding-top: 50px;  
        position: fixed;
        text-align: center;
        width: 100%;
        left: 0;
    }

    .ba-modal-header .ba-icon-close {
        position: fixed;
        right: 20px;
        top: 5px;
    }

    .gallery-modal .ba-download-img,
    .gallery-modal .zmdi-share,
    .gallery-modal .ba-like-wrapper {
        box-sizing: border-box;
        margin-left: 0 !important;
        padding-top: 30px;
        text-align: center !important;
        width: 30% !important;
    }
}

@media (max-width: 767px) {
    .ba-gallery {
        padding: 0 20px;
    }

    .ba-modal .ba-modal-header a {
        margin-top: 0;
    }

    .gallery-modal .ba-modal-header .zmdi {
        padding: 20px 5px;
    }

    .modal-open {
        width: inherit;
    }

    .ba-edit-gallery-btn {
        display: none;
    }

    .ba-modal-header .zmdi:hover,
    .modal-nav .zmdi-chevron-right:hover,
    .modal-nav .zmdi-chevron-left:hover,
    .ba-gallery .ba-pagination .ba-btn.ba-dissabled {
        opacity: 1;
    }

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

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

    .modal-scrollable.ba-scrollable {
        margin-right: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .ba-gallery .ba-pagination a.ba-btn.ba-first-page,
    .ba-gallery .ba-pagination a.ba-btn.ba-last-page {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .ba-gallery .ba-pagination a.ba-btn.ba-dots,
    .ba-gallery .ba-pagination a.ba-btn:not(.ba-next):not(.ba-prev) {
        display: none !important;
    }

    .ba-gallery .ba-pagination a.ba-btn.ba-dots.ba-next,
    .ba-gallery .ba-pagination a.ba-btn.ba-dots.ba-prev {
        display: inline-block !important;
    }

    .ba-gallery .ba-pagination a.ba-btn.ba-dots.ba-prev span,
    .ba-gallery .ba-pagination a.ba-btn.ba-dots.ba-next span {
        line-height: 25px;
    }    
}
