.brand-carousel {
  background: rgb(var(--color-background));
}

.brand-carousel .glide-component {
  display: block;
  padding-bottom: 0;
  position: relative;
}

.brand-carousel .glide,
.brand-carousel .glide__track {
  position: relative;
  width: 100%;
}

.brand-carousel .glide__track {
  overflow: hidden;
}

.brand-carousel .glide__slides {
  align-items: stretch;
  display: grid;
  gap: 1.2rem;
  grid-auto-columns: calc((100% - 4.8rem) / 5);
  grid-auto-flow: column;
  list-style: none;
  margin: 0;
  padding: 0;
  touch-action: pan-y;
  transition: transform 400ms cubic-bezier(0.165, 0.84, 0.44, 1);
  user-select: none;
  will-change: transform;
}

.brand-carousel .glide__slides.is-dragging {
  transition: none;
}

.brand-carousel .glide__slide {
  height: auto;
  min-width: 0;
}

.brand-card {
  align-items: center;
  background: rgb(var(--color-white));
  border: 0.1rem solid rgb(var(--color-border));
  border-radius: 0.8rem;
  box-shadow: 0 0.4rem 1.6rem rgba(var(--color-brand-navy), 0.06);
  color: rgb(var(--color-brand-navy));
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  min-height: 15rem;
  padding: 2.4rem;
  text-align: center;
  text-decoration: none;
  transition:
    border-color var(--duration-short) ease,
    box-shadow var(--duration-short) ease,
    transform var(--duration-short) ease;
}

a.brand-card:hover {
  border-color: rgba(var(--color-brand-primary), 0.45);
  box-shadow: 0 0.8rem 2.4rem rgba(var(--color-brand-navy), 0.12);
  transform: translateY(-0.2rem);
}

.brand-card__media {
  align-items: center;
  display: flex;
  height: 8.8rem;
  justify-content: center;
  width: 100%;
}

.brand-card__media img {
  display: block;
  height: 100%;
  max-height: 8.8rem;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  width: 100%;
}

.brand-card__name {
  font-size: var(--font-size-tagline-regular);
  font-weight: var(--font-weight-tagline-regular);
  line-height: var(--line-height-tagline-regular);
  margin-top: 1.6rem;
}

.brand-carousel glide-component .glide__controls .glide__previous,
.brand-carousel glide-component .glide__controls .glide__next {
  align-items: center;
  background: rgb(var(--color-white));
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0.4rem 1.6rem rgba(var(--color-brand-navy), 0.14);
  color: rgb(var(--color-brand-primary));
  cursor: pointer;
  display: flex;
  height: 4rem;
  justify-content: center;
  opacity: 1;
  padding: 0;
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition:
    opacity var(--duration-short) ease,
    transform var(--duration-short) ease;
  width: 4rem;
  z-index: 2;
}

.brand-carousel .glide__controls {
  pointer-events: none;
}

.brand-carousel .glide__previous {
  left: -2.4rem;
}

.brand-carousel .glide__next {
  right: -2.4rem;
}

.brand-carousel .glide__previous:hover,
.brand-carousel .glide__next:hover {
  transform: translateY(-50%) scale(1.05);
}

.brand-carousel .glide__previous:disabled,
.brand-carousel .glide__next:disabled {
  cursor: default;
  opacity: 0.42;
}

.brand-carousel .glide__previous svg,
.brand-carousel .glide__next svg {
  fill: currentColor;
  height: 1.2rem;
  width: 1.2rem;
}

.brand-carousel .glide__previous svg {
  transform: rotate(90deg);
}

.brand-carousel .glide__next svg {
  transform: rotate(-90deg);
}

.brand-carousel glide-component .glide__controls path {
  fill: rgb(var(--color-brand-primary));
}

.brand-carousel .glide__bullets {
  align-items: center;
  bottom: -2.8rem;
  display: none;
  gap: 0;
  justify-content: center;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 100%;
}

.brand-carousel .glide__bullet {
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  height: 1.8rem;
  margin: 0;
  opacity: 0.5;
  padding: 0;
  position: relative;
  transition:
    opacity var(--duration-short) ease,
    transform var(--duration-short) ease;
  width: 1.8rem;
}

.brand-carousel .glide__bullet::after {
  background: rgb(var(--color-text-primary));
  border-radius: 50%;
  content: "";
  height: 0.8rem;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition:
    background var(--duration-short) ease,
    transform var(--duration-short) ease;
  width: 0.8rem;
}

.brand-carousel .glide__bullet:hover,
.brand-carousel .glide__bullet:focus-visible,
.brand-carousel .glide__bullet--active {
  opacity: 1;
}

.brand-carousel .glide__bullet:hover::after,
.brand-carousel .glide__bullet:focus-visible::after {
  transform: translate(-50%, -50%) scale(1.25);
}

.brand-carousel glide-component .glide__bullet.glide__bullet--active::after {
  background: rgb(var(--color-brand-primary));
}

.brand-carousel__footer {
  display: flex;
  justify-content: center;
  margin-top: 2.4rem;
}

.brand-carousel__view-all {
  font-family: var(--font-body-family);
  font-size: var(--button-font-size);
  font-weight: var(--button-font-weight);
  letter-spacing: 0.1rem;
  line-height: var(--button-line-height);
  text-transform: uppercase;
}

@media screen and (max-width: 989px) {
  .brand-carousel .glide-component {
    padding-bottom: 4.8rem;
  }

  .brand-carousel .glide__slides {
    grid-auto-columns: calc((100% - 2.4rem) / 3);
  }

  .brand-carousel .glide__bullets {
    display: flex;
  }

  .brand-carousel__footer {
    margin-top: 0;
  }
}

@media screen and (max-width: 749px) {
  .brand-carousel .glide__slides {
    grid-auto-columns: 100%;
  }

  .brand-carousel .glide-component {
    padding-bottom: 4rem;
  }

  .brand-card {
    min-height: 12rem;
    padding: 1.6rem;
  }

  .brand-card__media,
  .brand-card__media img {
    height: 7.2rem;
    max-height: 7.2rem;
  }

  .brand-carousel glide-component .glide__controls .glide__previous {
    left: -0.8rem;
  }

  .brand-carousel glide-component .glide__controls .glide__next {
    right: -0.8rem;
  }
}
