.fweb-gallery .view-more,
#fweb-gallery .view-more {
  margin-top: 30px;
  padding: 20px;
  border-radius: 10px;
  border: 2px solid #8bca0b;
  color: #8bca0b;
}
.fweb-gallery .second_modal,
#fweb-gallery .second_modal {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  height: 100%;
  background: #000;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fweb-gallery .gallery_search_menu,
#fweb-gallery .gallery_search_menu {
  margin-bottom: 40px;
}
.fweb-gallery .gallery_search_menu .select_menus select,
#fweb-gallery .gallery_search_menu .select_menus select {
  margin-left: 20px;
  border-radius: 10px;
}
.fweb-gallery #loading_box,
#fweb-gallery #loading_box {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 20px;
  text-align: center;
  opacity: 0;
  z-index: -1;
  font-size: 40px;
}
.fweb-gallery #loading_box.active,
#fweb-gallery #loading_box.active {
  opacity: 1;
  z-index: 99999;
}
.fweb-gallery .modal_overlay,
#fweb-gallery .modal_overlay {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99999;
  padding: 5% 10%;
}
.fweb-gallery .modal_overlay .close_button,
#fweb-gallery .modal_overlay .close_button {
  position: absolute;
  top: 0;
  margin-top: -10px;
  font-size: 2em;
  z-index: 999999;
  right: 0;
  margin-right: -10px;
  padding: 2%;
  cursor: pointer;
  color: #8cca0b;
}
.fweb-gallery .modal_overlay .modal_inner,
#fweb-gallery .modal_overlay .modal_inner {
  background: #fff;
  margin: 0 auto;
  width: 100%;
  max-width: 1000px;
  padding: 2vh 40px;
  position: relative;
  border-radius: 10px;
  min-height: 600px;
  max-height: 95vh;
}
.fweb-gallery .modal_overlay .modal_inner:after,
#fweb-gallery .modal_overlay .modal_inner:after {
  display: table;
  clear: both;
  content: "";
}
.fweb-gallery .modal_overlay span,
#fweb-gallery .modal_overlay span,
.fweb-gallery .modal_overlay h3,
#fweb-gallery .modal_overlay h3 {
  font-size: 18px;
  font-family: "Montserrat";
  color: #8cca0b;
  font-weight: bold;
  line-height: 1.772;
  margin-bottom: 0px;
  text-align: left;
}
.fweb-gallery .modal_overlay span,
#fweb-gallery .modal_overlay span {
  color: #000;
  font-weight: normal;
}
.fweb-gallery .modal_overlay .primary_section,
#fweb-gallery .modal_overlay .primary_section,
.fweb-gallery .modal_overlay .wheel_section,
#fweb-gallery .modal_overlay .wheel_section {
  width: 20%;
  float: left;
}
.fweb-gallery .modal_overlay img,
#fweb-gallery .modal_overlay img {
  max-width: 100%;
}
.fweb-gallery .modal_overlay .primary_section,
#fweb-gallery .modal_overlay .primary_section {
  width: 100%;
  margin-left: 3%;
  text-align: center;
  max-width: 77%;
}
.fweb-gallery .modal_overlay .primary_section img.primary_image,
#fweb-gallery .modal_overlay .primary_section img.primary_image {
  max-width: 100%;
  margin: 0 auto;
  height: auto;
  max-height: 60vh;
}
.fweb-gallery .modal_overlay .download_button,
#fweb-gallery .modal_overlay .download_button,
.fweb-gallery .modal_overlay a.cta_button,
#fweb-gallery .modal_overlay a.cta_button {
  font-size: 14px;
  font-family: "Montserrat";
  color: #fff;
  font-weight: bold;
  line-height: 20px;
  text-align: left;
  color: #8cca0b;
  border: 2px solid #8cca0b;
  border-radius: 10px;
  padding: 10px 20px;
  margin: 10px 0 0 0;
  float: left;
  text-align: center;
  width: 100%;
}
.fweb-gallery .modal_overlay .download_button,
#fweb-gallery .modal_overlay .download_button {
  cursor: pointer;
  padding: 10px 20px;
}
.gallery_wrapper {
  width: 100%;
  display: block !important;
  opacity: 0;
}
.gallery_wrapper.active {
  opacity: 1;
}
.gallery_single_item {
  width: 25%;
  height: 200px;
  float: right;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery_single_item picture {
  height: 100%;
}
.grid-1_of_5 {
  width: 50%;
  height: 400px;
}
.grid-1_of_5 {
  padding: 0 0 1% 1%;
}
.grid-2_of_5 {
  padding: 0 0 1% 0.5%;
}
.grid-3_of_5 {
  padding: 0 0.5% 1% 0;
}
.grid-4_of_5 {
  padding: 0 0 1% 0.5%;
}
.grid-5_of_5 {
  padding: 0 0.5% 1% 0;
}
.grid-1_of_5:nth-of-type(even) {
  float: left;
  padding: 0 1% 1% 0;
}
.gallery_single_item picture img {
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.gallery_more {
  float: left;
  width: 100%;
  text-align: center;
  margin: 40px 0;
}
.gallery_more span {
  border: 2px solid #8cca0b;
  padding: 10px 50px;
  border-radius: 10px;
  color: #8cca0b;
  font-size: 16px;
  font-family: "Montserrat";
  cursor: pointer;
  transition: 0.5s all;
}
.gallery_more span:hover {
  background: #8cca0b;
  color: #fff;
}
.modal_overlay * {
  box-sizing: border-box;
}
.modal_overlay .thumbs_list {
  width: 100%;
  float: left;
  margin: 0 -5px;
}
.modal_overlay .thumbs_list img {
  width: 50px !important;
  height: 50px !important;
  margin: 5px;
  cursor: pointer;
  transition: 0.5s all;
}
.modal_overlay .thumbs_list img:hover:not(.active) {
  opacity: 0.8;
}
.modal_overlay .thumbnail {
  opacity: 0.4;
}
.modal_overlay .thumbnail.active {
  opacity: 1;
}
.modal_overlay .previous_gal,
.modal_overlay .next_gal {
  position: absolute;
  top: 49%;
  margin-top: -40px;
  cursor: pointer;
  right: -100px;
  padding: 30px 20px;
  background: #8cca0b;
  font-size: 14px;
  font-family: "Montserrat";
  color: #fff;
  line-height: 1.286;
  text-align: center;
  color: #fff;
  width: 100px;
  font-weight: bold;
  text-transform: uppercase;
}
.modal_overlay .next_gal {
  border-radius: 0px 10px 10px 0px;
}
.modal_overlay .previous_gal {
  right: unset;
  left: -100px;
  border-radius: 10px 0px 0px 10px;
}
.modal_overlay .image_cta img {
  max-width: 150px !important;
  max-height: 150px;
}
@media (min-width: 320px) and (max-width: 800px) {
  h3 {
    margin-top: 0px;
  }
  p {
    margin: 0;
  }
  .fweb-gallery .info-row,
  #fweb-gallery .info-row {
    width: 50%;
  }
  .fweb-gallery .nav-buttons,
  #fweb-gallery .nav-buttons {
    padding-top: 10px;
  }
  .fweb-gallery .modal_overlay,
  #fweb-gallery .modal_overlay {
    padding: 2%;
    height: 100%;
  }
  .fweb-gallery .modal_overlay .modal_inner,
  #fweb-gallery .modal_overlay .modal_inner {
    min-height: auto;
    padding: 20px;
    overflow: auto;
  }
  .fweb-gallery .modal_overlay .next_gal,
  #fweb-gallery .modal_overlay .next_gal,
  .fweb-gallery .modal_overlay .previous_gal,
  #fweb-gallery .modal_overlay .previous_gal {
    padding: 10px;
    width: auto;
    font-size: 0;
    z-index: 99999;
    position: relative;
    bottom: 0;
    top: unset;
  }
  .fweb-gallery .modal_overlay .next_gal .fa,
  #fweb-gallery .modal_overlay .next_gal .fa,
  .fweb-gallery .modal_overlay .previous_gal .fa,
  #fweb-gallery .modal_overlay .previous_gal .fa {
    font-size: 16px;
  }
  .fweb-gallery .modal_overlay .previous_gal,
  #fweb-gallery .modal_overlay .previous_gal {
    left: 0px;
  }
  .fweb-gallery .modal_overlay .next_gal,
  #fweb-gallery .modal_overlay .next_gal {
    right: 0px;
    margin-left: auto;
  }
  .fweb-gallery .modal_overlay .thumbs_list,
  #fweb-gallery .modal_overlay .thumbs_list {
    display: none;
  }
  .fweb-gallery .modal_overlay .primary_section,
  #fweb-gallery .modal_overlay .primary_section,
  .fweb-gallery .modal_overlay .wheel_section,
  #fweb-gallery .modal_overlay .wheel_section {
    width: 100%;
  }
  .fweb-gallery .modal_overlay .close_button,
  #fweb-gallery .modal_overlay .close_button {
    margin: 0;
  }
  .fweb-gallery .modal_overlay .image_cta,
  #fweb-gallery .modal_overlay .image_cta {
    float: left;
    width: 50%;
  }
  .fweb-gallery .modal_overlay .image_cta,
  #fweb-gallery .modal_overlay .image_cta {
    width: 50%;
    text-align: center;
    display: none;
  }
  .fweb-gallery .modal_overlay .image_cta a,
  #fweb-gallery .modal_overlay .image_cta a {
    width: 100%;
    float: left;
    text-align: center;
  }
  .fweb-gallery .modal_overlay .image_cta a img,
  #fweb-gallery .modal_overlay .image_cta a img {
    display: block;
    float: none;
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }
  .fweb-gallery .modal_overlay a.cta_button,
  #fweb-gallery .modal_overlay a.cta_button {
    text-align: center;
    width: 49%;
  }
  .fweb-gallery .modal_overlay .primary_section,
  #fweb-gallery .modal_overlay .primary_section {
    margin-left: 0;
    max-width: 100%;
    padding-bottom: 40px;
    min-height: 30px;
  }
  .fweb-gallery .modal_overlay .primary_section img,
  #fweb-gallery .modal_overlay .primary_section img {
    max-height: 300px;
    padding-top: 10px;
  }
}
.primary-image-picture {
  position: relative;
  z-index: 1333;
}
.primary-image-picture .loading-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  z-index: 999999;
  color: #fff;
  height: 100px;
  font-size: 30px;
  color: #8cca0b;
}
