/* === 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_content_archives {
  margin: auto;
  max-width: 1400px;
  margin-top: 3vw;
}

/*gallery*/

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

.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: var(--text-big);
  text-align: left;
  font-weight: var(--regular);
  margin-bottom: 20px;
  margin-top: 30px;
  font-size: var(--text-big);
}


/* 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 */
}


.archives-nav {
  position: sticky;
  background: var(--background);
  z-index: 11;
  display: flex;
  gap: 40px;
  padding: 20px 0;
  border-bottom: 1px solid var(--text);
  border-top: 1px solid var(--text);
  top: 90px;
}

.archives-tab {
    color : var(--text);
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.4;
  margin-right: 20px;
}

.archives-tab.is-active {
  opacity: 1;
}

.archives_nav_titles
{
  position: sticky;
  top: 161px;
  z-index: 10;
    background: var(--background);
}

.archives_nav_titles_container
{
  display: flex;
  padding: 10px 0;
  justify-content: space-between;
}

.archives_nav_titles_container p
{
  margin: 0 5px;
}

.archives-content {
  display: none;
}

.archives-content.is-active {
  display: block;
}

/* Liste groupes */
.groupe-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--text);
}

.groupe_list
{
  min-height: 50vh;
}


@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;
  }
}

@media (max-width: 575.98px) {
  .archives_nav_titles .wrap {
    margin: 0;
  }
}

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