/*
    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{float:left; margin:auto; border:0; display:block; max-width:none; -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;}

/* 
    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: rgba(35, 31, 32, 0.75);}
#colorbox{outline:0;}
    
    #cboxContent{background:#DEDFDF; overflow:hidden;}
        .cboxIframe{background:#DEDFDF!IMPORTANT;}
		.cboxIframe body{background:#DEDFDF!IMPORTANT;}
        #cboxError{padding:50px; border:1px solid #ccc;}
        #cboxLoadedContent{margin:56px;}
        #cboxTitle{position:absolute; bottom:4px; left:0; text-align:center; width:100%; color:#949494;}
        #cboxCurrent{position:absolute; bottom:4px; left:58px; color:#949494;}
        #cboxLoadingOverlay{background:url(images/loading_background.png) no-repeat center center;}
        #cboxLoadingGraphic{background:url(images/loading.gif) no-repeat center center;}

        /* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
        #cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; width:auto; background:none; }
        
        /* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
        #cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}

        #cboxSlideshow{position:absolute; bottom:4px; right:30px; color:#0092ef;}
        #cboxPrevious{position:absolute; bottom:0; left:0; background:url(images/controls.png) no-repeat -75px 0; width:25px; height:25px; text-indent:-9999px;}
        #cboxPrevious:hover{background-position:-75px -25px;}
        #cboxNext{position:absolute; bottom:0; left:27px; background:url(images/controls.png) no-repeat -50px 0; width:25px; height:25px; text-indent:-9999px;}
        #cboxNext:hover{background-position:-50px -25px;}
        #cboxClose{position:absolute; top:10px; right:10px; background: url(/Css/site/img/close.png) no-repeat;text-indent:-9999px; width: 36px; height: 36px;}


/*
  The following fixes a problem where IE7 and IE8 replace a PNG's alpha transparency with a black fill
  when an alpha filter (opacity change) is set on the element or ancestor element.  This style is not applied to or needed in IE9.
  See: http://jacklmoore.com/notes/ie-transparency-problems/
*/
.cboxIE #cboxTopLeft,
.cboxIE #cboxTopCenter,
.cboxIE #cboxTopRight,
.cboxIE #cboxBottomLeft,
.cboxIE #cboxBottomCenter,
.cboxIE #cboxBottomRight,
.cboxIE #cboxMiddleLeft,
.cboxIE #cboxMiddleRight {
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF);
}


.gallery li { position: relative !IMPORTANT; width: 245px !IMPORTANT; height: 180px; margin: 0 0 0 1px !IMPORTANT; padding: 0 !IMPORTANT; float: left !IMPORTANT; overflow: hidden; }
.gallery li .img { position: absolute; width: 100%; height: 100%; float: left; margin: 0; padding: 0; overflow: hidden; }
.gallery li .img img { width: 100%; margin: 0; padding: 0; float: left; }
.gallery li .title_list { position: absolute; width: 100%; margin: 0; padding: 3%; bottom: 0; left: 0; background: rgba(5,67,112,0.8); color: #FFFFFF; font-size: 14px; line-height: 16px; font-weight: 400; webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
/* DIRECTION CONTROLS (NEXT / PREV) */
.galeria_imagens .bx-controls { position: relative; margin: 0; padding: 0; top: -228px; right: 6px; }
.galeria_imagens .bx-controls-direction { position: relative; width: 94px; float: right; }
.galeria_imagens .bx-controls-direction a, .btn_next { position: relative; margin: 0 0 0 5px; padding: 0; width: 37px; height: 37px; float: left; text-indent: -9999px; }
.galeria_imagens .bx-controls-direction .bx-prev { background: url(/css/site/img/controls_v2.png) no-repeat 0 0px; }
.galeria_imagens .bx-controls-direction .bx-next, .btn_next { background: url(/css/site/img/controls_v2.png) no-repeat -37px 0px; }



.ad-gallery, .ad-gallery * {
  margin: 0;
  padding: 0;
}
.ad-gallery {
  width: 50%;
  padding: 0;
  margin: 0 5% 0 0;
  float:left;
}
  .ad-gallery .ad-image-wrapper {
    width: 100%;
    height: 410px;
    position: relative;
    overflow: hidden;
  }
.ad-image img{ height: auto; max-height: 100%; }
    .ad-gallery .ad-image-wrapper .ad-loader {
      position: absolute;
      z-index: 10;
      top: 48%;
      left: 48%;
      border: 1px solid #CCC;
    }
    .ad-gallery .ad-image-wrapper .ad-next {
      position: absolute;
      right: 0;
      top: 0;
      width: 25%;
      height: 100%;
      cursor: pointer;
      display: block;
      z-index: 100;
    }
    .ad-gallery .ad-image-wrapper .ad-prev {
      position: absolute;
      left: 0;
      top: 0;
      width: 25%;
      height: 100%;
      cursor: pointer;
      display: block;
      z-index: 100;
    }
    .ad-gallery .ad-image-wrapper .ad-prev, .ad-gallery .ad-image-wrapper .ad-next {
      /* Or else IE will hide it */
      background: url(non-existing.jpg)\9
    }
      .ad-gallery .ad-image-wrapper .ad-prev .ad-prev-image, .ad-gallery .ad-image-wrapper .ad-next .ad-next-image {
        background: url(ad_prev.png);
        width: 30px;
        height: 30px;
        display: none;
        position: absolute;
        top: 47%;
        left: 0;
        z-index: 101;
      }
      .ad-gallery .ad-image-wrapper .ad-next .ad-next-image {
        background: url(ad_next.png);
        width: 30px;
        height: 30px;
        right: 0;
        left: auto;
      }
    .ad-gallery .ad-image-wrapper .ad-image {
      position: absolute;
      overflow: hidden;
      top: 0!IMPORTANT;
      left: 0;
      z-index: 9;
	  margin: 0;
	  padding: 0;
	  height: 100%;
	  width: 100%;
    }
      .ad-gallery .ad-image-wrapper .ad-image a img {
        border: 0;
      }
      .ad-gallery .ad-image-wrapper .ad-image .ad-image-description {
        position: absolute;
        bottom: 0px;
        left: 0px;
        padding: 7px;
        text-align: left;
        width: 100%;
        z-index: 2;
        background: url(opa75.png);
        color: #000;
      }
      * html .ad-gallery .ad-image-wrapper .ad-image .ad-image-description {
        background: none;
        filter:progid:DXImageTransform.Microsoft.AlphaImageLoader (enabled=true, sizingMethod=scale, src='opa75.png');
      }
        .ad-gallery .ad-image-wrapper .ad-image .ad-image-description .ad-description-title {
          display: block;
        }
  .ad-gallery .ad-controls {
    height: 20px;
  }
    .ad-gallery .ad-info {
      float: left;
    }
    .ad-gallery .ad-slideshow-controls {
      float: right;
    }
      .ad-gallery .ad-slideshow-controls .ad-slideshow-start, .ad-gallery .ad-slideshow-controls .ad-slideshow-stop {
        padding-left: 5px;
        cursor: pointer;
      }
      .ad-gallery .ad-slideshow-controls .ad-slideshow-countdown {
        padding-left: 5px;
        font-size: 0.9em;
      }
    .ad-gallery .ad-slideshow-running .ad-slideshow-start {
      cursor: default;
      font-style: italic;
    }
  .ad-gallery .ad-nav {
    width: 100%;
    position: relative;
  }
    .ad-gallery .ad-forward, .ad-gallery .ad-back {
      position: absolute;
      top: 0;
      height: 100%;
      z-index: 10;
    }
    /* IE 6 doesn't like height: 100% */
    * html .ad-gallery .ad-forward, .ad-gallery .ad-back {
      height: 100px;
    }
    .ad-gallery .ad-back {
      cursor: pointer;
      left: 0px;
      width: 43px;
	  height: 90px;
      background: url(/Css/site/img/back-gallery.png) no-repeat;
    }
    .ad-gallery .ad-forward {
      cursor: pointer;
      display: block;
      right: 0px;
      width: 43px;
	  height: 90px;
      background: url(/Css/site/img/next-gallery.png) no-repeat;
    }
    .ad-gallery .ad-nav .ad-thumbs {
      overflow: hidden;
      width: 100%;
    }
      .ad-gallery .ad-thumbs .ad-thumb-list {
        float: left;
        width: 9000px;
        list-style: none;
      }
        .ad-gallery .ad-thumbs li {
          float: left;
        }
          .ad-gallery .ad-thumbs li a {
            display: block;
          }
            .ad-gallery .ad-thumbs li a img {
              display: block;
            }
/* Can't do display none, since Opera won't load the images then */
.ad-preloads {
  position: absolute;
  left: -9000px;
  top: -9000px;
}

.content-popup { position: relative; width: 45%; overflow: hidden; margin: 0; padding: 0; float:left;}
.bg_popup { width: 100%; height: 100%; float: left; padding: 0; margin: 0; background:#DEDFDF!IMPORTANT; color: #001505; font-size: 20px; line-height: 25px; }


@media (max-width: 1100px) {
	.ad-gallery .ad-image-wrapper{ height: 370px;}
}
@media (max-width: 1000px) {
	.ad-gallery .ad-image-wrapper{ height: 333px;}
}
@media (max-width: 900px) {
	.ad-gallery .ad-image-wrapper{ height: 300px;}
}
@media (max-width: 800px) {
	.ad-gallery .ad-image-wrapper{ height: 266px;}
}
@media (max-width: 700px) {
	.ad-gallery{width: 100%; margin: 0;}
	.content-popup{ width: 100%; background: #DEDFDF; padding-top: 50px; margin: 0:}
	.ad-image img{ min-width: 100%; }
	.ad-gallery .ad-image-wrapper{ height: 466px;}
}
@media (max-width: 600px) {
	.ad-gallery .ad-image-wrapper{ height: 400px;}
}
@media (max-width: 500px) {
.ad-gallery .ad-image-wrapper{ height: 333px;}
.content-popup{ padding-top: 30px;}
}
@media (max-width: 450px) {
.ad-gallery .ad-image-wrapper{ height: 300px;}
}
@media (max-width: 400px) {
.ad-gallery .ad-image-wrapper{ height: 222px;}
.content-popup{ padding-top: 20px;}
}
@media (max-width: 350px) {
.ad-gallery .ad-image-wrapper{ height: 233px;}
}
@media (max-width: 300px) {
.ad-gallery .ad-image-wrapper{ height: 200px;}
}
@media (max-width: 250px) {
.ad-gallery .ad-image-wrapper{ height: 166px;}
}