/* related-brand */

#total .related-brand {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;

  @media (width < 980px) {
    margin: 0 -8px;
  }
}

#total .related-brand > li {
  position: relative;
  overflow: hidden;
  width: 24%;
  height: 175px;
  margin: 0 0.5%;
  list-style: none;
}

.related-brand > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0) 65%);
  pointer-events: none;

  @media (width < 980px) {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0) 55%);
  }
}

.related-brand__link {
  display: block;
  height: 100%;
}

.related-brand__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-brand__title {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  padding: 15px 20px;
  color: var(--color-white);
  text-align: left;

  @media (980px <= width <= 1220px) {
    font-size: 14px;
  }
}

#total .related-brand > li {
  @media (width < 980px) {
    height: 30vw;
    width: 50vw;
    margin: 0;
  }

  @media (width <= 510px) {
    height: 40vw;
    width: 100vw;
  }
}
