.martech-logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  justify-items: center;
  align-items: center;
}

.martech-logos-item {
  width: 100%;
  max-width: 180px;
  height: 100px;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 0 1px #e0e0e0;
  transition: transform 0.2s ease-in-out;
}

.martech-logos-item img,
.martech-logos-item svg {
  display: block;
  max-height: 60px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.2s ease-in-out;
}

.martech-logos-item img:not([width]) {
    height: 60px;      /* match your container */
    width: auto;
}


/* Optional: fix common white-text logos */
.martech-logos-dark {
  background-color: #1e1e1e;
}

/* Hover effect */
.martech-logos-item img:hover,
.martech-logos-item svg:hover {
  transform: scale(1.05);
}

.martech-logos-item img,
.martech-logos-item svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Responsive */
@media screen and (max-width: 1024px) {
  .martech-logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .martech-logos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .martech-logos-item {
    height: 80px;
    max-width: 140px;
  }

  .martech-logos-item img,
  .martech-logos-item svg {
    max-height: 50px;
  }
}