.container .gallery-img-box { 
  overflow:hidden;
  width: 100%;
  border-radius: 10px;
  text-align: center;
  background-color: #e3e6e4;
  vertical-align: middle;
  position:relative;
  background-position: center; 
  background-repeat: no-repeat; 
  background-size: contain;
  border: solid 1px #fff;
  height: 220px;
  padding: 0;
}

.container .gallery-thumbs {
  width: 18%;
  margin: 1%;
  float: left; 
}

.gallery-img-box:hover {
  cursor:pointer;
  opacity: 0.6;
}

.gallery-name-box {
  z-index: 100;
  text-align:center;
  font-size: 18px;
  background-color: rgb(80, 79, 79);
  opacity: 0.75;
  top:5px;
  width:100%;
  position: relative;
  display: none;
  color: #fff;
  padding: 10px 0;
  text-decoration:none;
}

.gallery-name-box a:link {
  text-decoration:none;
}

.thumb-listing-box {
  width: 48%;
  margin: 25px 0 50px 2%;
  float: left;
}

.thumb-listing-box .gallery-img-box {
  width: 31%;
  margin: 1%;
  float: left;
}

.main-img-box {
  width: 50%;
  text-align:center;
  padding: 1px;
  margin-top: 50px;
  float: left;
}

.main-img {
  margin: auto;
  display: block;
  border-radius: 10px;
  max-width:100%;
}

a.gallery-thumbs {
  text-decoration:none;
}

@media screen and (max-width: 950px){
  .container .gallery-thumbs {
    width: 48%;
  }
  .thumb-listing-box .gallery-img-box {
    width: 48%;
  }
}

@media screen and (max-width: 500px){
  .thumb-listing-box {
    width: 100%;
  }
  .container .gallery-thumbs {
    width: 100%;
  }
  .thumb-listing-box .gallery-img-box {
    width: 100%;
  }
  .main-img-box {
    display: none;
  }
}