.gallerytable {
display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-flex-flow: row wrap;
  flex-flow: row wrap
}

.gallerytable img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border:none;
box-shadow:none
}
.gallerytable .gallerytd {
  position: relative;
background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  /*width: 250px;
  height: 200px;*/
  margin: 5px;
  overflow: hidden
}

.gallerytable .gallerytd figure {
width: 100%;
height: 100%
}

.gallerytable .gallerytd figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 5px 10px;
  font-size: 12px
}

.gallery-modal {
display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.9)
}
     .close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s
}

.close:hover,.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer
}
.modal-content,.modal-content img {
	position: relative;
margin: auto;
  display: block;
  max-width: 90vw;
  max-height: 90vh
}

.modal-content img {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
    border:none;
box-shadow:none
}
.modal-content img.show {
  opacity: 1
}
.modal-txt {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 5px 10px
}

/* Next & previous buttons */

.prev,.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  width: auto;
  padding: 1rem;
  color: #777;
  font-weight: normal;
  font-size: 2rem;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
  z-index: 3
}

.prev:hover,.next:hover {
  color: #000
}

.next {
  right: 10px
}

.prev {
  left: 10px
}

.show {
  display: flex
}

.gallerynothumbs img {
  max-width: 100%;
  height: auto
}

.galleries,.gallerymenu,.gallerynumbermenu,.gallerynothumbs {
  display: flex
}

.gallerymenu,.gallerynumbermenu,.gallerynothumbs {
  justify-content: center
}

.gallerymenu-item,.gallerynumbermenu-item {
  padding: 0 5px 10px 10px
}

.gallerynumbermenuactive {
  color: red !important
}

.imgpos, figcaption {
text-align:center
}