.partner {
  cursor: pointer;
  padding: 2rem;
  position: relative;
  display: block;
}

/* .partner::after {
  content: "";
  height: 1px;
  background: rgba(0, 0, 0, 0.25);
  position: absolute;
  bottom: 0;
  left: -15px;
  right: -15px;
}

.partner::before {
  content: "";
  width: 1px;
  background: rgba(0, 0, 0, 0.25);
  position: absolute;
  top: 0;
  bottom: 0;
  right: -15px;
} */

.partner__image {
  width: 100%;
  height: 150px;
  overflow: hidden;
  padding: 2rem;
}

.partner__image > img {
  width: 100%;
  height: 100% !important;
  object-fit: contain;
  filter: grayscale(1);
  transition: all 0.25s ease-in-out;
}

.partner:hover .partner__image > img {
  filter: grayscale(0);
}

.partner-col {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  border-right: 1px solid rgba(0, 0, 0, 0.15);
  height: 191px;
}

.partner-col:nth-child(1),
.partner-col:nth-child(2),
.partner-col:nth-child(3) {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.partner-col:nth-child(3n+1) {
  border-left: 1px solid rgba(0, 0, 0, 0.15);
}

@media only screen and (max-width: 992px) {
  .partner-col:nth-child(3n+1) {
    border-left: none;
  }

  .partner-col:nth-child(2n+1) {
    border-left: 1px solid rgba(0, 0, 0, 0.15);
  }

  .partner-col:nth-child(3) {
    border-top: none;
  }
}

@media only screen and (max-width: 768px) {
  .partner-col:nth-child(2) {
    border-top: none;
  }

  .partner-col {
    border-left: none;
    border-right: none;
  }
  /* .partner-col {
    border-right: none !important;
  }
  .partner-col:nth-last-child(2) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  } */
}