/*
    Colorbox Core Style:
    The following CSS is consistent between example themes and should not be altered.
*/
#colorbox,
#cboxOverlay,
#cboxWrapper {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  overflow: hidden;
}
#cboxWrapper {
  max-width: none;
}
#cboxOverlay {
  position: fixed;
  width: 100%;
  height: 100%;
}
#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 {
  display: block;
  float: left;
  margin: auto;
  max-width: none;
  border: 0;
  -ms-interpolation-mode: bicubic;
}
.cboxIframe {
  display: block;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
#colorbox,
#cboxContent,
#cboxLoadedContent {
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
}

/* 
    User Style:
    Change the following styles to modify the appearance of Colorbox.  They are
    ordered & tabbed in a way that represents the nesting of the generated HTML.
*/
#cboxOverlay {
  background: #FFF;
  opacity: 0.7;
}
#colorbox {
  outline: 0;
}
#cboxContent {
  overflow: visible;
  margin-bottom: 30px;
  background: none;
}
.cboxIframe {
  background: #fff;
}
#cboxError {
  padding: 50px;
  border: 1px solid #ccc;
}
#cboxLoadedContent {
  padding: 0;
  background: none;
}
#cboxLoadingGraphic {
  /*background:url(images/loading.gif) no-repeat center center;*/
}
#cboxLoadingOverlay {
  background: #fff;
}
#cboxTitle {
  color: #000;
  margin-top: 0.5em;
}
#cboxCurrent {
  position: absolute;
  top: -22px;
  right: 205px;
  text-indent: -9999px;
}

/* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
#cboxPrevious,
#cboxNext,
#cboxSlideshow,
#cboxClose {
  position: fixed;
  top: -20px; /*background:url(images/controls.png) no-repeat 0 0;*/
  overflow: visible;
  margin: 0;
  padding: 0;
  width: 20px;
  height: 20px;
  border: 0;
  text-indent: -9999px;
}

/* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
#cboxPrevious:active,
#cboxNext:active,
#cboxSlideshow:active,
#cboxClose:active {
  outline: 0;
}

#cboxPrevious {
  top: 50%;
  left: 44px;
  width: 70px;
  height: 70px;
  margin-top: -20px;
  background: url(../images/btn_left.png) no-repeat center center;
}
#cboxNext {
  top: 50%;
  right: 44px;
  width: 70px;
  height: 70px;
  margin-top: -20px;
  background: url(../images/btn_right.png) no-repeat center center;
}

#cboxClose {
  position: fixed;
  top: 4px;
  right: 4px;
  /*
  top: auto;
  bottom: -66px;
  left: calc(50% - 25px);
  */
  width: 80px;
  height: 92px;
  background: url(../images/btn_close.png) no-repeat center center;
}

@media screen and (max-width: 768px) {
  #cboxPrevious {
    top: auto;
    bottom: 20px;
    left: -15%;
    right: 0;
    margin: 0 auto;
  }
  #cboxNext {
    top: auto;
    bottom: 20px;
    left: 0;
    right: -15%;
    margin: 0 auto;
  }
}
