/*---begin css for img gallery---*/
div.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  position: relative;
  background-color: rgb(255, 255, 255, 0.0);
  padding-bottom:0.5em;
  border-bottom:3px dashed #C08000;
}

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

div.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 8px 8px 0 0;
  border: 1px solid #000;
}

div.gallery-item div.desc {
  display: none;
  padding: 15px;
  text-align: center;
  color: #eee;
}
div.gallery-item div.desc a {
  color: #eee;
}
div.gallery-item div.desc a:hover {
  color: #C08000;
}
@media only screen and (max-width: 768px) {
  div.gallery-item div.desc {
  display: inherit;
  position: relative; 
  top: -6px;
  margin-top: 0;
  background-color: rgb(0, 0, 0, 1.0);
  border-radius: 0 0 8px 8px;
  }
}

@media only screen and (max-width: 968px) {
  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---*/
