/* Grey Fox owners site: v2 room (opening). The firms band under the hero, on the dark field: one plain label and the
   firms' marks in the night ink, one still row on a desktop, three by three on a phone and a tablet. Never links. */

/* ---------- the opening: its words break evenly (the headline is balanced by the home layer) ---------- */
html.gfx-f3 .gfx-hero-p { text-wrap: pretty; }

/* ---------- the band: the site's grid (48 px margins, 1400 max; 20 px on a phone) ---------- */
html.gfx-f3 .gfx-v2-firms { position: relative; box-sizing: border-box; padding-left: var(--gfx-gutter, 48px); padding-right: var(--gfx-gutter, 48px); }
html.gfx-f3 .gfx-v2-firms-in { display: flex; flex-direction: column; row-gap: var(--gfx-s-4, 32px); width: 100%; max-width: var(--gfx-max, 1400px); margin: 0 auto; }
html.gfx-f3 .gfx-v2-firms-label { margin: 0; color: var(--gfx-ink-d2); text-wrap: balance; }

/* ---------- the marks: one optical weight (the site's own heights, as on the standard room's line), set white ---------- */
html.gfx-f3 .gfx-v2-firms-row { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; width: 100%; margin: 0; padding: 0; list-style: none; overflow: visible; }
html.gfx-f3 .gfx-v2-firm { flex: none; display: flex; align-items: center; min-width: 0; margin: 0; padding: 0; }
html.gfx-f3 .gfx-v2-firms-row img.testimonial_logo:not(#gfx-x) {
  display: block; width: auto; max-width: none; height: calc(var(--lhn, 30) * var(--gfx-v2-k, 1px)); max-height: none; margin: 0; flex: none;
  object-fit: contain; filter: brightness(0) invert(1); opacity: .8; transition: none;
}
html.gfx-f3 .gfx-v2-firms-row img[src*="logo_cleargate"] { --lhn: 15.5; }
html.gfx-f3 .gfx-v2-firms-row img[src*="fellow"] { --lhn: 31; }
html.gfx-f3 .gfx-v2-firms-row img[src*="logo_vantage"] { --lhn: 25; }
html.gfx-f3 .gfx-v2-firms-row img[src*="logo_tauber"] { --lhn: 17; }
html.gfx-f3 .gfx-v2-firms-row img[src*="nextsp"] { --lhn: 16; }
html.gfx-f3 .gfx-v2-firms-row img[src*="tarn"] { --lhn: 28; }
html.gfx-f3 .gfx-v2-firms-row img[src*="logo_interconn"] { --lhn: 17.5; }
html.gfx-f3 .gfx-v2-firms-row img[src*="logo_robots_pencils"] { --lhn: 29; }
html.gfx-f3 .gfx-v2-firms-row img[src*="trueridge"] { --lhn: 17; }

/* one row from 1200 px: the marks span the measure, flush to both margins; their scale follows the width (1.2 at 1440) */
@media (min-width: 1200px) {
  html.gfx-f3 .gfx-v2-firms { --gfx-v2-k: clamp(1px, .0833vw, 1.3px); }
}
/* under 1200 px: three by three, the outer columns flush to the margins, the middle one centred */
@media (max-width: 1199.98px) {
  html.gfx-f3 .gfx-v2-firms { --gfx-v2-k: 1px; }
  html.gfx-f3 .gfx-v2-firms-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 40px; row-gap: 24px; column-gap: 24px; align-items: center; }
  html.gfx-f3 .gfx-v2-firm { justify-self: center; max-width: 100%; }
  html.gfx-f3 .gfx-v2-firm:nth-child(3n + 1) { justify-self: start; }
  html.gfx-f3 .gfx-v2-firm:nth-child(3n) { justify-self: end; }
  html.gfx-f3 .gfx-v2-firms-row img.testimonial_logo:not(#gfx-x) { max-width: 100%; }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  html.gfx-f3 .gfx-v2-firms-row { grid-auto-rows: 48px; }
  html.gfx-f3 .gfx-v2-firms { --gfx-v2-k: 1.2px; }
}
@media (max-width: 767px) {
  html.gfx-f3 .gfx-v2-firms-row { grid-auto-rows: 36px; row-gap: 20px; column-gap: 16px; }
}

/* ---------- the hand-off: the band comes over the photograph on the black itself, and is tall enough to cover the
   photograph's whole travel (the slide moves it 0.4 of a screen); the space under the marks counts in the next room's gap ---------- */
html.gfx-f3 .gfx-v2-firms.gfx-in.gfx-covering:not(#gfx-x) { background-color: rgb(17, 17, 18) !important; }
@media (min-width: 768px) {
  html.gfx-f3 .gfx-v2-firms.gfx-fr:not(#gfx-x) { min-height: calc(40vh + 8px) !important; }
}

/* on a phone the firms sit inside the first screen: the label and the first row of marks show under the opening (owners check
   who we work with before anything else) */
@media (max-width: 767px) {
  html.gfx-f3 .gfx-hero-sec .hero__video:not(#gfx-x):not(#gfx-y) { padding-top: 240px !important; }
}
