
img {
  max-width: 100%;
}
.gallery-wrapper {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1em;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  grid-gap: 1em;
}
.gallery-wrapper .image-wrapper a {
  padding: 0.5em;
  display: block;
  width: 100%;
  text-decoration: none;
  color: #333;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  transition: all 200ms ease-in-out;
}
.gallery-wrapper .image-wrapper a:hover {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}
.gallery-wrapper .image-wrapper a img {
  width: 100%;
}
.gallery-lightboxes .image-lightbox {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0ms ease-in-out;
}
.gallery-lightboxes .image-lightbox:target {
  opacity: 1;
  visibility: visible;
}
.gallery-lightboxes .image-lightbox:target .image-lightbox-wrapper {
  opacity: 1;
  transform: scale(1, 1) translateY(0);
}
.gallery-lightboxes .image-lightbox .image-lightbox-wrapper {
  transform: scale(0.95, 0.95) translateY(-30px);
  transition: opacity 500ms ease-in-out, transform 500ms ease-in-out;
  opacity: 0;
  margin: 1em auto;
  max-width: 75%;
  padding: 0.5em;
  display: inline-block;
  background: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
  position: relative;
}
.gallery-lightboxes .image-lightbox .image-lightbox-wrapper .close {
  width: 1.5em;
  height: 1.5em;
  background: #000;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50%;
  box-shadow: 0 0 0 2px white inset, 0 0 5px rgba(0, 0, 0, 0.5);
  position: absolute;
  right: -1em;
  top: -1em;
}
.gallery-lightboxes .image-lightbox .image-lightbox-wrapper .close:before {
  content: '';
  display: block;
  width: 10px;
  height: 2px;
  background: #fff;
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -1px 0 0 -5px;
  transform: rotate(-45deg);
}
.gallery-lightboxes .image-lightbox .image-lightbox-wrapper .close:after {
  content: '';
  display: block;
  width: 10px;
  height: 2px;
  background: #fff;
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -1px 0 0 -5px;
  transform: rotate(45deg);
}
.gallery-lightboxes .image-lightbox .image-lightbox-wrapper .arrow-left {
  position: absolute;
  top: 0;
  right: 50%;
  bottom: 0;
  left: 0;
}
.gallery-lightboxes .image-lightbox .image-lightbox-wrapper .arrow-left:before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-bottom: 0;
  border-right: 0;
  border-radius: 4px 0 0 0;
  position: absolute;
  top: 50%;
  right: 100%;
  cursor: pointer;
  transform: rotate(-45deg) translateY(-50%);
}
.gallery-lightboxes .image-lightbox .image-lightbox-wrapper .arrow-right {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 50%;
}
.gallery-lightboxes .image-lightbox .image-lightbox-wrapper .arrow-right:before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0 4px 0 0;
  position: absolute;
  top: 50%;
  left: 100%;
  cursor: pointer;
  transform: rotate(45deg) translateY(-50%);
}
.gallery-lightboxes .image-lightbox .image-lightbox-wrapper img {
  margin: 0 auto;
  max-height: 90vh;
}








.filter {
  text-align: center;
  margin: 2em auto;
}

.filter a {
 text-align: center;
  color: var(--primary-color);
  margin: 0.15em auto;
}

.filter a.current {
  background: var(--primary-color);
  color:#fff;
}

.boxGroup {
  text-align: center;
}

.boxGroup div {
  display: inline-block;
}




.box {
  margin-top: -3px;
}




.flex-container {
  display: flex;
  flex-wrap: wrap;
}

.flex-container > div { 
  width: 27%;
  margin: 10px;
  text-align: center;
  line-height: 75px;
  font-size: 30px;
}










.grid-container {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  grid-auto-flow: dense;
}

.grid-container .item a {
  display:flex;
  width:100%;
}
.grid-container .item.portrait {
  grid-row: auto / span 2;
}
.grid-container .item img {
  width:400px;
  height:auto;
  
}


.image-wrapper {
  margin-top: -34px;
}


.image-wrapper a {
  width: 100% !important;
}


/*  max 704  */


@media only screen and (max-width: 704px) {
 .image-wrapper a {
   width: 100% !important;
  }
}

@media only screen and (max-width: 500px) {
 .image-wrapper a {
 width: 100% !important;
  }
}


  max 704  

@media only screen and (max-width: 360px) {
 .image-wrapper a {
 width: 240px !important;
  }
}






/*  max 500  
.image-wrapper a {
  width: 137px !important;
}    */






  
.slide-image {
  position: relative;
  margin: 0 auto; 
}

.image-caption {
  position: absolute;
  bottom: 0;
  padding-top: 0.5em;
  background-color: rgba(0, 0, 0, 0.6);
  color: #ebebeb;
  left: 0;
  height: 34px;
  overflow: hidden;
  transition: all 0.4s ease-out;
  right: 0;
  padding-bottom:2.5em;
}











.slide-image1 {
  position: relative;
  margin: 0 auto;
  
}

.image-caption1 {
  position: absolute;
  bottom: 0.5em;
  padding-top: 0.5em;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  left: 0;
  height: 34px;
  overflow: hidden;
  transition: all 0.4s ease-out;
  right: 0;
  font-size: 13px;
}

.image-caption1:before {
  content: "";
  display: block;
  position: absolute;
  right: 0;
  top: 0;
  color: #fff;
  height: 40px;
  width: 35px;
  text-align: center;
  line-height: 40px;
  font-size: 2em;
  font-weight: bold;
  transition: all 0.4s ease-out;
}


.image-caption1 {
  height: auto;
}

.image-caption1 p {
  margin: 0;
  padding: 0 4em 0 1em;
 
}


.slide-image{
  display: inline-block;
  position: relative;
}

.slide-image img {
  display: block;
  height: auto;
  max-width: 100%;
}

figcaption {
  background: rgba(0, 0, 0, 0.65);
  color:#fff;
 font-size: 13px;
  padding: .6em 0;
  position: absolute;
  bottom: 0;
  text-align: center;
  width: 100%;
}


@media only screen and (max-width: 560px) {
 .image-caption1 {
    font-size: 9px;
  }
}

