.gallerytable {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  flex-wrap: 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: 254px;
  height: 254px;
  margin: 5px;
  overflow: hidden
}
img.thumbnail {
  	border:none;
  	transition-duration: 0.4s
}

@media (hover: hover) and (pointer: fine) {
	img.thumbnail:hover {
  		transform: scale(1.04);
  		opacity:0.7
	}
}
.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
  */
  display: none
}

.gallery-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #fff
}
.close {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 0.5rem;
  color: #555;
  font-size: 40px;
  font-weight: 600;
  background: rgba(255,255,255,0.6);
  border-radius: 4px;
  transition: 0.3s;
  z-index: 3
}

.close:hover,.close:focus {
  color: #333;
  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;
  font-size: 0.9em;
  font-weight: 600;
  bottom: -36px;
  width: 100%;
  color: #555;
  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: #555;
  font-weight: 400;
  font-size: 2rem;
  background: rgba(255,255,255,0.6);
  border-radius: 4px;
  transition: 0.6s ease;
  user-select: none;
  -webkit-user-select: none;
  z-index: 3
}

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

.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
}