// #header {
//   overflow: visible;
//   height: auto;
// }

#header .main-menu {
  position: absolute;
  bottom: 0;
}

#gallery img {
  height: 92%;
  position: relative;
  z-index: 20;
}

#gallery .panel {
  position: absolute;
  left: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  opacity: .1;
  transition: opacity .5s ease;
  width: 100%;
  height: 50px;
  z-index: 20;
}

#gallery .panel:hover {
  opacity: 1;
}

#gallery .play {
  position: absolute;
  display: block;
  height: 30px;
  width: 40px;
  left: 50%;
  top: 15px;
  margin-left: -20px;
  background-image: url(../images/play.png);
  background-position: 0 top;
}

#gallery .play.pause {
  background-position: 0 bottom;
}

#gallery .imgs .current p {
  color: #fff;
  height: 2vh;
}

.first_menu {
  width: auto;
  background: none;
  padding-left: 0;
}

.view-gallery-view .first_menu > ul {
  background: url("../images/bg_tabs_gallery.png") no-repeat 23px 0px;
  border: 0px;
}

.first_menu ul {
  margin: 0;
  height: inherit;
  display: inline-block;
  padding-left: 47px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3pt;
}

.first_menu li a {
  margin-right: 39px;
}

.carousel_box a.close_gallery {
  right: 0;
  top: 0;
}

.mobile .carousel_box a.close_gallery {
  //top: 50px;
  top: 0;
  z-index: 999;
}

#footer .show_gallery {
  height: auto;
  width: auto;
}

#footer .show_gallery:after {
  content: none;
}

#footer .copyright {
  margin-top: 66px;
}

.right_block .photo > li {
  -webkit-margin-after: 0;
  -moz-margin-after: 0;
  -ms-margin-after: 0;
  -o-margin-after: 0;
  margin-after: 0;
}

@media (max-width: 1024px) {
  // .gallery_box {
  //     width: 100%;
  // }
  .second_menu {
    padding-left: 10px;
  }
}

@media (max-width: 980px) {
  .main-menu .wrapper {
    width: auto;
  }

  #header .main-menu li {
    width: auto;
    margin-left: 10px;
    margin-right: 10px;
  }

  #header .main-menu li:nth-child(1) {
    margin-left: 80px;
  }

  #gallery img {
    height: initial;
    width: 100%;

    /* margin-top: 50%; */
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    left: 0;
    right: 0;
  }
}

.ajax-progress-throbber {
  display: none !important;
}
