/**
 * Logo Carousel block (views/blocks/logo-carousel.twig). Track, arrows and
 * progress line: carousel.css.
 *
 * Plain CSS outside the Sass build; loaded on the front end and in the
 * block editor by AssetsServiceProvider.
 */

.logo-carousel {
  --carousel-per-view: 5;
  --carousel-gap: 16px;
}

@media (max-width: 1023px) { .logo-carousel { --carousel-per-view: 3; } }
@media (max-width: 599px)  { .logo-carousel { --carousel-per-view: 2; --carousel-gap: 12px; } }

.logo-carousel .logo-carousel__title {
  margin: 0 0 24px;
  font-family: "TradeGothicLT-BoldCondTwenty", "TradeGothicLT-Bold", "Arial Narrow", sans-serif;
  font-weight: normal;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.05;
  color: #16201d;
}

.logo-carousel__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  padding: 16px 20px;
  border: 1px solid #d5deda;
  border-radius: 8px;
  background: #fff;
  color: #1e2b28;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.logo-carousel__tile img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-carousel__tile span {
  font-family: "TradeGothicLT-Bold", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  text-align: center;
}

a.logo-carousel__tile:hover { border-color: #16201d; }

a.logo-carousel__tile:focus-visible {
  outline: 3px solid #00ce7c;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .logo-carousel__tile { transition: none; }
}
