#gallery-block .gallery-wrapper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

#gallery-block .item__block {
  cursor: pointer;
  height: 100%;
  transition: 0.3s;
}

#gallery-block .photo__item {
  position: relative;
}

#gallery-block .photo__item::before {
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  pointer-events: none;
  background-color: var(--main-color);
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: all 0.3s ease-in;
}

#gallery-block .photo__item::after {
  content: "";
  width: 80px;
  height: 80px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
  pointer-events: none;
  background-image: url(images/plus.svg);
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: all 0.3s ease-in;
}

#gallery-block .photo__item:not(.video):hover::before {
  opacity: 0.8;
}

#gallery-block .photo__item:not(.video):hover::after {
  opacity: 1;
}

#gallery-block .photo__item.video {
  position: relative;
}

#gallery-block .photo__item.video::before {
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  pointer-events: none;
  background: #000000;
  opacity: 0;
}

#gallery-block .photo__item.video:hover::before {
  opacity: 0.4;
}

#gallery-block .item__block img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 1/1;
}

#gallery-block .photo__item.video .play {
  position: absolute;
  top: 36%;
  left: 36%;
}

#gallery-block .photo__item.video .play svg {
  color: var(--main-color);
}

@media (max-width: 996px) {
  #gallery-block .gallery-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 776px) {
  #gallery-block .photo__item.video .play {
    top: 40%;
    left: 40%;
    width: 50px;
    height: 50px;
  }

  #gallery-block .photo__item.video .play svg {
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 498px) {
  #gallery-block .photo__item.video .play {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 400px) {
  #gallery-block .photo__item.video .play {
    top: 33%;
    left: 37%;
  }
}
