

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.page.container.column .gallery { /* warunek spec */
  grid-template-columns: repeat(3, 1fr);
}


.gallery a {
  width: 100%;
  border-radius: .225rem;
  display: grid;
  overflow: hidden;
  /* background: var(--text10); */
  height: 100%;
  position: relative;
  color: transparent;
  font-size: clamp(1rem, 2.5vw, 2rem);
  transition: all 250ms;
}

.gallery a:hover img {
  transform: scale(1.2);
  transition: all 250ms;
  text-decoration: none;
}


/* .gallery a:hover:after {
  content: '\F14D';
  font-family: "bootstrap-icons" !important;
  position: absolute;
  bottom: calc(50% - 2.5rem);
  left: calc(50% - 2.5rem);
  color: white;
  transition: all 250ms;
  font-size: 2.1rem;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  text-align: center;
  padding: 1rem;
  background-color: var(--opacity7);
  line-height: 1.4;
  z-index: 2;
  text-align: center;
  vertical-align: middle;
} */

.gallery img {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  transition: all 250ms;
}



@media (max-width: 992px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: repeat(1, 1fr);
  }
}