/**
 * 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;
/*  width: 100% !important;*/
}

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

#cboxMiddleLeft, #cboxBottomLeft {
  clear: left;
}

#cboxContent {
  position: relative;
}

#cboxLoadedContent {
  overflow: hidden !important;
  -webkit-overflow-scrolling: touch;
}

#cboxTitle {
 margin: 0;
 display: none !important;
}

#cboxLoadingOverlay, #cboxLoadingGraphic {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/**
* These elements are buttons, and may need to have additional
* styles reset to avoid unwanted base styles.
*/
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow {
  border: 0;
  padding: 0;
  margin: 0;
  overflow: visible;
  width: auto;
  background: none;
  cursor: pointer;
}
/**
* Avoid outlines on :active (mouseclick),
* but preserve outlines on :focus (tabbed navigating)
*/
#cboxPrevious:active, #cboxNext:active, #cboxClose:active, #cboxSlideshow:active {
  outline: 0;
}

.cboxPhoto {
  float: right !important;
  margin: auto;
  border: 0;
  display: block;
  height: 100% !important;
  width: 100% !important;
}

.cboxIframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
/* Reset box sizing to content-box if theme is using border-box. */
#colorbox, #cboxContent, #cboxLoadedContent {
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
}

/**
* Colorbox module default style:
* The styles are ordered & tabbed in a way that represents
* the nesting of the generated HTML.
*/
#cboxOverlay {
  background: rgba(0,0,0,1.5) !important;
}

#colorbox ,
#cboxWrapper{
  outline: 0;
  width: 100% !important;
  height: 100% !important;
}

#cboxWrapper {
  opacity: 1 !important;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
}

#cboxTopLeft {
  width: 15px;
  height: 15px;
}

#cboxTopCenter {
  height: 15px;
}

#cboxTopRight {
  width: 15px;
  height: 15px;
}

#cboxBottomLeft {
  width: 15px;
  height: 10px;
}

#cboxBottomCenter {
  height: 10px;
}

#cboxBottomRight {
  width: 15px;
  height: 10px;
}

#cboxMiddleLeft {
  /*width: 15px;*/
}

#cboxMiddleRight {
  width: 15px;
}

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

#cboxLoadedContent {
  /*margin-top: 45px;*/
  max-width: 100%;
  float: left;
}

#colorbox #cboxContent #cboxLoadedContent.show-info {
  max-width: 80%;
  height: 100% !important;
}

#colorbox #cboxContent #cboxTitle.show-info {
  display: inline-flex !important;
}

@media (min-width: 470px) {
  .field-name-body .colorbox-buttons-wrapper,
  body.node-type-article .colorbox-buttons-wrapper,
  body.node-type-basic-page .colorbox-buttons-wrapper,
  body.node-type-image-gallery .colorbox-buttons-wrapper,
  body.node-type-downloadable-resource .colorbox-buttons-wrapper {
    width: 50px;
    height: 100%;
    position: absolute;
    background: #16162A;
    right: -50px;
    top: 0
  }
}
.colorbox-buttons-wrapper {
  bottom: 0;
  position: absolute;
}

#cboxTitle {
  position: absolute;
  float: right;
  background: rgba(255, 255, 255, 0.7);
  color: #535353;
  width: 20%;
  height: 100%;
  padding: 4px 6px;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

#cboxCurrent {
  color: #949494;
  margin: 5px;
}

.cboxSlideshow_on #cboxSlideshow {
  position: absolute;
  bottom: 0px;
  right: 30px;
  background: url(../images/controls.png) no-repeat -75px -50px;
  width: 25px;
  height: 25px;
  text-indent: -9999px;
}

.cboxSlideshow_on #cboxSlideshow:hover {
  background-position: -101px -50px;
}

.cboxSlideshow_off #cboxSlideshow {
  position: absolute;
  bottom: 0px;
  right: 30px;
  background: url(../images/controls.png) no-repeat -25px -50px;
  width: 25px;
  height: 25px;
  text-indent: -9999px;
}

.cboxSlideshow_off #cboxSlideshow:hover {
  background-position: -49px -50px;
}

#cboxPrevious {
  margin: 10px;
  background: url(../images/arrow-next.png) no-repeat 7px #00ADEF;
  transform: rotate(180deg);
  width: 30px;
  height: 30px;
  text-indent: -9999px;
}

#cboxNext {
  margin: 10px;
  background: url(../images/arrow-next.png) no-repeat 7px #00ADEF;
  width: 30px;
  height: 30px;
  text-indent: -9999px;
}

#cboxLoadingOverlay {
  background: #fff;
}

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

.cboxClose, #cboxClose {
  background: url(../images/close.png) no-repeat -4px;
  width: 30px;
  height: 30px;
  text-indent: -9999px;
  margin: 10px;
  border: 0;
}

#cboxClose {
  display: none;
}

.more-info-btn {
  margin: 10px;
  background: #00ADEF;
  width: 30px;
  height: 30px;
  color: #ffffff;
  border: 0;
  font-size: 25px;
}

.more-info-btn:visited {
  border: 0;
}

#cboxContent .embedded-video iframe {
  width: 100% !important;
}
@media(min-width: 767px) {
  #colorbox {
    left: 0 !important;
    top: 0 !important;
  }
}

#colorbox {
  left: 0 !important;
}

#cboxContent {
  left: 15%;
}

.field-name-body #cboxTitle,
body.node-type-article #cboxTitle,
body.node-type-basic-page #cboxTitle,
body.node-type-image-gallery #cboxTitle,
body.node-type-downloadable-resource #cboxTitle {
  display: none !important;
  bottom: 0;
  padding: 35px 18px;
  color: black;
  font-size: 12px;
  background: #E5E3E4;
}

.field-name-body #cboxContent,
body.node-type-article #cboxContent,
body.node-type-basic-page #cboxContent,
body.node-type-image-gallery #cboxContent,
body.node-type-downloadable-resource #cboxContent {
  left: auto;
  margin: 0 auto;
  float: none !important;
  top: 0;
  max-width: 100% !important;
  background-color: #E5E3E4;
  /*min-width: 600px;*/
}

a.init-colorbox-processed {
  position: relative;
  display: inline-block;
}

a.init-colorbox-processed:before {
  content: " ";
  background-color: rgba(51,51,51,0.2);
  background-image: url(../images/arrow-white.png);
  background-repeat: no-repeat;
  background-size: 20px;
  background-position: center;
  display: block;
  border-radius: 50%;
  position: absolute;
  top: 0;
  right: 0;
  margin: 5px;
  width: 35px;
  height: 35px;
}

a.init-colorbox-processed:hover:before {
  background-color: #00ADDF;
  background-image: url(../images/arrow-black.png);
  background-position: center;
  background-size: 20px;
  z-index: 999;
}

.field-name-field-images a.init-colorbox-processed:before {
  content: none;
}

.field-name-field-images .field-items .field-item:first-of-type a.init-colorbox-processed:before {
  content: " ";
}

.node-article.view-mode-full .field-name-field-images .field-items .field-item:first-of-type,
.node-downloadable-resource.view-mode-full .field-name-field-image .field-items .field-item:first-of-type {
  text-align: center;
  padding-top: 15px;
}

.node-article.view-mode-full .field-name-field-images .field-items .field-item:first-of-type .image-alt,
.node-downloadable-resource.view-mode-full .field-name-field-image .field-items .field-item:first-of-type .image-alt{
  margin-top: 5px !important;
  margin-bottom: 20px;
  font-size: 12px;
  font-family: 'DIN';
  color: #555;
  background-color: #efefef;
  padding: 15px;
  line-height: 1.42;
}

.node-downloadable-resource.view-mode-full .field-name-field-image .field-items .field-item:first-of-type .image-alt {
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 11px;
  font-family: Arial, Helvetica, sans-serif;
  color: #999;
}

.media-color_box {
  text-align: center;
  padding-top: 15px;
  color: #999;
  font-size: 11px;
  font-family: Arial, Helvetica, sans-serif;
}

.media-color_box .field-name-field-file-image-alt-text {
  margin-top: 15px;
  margin-bottom: 10px;
}

@media (max-width:992px) {
  #colorbox #cboxWrapper #cboxContent #cboxTitle {
    display: none !important;
  }
  #colorbox #cboxWrapper #cboxContent {
    min-width: 0;
    width: 100%;
    padding: 0;
    text-align: center;
  }
  #colorbox #cboxWrapper #cboxContent #cboxLoadedContent {
    max-width: 100%;
  }
  #colorbox #cboxWrapper #cboxContent #cboxLoadedContent .cboxPhoto {
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    height: auto !important;
    position: relative;
    top: 50%;
    /* transform: translateY(-50%); */
    float: none !important;
    margin: auto;
  }
  .colorbox-buttons-wrapper #cboxClose {
    display: none;
  }
}
@media (min-width: 737px) and (max-width: 979px) {
  .page-home .popup_onload #cboxContent{
    left: 3%!important;
    width: 92%!important;
  }
  #colorbox #cboxWrapper #cboxContent {
    margin: 0 !important;
  }
}
@media (max-width: 677px){
  .page-home .popup_onload #cboxContent{
    left: 0%!important;
  }
  .page-home .popup_onload #cboxLoadedContent{
    height: 100%!important;
    border: none;
  }
}
@media (max-width: 480px){
  .page-home .popup_onload #cboxLoadedContent{
    width: 86%!important;
  }
}
