.gallery-block {
  display: flex;
  flex-direction: column;
}
.gallery-block .gallery-holder {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.gallery-block .gallery-item {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 23vw;
  max-height: 360px;
  overflow: hidden;
  cursor: pointer;
}
.gallery-block .gallery-item__filter {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: hwb(0 0% 100% / 0.25);
  opacity: 0;
  z-index: 1;
  transition: all 0.3s ease-in;
}
.gallery-block .gallery-item:hover .gallery-item__filter {
  opacity: 1;
}
.gallery-block .gallery-item__filter svg {
  display: flex;
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}
.gallery-block .gallery-item__filter__icon svg path {
  fill: var(--background);
}
.gallery-block .gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.gallery-block .gallery__btn-holder {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 30px;
}

@media (max-width: 1480px) {
  .gallery-block .gallery-holder {
    gap: 20px;
  }
}
@media (max-width: 1220px) {
  .gallery-block .gallery-holder {
    gap: 10px;
  }
}
@media (max-width: 620px) {
  .gallery-block .gallery__btn-holder {
    margin-top: 20px;
  }
}
@media (max-width: 512px) {
  .gallery-block .gallery-holder {
    gap: 5px;
  }
  .gallery-block .gallery-item__filter {
    display: none;
  }
}
@media (max-width: 380px) {
  .gallery-block .gallery-holder {
    display: flex;
    flex-wrap: wrap;
  }
  .gallery-block .gallery-item {
    width: calc((100% - 5px) / 2);
    flex: 1 1 auto;
    height: 40vw;
    max-height: 140px;
  }
}
