img {
border:none;
box-shadow:none
}
.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
}

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

.gallerytd {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 250px;
  height: 200px;
  margin: 5px;
  overflow: hidden
}


.galleryoverlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999;
  position: fixed;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s linear
}

.galleryoverlay img {
  max-height: 90vh;
  max-width: 90vw
}

.galeryimgclose,.galleryimgprev,.galleryimgnext {
  z-index: 999;
  position: fixed;
  text-decoration: none;
  visibility: hidden;
  color: white!important;
  font-size: 2rem;
  top: 10px;
  right: 1rem
}

.galeryimgclose::after {
  content: '\00d7';
}

.galleryimgprev,.galleryimgnext {
  top: 50%;
  transform: translate(0%, -50%);
}

.galleryimgprev {
  left: 5%;
}

.galleryimgnext {
  right: 5%;
}

a:target~.galeryimgclose,
a:target ~ .galleryimgprev,
a:target ~ .galleryimgnext {
  visibility: visible
}

a:target>img.thumbnail+.galleryoverlay {
  visibility: visible;
  opacity: 1;
  pointer-events: initial
}

.imgpos, figcaption {
text-align:center
}