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

@-webkit-keyframes justified-gallery-show-caption-animation {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@-moz-keyframes justified-gallery-show-caption-animation {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@-o-keyframes justified-gallery-show-caption-animation {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes justified-gallery-show-caption-animation {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@-webkit-keyframes justified-gallery-show-entry-animation {
    from {
        opacity: 0;
    }
    to {
        opacity: 1.0;
    }
}
@-moz-keyframes justified-gallery-show-entry-animation {
    from {
        opacity: 0;
    }
    to {
        opacity: 1.0;
    }
}
@-o-keyframes justified-gallery-show-entry-animation {
    from {
        opacity: 0;
    }
    to {
        opacity: 1.0;
    }
}
@keyframes justified-gallery-show-entry-animation {
    from {
        opacity: 0;
    }
    to {
        opacity: 1.0;
    }
}

.cob-gallery-justified {
    width: auto;
    position: relative;
    overflow: hidden;
}
.cob-gallery-justified.cob-gallery-no-link .cob-gallery-item,
.cob-gallery-justified.cob-gallery-with-link a {
    position: absolute;
    display: inline-block;
    overflow: hidden;
    opacity: 0;
    filter: alpha(opacity=0);
    /* IE8 or Earlier */
}
.cob-gallery-justified .cob-gallery-item img {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    padding: 0;
    border: none;
}
.cob-gallery-justified .cob-caption {
    display: table;
    table-layout: fixed;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 5px;
    color: white;
    background-color: transparent;
    opacity: 0;
    -webkit-transition: all .25s ease;
    -moz-transition: all .25s ease;
    -ms-transition: all .25s ease;
    -o-transition: all .25s ease;
    transition: all .25s ease;
}
.cob-gallery-justified .cob-caption-content {
    /*position: absolute;*/
    /*top: 50%;*/
    /*left: 0;*/
    /*right: 0;*/
    /*transform: translateY(-50%);*/
    /*-webkit-transform: translateY(-50%);*/
    /*-moz-transform: translateY(-50%);*/
    /*-o-transform: translateY(-50%);*/
    /*-ms-transform: translateY(-50%);*/
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    word-wrap: break-word;
}

.cob-gallery-justified .caption.caption-visible {
    /*display: initial;*/
    background-color: #000;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 1;
    /*filter: "alpha(opacity=70)";*/
    /* IE8 or Earlier */
    /*-webkit-animation: justified-gallery-show-caption-animation 500ms 0 ease;*/
    /*-moz-animation: justified-gallery-show-caption-animation 500ms 0 ease;*/
    /*-ms-animation: justified-gallery-show-caption-animation 500ms 0 ease;*/
    /*-webkit-transition: all .25s ease;*/
    /*-moz-transition: all .25s ease;*/
    /*-ms-transition: all .25s ease;*/
    /*-o-transition: all .25s ease;*/
    /*transition: all .25s ease;*/
}
.cob-gallery-justified.cob-gallery-no-link .entry-visible,
.cob-gallery-justified.cob-gallery-with-link .entry-visible {
    opacity: 1.0;
    /*filter: alpha(opacity=100);*/
    /* IE8 or Earlier */
    /*-webkit-animation: justified-gallery-show-entry-animation 500ms 0 ease;*/
    /*-moz-animation: justified-gallery-show-entry-animation 500ms 0 ease;*/
    /*-ms-animation: justified-gallery-show-entry-animation 500ms 0 ease;*/
    -webkit-transition: all .25s ease;
    -moz-transition: all .25s ease;
    -ms-transition: all .25s ease;
    -o-transition: all .25s ease;
    transition: all .25s ease;
}

/* Helpers
================================================== */

.cob-clearfix:before,
.cob-clearfix:after {
    display: table;
    content: " ";
}
.cob-clearfix:after {
    clear: both;
}
.cob-clearfix {
    zoom:1;
}