#cboxOverlay {
    z-index: 101
}

.colorbox {
    z-index: 101
}

.colorbox,
#cboxOverlay,
#cboxWrapper {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    -webkit-transform: translate3d(0, 0, 0);
}

#cboxWrapper {
    max-width: none;
}

#cboxOverlay {
    position: fixed;
    width: 100%;
    height: 100%;
}

#customCloseButton{
    position: fixed; top: 2rem; right: 2rem; z-index: 9999; width: 30px; height: 30px; cursor: pointer;
}

#customCloseButton .line{
    position: absolute; width: 35px; height: 4px; background-color: black; top: 50%; left: 0px; transform-origin: center center; border-radius: 2px; 
}

#cboxMiddleLeft,
#cboxBottomLeft {
    clear: left;
}

#cboxContent {
    position: relative;
}

#cboxLoadedContent {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

#cboxTitle {
    margin: 0;
}

#cboxLoadingOverlay,
#cboxLoadingGraphic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#cboxPrevious,
#cboxNext,
#cboxClose,
#cboxSlideshow {
    cursor: pointer;
}

.cboxPhoto {
    float: left;
    margin: auto;
    max-width: 85vw;
    max-height: 95vh;
    width: auto;
    height: auto !important;
    border: 0;
    display: block;
    -ms-interpolation-mode: bicubic;
}

.cboxIframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    padding: 0;
    margin: 0;
}

.colorbox,
#cboxContent,
#cboxLoadedContent {
    box-sizing: content-box;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
}

#cboxOverlay {
    background: #fff;
    opacity: 0.9;
    filter: alpha(opacity=90);
}

.colorbox {
    outline: 0;
}

#cboxContent {
    margin-top: 32px;
    overflow: visible;
    background: #000;
}

.cboxIframe {
    background: #fff;
}

#cboxError {
    padding: 50px;
    border: 1px solid #ccc;
}

#cboxLoadedContent {
    background: #ffffff;
    padding: 1px;
}

#cboxLoadingGraphic {
    background: url(/themes/custom/artpartner_sass/libraries/colorbox/custom/images/loading.gif) no-repeat center center;
}

#cboxLoadingOverlay {
    background: #000;
}

#cboxTitle {
    position: absolute;
    top: -22px;
    left: 0;
    color: #000;
}

#cboxCurrent {
    position: absolute;
    top: -22px;
    right: 205px;
    text-indent: -9999px;
}

#cboxPrevious,
#cboxNext,
#cboxSlideshow,
#cboxClose {
    border: 0;
    padding: 0;
    margin: 0;
    overflow: visible;
    text-indent: -9999px;
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
}

#cboxPrevious:active,
#cboxNext:active,
#cboxSlideshow:active,
#cboxClose:active {
    outline: 0;
}

#cboxPrevious {
    background-position: 0px 0px;
    left: 15px;
}

#cboxPrevious:hover {
    background-position: 0px -25px;
}

#cboxNext {
    background-position: -25px 0px;
    right: 15px;
}

#cboxNext:hover {
    background-position: -25px -25px;
}

#cboxClose {
    background-position: -50px 0px;
    right: 0;
}

#cboxClose:hover {
    background-position: -50px -25px;
}

.cboxSlideshow_on #cboxPrevious,
.cboxSlideshow_off #cboxPrevious {
    right: 66px;
}

.cboxSlideshow_on #cboxSlideshow {
    background-position: -75px -25px;
    right: 44px;
}

.cboxSlideshow_on #cboxSlideshow:hover {
    background-position: -100px -25px;
}

.cboxSlideshow_off #cboxSlideshow {
    background-position: -100px 0px;
    right: 44px;
}

.cboxSlideshow_off #cboxSlideshow:hover {
    background-position: -75px -25px;
}

#cboxPrevious,
#cboxNext {
    cursor: pointer;
    z-index: 10;
    border-radius: 50px;
    height: 20px;
    width: 20px;
    background: #979797;
    border: 5px solid #fff;
}

#cboxPrevious:hover,
#cboxNext:hover {
    background: #000;
    cursor: pointer;
}

#cboxPrevious:before,
#cboxNext:before {
    content: '';
}

.colorbox.svg-hover-icon {
    position: relative;
    display: block;
}

.colorbox.svg-hover-icon::after {
    content: "";
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><style type="text/css">.st0 { fill: %23FFFFFF; } </style><path class="st0" d="M497.1,509.8l.8-.2.8-.2.7-.3.8-.2.7-.3.7-.4.6-.4.7-.4.7-.5.6-.4,1.1-1a.1.1,0,0,1,.1-.1h.1l.9-1.1.5-.6.5-.7a4.3,4.3,0,0,0,.4-.7,2.1,2.1,0,0,0,.4-.6,3,3,0,0,1,.4-.8l.3-.6a2.4,2.4,0,0,0,.2-.8l.3-.7c.1-.3.1-.5.2-.8s.1-.5.2-.8.1-.5.1-.8a2,2,0,0,0,.1-.7,8.6,8.6,0,0,0,.1-1.6V365.7a16.1,16.1,0,0,0-32.2,0v89.4L353.8,331A16.1,16.1,0,1,0,331,353.8L455.1,477.9H365.7a16.1,16.1,0,1,0,0,32.2H497.1Z"/><path class="st0" d="M14.2,1.6l-.8.2-.7.2-.8.2-.7.3-.7.3-.7.4-.7.4L8.4,4l-.6.5-.6.4-1.1,1H5.9l-1,1.1-.4.6L4,8.4a3,3,0,0,0-.4.8l-.4.6-.4.7-.3.7-.3.8a1.9,1.9,0,0,1-.2.7,2.4,2.4,0,0,0-.2.8,1.9,1.9,0,0,0-.2.7,2.8,2.8,0,0,0-.1.9,1.7,1.7,0,0,0-.1.7,8.6,8.6,0,0,0-.1,1.6V145.7a16.1,16.1,0,1,0,32.2,0V56.3L157.6,180.4a16.1,16.1,0,0,0,22.8-22.8L56.3,33.5h89.4a16.1,16.1,0,1,0,0-32.2H14.2Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease;
    fill: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9));
}

.colorbox.svg-hover-icon:hover::after {
    opacity: 1;
    transition: opacity 0.3s ease;
}