/*---begin css for img gallery---*/
div.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  background:rgba(0, 0, 0, 0.8);
  /*background-color: #333;*/
}

div.gallery-item {
  margin: 5px;
  /*border: 1px solid #aaa;*/
  width: calc(25% - 20px);
  /*background:rgba(0, 0, 0, 0.8);*/
}

/*div.gallery-item:hover {
  border: 1px solid #777;
}*/

div.gallery-item img {
  width: 100%;
  height: auto;
  border: 1px solid #666;
}
div.gallery-item img:hover {
  border-color: #aaa;
}

div.gallery-item div.desc {
  display: none;
  padding: 15px;
  text-align: center;
}

@media only screen and (max-width: 768px) {
  div.gallery-item {
    width: calc(50% - 20px);
  }
}

@media only screen and (max-width: 480px) {
  div.gallery-item {
    width: calc(100% - 20px);
  }
}
/*---end css for img gallery---*/
/*---start css for large view img---*/
.gallery-item img:hover {
  cursor: pointer;
  }
.img-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.img-popup.opened {
  display: flex;
}

.img-popup img {
  max-width: 100%;
  max-height: 100vh;
}

.close-btn {
  position: absolute;
  top: 20px; right: 20px;
  justify-content: space-between;
  min-width: 48px;
  min-height: 48px;
  font-size: 38px;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 0; 
  color: #fff;
  cursor: pointer;
  background: #333;
  padding: 10px;
  margin: 0;
  border: 1px solid #666;
  border-radius: 6px;
}
.close-btn:hover {
  background: #C08000;
  color: #000;
  border-color: #C08000;
}
/*---end css for large view img---*/