/* Grid */

.content-gallery li { margin-bottom: 0; }

.content-gallery--cols-4 ul{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0.25rem;
  list-style:none;
  margin:0;
  padding:0;
}

/* Bilder */
.content-gallery--cols-4 img{
  width:100%;
  height:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  display:block;
  transition:transform .35s ease, filter .35s ease;
}

/* Hover */
.content-gallery--cols-4 a{
  display:block;
  overflow:hidden;
  border-radius:.5rem;
}

.content-gallery--cols-4 a:hover img{
  transform:scale(1.06);
  filter:brightness(1.05);
}


@media (max-width: 900px){
  .content-gallery--cols-4 ul{
    grid-template-columns:repeat(3,1fr);
  }
}


@media (max-width: 400px){
  .content-gallery--cols-4 ul{
    grid-template-columns:repeat(2,1fr);
  }
}


/* Grid */
.content-gallery--cols-3 ul{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1rem;
  list-style:none;
  margin:0;
  padding:0;
}

/* Bilder */
.content-gallery--cols-3 img{
  width:100%;
  height:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  display:block;
  transition:transform .35s ease, filter .35s ease;
}

/* Hover */
.content-gallery--cols-3 a{
  display:block;
  overflow:hidden;
  border-radius:.5rem;
}

.content-gallery--cols-3 a:hover img{
  transform:scale(1.06);
  filter:brightness(1.05);
}

@media (max-width: 400px){
  .content-gallery--cols-3 ul{
    grid-template-columns:1fr;
  }
}

