/* FTSYS Mobile Premium V26: full cabinet visibility and all header emails. */

/* Keep anchor targets below the fixed/sticky header. */
.aerogrid .executive-series,
.aerogrid .ag-series,
.aerogrid .ag-production,
.aerogrid .ag-contacts { scroll-margin-top: 126px; }

@media (max-width: 760px) {
  /* Show all three working addresses; the phone remains in the contact block. */
  body.aerogrid .header-top-inner {
    min-height: 40px !important;
    justify-content: center !important;
  }

  body.aerogrid .ex-top-links {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    justify-content: stretch !important;
    width: 100% !important;
    gap: 4px !important;
  }

  body.aerogrid .header-top .toplink:nth-child(1),
  body.aerogrid .header-top .toplink:nth-child(2),
  body.aerogrid .header-top .toplink:nth-child(3) {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    min-height: 36px;
    padding: 0 2px;
    font-size: clamp(9px, 2.75vw, 11px) !important;
    letter-spacing: -.02em;
    white-space: nowrap;
    overflow: hidden;
  }

  body.aerogrid .header-top .toplink:nth-child(1) .label,
  body.aerogrid .header-top .toplink:nth-child(2) .label,
  body.aerogrid .header-top .toplink:nth-child(3) .label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.aerogrid .header-top .toplink.ag-top-phone {
    display: none !important;
  }

  /* Use the source image's natural ratio: no crop can occur. */
  .aerogrid .executive-shot picture,
  .aerogrid .forge-gallery .executive-shot picture {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    display: block !important;
    padding: 10px !important;
  }

  .aerogrid .executive-shot img,
  .aerogrid .executive-shot:hover img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
    filter: none !important;
  }

  .aerogrid .executive-shot a {
    height: auto !important;
  }
}

@media (max-width: 420px) {
  body.aerogrid .header-top-inner { min-height: 38px !important; }
  body.aerogrid .header-top .toplink:nth-child(1),
  body.aerogrid .header-top .toplink:nth-child(2),
  body.aerogrid .header-top .toplink:nth-child(3) {
    min-height: 34px;
    font-size: 9px !important;
  }
  .aerogrid .executive-shot picture,
  .aerogrid .forge-gallery .executive-shot picture { padding: 8px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .aerogrid .ag-header-airflow { opacity: .32; }
}
