/* Homepage logos only. Give each mark the same frame without distorting its artwork. */
#index section.brands .brand-image {
  align-self: stretch;
  display: flex;
  justify-content: center;
  padding-inline: 7px;
}

#index section.brands .brand-image > a {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 132px;
  height: 52px;
}

#index section.brands .brand-image > a:focus-visible {
  outline: 2px solid #79364e;
  outline-offset: -2px;
}

#index section.brands .brand-image img {
  display: block;
  width: 100%;
  height: 48px;
  object-fit: contain;
}

/* New catalogue brands without a prepared monochrome asset still get a consistent frame. */
#index section.brands .brand-image img:not(.home-brand-mark) {
  filter: grayscale(1);
}

/* Reserve actual space for the existing controls instead of drawing them over the logos. */
@media (min-width: 768px) {
  #index section.brands #brand-carousel {
    width: calc(100% - 80px);
    margin-inline: 40px;
  }

  #index section.brands .products .customNavigation .brand_prev { left: 0; }
  #index section.brands .products .customNavigation .brand_next { right: 0; }
}

@media (max-width: 767px) {
  #index section.brands #brand-carousel { margin-bottom: 36px; }

  #index section.brands .products .customNavigation {
    inset: auto 0 7px;
    display: flex;
    justify-content: center;
    gap: 12px;
    height: 44px;
  }

  #index section.brands .products .customNavigation i {
    position: static;
    margin: 0;
    width: 44px;
    height: 44px;
    box-shadow: none;
    border: 1px solid #e5e5e5;
  }

  #index section.brands .products .customNavigation i::before {
    width: 100%;
    height: 100%;
  }
}
