#cboxWrapper {
  max-width: none;
}

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

#cboxOverlay,
#cboxWrapper,
#colorbox {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  overflow: hidden;
}

#cboxOverlay {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0.9;
  filter: alpha(opacity=90);
}

#cboxBottomLeft,
#cboxMiddleLeft {
  clear: left;
}

#cboxTitle {
  margin: 0;
  position: absolute;
  top: -20px;
  left: 0;
  color: #ccc;
}

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

.cboxPhoto {
  float: left;
  margin: auto;
  border: 0;
  display: block;
  -ms-interpolation-mode: bicubic;
}

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

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

#cboxContent {
  position: relative;
  margin-top: 20px;
  background: #000;
}

.cboxIframe {
  background: #fff;
}

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

#cboxLoadedContent {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 5px solid #000;
  background: #fff;
}

#cboxCurrent {
  position: absolute;
  top: -20px;
  right: 0;
  color: #ccc;
}

#cboxLoadingGraphic {
  background: url(../../../images/common/mz/loading.gif) center center no-repeat;
}

#cboxClose,
#cboxNext,
#cboxPrevious,
#cboxSlideshow {
  cursor: pointer;
  border: 0;
  padding: 0;
  margin: 0;
  overflow: visible;
  width: auto;
  background: 0 0;
}

#cboxNext,
#cboxPrevious {
  top: 50%;
  margin-top: -32px;
  width: 28px;
  height: 65px;
  position: absolute;
  text-indent: -9999px;
}

#cboxSlideshow {
  position: absolute;
  top: -20px;
  right: 90px;
  color: #fff;
}

#cboxPrevious {
  left: 5px;
  background: url(../../../images/common/mz/controls.png) top left no-repeat;
}

#cboxPrevious:hover {
  background-position: bottom left;
}

#cboxNext {
  right: 5px;
  background: url(../../../images/common/mz/controls.png) top right no-repeat;
}

#cboxNext:hover {
  background-position: bottom right;
}

#cboxClose {
  position: absolute;
  top: 5px;
  right: 5px;
  display: block;
  background: url(../../../images/common/mz/controls.png) top center no-repeat;
  width: 40px;
  height: 19px;
  text-indent: -9999px;
}

#cboxClose:hover {
  background-position: bottom center;
}

.mz-block-image-gallery li img {
  object-fit: cover;
  object-position: center;
}

#cboxLoadedContent p {
  margin-top: 5px;
}

#cboxLoadedContent h1,
#cboxLoadedContent h2,
#cboxLoadedContent h3,
#cboxLoadedContent h4,
#cboxLoadedContent h5,
#cboxLoadedContent h6,
#cboxLoadedContent span {
  margin-bottom: 8px;
}

#cboxLoadedContent .gallery-inner .gallery-image {
  text-align: center;
}

#cboxLoadedContent img {
  width: auto;
  height: inherit;
}
