
.justified-gallery > .gallery-item {
    border-radius: 5px;
    overflow: hidden;;
}

.justified-gallery .caption,
.justified-gallery .caption {
    display: block !important;
    position: absolute;
    bottom: -50px !important;
    left: 0;
    right: 0;
    opacity: 0;
    cursor: pointer;
    height: 50px;
    padding: 10px 10px 10px 10px !important;
    line-height: 30px;
    -webkit-transition: all .2s;
    transition: all .2s;
    background: -webkit-gradient(linear, left bottom, left top, color-stop(30%, rgba(0, 0, 0, 0.6)), to(transparent)) !important;
    background: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.6) 30%, transparent 100%) !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 30%, transparent 100%) !important;
}

.justified-gallery .caption.caption-visible {
    bottom: 0 !important;
    opacity: 1 !important;
    transition: bottom 0.3s,
    opasity 3s !important;
}

.caption__avatar {
    display: inline-block;
    vertical-align: middle;
    width: 30px;
    height: 30px;
    overflow: hidden;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    margin-right: 6px;
    margin-left: 10px;
}

.caption__avatar img{
    min-height: 100%;
    max-height: 240%;
    min-width: 100%;
    max-width: 240%;
    vertical-align: top;
    position: relative;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.caption__name {
    display: inline-block;
    vertical-align: middle;
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    line-height: normal;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    padding: 2px 4px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    -webkit-transition: all .2s;
    transition: all .2s;
}

.caption__fav {
    position: absolute;
    top: 9px;
    right: 10px;
}

.caption__fav .icon {
    width: 24px;
    height: 24px;
    -webkit-transition: all .2s;
    transition: all .2s;
    background: none;
}

.caption__fav.active .icon {
    -webkit-animation: scaling .5s 1;
    animation: scaling .5s 1;
}

.caption__fav .shape {
    fill: transparent;
    stroke: #fff;
    stroke-width: 3px;
    -webkit-transition: all .2s;
    transition: all .2s;
}

.caption__fav.active .shape {
    fill: #fff;
}