.bafzagallery {
    float: left;
    margin-bottom: 3em;
    width: 100%;
}

.tx-bafza-gallery:after {
    content: '';
    display: block;
    clear: both;
}

.bafzagallery .carousel-wrapper {
    width: 100%;
}

.bafzagallery.cols-1 .bafzagallery-item {
    width: 100%;
}

.bafzagallery.cols-2 .bafzagallery-item {
    width: 50%;
}

.bafzagallery.cols-3 .bafzagallery-item {
    width: 33.3333%;
}

.bafzagallery.cols-4 .bafzagallery-item {
    width: 25%;
}

.bafzagallery.cols-5 .bafzagallery-item {
    width: 20%;
}

.bafzagallery.cols-6 .bafzagallery-item {
    width: 16.6666%;
}

.multiple-rows .slick-slide > div,
.multiple-rows .bafzagallery.cols-1 .bafzagallery-item:after,
.multiple-rows .bafzagallery.cols-2 .bafzagallery-item:nth-of-type(2n+3),
.multiple-rows .bafzagallery.cols-3 .bafzagallery-item:nth-of-type(3n+4),
.multiple-rows .bafzagallery.cols-4 .bafzagallery-item:nth-of-type(4n+5),
.multiple-rows .bafzagallery.cols-5 .bafzagallery-item:nth-of-type(5n+6),
.multiple-rows .bafzagallery.cols-6 .bafzagallery-item:nth-of-type(6n+7) {
    clear: both;
}

.bafzagallery-download {
    float: left;
    padding: 0.5em 0;
    text-align: center;
    width: 100%;
}

.bafzagallery-download > span {
    float: left;
}

.bafzagallery-download div.li {
    float: left;
}

.bafzagallery-download ul {
    float: left;
    list-style: none outside none;
    margin: 0;
    padding: 0;
}

.bafzagallery-download li {
    float: left;
    padding: 0 0.5em;
}

.bafzagallery-download li:before {
    content: "" !important;
}

.downloadimage,
.downloadimage a {
    border: 0;
    box-shadow: none !important;
    width: 100%;
}

.downloadimage a {
    border: 2px dotted transparent !important;
    height: 25px;
    margin: 5px 0 !important;
    text-align: left;
}

.downloadimage a:hover {
    background-color: transparent;
    color: #005580;
}

.downloadimage a:focus {
    border: 2px dotted #00A2D7 !important;
    color: #00A2D7 !important;
}

.bafzagallery-item-innerwrap {
    padding-bottom: 0;
    background: #ebebeb;
    height: 100%;
}

.bafzagallery-item-innerwrap .gallerylink {
    display: block;
}

.bafzagallery-item {
    float: left;
    padding: 10px;
    text-align: center;
    height: auto;
}

.bafzagallery-item img {
    height: auto;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.bafzagallery-item a:hover {

}

#fancybox-buttons ul {
    margin: 0 auto !important;
}

.bafzagallery-item a.download {
    padding-left: 25px;
    background: url(../Icons/image-download.png) 3px 1px no-repeat;
    font-size: 13px;
}

.bafzagallery-item .caption span {
    display: block;
    padding: 5px 5px 0;
    text-align: center;
}

.bafzagallery-item .caption {
    text-align: left;
    font-size: 13px;
    font-style: italic;
    min-height: 1em;
    display: none;
}

.fancybox-overlay .shariff {
    min-height: 40px;
}

.fancybox-overlay .shariff .orientation-horizontal.col-3 li {
    min-width: 80px;
}

#fancybox-buttons a.btnNext:focus, #fancybox-buttons a.btnNext:active {
    background: url("../Scripts/fancybox/source/helpers/fancybox_buttons.png") -33px 0 transparent !important;
}

#fancybox-buttons a.btnPrev:focus, #fancybox-buttons a.btnPrev:active {
    background: url("../Scripts/fancybox/source/helpers/fancybox_buttons.png") 5px 0 transparent !important;
}

#fancybox-buttons a.btnPlay:focus, #fancybox-buttons a.btnPlay:active {
    background: url("../Scripts/fancybox/source/helpers/fancybox_buttons.png") 0 -30px transparent !important;
}

#fancybox-buttons a.btnToggle:focus, #fancybox-buttons a.btnToggle:active {
    background: url("../Scripts/fancybox/source/helpers/fancybox_buttons.png") 3px -60px transparent !important;
}

#fancybox-buttons a.btnClose:focus, #fancybox-buttons a.btnClose:active {
    background: url("../Scripts/fancybox/source/helpers/fancybox_buttons.png") -56px 0 transparent !important;
}

a.fancybox-item.fancybox-close:focus, a.fancybox-item.fancybox-close:active {
    background: url("../Scripts/fancybox/source/fancybox_sprite.png") transparent !important;
}

a.fancybox-nav.fancybox-next:focus, a.fancybox-nav.fancybox-next:active,
a.fancybox-nav.fancybox-prev:focus, a.fancybox-nav.fancybox-prev:active {
    background-color: transparent !important;
}

#fancybox-buttons a.btnPlay.btnPlayOn,
#fancybox-buttons a.btnPlay.btnPlayOn:focus {
    background-position: -30px -30px !important;
}
