#gallery {overflow:hidden}

.form-group{margin:-10px 0 0}

#gallery .gallery_wrapper .owl-item{padding:0 10px;float:left}
#gallery .gallery_wrapper .owl-buttons{position:absolute;top:-28px;right:0px;overflow:auto;width:90px;height:20px;background:#fff}
#gallery .gallery_wrapper .owl-buttons div{opacity:1 !important;color:#9E1A3F !important;border:solid 1px #ccc;background:#eee;background:linear-gradient(to bottom, #f2f2f2 0%,#eeeeee 100%);line-height:1.0em;text-align:center;border-radius:3px;transition:none;box-shadow:inset 0 1px 0 #fff}
#gallery .gallery_wrapper .owl-buttons div:hover{background:#e5e5e5}
#gallery .gallery_wrapper .owl-buttons div i{color:#777;font-size:0.8em !important;text-shadow:0 1px 0 #fff}
#gallery .gallery_wrapper .owl-buttons .owl-prev{top:0 !important;left:auto !important;right:45px !important;padding:1px 10px 2px 9px}
#gallery .gallery_wrapper .owl-buttons .owl-next{top:0 !important;right:10px !important;padding:1px 8px 2px 10px}

#gallery .image {position:relative;margin:0 0 20px;padding:10px}
#gallery .image *{position:relative}
#gallery .image:before{content:'';position:absolute;top:0;bottom:0;left:0px;right:0px;border:1px solid #ddd;border-radius:3px}

#gallery .image .name {position:absolute;bottom:10px;left:0px;width:auto;z-index:9;height:23px;padding:0 0 0 10px;line-height:22px;font-weight:500;text-shadow:0 1px 0 rgba(0, 0, 0, .5);color:#fff;font-size:0.8em;opacity:.75;background:#D9534F}
#gallery .image .name a {color:#fff}
#gallery .image .name:after{content:'';position:absolute;width:18px;height:0;right:-18px;top:0;border-width:11px 10px 12px 0;border-style:solid}
#gallery .image .name:after{border-color:#D9534F transparent #D9534F #D9534F}

#gallery .gallery-link {position:relative;top:-10px;margin:0 0 20px;text-align:right;text-decoration:underline;font-weight:500}

@media (max-width:767px) {
    #gallery .image .name {
        display: none;
    }
}