

.second_modal {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  height:100%;
  background: #000000b8;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery_search_menu {
    margin-bottom:40px

}

.gallery_search_menu .select_menus {
}

.gallery_search_menu .select_menus select {
    /* border:1px solid #b9c98b; */
    /* padding:5px; */
    margin-left:20px;
    border-radius:10px;
}

#loading_box {
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    z-index:99999;
    background:rgba(0, 0, 0, .5);
    color:#fff;
    padding:20px;
    text-align:center;
    display:none;
}

#loading_box.active {
    display:block;
}


.modal_overlay {
    position:fixed;
    top:0;
    left:0;
    bottom:0;
    right:0;
    background:rgba(0,0,0,.5);
    Z-INDEX:99999;
    padding:5% 10%;
}

.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
}

.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;
}

.modal_overlay .modal_inner:after {
  display:table;
  clear:both;
  content:"";
}
.modal_overlay span,
.modal_overlay h3 {
 font-size: 18px;
  font-family: "Montserrat";
  color: #8cca0b;
  font-weight: bold;
  line-height: 1.772;
  margin-bottom:0px;
  text-align: left;
}


.modal_overlay span {
    color:#000;
    font-weight:normal;
}

.modal_overlay .primary_section,
.modal_overlay .wheel_section {
    width:20%;
    float:left;

}

.modal_overlay img {
    max-width:100%;
}

.modal_overlay .primary_section {
    width:70%;
    margin-left:3%;
    text-align:center;
    max-width:700px;
}
.modal_overlay .primary_section img.primary_image {
  max-width:100%;
  margin:0 auto;

  height:auto;
  /*height:500px;*/

}
.modal_overlay .download_button,
.modal_overlay a.cta_button  {
 font-size: 14px;
  font-family: "Montserrat";
  color: rgb(255, 255, 255);
  font-weight: bold;
  line-height: 2.278;
  text-align: left;
  color:#8cca0b;
  border:2px solid #8cca0b;
  border-radius:10px;
  padding:10px 40px;
  margin:10px 0 0 0;
  float:left;
}
.modal_overlay .download_button {
  cursor:pointer;
  padding:10px 20px;
}

.gallery_wrapper {
  width:100%;
  display:block !important;

}
.gallery_single_item {
  width:25%;
  height:200px;
  float:right;
  display:flex;
  align-items:center;
  justify-content:center
}

.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% .5%;
}

.grid-3_of_5 {
  padding:0 .5% 1% 0;
}

.grid-4_of_5 {
  padding:0 0 1% .5%;
}

.grid-5_of_5 {
padding:0 .5% 1% 0;
}



.grid-1_of_5:nth-of-type(even) {
  float:left;
  padding:0 1% 1% 0;
}
.gallery_single_item img {
  width:100%;
  height:100%;
  cursor:pointer;
  object-fit:cover;
  font-family: 'object-fit: cover;';
}

.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:.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;
  height:50px;
  margin:5px;
  float:left;
}

.modal_overlay .thumbnail {
  opacity:.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: rgb(255, 255, 255);
  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;
}


@media(min-width:320px) and (max-width:800px) {
.modal_overlay .modal_inner{
    min-height:auto;
}

  .modal_overlay .next_gal,
  .modal_overlay .previous_gal {
  padding:10px;
  width:90px;
  bottom:10px;
  top:unset;
  }

  .modal_overlay .previous_gal {
  left:10px;

  }

  .modal_overlay .next_gal {

  right:10px;


  }
  .modal_overlay .modal_inner {
    padding:20px;
    overflow:auto;
    height:100%;

  }
  .modal_overlay{
    padding:2%;
    height:96%;

  }

  .modal_overlay .thumbs_list {
    display:none;
  }

  .modal_overlay .primary_section, .modal_overlay .wheel_section {
    width:100%;

  }

  .modal_overlay .close_button {
    margin:0;
  }

  .modal_overlay .image_cta,
  .modal_overlay .info_box {
    float:left;
    width:50%;
  }

.modal_overlay .image_cta {
  width:50%;
  text-align:center;
}

.modal_overlay .image_cta a {
  width:100%;
  float:left;

  text-align:center;
}

.modal_overlay .image_cta a img {
display:block;
float:none;
width:200px;
margin:0 auto
}
.modal_overlay a.cta_button {

  width:100%;
  text-align:center

}
.modal_overlay .primary_section {
margin-left:0;
}

.modal_overlay .primary_section img {
  max-height:300px;
  padding-top:10px;

}
