/* Ваши стили для уменьшенных изображений */
.distributors__img {
  padding: 7px;
  width: 600px;
  margin-bottom: 40px;
  cursor: pointer;
  transition: border 0.5s ease-in-out, transform 0.3s ease-in-out;
  box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 40px;
  /* Добавлено свойство transform в transition */
}

.distributors__img:hover {
  box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 40px;
  transform: scale(1.05);
  /* Увеличиваем изображение на 5% */
}

/* Стили для увеличенных изображений */
#magnify-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  
}

#magnify {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
  width: auto;
}

#magnify img {
  width: 100%;
  height: auto;
}

#close-popup {
  position: absolute;
  top: 3%;
  right: 3%;
  cursor: pointer;
  color: #fff;
  font-size: 40px;
}

/* Медиа-запрос для экранов с шириной от 1000px до 768px */
@media screen and (max-width: 1600px) and (min-width: 260px) {
  #magnify {
    max-width: 90%;
    width: 90%;
  }

  .distributors__img {
    width: 85%;
    /* Измените это значение на подходящее */
  }
}