.pests {
  background-color: #fff;
  height: 100%;
}
.slider {
  width: 100%;
  position: relative;
  padding-top: 46.6%;
  margin: 0px auto;
  display: inline-block;
}
/*Last thing remaining is to add transitions*/

.slider > DIV {
  position: absolute;
  left: 0;
  top: 0;
  transition: all 0.5s;
}
.slider > DIV img {
  margin: -7px 0 0;
  width: 100%;
}
.slider input[name="slide_switch"] {
  display: none;
}
.slider label {
  /*Lets add some spacing for the thumbnails*/

  margin: 5px 2.5px 2.5px 2.5px;
  float: left;
  cursor: pointer;
  transition: all 0.5s;
  opacity: 0.4;
  width: 15.8%;
  left: 4px;
  position: relative;
}
.slider label img {
  display: block;
  margin: 0;
  padding: 0;
}
/*Time to add the click effects*/

.slider input[name="slide_switch"]:checked + label {
  border-color: #666;
  opacity: 1;
  visibility: visible;
}
/*Clicking any thumbnail now should change its opacity(style)*/
/*Time to work on the main images*/

.slider input[name="slide_switch"] ~ div {
  opacity: 0;
  visibility: hidden;
}
/*That hides all main images at a 110% size
On click the images will be displayed at normal size to complete the effect
*/

.slider input[name="slide_switch"]:checked + label + div {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}
/*Clicking on any thumbnail now should activate the image related to it*/

.caption {
  position: absolute;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 5px;
  width: 100%;
  bottom: 0px;
}
.caption a {
  color: #000;
}
.pest-index h1 {
  font-size: 32px !important;
  margin: 0;
  background: none !important;
  padding: 0 !important;
}
.pests .pest-index-type-btn {
  display: inline-block;
  max-width: 72px;
  width: 100%;
  margin: 0 10px;
  vertical-align: top;
}
.pests .pest-index-type-btn img {
  width: 100%;
}
.pests .pest-index-type-header {
  width: 100%;
  min-height: 150px;
  text-align: center;
}
.pests .pest-index-type-header a {
  font-size: 0.8em;
  line-height: 1.2em;
  color: #444;
  display: block;
}
.pest-detail h1 {
  font-size: 1.9em !important;
  margin: 0px 20px 0 0 !important;
  background: none !important;
  height: auto !important;
  text-shadow: none !important;
  color: #444;
  padding: 0 !important;
  text-align: left !important;
}
.pest-detail header {
  padding: 0;
}
.pest-detail h3 {
  text-align: left !important;
  margin: 20px 20px 0 0px !important;
  font-size: 1.2em !important;
}
.pest-detail p {
  margin-top: 7px !important;
}

#bbh_about {
  margin-left: 40px;
}
@media (max-width: 580px) {
  #bbh_about {
    margin-left: 0;
  }
}
.pestIndexCell {
  height: 108px !important;
}
.pestIndexCell .pestIndexText {
  display: block;
  position: relative;
  top: -35px;
  opacity: 0.7;
  background: #000;
  height: 27px;
  padding: 2px 5px;
  color: #fff;
}
.pestIndexCell .pestIndexText:hover {
  background: #fff;
  color: #000;
}
.pestIndexCell a:hover {
  text-decoration: none;
}
