.ourBrandsTitle {
  text-transform: uppercase;
  color: var(--base);
  font-family: var(--secondary-font);
  font-weight: 700;
  font-size: var(--h1-font-size);
  line-height: var(--h1-line-height);
  text-align: center;
  margin: 40px 0 30px;
}

.brandsBox {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: 90%;
  margin-bottom: 60px;
}

.brand {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #F6F6F6;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: 0.4s all ease-out;
  overflow: hidden;
  border-radius: 0;
}

.brand:hover {
  border-color: var(--base);
}

.brand:hover .seeMore {
  opacity: 1;
  visibility: visible;
}

.brandLogo {
  display: block;
  width: auto;
  height: auto;
  max-width: 115%;
  max-height: 90%;
  object-fit: contain;
  transition: 0.3s all ease-out;
}

.brandHoverImage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  border-radius: 0;
  transition: 0.3s all ease-out;
}

.brand:hover .brandHoverImage {
  opacity: 1;
}

.brand.hasCover:hover .brandLogo {
  opacity: 0;
}

.seeMore {
  position: absolute;
  bottom: 20px;
  color: var(--base);
  font-size: 14px;
  font-weight: 300;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s all ease-out;
}

.seeMore div {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}

.seeMore div::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-out;
}

.brand:hover .seeMore div::after {
  transform: scaleX(1);
}

@media screen and (max-width: 1100px) {
  .brandsBox {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

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

  .brandLogo {
    max-width: 72%;
    max-height: 52%;
  }
}
