/* All moving cells include their right-hand seam, even the last original
   logo just before the first copy. Lines have the same height as each other. */
[data-rail55] .rail55-group > *,
:is(.s53-logos,.nx-partner-logos,.nx-client-logos,.c51-clients .logos,.client-logo-group) > * {
  position:relative;
}
[data-rail55] .rail55-group > :not(:last-child)::after,
.rail55-moving .rail55-group > :last-child::after,
:is(.s53-logos,.nx-partner-logos,.nx-client-logos,.c51-clients .logos,.client-logo-group) > :not(:last-child)::after {
  content:"";
  position:absolute;
  z-index:1;
  inset-inline-end:0;
  top:50%;
  width:1px;
  height:28px;
  transform:translateY(-50%);
  background:#d7d2de;
  pointer-events:none;
}
/* Reduced-motion visitors get a single row on wide screens and a fixed
   grid on smaller ones. Its row ends have no trailing separators. */
[data-rail55] .rail55:not(.rail55-moving) .rail55-group {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(100px,1fr));
}
[data-rail55] .rail55:not(.rail55-moving) .rail55-group > * {width:100%}
@media (max-width:760px) {
  [data-rail55] .rail55:not(.rail55-moving) .rail55-group{grid-template-columns:repeat(3,minmax(0,1fr))}
  [data-rail55] .rail55:not(.rail55-moving) .rail55-group > :nth-child(3n)::after{display:none}
}
@media (max-width:420px) {
  [data-rail55] .rail55:not(.rail55-moving) .rail55-group{grid-template-columns:repeat(2,minmax(0,1fr))}
  [data-rail55] .rail55:not(.rail55-moving) .rail55-group > :nth-child(3n):not(:last-child)::after{display:block}
  [data-rail55] .rail55:not(.rail55-moving) .rail55-group > :nth-child(2n)::after{display:none}
}
/* These two original wordmarks include white lettering. Their delivered
   files already contain the matching dark background and clear space. */
body img:is([data-canonical-logo="kraftwerk"],[data-canonical-logo="imhof"]) {
  opacity:1!important;filter:none!important;mix-blend-mode:normal!important;
}
body [data-rail55] .rail55-group :is([data-mark="kraftwerk"],[data-mark="imhof"]) img {
  box-sizing:border-box;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:46px;
  padding:0;
  border-radius:4px;
  background:#171619;
}
body .am-project .am-project-visual {
  box-sizing:border-box;
  height:clamp(136px,12vw,156px);
}
body .am-project-visual[data-mark="kraftwerk"],
body .am-project-visual[data-mark="imhof"] {background:#171619;}
body .am-project-visual[data-mark] > img:is([data-canonical-logo="kraftwerk"],[data-canonical-logo="imhof"]) {
  width:auto;
  height:auto;
  max-height:108px;
  max-width:min(85%,260px);
  background:#171619;
  object-fit:contain;
}
