.custom-project-carousel {
  --custom-project-carousel-gap: 10px;
  --custom-project-carousel-speed: 75s;
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
}

.custom-project-carousel__viewport {
  overflow: hidden;
}

.custom-project-carousel__track {
  display: flex;
  width: max-content;
  gap: var(--custom-project-carousel-gap);
  align-items: stretch;
  animation: custom-project-infinite-scroll var(--custom-project-carousel-speed) linear infinite;
  will-change: transform;
}

.custom-project-carousel.is-holding .custom-project-carousel__track {
  animation-play-state: paused;
}

.custom-project-carousel--single-slide .custom-project-carousel__track {
  animation: none;
}

.custom-project-carousel__slide {
  display: flex;
  flex: 0 0 auto;
  height: var(--custom-project-carousel-height, 600px);
  border-radius: 12px;
  margin: 0;
  overflow: hidden;
}

.custom-project-carousel__slide img {
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
  object-fit: contain;
}

@keyframes custom-project-infinite-scroll {
  to {
    transform: translateX(calc(-50% - (var(--custom-project-carousel-gap) / 2)));
  }
}

/* Project, Location and Completion. */
.single-custom_project .custom-project-inline-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.single-custom_project .custom-project-inline-meta__label {
  color: var(--theme-palette-color-3);
  font-family: Manrope, sans-serif;
  font-size: 20px !important;
  font-weight: 500;
  letter-spacing: normal;
}

.single-custom_project .custom-project-inline-meta__value {
  color: var(--theme-palette-color-2);
  font-family: Manrope, sans-serif;
  font-size: 20px !important;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.4;
}

/* Architect, Building contractor and M&E Engineer: matches Service metadata. */
.single-custom_project .custom-project-detail-meta__label {
  color: var(--theme-palette-color-3);
  font-size: 20px !important;
  font-weight: 500;
}

.single-custom_project .custom-project-detail-meta__value {
  color: var(--theme-palette-color-2);
  font-size: 20px !important;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.4;
  margin-top: -5px;
}

/* Services Used card. */
.single-custom_project .custom-project-services-meta__label {
  color: var(--theme-palette-color-2);
  font-family: Inter, sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.05em;
  margin-bottom: 15px;
}

.single-custom_project .custom-project-services-meta__value,
.single-custom_project .custom-project-services-meta__value a {
  color: var(--theme-palette-color-3);
  font-family: Manrope, sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.4;
  margin-top: -5px;
}

.single-custom_project .custom-project-services-meta__value a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.single-custom_project .custom-project-scope__label {
	color: #fdc000;
  font-family: Inter, sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.05em;
  margin-bottom: 15px;
}

.single-custom_project .custom-project-scope__content {
	color: #ffffff;
}

.single-custom_project .custom-project-challenges .custom-project-scope__label {
	color: #03004c;
}

.single-custom_project .custom-project-challenges .custom-project-scope__content {
	color: #000000;
}

/* Hide the Elementor section wrappers when their corresponding Project fields are empty. */
.custom-project-scope-empty .sow,
.custom-project-challenges-empty .clg,
.custom-project-services-empty .psu,
.custom-project-location-empty .prlo,
.custom-project-segments-empty .prse,
.custom-project-name-empty .prna,
.custom-project-completion-empty .prco {
	display: none;
}

.single-custom_project .custom-project-scope__content li {
  line-height: 1.25;
}

.single-custom_project .custom-project-scope__content li + li {
  margin-top: 12px;
}

/* Projects directory search and filter toolbar. */
.custom-projects-directory {
  color: #111;
}

.custom-projects-directory__toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(660px, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.custom-projects-directory__search-label {
  position: relative;
  display: block;
  margin-bottom: 0;
}

.custom-projects-directory__search-label::after {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 18px;
  height: 18px;
  background: url('/wp-content/uploads/2026/10/search.svg') center / contain no-repeat;
  content: '';
  pointer-events: none;
  transform: translateY(-50%);
}

.custom-projects-directory input.custom-projects-directory__search {
  width: 100%;
  box-sizing: border-box;
  height: 58px;
  min-height: 58px;
  padding: 10px 46px 10px 18px;
  color: #414141 !important;
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.04em;
  border: 1px solid #d7d7d7 !important;
  border-radius: 50px !important;
  outline: none !important;
  box-shadow: none !important;
  background: #f9f9f9 !important;
}

.custom-projects-directory input.custom-projects-directory__search::placeholder {
  color: #414141 !important;
  opacity: 1;
}

.custom-projects-directory__filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding-left: 20px;
  border-left: 1px solid #ddd;
}

.custom-projects-directory__filter-label {
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -1px;
}

.custom-projects-directory__filter-control {
  position: relative;
  flex: 0 0 195px;
  min-width: 0;
}

.custom-projects-directory__filter-control + .custom-projects-directory__filter-control {
  flex-basis: 170px;
}

.custom-projects-directory__trigger {
  appearance: none;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 10px 38px 10px 18px;
  font: inherit;
  font-size: 16px;
  text-align: left;
  color: #414141 !important;
  border: 1px solid #d7d7d7 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
  cursor: pointer;
}

.custom-projects-directory__chevron {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 11px;
  height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.custom-projects-directory__filter-control.is-open .custom-projects-directory__trigger {
  color: #111 !important;
  border-color: #111 !important;
}

.custom-projects-directory__filter-control.is-open .custom-projects-directory__chevron {
  transform: translateY(-30%) rotate(225deg);
}

.custom-projects-directory__panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: min(430px, 75vw);
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transform: translateX(var(--panel-shift-x, 0px)) translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
}

.custom-projects-directory__filter-control.is-open .custom-projects-directory__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(var(--panel-shift-x, 0px)) translateY(0);
}

.custom-projects-directory__panel.is-measuring {
  transition: none !important;
}

.custom-projects-directory__filter-control--service-tag .custom-projects-directory__panel {
  right: auto;
  left: 0;
  width: min(580px, calc(100vw - 20px));
  max-width: none;
  padding: 0;
}

.custom-projects-directory__panel-title {
  padding: 15px;
  font-size: 20px;
  font-weight: 600;
  border-bottom: 1px solid #e7e7e7;
}

.custom-projects-directory__choices {
  column-count: 2;
  column-gap: 20px;
  padding: 15px;
}

.custom-projects-directory__choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  break-inside: avoid;
  margin-bottom: 10px;
}

.custom-projects-directory__choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.custom-projects-directory__choice-box {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 0;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  background: #fff;
}

.custom-projects-directory__choice input:checked + .custom-projects-directory__choice-box {
  border-color: #16165f;
  background: #16165f;
  box-shadow: inset 0 0 0 4px #fff;
}

.custom-projects-directory__choice input:focus-visible + .custom-projects-directory__choice-box {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.custom-projects-directory__empty-choice {
  margin: 0;
  padding: 15px;
  color: #414141;
}

.custom-projects-directory__results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.custom-projects-directory__project-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  color: inherit !important;
  text-decoration: none !important;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  background: #fff;
  transition: border-color .2s ease;
}

.custom-projects-directory__project-card:hover,
.custom-projects-directory__project-card:focus-visible {
  border-color: var(--theme-palette-color-2, #111);
  outline: none;
}

.custom-projects-directory__project-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f2f2f2;
}

.custom-projects-directory__project-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.custom-projects-directory__project-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 18px;
}

.custom-projects-directory__project-title {
  margin: 0;
  color: var(--theme-palette-color-2, #111);
  font-family: Inter, sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.custom-projects-directory__project-description {
  display: -webkit-box;
  margin: 10px 0 16px;
  overflow: hidden;
  color: var(--theme-palette-color-3, #414141);
  font-size: 15px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.custom-projects-directory__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.custom-projects-directory__pill {
  padding: 5px 11px;
  color: var(--theme-palette-color-3, #414141);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  border: 1px solid #d7d7d7;
  border-radius: 999px;
}

.custom-projects-directory__empty-results {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px 0;
  color: var(--theme-palette-color-3, #414141);
}

.custom-projects-directory.is-loading .custom-projects-directory__results {
  opacity: .55;
  transition: opacity .18s ease;
}

/* Project card carousel shortcode: [custom_projects_carousel]. */
.custom-projects-card-carousel {
  position: relative;
}

.custom-projects-card-carousel__controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 32px;
}

.custom-projects-card-carousel__button {
  display: inline-grid;
  position: relative;
  width: 43px;
  height: 43px;
  padding: 0 !important;
  place-items: center;
  color: transparent;
  font-size: 0;
  line-height: 1;
  border: 0;
  border-radius: 28px;
  border: 0 !important;
  background-color: #FDC000 !important;
  background-image: none !important;
  box-shadow: none !important;
  cursor: pointer;
}

.custom-projects-card-carousel__button::before {
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  margin: auto;
  background: #111;
  -webkit-mask: url('https://slp.dev26.site/wp-content/uploads/2026/10/arrow-right-2.svg') center / contain no-repeat;
  mask: url('https://slp.dev26.site/wp-content/uploads/2026/10/arrow-right-2.svg') center / contain no-repeat;
  content: '';
}

.custom-projects-card-carousel__button[data-projects-carousel-previous]::before {
  transform: rotate(180deg);
}

.custom-projects-card-carousel__button:hover,
.custom-projects-card-carousel__button:focus-visible {
  outline: none !important;
}

.custom-projects-card-carousel__viewport {
  overflow: hidden;
}

.custom-projects-card-carousel__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.custom-projects-card-carousel__track::-webkit-scrollbar {
  display: none;
}

.custom-projects-card-carousel__slide {
  flex: 0 0 calc((100% - 37.5px) / 3.5);
  min-width: 0;
  scroll-snap-align: start;
}

.custom-projects-card-carousel__slide .custom-projects-directory__project,
.custom-projects-card-carousel__slide .custom-projects-directory__project-card {
  height: 100%;
}

/* Project countries map shortcode: [custom_projects_map]. */
.custom-projects-map {
  position: relative;
  width: 100%;
}

.custom-projects-map__canvas {
  display: block;
  width: 100%;
  height: 600px;
}

.custom-projects-map__country {
  fill: #cccccc;
  stroke: #fff;
  stroke-width: .45;
  transition: fill .2s ease;
}

.custom-projects-map__country.is-active {
  cursor: pointer;
}

.custom-projects-map__country.is-active.is-hovered {
  fill: #cccccc;
}

.custom-projects-map__marker {
  cursor: pointer;
  outline: none;
}

.custom-projects-map__marker-bubble,
.custom-projects-map__marker-bubble-pointer {
  fill: var(--theme-palette-color-1);
}

.custom-projects-map__marker-pin-icon,
.custom-projects-map__marker-pin-icon-core {
  fill: none;
  stroke: var(--theme-palette-color-1);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.custom-projects-map__marker-pin-icon {
  stroke-width: 2.5px;
}

.custom-projects-map__marker-pin-icon-core {
  stroke-width: 2px;
}

.custom-projects-map__marker-label {
  fill: #fff;
  font-family: Manrope, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.custom-projects-map__marker:hover .custom-projects-map__marker-bubble,
.custom-projects-map__marker:hover .custom-projects-map__marker-bubble-pointer,
.custom-projects-map__marker:focus .custom-projects-map__marker-bubble,
.custom-projects-map__marker:focus .custom-projects-map__marker-bubble-pointer {
  filter: brightness(.86);
}

.custom-projects-map__marker:focus .custom-projects-map__marker-pin-icon,
.custom-projects-map__marker:focus .custom-projects-map__marker-pin-icon-core {
  stroke: #fdc000;
}

.custom-projects-map__tooltip {
  position: absolute;
  z-index: 2;
  max-width: 220px;
  padding: 8px 11px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  border-radius: 4px;
  background: #222;
  pointer-events: none;
  transform: translate(12px, -50%);
}

.custom-projects-card-carousel .custom-projects-directory__project-card,
.custom-projects-card-carousel .custom-projects-directory__project-card:hover,
.custom-projects-card-carousel .custom-projects-directory__project-card:focus-visible {
  border: 0 !important;
  box-shadow: none !important;
  outline: none;
  transform: none;
}

@media (max-width: 1024px) {
  .custom-projects-directory__toolbar {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .custom-projects-directory__filters {
    flex-wrap: nowrap;
    padding-left: 0;
    border-left: 0;
  }

  .custom-projects-directory__filter-label {
    display: none;
  }

  .custom-projects-directory__filter-control,
  .custom-projects-directory__filter-control + .custom-projects-directory__filter-control {
    flex: 1 1 0;
  }

  .custom-projects-directory__choices {
    grid-template-columns: 1fr;
  }

  .custom-projects-directory__results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .custom-projects-card-carousel__slide {
    flex-basis: calc((100% - 16.8px) / 2.12);
  }

  .custom-projects-directory__panel {
    width: min(360px, calc(100vw - 32px));
  }
}


@media (max-width: 767px) {
  .custom-projects-directory__project-content {
    padding: 15px;
  }

  .custom-projects-directory__project-title {
    font-size: 20px;
  }

  .custom-projects-directory__pills .custom-projects-directory__pill {
    font-size: 12px;
  }

  .custom-projects-map__canvas {
    height: 200px;
  }

  .custom-projects-card-carousel__slide {
    flex-basis: calc((100% - 15px) / 1.12);
  }

  .custom-project-carousel {
    --custom-project-carousel-height: 360px !important;
    --custom-project-carousel-gap: 8px;
    --custom-project-carousel-speed: 55s;
  }
}

@media (min-width: 481px) and (max-width: 1024px) {
  .custom-project-carousel {
    --custom-project-carousel-height: 450px !important;
  }
}

@media (max-width: 767px) {
  .custom-projects-directory__choice {
    font-size: 14px;
  }

  .custom-projects-directory__choices {
    column-count: 1;
  }

  .custom-projects-directory__choice-box {
    flex-basis: 16px;
    width: 16px;
    height: 16px;
  }

  .custom-projects-directory__choice input:checked + .custom-projects-directory__choice-box {
    box-shadow: inset 0 0 0 3px #fff;
  }
}

/* Keep the compact, stacked controls for phone widths only. */
@media (max-width: 480px) {
  .single-custom_project .custom-project-inline-meta__label,
  .single-custom_project .custom-project-detail-meta__label,
  .single-custom_project .custom-project-inline-meta__value,
  .single-custom_project .custom-project-detail-meta__value {
    font-size: 18px !important;
  }

  .single-custom_project .custom-project-inline-meta__value,
  .single-custom_project .custom-project-detail-meta__value {
    letter-spacing: -0.5px;
  }

  .custom-projects-directory__choice {
    margin-bottom: 0;
  }

  .custom-projects-directory__results {
    grid-template-columns: 1fr;
  }

  .custom-projects-directory__filters {
    flex-wrap: wrap;
  }

  .custom-projects-directory__filter-label {
    display: none;
  }

  .custom-projects-directory__filter-control,
  .custom-projects-directory__filter-control + .custom-projects-directory__filter-control {
    flex: 1 0 100%;
  }

  .custom-projects-directory__filter-control:nth-of-type(2),
  .custom-projects-directory__filter-control:nth-of-type(3) {
    flex-basis: calc(50% - 5px);
  }

  .custom-projects-directory__trigger {
    border-radius: 50px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .custom-project-carousel__track {
    animation-play-state: paused;
  }
}
