.uep-pointer {
  cursor: pointer;
}

#uep-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
}

#uep-modal img.modal-image {
  display: block;
  max-width: 90%;
  max-height: 90%;
  margin: 0 auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#uep-modal svg.modal-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(1.5);
  fill: #fff;
  width: 24px;
  height: 24px;
  cursor: pointer;
  margin: 2rem;
}

.uep-modal-closeButton {
  top: 1rem !important;
  right: 1rem;
}

.uep-modal-returnButton {
  left: 1rem;
}

.uep-modal-forwardButton {
  right: 1rem;
}

#uep-modal .modal-caption {
  color: white;

  text-align: center;
  margin-top: 10px;

}


/*   old Gallery Helper */
.gallery{}
.gallery-columns-3{
  display: flex;
  flex-wrap: wrap;
}
.gallery-columns-3 .gallery-item {
  flex-basis: 33.33%;
  max-width: 33.33%;
}
.gallery-columns-3 .gallery-item img {
  max-width: 100%;
  height:auto;
}
.gallery-columns-3 .gallery-icon{
  padding: 1rem 1rem 0 1rem;
}
.gallery-columns-3  .gallery-caption{
  font-size: 1rem;
    text-align: center;
    line-height: 1rem;
}
.wp-caption figcaption,
.gallery .wp-caption-text{
  font-size: 0.8rem;
  text-align: center;
  line-height: 0.81rem;
  padding: 0 0.9rem;
}




.gallery{}
.gallery-columns-4{
  display: flex;
  flex-wrap: wrap;
}
.gallery-columns-4 .gallery-item {
  flex-basis: 25%;
  max-width: 25%;
}
.gallery-columns-4 .gallery-item img {
  max-width: 100%;
  height:auto;
}
.gallery-columns-4 .gallery-icon{
  padding: 0.2rem 0.2rem 0 0.2rem;
}
.gallery-columns-4  .gallery-caption{
  font-size: 1rem;
    text-align: center;
    line-height: 1rem;
}
.wp-caption figcaption,
.gallery .wp-caption-text{
  font-size: 0.8rem;
  text-align: center;
  line-height: 0.81rem;
  padding: 0 0.9rem;
}

@media (max-width: 992px) {
  .gallery-columns-4 .gallery-item {
    flex-basis: 50%;
    max-width: 50%;
  }
  #uep-modal .modal-caption {
    color: white;
    text-align: center;
    top: 10rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
  }
}