/**
 * Basic colorbox styling, plus custom close button.
 */

#colorbox,
#cboxOverlay,
#cboxWrapper {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9998;
    overflow: visible;
}
#cboxOverlay {
    position: fixed;
    width: 100%;
    height: 100%;
}
#cboxMiddleLeft,
#cboxBottomLeft {
    clear: left;
}
#cboxContent {
    position: relative;
}
#cboxLoadedContent {
    overflow: auto;
}
#cboxTitle {
    margin: 0;
}
#cboxLoadingOverlay,
#cboxLoadingGraphic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#cboxPrevious,
#cboxNext,
#cboxClose,
#cboxSlideshow {
    cursor: pointer;
}

#cboxClose {
    position: absolute;
    border:  none;
    padding: 0;
}

#colorbox #cboxClose{
    background-image: none;
    background-color: transparent;
    text-indent: 0;
    height: 26px;
    width: 26px;
    top: 15px; right: 15px;
    background-image: url("/sites/all/modules/lightbox2/images/close.gif");
    background-position: left top;
    background-repeat: no-repeat;
}
#colorbox #cboxClose:hover{
    background-position: right top;
}

#colorbox{
    -webkit-box-sizing: border-box!important;
    -moz-box-sizing: border-box!important;
    box-sizing: border-box!important;
}


#colorbox div{
    -webkit-box-sizing: border-box!important;
    -moz-box-sizing: border-box!important;
    box-sizing: border-box!important;
}

#colorbox #cboxContent{
    margin-top: 0;
}

#colorbox .group-right,
#colorbox .group-left{
    padding: 20px;
    width: 50%;
    float: left;
}

#colorbox .group-right{
    padding-left: 0;
}

#colorbox .only-one-column .group-right,
#colorbox .only-one-column .group-left{
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

#colorbox .g-recaptcha,
#colorbox *[class*="recaptcha"] {
    margin-top: 1.28571em;
}

@media screen and (max-width: 767px){
    #colorbox .group-right{
        width: 100%;
        padding-left: 20px;
    }
    #colorbox .group-left{
        display: none;
    }
}

#colorbox, #cboxOverlay, #cboxWrapper{
    z-index: 99999!important;
}

#colorbox .node-title{
    display: none;
}

#colorbox img{
    display: block;
}

#colorbox #cboxTopLeft,
#colorbox #cboxTopCenter,
#colorbox #cboxTopRight,
#colorbox #cboxBottomLeft,
#colorbox #cboxBottomCenter,
#colorbox #cboxBottomRight{
    display: none;
}

#colorbox .entity{
    background-size: cover;
    background-repeat: no-repeat;
}

#colorbox .entity .inner{
    overflow: hidden;
}

#colorbox.colorbox-large .entity .inner,
#colorbox.colorbox-medium .entity .inner{
    margin-bottom: -30px;
}

#colorbox.colorbox-large,
#colorbox.colorbox-medium{
    width: 100% !important;
    height: 100% !important;
}

#colorbox.colorbox-large{
    /*padding: 60px 100px;*/
    top: 60px!important;
    left: 60px!important;
    bottom: 60px !important;;
    right: 60px!important;
    max-width: 100%;
    max-height: 100%;
    width: auto!important;
    height: auto!important;
}

#colorbox.colorbox-large #cboxWrapper,
#colorbox.colorbox-medium #cboxWrapper{
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    left: auto;
    top: auto;
    position: relative;
}

#colorbox.colorbox-large #cboxWrapper > div:nth-child(2),
#colorbox.colorbox-medium #cboxWrapper > div:nth-child(2){
    max-height: 100%;
    position: absolute;
    height: 100%;
    width: 100%;
}

#colorbox.colorbox-large #cboxWrapper #cboxContent,
#colorbox.colorbox-medium #cboxWrapper #cboxContent{
    width: 100% !important;
    height: 100% !important;
}


#colorbox.colorbox-large #cboxLoadedContent,
#colorbox.colorbox-medium #cboxLoadedContent{
    width: 100% !important;
    height: 100% !important;
    border: none;
    overflow: hidden!important;
}

#colorbox.colorbox-large #cboxLoadedContent .entity,
#colorbox.colorbox-medium #cboxLoadedContent .entity{
    height: 100%;
    width: 100%;
    overflow: auto;
}

#colorbox.colorbox-medium{
    max-width: 950px;
    max-height: 550px;
    top: 50%!important;
    left: 50%!important;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

#colorbox.colorbox-small{
    width: 100%!important;
    max-width: 475px;
    left: 50%!important;
    -webkit-transform: translate(-50%, 0);
    -moz-transform: translate(-50%, 0);
    -ms-transform: translate(-50%, 0);
    -o-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
}

#colorbox.colorbox-small,
#colorbox.colorbox-small #cboxWrapper,
#colorbox.colorbox-small #cboxContent{
    height: auto!important;
    width: 100%!important;
}

#colorbox.colorbox-small #cboxWrapper{
    position: static;
}

#colorbox.colorbox-small{
    width: 96%!important;
    padding-top: 10px;
    padding-bottom: 10px;
}

#colorbox.colorbox-small #cboxLoadedContent{
    width: 100%!important;
    border:none;
    overflow: hidden!important;
    height: auto!important;
}

.select2-drop {
    z-index: 100000 !important;
}