/* ============================
NPC BRANDS LOGOS CSS
Scope: Only [npc_logos] shortcode output.
============================ */

.npc-logo-marquee,
.npc-logo-marquee * {
  box-sizing: border-box;
}

.npc-logo-marquee {
  width: 100%;
  max-width: 100%;
  padding: 24px 0;
  background: #ffffff;
  overflow: hidden;
}

.npc-logo-viewport {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  touch-action: pan-y;
  padding: 10px 0;
}

.npc-logo-viewport::-webkit-scrollbar {
  display: none;
}

.npc-logo-viewport *,
.npc-logo-item,
.npc-logo-item img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.npc-logo-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
}

.npc-logo-sequence {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 120px;
  flex: 0 0 auto;
  width: auto;
  min-width: max-content;
  padding-right: 95px; /* Seam spacing between loops. */
}

.npc-logo-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  height: 60px;
  min-width: 130px;
}

.npc-logo-item img {
  display: block;
  width: auto;
  height: auto;
  max-height: 50px;
  max-width: 150px;
  object-fit: contain;
  pointer-events: none;
  transition: transform 0.2s ease;
}

/* Larger logos. */
.npc-logo-item.hp-logo img,
.npc-logo-item.rowe-logo img,
.npc-logo-item.canon-logo img,
.npc-logo-item.pantum-logo img {
  max-height: 56px;
  max-width: 170px;
}

.npc-logo-item.thunderlaser-logo img {
  max-height: 54px;
  max-width: 175px;
}

/* Position tweaks. */
.npc-logo-item.canon-logo {
  padding-left: 12px;
  padding-right: 12px;
}

.npc-logo-item.hp-logo {
  margin-left: -50px;
  margin-right: -50px;
}

.npc-logo-item.rowe-logo {
  margin-left: -10px;
  margin-right: 0;
}

.npc-logo-item.papercut-logo img {
  max-height: 56px;
  max-width: 170px;
  transform: translateY(-8px);
}

.npc-logo-item.papercut-logo:hover img {
  transform: translateY(-8px) scale(1.05);
}

.npc-logo-item:hover img {
  transform: scale(1.05);
}

/* Mobile. */
@media (max-width: 768px) {
  .npc-logo-sequence {
    gap: 60px;
    padding-right: 48px; /* Seam spacing on mobile. */
  }

  .npc-logo-item {
    height: 52px;
    min-width: 100px;
  }

  .npc-logo-item img {
    max-height: 42px;
    max-width: 120px;
  }

  .npc-logo-item.hp-logo {
    margin-left: -20px;
    margin-right: -20px;
  }

  .npc-logo-item.rowe-logo {
    margin-left: -8px;
    margin-right: 0;
  }

  .npc-logo-item.papercut-logo img {
    max-height: 50px;
    max-width: 155px;
    transform: translateY(-5px);
  }

  .npc-logo-item.papercut-logo:hover img {
    transform: translateY(-5px) scale(1.05);
  }
}
