.glwa-editor-repeater {
  border: 1px solid #dcdcde;
  padding: 16px;
  margin: 20px 0;
  background: #fff;
  color: #02216E;
}

.glwa-editor-repeater h3 {
  margin-top: 0;
}

.glwa-editor-repeater__item {
  border: 1px solid #dcdcde;
  padding: 14px;
  margin: 0 0 14px;
  background: #fff;
}

.glwa-editor-repeater__controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.glwa-check {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #45b6e9;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.glwa-download-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0031a7;
  color: #fff;
}

.glwa-team-grid {
  --glwa-team-bg: #02216E;
  --glwa-team-fg: #fff;
  --glwa-team-card: #02216E;
  --glwa-team-accent: #45b6e9;
  --glwa-team-accent-fg: #02216E;
  background: var(--glwa-team-bg);
  color: var(--glwa-team-fg);
  padding: clamp(56px, 8vw, 100px) 0;
}
.glwa-team-grid .glwa-shell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.glwa-team-grid--bg-navy {
  --glwa-team-bg: #02216E;
  --glwa-team-fg: #f5f5f5;
}

.glwa-team-grid--bg-blue {
  --glwa-team-bg: #0031a7;
  --glwa-team-fg: #f5f5f5 ;
}

.glwa-team-grid--bg-light-blue {
  --glwa-team-bg: #d8f0fb;
  --glwa-team-fg: #02216E ;
}

.glwa-team-grid--bg-white {
  --glwa-team-bg: #f5f5f5;
  --glwa-team-fg: #02216E ;
}

.glwa-team-grid--bg-gray {
  --glwa-team-bg: #f3f6f8;
  --glwa-team-fg: #02216E ;
}

.glwa-team-grid--accent-blue {
  --glwa-team-accent: #0031A7;
  --glwa-team-accent-fg: #f5f5f5 ;
}

.glwa-team-grid--accent-light-blue {
  --glwa-team-accent: #45b6e9;
  --glwa-team-accent-fg: #02216E ;
}

.glwa-team-grid--accent-green {
  --glwa-team-accent: #00B476;
  --glwa-team-accent-fg: #02216E ;
}

.glwa-team-grid--accent-yellow {
  --glwa-team-accent: #FCE500;
  --glwa-team-accent-fg: #02216E ;
}

.glwa-team-grid--accent-white {
  --glwa-team-accent: #fff;
  --glwa-team-accent-fg: #02216E ;
}

.glwa-team-grid__intro {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
}
.glwa-team-grid__intro h2 {
  margin-left: auto;
  margin-right: auto;
  color: var(--glwa-team-fg);
}
.glwa-team-grid__intro h2 strong {
  color: var(--glwa-team-accent-fg);
}

.glwa-team-grid__heading {
  margin: 0 0 45px;
}

.glwa-team-grid__description {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.glwa-team-grid__description p {
  margin: 0 0 1em;
}

.glwa-team-grid__description p:last-child {
  margin-bottom: 0;
}

.glwa-team-grid__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 0 34px;
  border-radius: 8px;
  background: var(--Grays-Gray-100, #E1E2E3);
  padding: 10px;
}

.glwa-team-grid__filter {
  appearance: none;
  border: 2px solid var(--glwa-team-accent);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  padding: 12px 22px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.glwa-team-grid__filter:not(.is-active) {
  color: #02216E;
  background: #f5f5f5;
}

.glwa-team-grid__filter:hover,
.glwa-team-grid__filter:focus-visible,
.glwa-team-grid__filter.is-active {
  background: var(--glwa-team-accent);
  color: var(--glwa-team-accent-fg);
}

.block-editor-block-list__block .glwa-team-grid__panels {
  width: 100%;
}

.glwa-team-grid__panel {
  display: none;
}

.glwa-team-grid__panel.is-active {
  display: block;
}

.glwa-team-grid__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.glwa-team-grid__card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  min-height: 420px;
  background: var(--glwa-team-card);
  color: #fff;
}

.glwa-team-grid__card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.glwa-team-grid__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 420px;
  background: #0031a7;
  color: #fff;
  font-size: 80px;
  font-weight: 800;
}

.glwa-team-grid__card:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  pointer-events: none;
}

.glwa-team-grid__caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 2;
}

.glwa-team-grid__caption h3 {
  margin: 0 0 0px;
  color: #F5F5F5;
  font-family: "dm-sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.875; /* 187.5% */
}

.glwa-team-grid__caption p {
  margin: 0;
  font-family: "dm-sans";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.glwa-team-grid__toggle, .glwa-team-grid__bio-trigger {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.glwa-team-grid__toggle:focus-visible,
.glwa-team-grid__bio-trigger:focus-visible {
  outline: 2px solid #000;
  outline-color: inherit;
  outline-offset: 2px;
}

.glwa-team-grid__empty,
.glwa-team-grid__loading {
  text-align: center;
  font-weight: 700;
  margin: 20px 0;
}

.editor-styles-wrapper .glwa-team-grid__bio {
  transform: none;
  display: none;
}

.editor-styles-wrapper .glwa-team-grid__toggle {
  pointer-events: none;
}

@media (max-width: 1199px) {
  .glwa-team-grid__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 991px) {
  .glwa-team-grid__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .glwa-team-grid__grid {
    grid-template-columns: 1fr;
  }
  .glwa-team-grid__filters {
    justify-content: flex-start;
  }
  .glwa-team-grid__filter {
    width: 100%;
    justify-content: center;
  }
}
.glwa-team-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
}
.glwa-team-modal[hidden] {
  display: none;
}
.glwa-team-modal__overlay {
  position: absolute;
  inset: 0;
}
.glwa-team-modal__panel {
  position: relative;
  width: min(94vw - 40px, 1340px);
  max-height: calc(100vh - 60px);
  height: 100%;
  margin: 30px auto;
  background: #0031A7;
  color: #fff;
  overflow: hidden;
}
.glwa-team-modal__content {
  display: grid;
  grid-template-columns: 58%, 42%;
  height: 100%;
  position: relative;
}
.glwa-team-modal__copy {
  padding: clamp(3rem, 6vw, 5.5rem);
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 3;
  position: absolute;
}
.glwa-team-modal__name {
  margin: 0;
  text-transform: uppercase;
}
.glwa-team-modal__title {
  margin: 0.5rem 0 4rem;
}
.glwa-team-modal__bio {
  overflow-y: auto;
  padding-right: 47%;
}
.glwa-team-modal__bio p + p {
  margin-top: 20px;
}
.glwa-team-modal__image {
  margin: 0 0 0 auto;
  height: 100%;
  position: relative;
  z-index: 2;
  right: 0;
  top: 0;
  width: 42%;
}
.glwa-team-modal__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.glwa-team-modal__close {
  position: absolute;
  top: 42px;
  right: 42px;
  width: 34px;
  height: 34px;
  border: 0;
  line-height: 1;
  cursor: pointer;
  z-index: 4;
}
.glwa-team-modal__close:focus-visible {
  outline: 2px solid #000;
  outline-color: inherit;
  outline-offset: 2px;
}

@media screen and (max-width: 1199px) {
  .glwa-team-modal__image img {
    object-position: top center;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}
@media screen and (max-width: 991px) {
  .glwa-team-modal__close {
    position: fixed;
    top: 22px;
    right: 22px;
    width: 34px;
    height: 34px;
    border: 0;
    line-height: 1;
    cursor: pointer;
    z-index: 4;
  }
  .glwa-team-modal__panel {
    width: calc(100vw - 0px);
    max-height: calc(100vh - 0px);
  }
  .glwa-team-modal__content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column-reverse;
    height: 100vh;
  }
  .glwa-team-modal__image {
    display: none;
    margin: 0 auto;
    height: auto;
  }
  .glwa-team-modal__image--mobile {
    display: block;
    position: relative;
  }
  .glwa-team-modal__image--mobile:after {
    border-radius: 0 0 8px 8px;
    background: linear-gradient(180deg, rgba(102, 102, 102, 0) 42.56%, rgba(0, 0, 0, 0.8) 92.12%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: "";
    z-index: 1;
  }
  .glwa-team-modal__image--mobile img {
    z-index: 0;
    position: relative;
  }
  .glwa-team-modal__image--mobile figcaption {
    position: absolute;
    bottom: 0;
    padding: 20px;
    z-index: 2;
  }
  .glwa-team-modal__image--mobile figcaption p {
    margin-bottom: 0;
  }
  .glwa-team-modal__title {
    margin: 0.5rem 0 2.5rem;
  }
  .glwa-team-modal__copy {
    padding: max(20px, 3vw);
    height: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 3;
    position: relative;
  }
  .glwa-team-modal__copy h2, .glwa-team-modal__copy .glwa-team-modal__title {
    display: none;
  }
  .glwa-team-modal__bio {
    width: calc(100% + 20px);
    padding: 0px 20px 0 0;
    margin-right: -20px;
  }
}
@media screen and (max-width: 767px) {
  .glwa-team-modal__close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 34px;
    height: 34px;
    border: 0;
    line-height: 1;
    cursor: pointer;
    z-index: 4;
  }
  .glwa-team-modal__panel {
    width: calc(100vw - 0px);
    max-height: calc(100vh - 0px);
  }
  .glwa-team-modal__content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column-reverse;
    height: 100vh;
    overflow-y: auto;
    display: block;
  }
  .glwa-team-modal__image {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  .glwa-team-modal__title {
    margin: 0.5rem 0 2.5rem;
  }
  .glwa-team-modal__copy {
    padding: max(20px, 3vw);
    height: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 3;
    position: relative;
  }
  .glwa-team-modal__bio {
    width: calc(100% + 20px);
    padding: 0px 20px 0 0;
    margin-right: -20px;
  }
}
body.modal-open {
  overflow: hidden;
}
