/* P3: editor-supplied logo names; no organization identities live in theme code. */
.aa-clients-section .aa-logo-track {
  align-items: flex-start;
}
.aa-clients-section .aa-logo-slide {
  flex-direction: column;
  justify-content: flex-start;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.aa-clients-section .aa-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 108px;
  padding: 18px;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  background: #fff;
}
.aa-clients-section .aa-logo-mark > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.aa-clients-section .aa-logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.aa-home .aa-clients-section p.aa-logo-name {
  width: 100%;
  margin: 10px 0 0;
  color: var(--aa-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.aa-clients-section .aa-logo-source-text {
  max-width: 76ch;
  margin-top: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.aa-clients-section .aa-logo-source-text .kg-gallery-card,
.aa-clients-section .aa-logo-source-text .kg-image-card {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0;
}
.aa-clients-section .aa-logo-source-text figcaption {
  display: block;
  margin: 12px 0;
  color: var(--aa-ink);
  font-size: 13px;
  line-height: 1.7;
}
.aa-home .aa-clients-section .aa-logo-source-text p,
.aa-home .aa-clients-section p.aa-logo-editor-names {
  margin-top: 12px;
  color: var(--aa-ink);
  font-size: 13px;
  line-height: 1.7;
  white-space: normal;
  overflow-wrap: anywhere;
}
.aa-clients-section .aa-logo-source-text ul,
.aa-clients-section .aa-logo-source-text ol {
  padding-inline-start: 22px;
  font-size: 13px;
  line-height: 1.7;
}
/* Preserve readable gallery captions and lists before enhancement / without JS. */
.aa-clients-section .aa-client-gallery figcaption,
.aa-clients-section .aa-client-gallery > p,
.aa-clients-section .aa-client-gallery > ul,
.aa-clients-section .aa-client-gallery > ol {
  max-width: min(76ch, calc(100vw - 64px));
  white-space: normal;
  overflow-wrap: anywhere;
}
.aa-clients-section .aa-client-gallery .kg-image-card {
  flex-direction: column;
}
@media (max-width: 1100px) {
  .aa-clients-section .aa-logo-mark { height: 104px; }
}
@media (max-width: 800px) {
  .aa-clients-section .aa-logo-mark { height: 96px; padding: 16px; }
}
@media (max-width: 520px) {
  .aa-clients-section .aa-logo-mark { height: 92px; padding: 15px; }
}
