/* === Frontend gallery styles === */

.gallery-masonry {
  position: relative;
}

.grid-sizer {
  width: 25%;
}

.gallery-item {
  width: 25%;
}

@media (max-width:1024px) {

  .grid-sizer,
  .gallery-item {
    width: 33.333%;
  }
}

@media (max-width:768px) {

  .grid-sizer,
  .gallery-item {
    width: 50%;
  }
}

@media (max-width:480px) {

  .grid-sizer,
  .gallery-item {
    width: 100%;
  }
}

.page_archives_wrap {
  padding: 3vw;
}

.page_content_archives {
  margin: auto;
  max-width: 1400px;
  margin-top: 3vw;
}

/*gallery*/
.page_archives_wrap {
  padding: 3vw;
}

.page_content_archives {
  margin: auto;
  max-width: 1400px;
  margin-top: 3vw;
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 2rem;
}

.gallery-row img {
  width: 100%;
  height: auto;
  display: block;
  /* border-radius: 4px; */
}

.page_archives_wrap h2 {
  font-size: 2em;
}

/* Caption / Credit inside lightbox is handled by GLightbox,
but if you want a caption under thumbnails on frontend: */

.gallery-row a[data-title]:after {
  content: attr(data-title);
  display: none;
}

.gallery-masonry {
  margin: auto;
  max-width: 1400px;
}

.gallery-item {
  width: calc(25% - 15px);
  margin-bottom: 15px;
  float: left;
  /* or display: inline-block */
}

@media (max-width: 1024px) {
  .gallery-item {
    width: calc(33.333% - 15px);
  }
}

@media (max-width: 768px) {
  .gallery-item {
    width: calc(50% - 15px);
  }

  .page_archives_wrap h2 {
    font-size: 24px;
  }
}

.gallery-item img {
  width: 100%;
  display: block;
  /* border-radius: 4px; */
  height: auto;
}