#fancybox-overlay {
    background: #000 !important;
    opacity: 0.8 !important;
    filter: alpha(opacity=80) !important;
}
#fancybox-outer {
    background: transparent; /*overflow: hidden;*/
}
#fancybox-title {
    display: none;
    min-height: 35px;
}
.tsi-photogallery-fancybox #fancybox-content {
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
}

/*#fancybox-wrap{padding: 0; margin: 20px;}*/

.fancybox-title-over {
    opacity: 0;
}

/* iloś zdjęć */
.tsi-photogallery-fancybox .fb-ph-navi {
    position: absolute;
    top: 0;
    left: 20px;
    color: #a6a6a6;
    font-weight: bold;
    font-size: 11px;
    line-height: 1;
    font-family: tahoma, arial, sans-serif;
    z-index: 10;
}

/* tytuł i opis :hover */
.tsi-photogallery-fancybox .fb-ph-title,
.tsi-photogallery-fancybox #fancybox-title {
    opacity: 0;
    -webkit-transition: all 150ms ease-in-out;
    -moz-transition: all 150ms ease-in-out;
    -ms-transition: all 150ms ease-in-out;
    -o-transition: all 150ms ease-in-out;
    transition: all 150ms ease-in-out;
}

.tsi-photogallery-fancybox .fb-ph-title {
    position: absolute;
    left: 0;
    right: 0;
    padding: 10px 10px 0;
    color: #fff;
    font: 16px "OpenSans", "OpenSans2", "OpenSansRegular", Arial, sans-serif;
    z-index: 99999;
}
.tsi-photogallery-fancybox #fancybox-title.showme + .fb-ph-title {
    bottom: 36px;
    background: rgba(0, 0, 0, 0.5);
}
.tsi-photogallery-fancybox .fb-ph-title:empty {
    display: none;
}

.tsi-photogallery-fancybox #fancybox-title > .desc_wrap > .fb-ph-title {
    position: relative;
    font-size: 14px;
    display: block;
    padding: 0;
    opacity: 1;
}

.tsi-photogallery-fancybox #fancybox-outer:hover .fb-ph-title.showme,
.tsi-photogallery-fancybox #fancybox-outer:hover .fancybox-title-over.showme {
    opacity: 1;
}

.tsi-photogallery-fancybox #fancybox-title {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    margin: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #f2f2f2;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
    text-align: left;
    line-height: 1.2;
}
.tsi-photogallery-fancybox #fancybox-title.desc-outside {
    bottom: auto !important;
}
.tsi-photogallery-fancybox #fancybox-title.showme {
    display: table;
}

/* zdjęcie */
/*#fancybox-img{width: auto;}*/

/* opis */
.tsi-photogallery-fancybox .fb-ph-description,
.tsi-photogallery-fancybox .fb-ph-author {
    margin: 0;
    padding: 0;
}
.tsi-photogallery-fancybox .fb-ph-author {
    color: #bdbdbd;
    font-size: 13px;
    font-weight: 300;
}
.tsi-photogallery-fancybox .fb-ph-author,
.tsi-photogallery-fancybox .fb-ph-views,
.tsi-photogallery-fancybox .fb-ph-listviews {
    display: inline-block;
    color: #bdbdbd;
    font-size: 13px;
    font-weight: 300;
}
.tsi-photogallery-fancybox .fb-ph-description + .fb-ph-author {
    margin-top: 5px;
}
.tsi-photogallery-fancybox .desc_wrap,
.tsi-photogallery-fancybox .photo_rating {
    display: table-cell;
    vertical-align: middle;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 12px;
    color: #bdbdbd;
}
.tsi-photogallery-fancybox .photo_rating {
    width: 200px;
    position: absolute;
    right: 15px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}
.tsi-photogallery-fancybox .photo_rating > div {
    display: inline-block;
    vertical-align: middle;
}
.tsi-photogallery-fancybox .photo_rating {
    text-align: right;
}
.tsi-photogallery-fancybox .fancy-facebook-share {
    padding: 4px;
    text-shadow: none;
}
.tsi-photogallery-fancybox div.vote_message {
    display: none;
    position: absolute;
    left: -11px;
    top: -10px;
    background: #000;
    right: -11px;
    text-align: center;
    padding: 4px 5px;
}
.tsi-photogallery-fancybox .plusminus-wrap {
    position: relative;
    min-width: 75px;
}

/* prev, next, zoom */
.tsi-photogallery-fancybox #fancybox-left,
.tsi-photogallery-fancybox #fancybox-right {
    margin: -75px 0 0;
    top: 50%;
    width: 100px;
    cursor: pointer;
    outline: none;
    opacity: 1;
    position: fixed;
    z-index: 99999999999;
    height: 150px;
}
.tsi-photogallery-fancybox #fancybox-left,
.tsi-photogallery-fancybox #fancybox-right:hover {
    opacity: 1;
}

.tsi-photogallery-fancybox #fancybox-left:hover span {
    left: 0;
}
.tsi-photogallery-fancybox #fancybox-right:hover span {
    right: 0;
}

.tsi-photogallery-fancybox a.fancybox-img-link {
    display: none;
    position: absolute;
    top: 0;
    left: 35%;
    right: 35%;
    height: 90%;
    background: transparent;
    opacity: 0;
}
.tsi-photogallery-fancybox a.fancybox-img-link:hover,
.tsi-photogallery-fancybox a.fancybox-img-link:hover:visited {
    background: url("/_style/fancybox/tsi_gallery/zoom.png") 50% 50% no-repeat;
    opacity: 1;
}

.tsi-photogallery-fancybox #fancybox-left-ico,
.tsi-photogallery-fancybox #fancybox-right-ico {
    background: rgba(0, 0, 0, 0.5);
    height: 150px;
    width: 100px;
    margin: 0;
    top: 0;
    left: 0;
    border-radius: 0 5px 5px 0;
}
.tsi-photogallery-fancybox #fancybox-right-ico {
    border-radius: 5px 0 0 5px;
}
.tsi-photogallery-fancybox #fancybox-left-ico::before,
.tsi-photogallery-fancybox #fancybox-right-ico::before {
    content: "\e92a";
    font-family: "font-trojmiasto";
    color: #fff;
    font-size: 50px;
    line-height: 150px;
    display: block;
    padding-left: 30px;
}
.tsi-photogallery-fancybox #fancybox-right-ico::before {
    content: "\e92b";
    padding-left: 40px;
}
.tsi-photogallery-fancybox .photo_rating .result_plus {
    margin-right: 10px;
    color: #66b;
    vertical-align: middle;
}
.tsi-photogallery-fancybox .photo_rating .result_minus {
    vertical-align: middle;
    color: #b00;
}
.tsi-photogallery-fancybox .photo_rating .vote {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}
.tsi-photogallery-fancybox .fancy-facebook-share {
    font-size: 20px;
    text-decoration: none;
    color: #679bda;
}

.tsi-photogallery-fancybox #fancybox-close {
    z-index: 999999;
}

/*wygląd dla RWD*/
@media screen and (max-width: 764px) {
    .tsi-photogallery-fancybox #fancybox-left,
    .tsi-photogallery-fancybox #fancybox-right {
        margin: -50px 0 0;
        top: 50%;
        width: 50px;
        height: 100px;
    }
    .tsi-photogallery-fancybox #fancybox-left-ico,
    .tsi-photogallery-fancybox #fancybox-right-ico {
        height: 100px;
        width: 50px;
    }
    .tsi-photogallery-fancybox #fancybox-left-ico::before,
    .tsi-photogallery-fancybox #fancybox-right-ico::before {
        font-size: 25px;
        line-height: 100px;
        padding-left: 20px;
    }
    .tsi-photogallery-fancybox #fancybox-right-ico::before {
        padding-left: 20px;
    }
}
