.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.gallery a {
  position: relative;
  display: block;
  overflow: hidden;
  padding-top: 100%;
}

.gallery img.thumbnail {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
  position: absolute;
  top:0;
  left: 0;
  height: 100%;
  object-fit: cover;

}

.magnify-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px;
  opacity: 0;
  transition: all ease-in-out 0.3s;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery a:hover .magnify-box {
  opacity: 1;
}

.gallery a:hover .magnify-box {
  opacity: 1;
}

.gallery a:hover .thumbnail {
  transform: scale(1.1);
}

.magnify-box .magnify-icon {
    border: 1px solid #fff;
    padding: 10px;
    font-size: 14px;
    background: transparent;
    color: #fff;
    line-height: 1;
}
.magnify-box .magnify-icon:hover{
  background: var(--primaryColor);
  border: 1px solid var(--primaryColor);
}
.fancybox__thumbs {
  display: none;
}
@media (max-width:991px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  }

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