.abc-projects {
  --abc-green: #08a830;
  --abc-green-dark: #006628;
  --abc-teal: #22a2ae;
  --abc-ink: #06181a;
  --abc-muted: #65777a;
  --abc-border: #d9e1e2;
  --abc-gap: 24px;
  --abc-map-all: #08a830;
  --abc-map-featured: #f0a51a;
  --abc-map-under-construction: #d94f32;
  --abc-map-worked: #1f6175;
  --abc-map-all-rgb: 8, 168, 48;
  --abc-map-featured-rgb: 240, 165, 26;
  --abc-map-under-construction-rgb: 217, 79, 50;
  --abc-map-worked-rgb: 31, 97, 117;
}

.abc-projects,
.abc-projects * {
  box-sizing: border-box;
}

.abc-projects-filters {
  background: #edf3f4;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 15px;
  position: sticky;
  scrollbar-width: thin;
  top: 0;
  z-index: 430;
}

.abc-projects-filters__inner {
  align-items: center;
  display: flex;
  margin: 0 auto;
  max-width: 1260px;
  min-height: 58px;
  white-space: nowrap;
}

.abc-projects-filter-link {
  color: var(--abc-ink);
  display: inline-flex;
  font-family: "Godfrey-Medium", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.2;
  padding: 22px 16px 20px;
  position: relative;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.abc-projects-filter-link:after {
  background: var(--abc-green);
  bottom: 0;
  content: "";
  height: 3px;
  left: 16px;
  opacity: 0;
  position: absolute;
  right: 16px;
  transition: opacity 0.2s ease;
}

.abc-projects-filter-link:hover,
.abc-projects-filter-link.is-active {
  color: var(--abc-green-dark);
  opacity: 1;
  text-decoration: none;
}

.abc-projects-filter-link:hover:after,
.abc-projects-filter-link.is-active:after {
  opacity: 1;
}

.abc-projects-map-wrap {
  border-radius: 5px;
  height: 630px;
  margin-bottom: 54px;
  overflow: hidden;
  position: relative;
}

.abc-projects-map {
  background: #d7ecef;
  height: 100%;
  width: 100%;
}

.abc-projects-map-filters {
  align-items: stretch;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(6, 24, 26, 0.12);
  border-radius: 6px;
  bottom: 24px;
  box-shadow: 0 18px 40px rgba(6, 24, 26, 0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: calc(100% - 48px);
  padding: 10px;
  position: absolute;
  right: 24px;
  z-index: 420;
}

.abc-projects-map-filter {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(6, 24, 26, 0.12);
  border-left: 4px solid var(--abc-map-colour, var(--abc-map-worked));
  border-radius: 4px;
  color: var(--abc-ink);
  cursor: pointer;
  display: inline-flex;
  font-family: "Godfrey-Medium", Arial, sans-serif;
  font-size: 15px;
  gap: 12px;
  justify-content: flex-start;
  line-height: 1.2;
  min-height: 42px;
  min-width: 236px;
  padding: 9px 14px 9px 12px;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.abc-projects-map-filter:hover,
.abc-projects-map-filter.is-active {
  background: rgba(var(--abc-map-colour-rgb, var(--abc-map-worked-rgb)), 0.09);
  border-color: rgba(var(--abc-map-colour-rgb, var(--abc-map-worked-rgb)), 0.34);
  box-shadow: inset 0 0 0 1px rgba(var(--abc-map-colour-rgb, var(--abc-map-worked-rgb)), 0.12);
  color: var(--abc-ink);
}

.abc-projects-map-filter i {
  background: var(--abc-map-colour, var(--abc-map-worked));
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(var(--abc-map-colour-rgb, var(--abc-map-worked-rgb)), 0.28);
  order: -1;
  display: block;
  flex: 0 0 auto;
  height: 14px;
  position: relative;
  width: 14px;
}

.abc-projects-map-filter.is-active i:after {
  background: #fff;
  border-radius: 50%;
  content: "";
  height: 4px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
}

.abc-projects-map-filter--all {
  --abc-map-colour: var(--abc-map-all);
  --abc-map-colour-rgb: var(--abc-map-all-rgb);
}

.abc-projects-map-filter--featured {
  --abc-map-colour: var(--abc-map-featured);
  --abc-map-colour-rgb: var(--abc-map-featured-rgb);
}

.abc-projects-map-filter--under_construction {
  --abc-map-colour: var(--abc-map-under-construction);
  --abc-map-colour-rgb: var(--abc-map-under-construction-rgb);
}

.abc-projects-map-filter--worked {
  --abc-map-colour: var(--abc-map-worked);
  --abc-map-colour-rgb: var(--abc-map-worked-rgb);
}

.abc-projects-map-empty,
.abc-projects-empty,
.abc-projects-loader,
.abc-projects-status {
  color: var(--abc-muted);
  font-size: 16px;
  text-align: center;
}

.abc-projects-map-empty {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 5px;
  left: 50%;
  padding: 16px 20px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 410;
}

.abc-projects-status {
  min-height: 24px;
  margin-bottom: 16px;
}

.abc-projects-grid {
  margin: 0 auto 56px;
  max-width: 1440px;
  padding: 0 15px;
  width: 100%;
}

.abc-projects--latest .abc-projects-grid {
  display: grid;
  gap: var(--abc-gap);
  grid-auto-flow: dense;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, 168px);
  margin-bottom: 0;
  max-width: none;
  padding: 0;
}

.abc-projects--latest .abc-projects-sizer {
  display: none;
}

.abc-projects--latest .abc-projects-grid:after {
  display: none;
}

.abc-projects--latest .abc-project-card {
  float: none;
  height: auto;
  margin-bottom: 0;
  width: auto;
}

.abc-projects--latest .abc-project-card:nth-of-type(1),
.abc-projects--latest .abc-project-card:nth-of-type(3),
.abc-projects--latest .abc-project-card:nth-of-type(4),
.abc-projects--latest .abc-project-card:nth-of-type(6) {
  grid-row: span 2;
}

.abc-projects--latest .abc-project-card:nth-of-type(1) {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.abc-projects--latest .abc-project-card:nth-of-type(2) {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.abc-projects--latest .abc-project-card:nth-of-type(3) {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.abc-projects--latest .abc-project-card:nth-of-type(4) {
  grid-column: 1;
  grid-row: 3 / span 2;
}

.abc-projects--latest .abc-project-card:nth-of-type(5) {
  grid-column: 2;
  grid-row: 3 / span 2;
}

.abc-projects--latest .abc-project-card:nth-of-type(6) {
  grid-column: 3;
  grid-row: 3 / span 2;
}

.abc-projects-grid:after {
  clear: both;
  content: "";
  display: block;
}

.abc-projects-sizer,
.abc-project-card {
  width: calc((100% - var(--abc-gap) * 2) / 3);
}

.abc-project-card {
  border-radius: 5px;
  float: left;
  height: 390px;
  margin-bottom: var(--abc-gap);
  overflow: hidden;
}

.abc-project-card--extra-tall {
  height: 500px;
}

.abc-project-card--extra-wide {
  height: 440px;
}

.abc-project-card--short {
  height: 315px;
}

.abc-project-card__link,
.abc-project-card__image,
.abc-project-card__shade,
.abc-project-card__top,
.abc-project-card__meta {
  display: block;
}

.abc-project-card__link {
  color: #fff;
  height: 100%;
  opacity: 1;
  position: relative;
  text-decoration: none;
}

.abc-project-card__link:hover {
  color: #fff;
  opacity: 1;
}

.abc-project-card__image {
  background-color: var(--abc-teal);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100%;
  transform: scale(1);
  transition: transform 0.35s ease;
  width: 100%;
}

.abc-project-card__shade {
  background: linear-gradient(180deg, rgba(6, 24, 26, 0.76) 0%, rgba(6, 24, 26, 0.18) 48%, rgba(6, 24, 26, 0.84) 100%);
  inset: 0;
  position: absolute;
  transition: background 0.25s ease;
}

.abc-project-card__top {
  left: 22px;
  max-width: calc(100% - 44px);
  position: absolute;
  top: 22px;
  z-index: 2;
}

.abc-project-card__title {
  color: #fff;
  display: block;
  font-family: "Godfrey-Medium", Arial, sans-serif;
  font-size: 23px;
  line-height: 1.12;
  text-transform: uppercase;
}

.abc-project-card__category {
  color: #fff;
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-top: 10px;
  text-transform: uppercase;
}

.abc-project-card__category:before {
  background: linear-gradient(to right, var(--abc-green-dark), var(--abc-green));
  border-radius: 2px;
  content: "";
  display: inline-block;
  height: 10px;
  margin-right: 8px;
  width: 10px;
}

.abc-project-card__meta {
  bottom: 22px;
  left: 22px;
  max-width: calc(100% - 44px);
  opacity: 0;
  position: absolute;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 2;
}

.abc-project-card__meta-item {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: 14px;
  gap: 10px;
  line-height: 1.35;
  margin-top: 5px;
}

.abc-project-card__meta-item i {
  color: var(--abc-green);
  flex: 0 0 16px;
  font-size: 14px;
  text-align: center;
}

.abc-project-card__meta-item span:not(.screen-reader-text) {
  display: block;
}

.abc-project-card__link:hover .abc-project-card__image {
  transform: scale(1.045);
}

.abc-project-card__link:hover .abc-project-card__shade {
  background: rgba(6, 24, 26, 0.72);
}

.abc-project-card__link:hover .abc-project-card__meta {
  opacity: 1;
  transform: translateY(0);
}

.abc-projects-marker-icon {
  background: transparent;
  border: 0;
}

.abc-projects-marker {
  background: #08a830;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 9px 20px rgba(6, 24, 26, 0.38), 0 0 0 6px rgba(8, 168, 48, 0.24);
  display: block;
  height: 24px;
  position: relative;
  width: 24px;
}

.abc-projects-marker:after {
  background: #006628;
  border-radius: 50%;
  content: "";
  height: 8px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
}

.abc-projects-marker--featured {
  background: var(--abc-map-featured);
  box-shadow: 0 9px 20px rgba(6, 24, 26, 0.38), 0 0 0 6px rgba(240, 165, 26, 0.24);
}

.abc-projects-marker--featured:after {
  background: #8a5d05;
}

.abc-projects-marker--under_construction {
  background: var(--abc-map-under-construction);
  box-shadow: 0 9px 20px rgba(6, 24, 26, 0.38), 0 0 0 6px rgba(217, 79, 50, 0.24);
}

.abc-projects-marker--under_construction:after {
  background: #842714;
}

.abc-projects-marker--worked {
  background: var(--abc-map-worked);
  box-shadow: 0 9px 20px rgba(6, 24, 26, 0.38), 0 0 0 6px rgba(31, 97, 117, 0.22);
}

.abc-projects-marker--worked:after {
  background: #0b3440;
}

.abc-projects-cluster {
  align-items: center;
  background: #08a830;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 11px 24px rgba(6, 24, 26, 0.42), 0 0 0 8px rgba(8, 168, 48, 0.22);
  color: #fff;
  display: flex;
  font-family: "Godfrey-Medium", Arial, sans-serif;
  font-size: 17px;
  height: 46px;
  justify-content: center;
  line-height: 1;
  text-align: center;
  width: 46px;
}

.abc-projects-cluster--large {
  height: 54px;
  width: 54px;
}

.abc-projects-cluster--all {
  background: var(--abc-map-all);
  box-shadow: 0 11px 24px rgba(6, 24, 26, 0.42), 0 0 0 8px rgba(8, 168, 48, 0.22);
}

.abc-projects-cluster--featured {
  background: var(--abc-map-featured);
  box-shadow: 0 11px 24px rgba(6, 24, 26, 0.42), 0 0 0 8px rgba(240, 165, 26, 0.22);
}

.abc-projects-cluster--under_construction {
  background: var(--abc-map-under-construction);
  box-shadow: 0 11px 24px rgba(6, 24, 26, 0.42), 0 0 0 8px rgba(217, 79, 50, 0.22);
}

.abc-projects-cluster--worked {
  background: var(--abc-map-worked);
  box-shadow: 0 11px 24px rgba(6, 24, 26, 0.42), 0 0 0 8px rgba(31, 97, 117, 0.2);
}

.abc-projects-cluster__count {
  display: block;
  padding-top: 2px;
}

.abc-projects-popup {
  color: var(--abc-ink);
  display: block;
  max-width: 235px;
  text-decoration: none;
}

.abc-projects-popup:hover {
  color: var(--abc-ink);
  opacity: 1;
}

.abc-projects-popup__image {
  background-position: center;
  background-size: cover;
  border-radius: 5px;
  display: block;
  height: 116px;
  margin-bottom: 12px;
}

.abc-projects-popup__title {
  display: block;
  font-family: "Godfrey-Medium", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.15;
  text-transform: uppercase;
}

.abc-projects-popup__meta {
  color: var(--abc-muted);
  display: block;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 7px;
}

.abc-projects-sentinel {
  height: 1px;
}

@media screen and (max-width: 991px) {
  .abc-projects {
    --abc-gap: 20px;
  }
  .abc-projects-map-wrap {
    height: 520px;
  }
  .abc-projects-sizer,
  .abc-project-card,
  .abc-project-card--extra-wide {
    width: calc((100% - var(--abc-gap)) / 2);
  }
  .abc-project-card,
  .abc-project-card--extra-wide {
    height: 360px;
  }
  .abc-project-card--extra-tall {
    height: 440px;
  }
  .abc-project-card--short {
    height: 300px;
  }
}
@media screen and (max-width: 600px) {
  .abc-projects {
    --abc-gap: 18px;
    margin-top: 34px;
  }
  .abc-projects-filters {
    margin-bottom: 32px;
    padding: 0 10px;
    position: relative;
    top: auto;
    z-index: 1;
  }
  .abc-projects-filters__inner {
    min-height: 54px;
  }
  .abc-projects-filter-link {
    font-size: 14px;
    padding: 18px 12px 16px;
  }
  .abc-projects-map-wrap {
    border-radius: 0;
    height: 520px;
    margin-bottom: 34px;
  }
  .abc-projects-map-filters {
    align-items: stretch;
    bottom: 12px;
    left: 12px;
    max-width: none;
    right: 12px;
  }
  .abc-projects-map-filter,
  .abc-projects-map-filter:hover,
  .abc-projects-map-filter.is-active {
    font-size: 14px;
    gap: 10px;
    justify-content: space-between;
    min-height: 38px;
    min-width: 100%;
    padding: 8px 14px;
  }
  .abc-projects-map-empty {
    width: calc(100% - 32px);
  }
  .abc-projects-grid {
    margin-bottom: 38px;
    padding: 0;
    width: calc(100% - 20px);
  }
  .abc-projects-sizer,
  .abc-project-card,
  .abc-project-card--extra-wide {
    width: 100%;
  }
  .abc-project-card,
  .abc-project-card--extra-tall,
  .abc-project-card--extra-wide,
  .abc-project-card--short {
    height: 430px;
  }
  .abc-projects--latest .abc-projects-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .abc-projects--latest .abc-project-card,
  .abc-projects--latest .abc-project-card:nth-of-type(1),
  .abc-projects--latest .abc-project-card:nth-of-type(2),
  .abc-projects--latest .abc-project-card:nth-of-type(3),
  .abc-projects--latest .abc-project-card:nth-of-type(4),
  .abc-projects--latest .abc-project-card:nth-of-type(5),
  .abc-projects--latest .abc-project-card:nth-of-type(6) {
    grid-column: auto;
    grid-row: auto;
    height: 430px;
  }
  .abc-project-card__top {
    left: 18px;
    max-width: calc(100% - 36px);
    top: 18px;
  }
  .abc-project-card__title {
    font-size: 20px;
  }
  .abc-project-card__meta {
    bottom: 18px;
    left: 18px;
    max-width: calc(100% - 36px);
    opacity: 1;
    transform: none;
  }
  .abc-project-card__meta-item {
    font-size: 13px;
    gap: 9px;
  }
  .abc-project-card__shade {
    background: linear-gradient(180deg, rgba(6, 24, 26, 0.78) 0%, rgba(6, 24, 26, 0.28) 38%, rgba(6, 24, 26, 0.9) 100%);
  }
}
@media screen and (max-width: 420px) {
  .abc-projects-map-wrap {
    height: 500px;
  }
  .abc-projects--latest .abc-project-card,
  .abc-projects--latest .abc-project-card:nth-of-type(1),
  .abc-projects--latest .abc-project-card:nth-of-type(2),
  .abc-projects--latest .abc-project-card:nth-of-type(3),
  .abc-projects--latest .abc-project-card:nth-of-type(4),
  .abc-projects--latest .abc-project-card:nth-of-type(5),
  .abc-projects--latest .abc-project-card:nth-of-type(6) {
    height: 450px;
  }
  .abc-project-card,
  .abc-project-card--extra-tall,
  .abc-project-card--extra-wide,
  .abc-project-card--short {
    height: 450px;
  }
}
