/* Malta 360 — 07 media network. Figma 228:4237: py 160, gap 80; rows 82 high, 32 apart; cells 184×82, 24 apart. */

.m360-logos { padding-block: 160px; }

.m360-logos .m360-section-head { max-width: 700px; }

.m360-logos__rows {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 80px;
}

/* Vector ("6"), #4DA561 at 50%: 555×727 at (−402, −60) of the rows block. */
.m360-logos__six {
  left: calc(-402 * var(--u));
  top: calc(-60 * var(--u));
  width: calc(555 * var(--u));
  height: calc(727 * var(--u));
}

.m360-logos .m360-marquee {
  --marquee-gap: 24px;
  position: relative;
  z-index: 1;
  mask-image: none;
  -webkit-mask-image: none;
}

.m360-logos__item {
  display: flex;
  flex: 0 0 184px;
  align-items: center;
  justify-content: center;
  width: 184px;
  height: 82px;
  text-decoration: none;
}

.m360-logos__logo {
  max-width: 170px;
  max-height: 40px;
  width: auto;
  height: auto;
  filter: grayscale(1) brightness(0) invert(1);
}

.m360-logos__name {
  font-family: var(--m360-font-display);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.03em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--m360-white);
}

@media (max-width: 1024px) {
  .m360-logos { padding-block: 96px; }
  .m360-logos__rows { margin-top: 48px; }
}

/* Figma mobile 228:4539: no marquee — a static 2-up grid of six 155×70 cells, 24 × 32 gaps. */
@media (max-width: 640px) {
  .m360-logos { padding-block: 48px; }
  .m360-logos__rows { margin: 48px auto 0; padding-inline: 24px; }
  .m360-logos__six,
  .m360-logos .m360-marquee:not(:first-of-type),
  .m360-logos .m360-marquee__track + .m360-marquee__track,
  .m360-logos__item:nth-child(n+7) { display: none; }
  .m360-logos .m360-marquee { overflow: visible; }
  .m360-logos .m360-marquee__track {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: repeat(2, minmax(0, 155px));
    gap: 32px 24px;
    animation: none;
  }
  .m360-logos__item { width: auto; height: 70px; }
  .m360-logos__name { font-size: 18px; }
}
