/* Keep the original marquee dimensions while displaying transparent brand marks. */
.hero-marquee_img.brand-logo {
  width: 12.5rem;
  min-width: 12.5rem;
  height: 2.25rem;
  max-height: 2.25rem;
  object-fit: contain;
  opacity: .6;
  filter: grayscale(1) brightness(0) invert(1);
  cursor: pointer;
  transition: opacity .2s ease, filter .2s ease;
}

/* Invert the black BBC mark so it remains legible on the dark background. */
.hero-marquee_img.brand-logo.brand-logo--monochrome {
  filter: invert(1);
}

.hero-marquee_img.brand-logo.is-active {
  opacity: 1;
  filter: none;
}

.hero-marquee_img.brand-logo.brand-logo--monochrome.is-active {
  filter: invert(1);
}

.hero-marquee_img.brand-logo:focus-visible {
  outline: 2px solid #7ef582;
  outline-offset: 5px;
  border-radius: 2px;
}

/* Keep a keyboard-focused mark in view until focus leaves the marquee. */
.hero-marquee_wrapper:focus-within .hero-marquee {
  transform: none !important;
}

.marquee-home .marquee-gradient {
  pointer-events: none;
}
