.obj-photos .current:after {
    background: transparent url(/static/svg/object/arrow-current-img.svg) center center;
    display:block;
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    z-index:1;
    content: '';
    margin-top: 1px;
}

/** dont show current arrow on only one thumb */
.obj-photos .current:only-child:after {
    display: none;
}

.link-obj-thumb {
    position: relative;
}

.image-gallery-container {
    position: fixed;
    height: 100%;
    width: 100%;
    background: #000;
    z-index: 2000;
    overflow: hidden;
}

.gallery-header-wrapper {
    height: 45px;
    background: rgba(51, 51, 51, 0.7);
    color: #fff;
    padding-left: 20px;
    position: fixed;
    left: 0;
    right: 300px;
    top: 0;
    z-index: 10;
}

.image-gallery-container__fullscreen .gallery-header-wrapper {
    right:0;
}

.image-gallery-container.zoomin .gallery-header-wrapper {
    background: rgba(51, 51, 51, 0.5);
}

.gallery-header-wrapper div {
    display: inline-block;
    line-height: 44px;
    overflow: hidden;
}

.gallery-header-wrapper div span {
    display: inline-block;
    vertical-align: middle;
    line-height: normal;
}

.gallery-header-wrapper .price {
    font-weight: bold;
    margin-left: 15px;
}

.gallery-header-wrapper .price span {
    border-left: 2px solid #fff;
    padding: 0 15px;
}

.gallery-header-wrapper .share {
    background: rgba(51, 51, 51, 0.9);
    vertical-align: top;
    position: absolute;
    right: 45px;
    overflow: visible;
}

.gallery-header-wrapper .share div {
    display: inline-block;
    vertical-align: top;
}

.gallery-header-wrapper .share .share-button {
    padding: 0 20px 0 10px;
    border-left: 2px solid #666;
    opacity: 0.8;
    -moz-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    -webkit-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

.gallery-header-wrapper .share .share-button:hover {
    opacity: 1;
}

.gallery-header-wrapper .share .share-button a {
    color: #fff;
    font-size: 13px;
}

.gallery-header-wrapper .share .share-button:last-child {
    border-right: 2px solid #666;
}

.share-button-dropdown {
    position: relative;
    overflow: visible!important;
}

.share-button-dropdown__list {
    position: absolute;
    top:100%;
    left:0;
    width:100%;
    list-style: none;
    margin:0;
    padding: 0;
    background: rgba(51, 51, 51, 0.9);
    box-shadow: 0 0 0 2px #666;
    display: none;
}

.share-button-dropdown:hover .share-button-dropdown__list {
    display: block;
}

.share-button-dropdown__list-item {
    padding-left: 10px;
    position: relative;
    list-style: none;
}

.share-button-dropdown__list-item:hover {
    background: rgba(81, 81, 81, 0.9);

}

.gallery-header-wrapper .share .icon {
    width: 45px;
    height: 45px;
}

.gallery-header-wrapper .share .icon.mail {
    background: url('/static/svg/gallery/mail.svg') center center no-repeat;
}

.gallery-header-wrapper .share .icon.facebook {
    background: url('/static/svg/gallery/facebook.svg') center center no-repeat;
}

.gallery-header-wrapper .share .icon.remember {
    background: url('/static/svg/gallery/heart.svg') center center no-repeat;
    background-size: 35px;
}

.gallery-header-wrapper .share .icon.remember.un_save_obj {
    background: url('/static/svg/gallery/icon_flat_hart_red.svg') center center no-repeat;
    background-size: 53px;
}

.image-gallery-container .close {
    background: url('/static/svg/gallery/close.svg') center center no-repeat;
    height: 45px;
    width: 45px;
    cursor: pointer;
    z-index: 2;
    opacity: 0.8;
    -moz-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    -webkit-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

.image-gallery-container .close:hover {
    opacity: 1;
}

.image-gallery-container .close.container-thumbs {
    height: 19px;
    width: 25px;
    background-size:13px;
}

.image-gallery-container .open-thumbs {
    background: url('/static/svg/gallery/gallery.svg') center center no-repeat;
    height: 19px;
    width: 50px;
    background-size: 45px 14px;
}

.image-gallery-container .obj-photos, .image-gallery-container  .obj-img {
    background: inherit;
}

.image-gallery-container .obj-photos {
    border: none;
    padding: 0;
    position: fixed;
    top: 45px;
    right: 300px;
    left: 0;
    bottom: 84px;
    width: auto;
}

.image-gallery-container__fullscreen .obj-photos {
    right:0;
}

.image-gallery-container.zoomin .obj-photos {
    overflow: visible;
}

.image-gallery-container .obj-img img {
    -moz-transition: all 0.5s linear;
    -o-transition: all 0.5s linear;
    -webkit-transition: all 0.5s linear;
    -ms-transition: all 0.5s linear;
    transition: all 0.5s linear;
    -webkit-transform: translateZ(0);
}

.image-gallery-container.zoomin .obj-img img {
    cursor: move; /* fallback if grab cursor is unsupported */
    cursor: grab;
    cursor: -moz-grab;
    cursor: -webkit-grab;
}

.image-gallery-container.zoomin .obj-img img:active {
    cursor: grabbing;
    cursor: -moz-grabbing;
    cursor: -webkit-grabbing;
}

.image-gallery-container.zoomin .obj-photos {
    overflow: visible;
}

.image-gallery-container .thumb-row-wrapper {
    overflow-x: hidden;
    overflow-y: hidden;
    height: 65px;
    scroll-behavior:smooth;

    -moz-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    -webkit-transition: all 0.3s ease-out;
    -ms-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;

    grid-area: images;
}

.thumb-sticky-row {
    grid-area: sticky;
    overflow-x: hidden;
    overflow-y: hidden;
    height: 65px;
    -moz-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    -webkit-transition: all 0.3s ease-out;
    -ms-transition: all 0.3s ease-out;
}

.image-gallery-container .thumb-row-wrapper.hidden, .image-gallery-container .thumb-sticky-row.hidden {
    height: 0;
}

.gallery-footer .thumb-header {
    height: 19px;
    color: #fff;
    line-height: 19px;
    overflow: hidden;
    font-size: 12px;
    grid-area: header;
}

/*.image-gallery-container.zoomin .thumb-header {*/
    /*background: rgba(0, 0, 0, 0.1);*/
/*}*/

/*.image-gallery-container.zoomin .gallery-footer {*/
    /*background: rgba(0, 0, 0, 0.5);*/
/*}*/

.gallery-footer .thumb-header div {
    display: inline-block;
}

.gallery-footer .thumb-header .advert-count {
    padding-left: 20px;
}

.gallery-footer .thumb-header .thumb-text {
    vertical-align: top;
    height: 19px;
}

.gallery-footer .thumb-header .hide-thumbs-row {
    cursor: pointer;
    height: 19px;
    padding-right: 10px;
}

.gallery-footer .thumb-header .hide-thumbs, .gallery-footer .thumb-header .show-thumbs {
    opacity: 0.8;
    -moz-transition: all 0.2s ease-out; /* FF4+ */
    -o-transition: all 0.2s ease-out; /* Opera 10.5+ */
    -webkit-transition: all 0.2s ease-out; /* Saf3.2+, Chrome */
    -ms-transition: all 0.2s ease-out; /* IE10 */
    transition: all 0.2s ease-out;
}

.gallery-footer .thumb-header .hide-thumbs:hover, .gallery-footer .thumb-header .show-thumbs:hover {
    opacity: 1;
}

.image-gallery-container .thumb-row {
    white-space: nowrap;
    overflow: hidden;
    height: 65px;
    /*-moz-transition: all 0.2s ease-out; !* FF4+ *!*/
    /*-o-transition: all 0.2s ease-out; !* Opera 10.5+ *!*/
    /*-webkit-transition: all 0.2s ease-out; !* Saf3.2+, Chrome *!*/
    /*-ms-transition: all 0.2s ease-out; !* IE10 *!*/
    /*transition: all 0.2s ease-out;*/
    cursor: move; /* fallback if grab cursor is unsupported */
    cursor: grab;
    cursor: -moz-grab;
    cursor: -webkit-grab;
}

.image-gallery-container .thumb-row :active {
    cursor: grabbing;
    cursor: -moz-grabbing;
    cursor: -webkit-grabbing;
}

.image-gallery-container .animate {
    -moz-transition: all 0.3s linear; /* FF4+ */
    -o-transition: all 0.3s linear; /* Opera 10.5+ */
    -webkit-transition: all 0.3s linear; /* Saf3.2+, Chrome */
    -ms-transition: all 0.3s linear; /* IE10 */
    transition: all 0.3s linear;
    -webkit-transform: translateZ(0);
}

.image-gallery-container .obj-thumb {
    height: 61px !important;
    width: 80px !important;
    border: none;
}

.image-gallery-container .link-obj-thumb {
    border: 2px solid transparent;
}

.image-gallery-container .vector-thumb-map,
.image-gallery-container .vector-thumb-directions,
.image-gallery-container .vector-thumb-video,
.image-gallery-container .vector-thumb-3d
{
    border: 2px solid #252525;
}

.image-gallery-container .link-obj-thumb:hover {
    border: 2px solid #969696;
}

.image-gallery-container .link-obj-thumb.current {
    border: 2px solid #fff;
}

.right {
    float: right;
}

.gallery-footer {
    position: fixed;
    bottom: 0;
    right: 300px;
    left: 0;
    z-index: 10;
    background: rgba(51, 51, 51, 0.7);

    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas: "header header"
        "images sticky";
}

.image-gallery-container__fullscreen .gallery-footer {
    right:0;
}

.gallery-banner {
    position: absolute;
    top:0;
    width: 300px;
    right: 0;
    bottom:0;
    z-index: 10;
    background: #000;
}

.gallery-banner__300-600 {
    position: absolute;
    top:50%;
    left:0;
    transform: translateY(-50%);
    width: 300px;
    height: 800px;
    display: inline-block;
    vertical-align: middle;
    overflow: hidden;
    line-height: initial;
}

.gallery-banner__300-600, .gallery-banner__300-600 > div {
    display: flex;
    align-items: center;
}

.image-gallery-container .obj-photo-big {
    max-height: 100%;
    width:auto;
    height: auto;
}

.image-gallery-container .obj-img {
    height: 100%;
    position:relative;
    overflow: visible;
}

.image-gallery-container .obj-img img {
    position:absolute;
    top:0;
    bottom:0;
    left: 0;
    right:0;
    margin:auto;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
    cursor: -webkit-zoom-in;
    cursor: -moz-zoom-in;
    cursor: zoom-in;
}

.image-gallery-container .obj-photos iframe {
    width: 100%;
    height: 100%;
}

.image-gallery-container .img-next {
    background: url('/static/svg/gallery/right_arrow.svg') right center no-repeat;
    width: 100px;
    height: 100%;
    margin: 0;
    right: 47px;
    bottom: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.image-gallery-container .img-back {
    background: url('/static/svg/gallery/left_arrow.svg') left center no-repeat;
    width: 100px;
    height: 100%;
    margin: 0;
    left: 10px;
    bottom: 0;
    top: 50%;
    transform: translateY(-50%);
}

.image-gallery-container.tour3d .img-next, .image-gallery-container.tour3d .img-back {
    height: 100px;
}

.image-gallery-container .img-back.half, .image-gallery-container .img-next.half {
    height: 50%;
}

.image-gallery-container .info-message {
    left: 50%;
    transform: translateX(-50%);
}

.image-gallery-container a.bt-list-menu-active {
    background: none;
    border: none;
}

.image-gallery-container .address {
    max-width: 800px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.obj-photos-control {
    overflow: hidden;
    position: absolute;
    width: 100%;
    bottom: 40px;
    top: 40px;
}

.obj-photos-control.bigbank {
    z-index: 3;
}

.obj-photos-buttons--container {
    position: absolute;
    text-align: center;
    top: 373px;
    width:100%;
    left: 0;
    z-index: 3;
}
.obj-photos-buttons--gallery-container {
    position: absolute;
    text-align: center;
    bottom: 0px;
    width:100%;
    left: 0;
    z-index: 3;
}

.obj-photos-buttons {
    display: inline-block;
    border-radius: 5px;
    background-color: rgba(0,0,0,0.63);
    font-size:14px;
    padding: 5px;
}

.obj-photos-buttons--button {
    line-height: 30px;
    color: #FFFFFF;
    display: inline-block;
    padding: 0 20px;
    vertical-align: top;

}

.obj-photos-buttons--button:hover {
    text-decoration: underline;
    cursor: pointer;
}

.obj-photos-buttons--button-active:hover {
    text-decoration: none;
    cursor: default;
}

.obj-photos-buttons--button-active {
    border-radius: 5px;
    background-color: #FFFFFF;
    color: #333333;
    font-weight: bold;
}

@media all and (max-width: 1500px) {
    .image-gallery-container .address {
        max-width: 650px;
    }
}

@media all and (max-width: 1400px) {
    .image-gallery-container .address {
        max-width: 550px;
    }
}

@media all and (max-width: 1300px) {
    .image-gallery-container .address {
        max-width: 450px;
    }
}

@media all and (max-width: 1000px) {
    .gallery-header-wrapper .share .text {
        display: none;
    }
    .gallery-header-wrapper .share .share-button {
        padding: 0 10px;
    }
    .image-gallery-container .address {
        max-width: 300px;
    }
}

@media all and (max-width: 785px) {
    .gallery-header-wrapper .price {
        display: none;
    }
}

.gallery-copy-link-tooltip {
    position: absolute;
    background: #2695EF;
    color:#fff;
    padding: 6px 4px;
    font-size: 11px;
    width:73px;
    white-space: normal;
    border-radius: 3px;
    line-height: 12px!important;
    top: 58px;
    left: 50px;
    transform: translateY(-50%) translateX(-8px);
    opacity: 0;
    transition:all 100ms linear;
    overflow: visible!important;
}
.gallery-copy-link-tooltip:after {
    bottom: 100%;
    left: 16%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: rgba(38, 149, 239, 0);
    border-bottom-color: #2695EF;
    border-width: 5px;
    margin-left: -5px;
}

.icon-share-white {
    background: url('/static/svg/controls/icon_share_white.svg') center center no-repeat;
    background-size: 29px;
    width: 45px;
    height: 45px;
    display: inline-block;
    vertical-align: top;
}

.icon-copy-link-white {
    background: url('/static/svg/controls/copy-link-white.svg') center center no-repeat;
    background-size: 29px;
    width: 45px;
    height: 45px;
    display: inline-block;
    vertical-align: top;
}

.icon-triangle-white {
    display: inline-block;
    width: 16px;
    height: 45px;
    position: relative;
}

.icon-triangle-white:after {
    top: 21px;
    left: 12px;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: rgba(0, 0, 0, 0);
    border-top-color: #fff;
    border-width: 4px;
    margin-left: -4px;
}

.link-obj-thumb .overlay {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    border-top:1px solid #fff;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
}

.link-obj-thumb .count {
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    bottom: 1px;
    height: 22px;
    margin: auto;
    text-align: center;
    color: #ffffff;
    font-size: 21px;
}

.bigbank-last-gallery__opacity {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: calc(100%-100px);
    height: 100%;
    margin: auto;
    opacity: 0.7;
    background-color: #000;
    z-index: 2;
}

.bigbank-last-gallery__wrapper {
    position: absolute;
    left: 100px;
    right: 100px;
    top: 0;
    bottom: 0;
    width: calc(100%-100px);
    height: 100%;
    margin: auto;
    z-index: 3;
}

.bigbank-last-gallery__container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 617px;
}

.bigbank-last-gallery__button {
    /*margin-top: 50px;*/
    margin-top: min(3vw, 50px);
    height: 45px;
    line-height: 45px;
    border-radius: 3px;
    background-color: #D9111B;
    box-shadow: 0 1px 0 0 #A12C38;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: bold;
    padding: 0 57px 0 20px;
    white-space: nowrap;
}

.bigbank-last-gallery__text {
    color: #FFFFFF;
    /*font-size: 30px;*/
    font-weight: bold;
    /*line-height: 45px;*/
    margin-top: 30px;
    font-size: min(3vh, 30px);
    line-height: min(5vh, 45px);
}

.bigbank-last-gallery__button {
    position: relative;
    display: inline-block;
}

.bigbank-last-gallery__button:hover {
    background-color: #d51620;
}

.bigbank-last-gallery__button__arrow {
    background: url(/static/svg/bigbank/right-arrow.svg) center center no-repeat;
    display: inline-block;
    width: 10px;
    height: 18px;
    position: absolute;
    right: 20px;
    top: 14px;
}

.bigbank-last-gallery__logo {
    display: inline-block;
    background: url(/static/svg/bigbank/bigbank_baltas_gallery.svg) center center no-repeat;
    width: 120px;
    height: 35px;
}

.bigbank-last-gallery__akcija {
    border-top: 10px solid #D9111B;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 2;
}

.bigbank-last-gallery__akcija__wrapper {
    background: #D9111B;
    position: absolute;
    top: 4px;
    left: 30px;
    width: 200px;
    padding: 10px 20px;
}

.bigbank-last-gallery__akcija__wrapper::after {
    position: absolute;
    bottom: -20px;
    left: 0;
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 100px 0 100px;
    border-color: #D9111B transparent transparent transparent;
}

.bigbank-last-gallery__akcija__text {
    color: #FFFFFF;
    /*font-size: 24px;*/
    /*line-height: 30px;*/
    font-weight: bold;
    font-size: min(2vh, 22px);
    line-height: min(3vh, 28px);
}

.bigbank-last-gallery__akcija__subtext {
    color: #FFFFFF;
    /*font-size: 20px;*/
    /*line-height: 30px;*/
    font-size: min(2vh, 17px);
    line-height: min(3vh, 27px);
    display: block;
}

@media (max-height : 700px) {
    .bigbank-last-gallery__akcija__wrapper {
        width: 150px;
    }
    .bigbank-last-gallery__akcija__wrapper::after {
        border-width: 20px 75px 0 75px;
    }
}
