

#mainImages,
#bigImagesContainer {
    position: relative;
    height: 100%;
}
.single-four_centuries_inst #bigImagesContainer {
    padding-top: 50px;
}
#loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    /*background-color: rgba(0,0,0,0.5);*/
    z-index: 999;
    background-image: url('../images/loading.gif');
    background-size: 200px auto;
    background-position: center center;
    background-repeat: no-repeat;
}

#bigImagesContainer .mainImage {
    display: none;
}
#bigImagesContainer .mainImage:first-of-type {
    display: block;
}
#bigImagesContainer .mainImage > img {
    cursor: zoom-in;
}
#zoomLightbox {
    /*display: none;*/
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -9999;
    background: rgba(0,0,0,0.8);
    opacity: 0;
}
#zoomLightbox.show {
    z-index: 9999;
    opacity: 1;
}
#zoomLightbox .inner {
    position: absolute;
    top: 15px;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
}
#lightboxCarousel {
    position: absolute;
    top: 40px;
    left: 30px;
    width: 60px;
    bottom: 0;
    z-index:99;
}
.iv-container {
    width: 100%!important;
}
.iv-snap-view {
    /*display: none!important;*/
    z-index: -999999!important;
}
.footer-info {
    position: absolute;
    top: 30px;
    left: 30px;
}
#zoomSliderContainer {
    position: absolute;
    bottom: 50px;
    right: 70px;
    height: 20px;
    background: rgba(255,255,255,0.7);
    border-radius: 20px;
    width: 275px;
}
#zoomSlider {

    width: 170px;
    height: 1px;
    border: none;
    background: #B6B7BA;
    position: relative;
    top: 50%;
    left: 35px;
}
.zoomOutBtn
/*#zoomSlider:before */ {
    content: "";
    display: block;
    position: absolute;
    width: 28px;
    height: 28px;
    top: -14px;
    left: -40px;
    background-color: #fff;
    border-radius: 50%;
    background-image: url('../images/zoomminus.svg');
    background-repeat: no-repeat;
    background-size: 11px 11px;
    background-position: center center;
}

.zoomOutBtn
/*#zoomSlider:before */ {
    display: block;
    position: absolute;
    width: 28px;
    height: 28px;
    top: -4px;
    left: 0px;
    background-color: #fff;
    border-radius: 50%;
    background-image: url('../images/zoomminus.svg');
    background-repeat: no-repeat;
    background-size: 11px 11px;
    background-position: center center;
    cursor: pointer;
}


/*#zoomSlider:after */
.zoomInBtn {
    content: "";
    display: block;
    width: 28px;
    height: 28px;
    position: absolute;
    right: -32px;
    top: -14px;
    background-color: #fff;
    border-radius: 50%;
    background-image: url('../images/zoomplus.svg');
    background-repeat: no-repeat;
    background-size: 11px 11px;
    background-position: center center;
}

.zoomInBtn {
    content: "";
    display: block;
    width: 28px;
    height: 28px;
    position: absolute;
    right: 40px;
    top: -4px;
    background-color: #fff;
    border-radius: 50%;
    background-image: url('../images/zoomplus.svg');
    background-repeat: no-repeat;
    background-size: 11px 11px;
    background-position: center center;
    cursor: pointer;
}

p#sliderZoomLevel {
    font-size: 12px;
    line-height: 16px;
    position: absolute;
    right: 10px;
}

.ui-slider-horizontal .ui-slider-handle {
    border-radius: 50%;
    border: 1px solid #6E7075!important;
    background: white!important;
    width: 13px!important;
    height: 13px!important;
}

#zoomLightbox #thumbnailCarousel {
    position: absolute;
    left: 30px;
    top: 30px;
    width: 100px;
    background: red;
    z-index: 99;
}
#rightControls {
    position: absolute;
    right: 35px;
    top: 35px;
    z-index: 9999;
}
#pagination {
    text-align: center;
}
#pagination span {
    font-family: "minion-pro", "Times New Roman", times, serif;
    font-size: 12px;
    line-height: 16px;
    margin-left: -3px;
}
.lightboxCloseBTN {

    width: 34px;
    height: 34px;
    background-image: url('../images/lightboxClose.svg');
    background-repeat: no-repeat;
    background-size: contain;
    z-index:99;
    cursor: pointer;
}
img.mainImage {
    display: none;
}
img#mainImage1 {
    display: block;
}
.magnifier-hover {
    width: 22px;
    height: 22px;
    display: inline-block;
    position: absolute;
    bottom: 40px;
    background-image: url('../images/magnifier.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
    cursor: pointer;
}

.iv-image {
    cursor: zoom-in;
}
.iv-image.stayDraggable {
    cursor: move!important;
}
.iv-image.draggable {
    cursor: move;
}

/***** carousel *****/
#thumbnail-carousel {
    position: absolute;
    bottom: 50px;
    left: 20px;
    width: 60px;
    z-index: 99;
}
/*
#thumbnail-carousel {
    position: absolute;
    bottom: 50px;
    left: 20px;
    width: 60px;
    z-index: 99;
    top: 60px;
    max-height: 70vh;
}*/




.carousel-thumbnail {
    width: 60px;
    margin-bottom: 10px;
    text-align: center;
    padding: 5px;
    background: rgba(255,255,255,1);
    border: 1px solid #fff;
    -webkit-transition: .3s ease-in-out;
    -moz-transition: .3s ease-in-out;
    -o-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}

.single-ps-instrument .carousel-thumbnail {
    background-color: transparent;
}
.carousel-thumbnail:hover {
    cursor: pointer;
}
.carousel-thumbnail img {
    width: 30px;
    margin: 0 auto;
}
#thumbnail-carousel .slick-list {
    padding-bottom: 35px!important;
}
#lightboxCarousel .slick-list  {
    padding-bottom: 0!important;
    margin-bottom: -30px;
}
#thumbnail-carousel .slick-slide {
    opacity: 0.4;
    outline: none!important
}
#lightboxCarousel .slick-slide {
    opacity: 0;
    outline: none!important
}
#thumbnail-carousel .slick-slide.slick-active,
#lightboxCarousel .slick-slide.slick-active{
    opacity: 1;
    border: 1px solid #fff;

}
#thumbnail-carousel .carousel-thumbnail.selected,
#lightboxCarousel .carousel-thumbnail.selected{
    border: 1px solid #B6B7BA;
}
.single-ps-instrument #thumbnail-carousel .carousel-thumbnail {
    border: 1px solid #B6B7BA;
}
.single-ps-instrument #thumbnail-carousel .carousel-thumbnail.selected {
    border: 1px solid #fff;
}

#thumbnail-carousel button.slick-arrow,
#lightboxCarousel button.slick-arrow {
    -webkit-appearance: none;
    width: 35px;
    height: 35px;
    border:none;
    -webkit-box-shadow: none!important;
    box-shadow: none!important;
    overflow: hidden;
    font-size: 1px;
    color: transparent;
    text-indent: -9999px;
    background-color: #fff!important;
    cursor: pointer;
}
#thumbnail-carousel button.slick-prev,
#lightboxCarousel button.slick-prev{
    margin-bottom: 20px;
    background-image: url('../images/carouselPrev.svg');
    background-color: transparent!important;
    background-repeat: no-repeat;
    outline: none!important;
}
#thumbnail-carousel button.slick-next,
#lightboxCarousel button.slick-next {
    margin-top: 20px;
    background-image: url('../images/carouselNext.svg');
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
    background-color: transparent!important;
    background-repeat: no-repeat;
    outline: none!important;
}
#thumbnail-carousel button.slick-disabled,
#lightboxCarousel button.slick-disabled {
    opacity: 0.4;
    background-color: transparent!important;
}
#lightboxCarousel button.slick-next,
#lightboxCarousel button.slick-prev {
    margin-left: 12px;
}
.ui-slider-horizontal .ui-slider-handle {
    outline: none!important;
}
/*** Main images ****/
.bigImage {
    display: none;
}
.bigImage:first-of-type {
    display: block;
}
.mainImage,
.mainImage img {
    max-height: 100%;
    height: 100%
}
.mainImage img {
    height: 100%;
}
.iv-image.grab,
.iv-image-wrap.grab,
.iv-image-wrap.grab img,
.iv-image.stayDraggable {
    /*cursor: grab!important;*/
}

.ui-slider-handle {
    cursor: grab!important;
}

@media(max-width:991px) {
    #mainImages, #bigImagesContainer {
        height: 75vh;
    }
    body.single.bow #mainImages {
        height: auto;
    }
    body.single.bow #bigImagesContainer {
        /*min-height: 55vh;*/
        height: auto;
        padding: 80px 0 30px;
    }
    body.single.bow #bigImagesContainer .mainImage {
        margin-bottom: 30px;
    }

    #mobile-carousel .slick-slide img {
        height: 65vh;
        margin: 0 auto;
    }
    .slick-dots {
        list-style-type: none;
        padding-left: 0;
    }
    .slick-dots li {
        display: inline-block;
        width: 10px;
        height: 10px;
        border: 1px solid #707070;
        background: #fff;
        border-radius: 50%;
        margin: 0 7px;
    }
    .slick-dots li.slick-active {
        border: 1px solid #15304C;
        background: #15304C;
    }
    .slick-dots li button {
        display: none;
    }
    #lightboxCarousel .carousel-thumbnail {
        width: 36px;
    }
    #zoomSliderContainer,
    #pagination {
        display: none!important
    }
    .magnifier-mobile {
        position: absolute;
        /*top: 20px;*/
        bottom: 58px;
        right: 20px;
        width: 25px;
        height: 25px;
        cursor: pointer;
        z-index: 999;
        background-image: url('../images/magnifier.svg');
        background-size: contain;
        background-repeat: no-repeat;
    }
}

@media(min-width: 768px) and (max-width: 991px) {
    html {
        overflow-y: auto!important;
    }
    body.single-current_auction_lots #singleLotContainer {
        height: auto!important;
        overflow-y: auto!important;
    }
}

@media(max-height:600px) {
    .carousel-thumbnail {
        width: 30px;
    }
    .carousel-thumbnail img {
        width: 20px;
    }
}



@media(min-width:576px) and (max-width:991px) {
    #lot-information {
        position: relative !important;
        left: 0 !important;
    }
}


/***** BOWS *****/
body.single.bow .mainImage,
body.single.bow .mainImage img {
    height: auto;
}
body.single.bow #bigImagesContainer {
    display: block;
    height: auto;
}
body.single.bow #bigImagesContainer .mainImage {
    display: block;
}

body.single.bow .iv-snap-view {
    /*display: none!important;*/
    /*z-index: 1!important;
    visibility: visible!important;*/
}
body.single.bow .magnifier-hover {
    position: absolute;
    right: 5%;
}

.mainImage.bow {
    width: 100%;
    position: relative;
    padding-bottom: 30%;
    background-size: 80% auto;
    background-repeat: no-repeat;
    background-position: center;
}
.mainImage.bow img {
    position: absolute;
    opacity: 0;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
}

/**** Fixes ****/

.iv-image-wrap {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

@media(max-width:991px) {
    body.single.bow .iv-snap-view {
        width: 120px;
        height: 90px;
        top: auto;
        bottom: 30px;
        left: 30px;
    }
    body.single.bow .iv-snap-image-wrap {
        width: 120px;
    }
}

@media(max-width:767px) {
    #image-gallery,
    .iv-wrap {
        height: 100%;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
    }
    .iv-image-wrap {
        overflow: visible;
    }
    .iv-wrap img {
        image-rendering: pixelated!important;
    }
    .iv-image {
        -webkit-transform: none!important;
        -ms-transform: none!important;
        transform: none!important;
    }

    .mainImage.bow {
        background-size: 73% auto;
    }
}

@media(max-width: 575px) {
    #lot-information {
        overflow-y: visible;
    }
}
.iv-wrap {

}

.single-ps-instrument #postNav a.next:not(.disabled) {
    background-image: url(../images/arrow_left_white.svg);
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}


@media(min-width:992px) {
    .privateSalesLot #mainImages,
    .singleNSlot.auction #mainImages{
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 100%;
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .privateSalesLot #mainImages,
    .privateSalesLot #bigImagesContainer,
    .singleNSlot.auction #mainImages,
    .singleNSlot.auction #bigImagesContainer {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
    }
}