.projects .where-we-work .map-box {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 0 4rem;
}

.projects .where-we-work .map-box #world-map {
  width: 120rem;
  height: 64rem;
}

.projects .highlighted-projects .projects-scroll {
  width: 100%;
  margin: 4rem 0;
}

/* .projects .projects-scroll .views-element-container > div {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100rem;
  margin: 0 auto;
} */

.projects .projects-scroll .views-element-container > div::-webkit-scrollbar {
  display: none;
}

/* .projects .projects-scroll .views-element-container > div .project-card {
  flex: 0 0 auto;
  margin: 0 2rem;
  width: calc(33% - 4rem);
  height: 25rem;
} */

.projects .projects-scroll .views-element-container > div .project-card .project-teaser {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.projects .projects-scroll .views-element-container > div .project-card .project-teaser h3 {
  padding: 2rem;
}

.projects .projects-scroll .views-element-container > div .project-card .project-teaser h3 a {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: "Nexa Light";
  line-height: 1.2;
  color: var(--link-color, #ffffff);
  padding: 0;
  font-weight: bold;
  font-size: 2rem;
}

.projects .projects-scroll .views-element-container > div .project-card .project-teaser .fields {
  border-bottom: none;
  padding: 0 2rem;
  margin: 0;
}

.projects .projects-scroll .views-element-container > div .project-card .project-teaser .fields span {
  font-size: 1.8rem;
  font-family: "Nexa Light";
  color: var(--link-color, #ffffff);
}

.projects .projects-scroll .views-element-container > div .project-card .project-teaser .card-icon::before {
  content: "";
  mask-repeat: no-repeat;
  -webkit-mask-image: url(/themes/custom/ipcig/images/project-teaser-icon.svg);
  mask-image: url(/themes/custom/ipcig/images/project-teaser-icon.svg);
  background-color: var(--link-color, #ffffff);
  width: 2rem;
  height: 2rem;
  position: absolute;
  left: 2rem;
  bottom: 2rem;
}

/* Background of cards */
.projects .projects-scroll .views-element-container > div .project-card:nth-child(4n + 1),
.project-page .publications-scroll .publication-card:nth-child(4n + 1) {
  background-color: var(--main-blue-color);
}

.projects .projects-scroll .views-element-container > div .project-card:nth-child(4n + 2),
.project-page .publications-scroll .publication-card:nth-child(4n + 2) {
  background-color: var(--main-yellow-color);
  --link-color: var(--main-blue-color);
}

.projects .projects-scroll .views-element-container > div .project-card:nth-child(4n + 3),
.project-page .publications-scroll .publication-card:nth-child(4n + 3) {
  background-color: var(--main-orange-color);
}

.projects .projects-scroll .views-element-container > div .project-card:nth-child(4n + 4),
.project-page .publications-scroll .publication-card:nth-child(4n + 4) {
  background-color: var(--main-green-color);
}

.projects section.search-projects {
  background-image: url(/themes/custom/ipcig/images/losangulo_esquerda.svg), url(/themes/custom/ipcig/images/lonsagulo_direita.svg);
  background-position: left top, right top;
  background-repeat: no-repeat, no-repeat;
  background-size: 45rem;
}

.projects section.search-projects > div {
  margin-top: -4rem;
}

.projects section.search-projects .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 2rem;
}

.projects section.search-projects .form-row fieldset:first-of-type {
  grid-column: 1/3;
}

.projects section.search-projects .form-row fieldset {
  margin: 0;
}

.projects section.search-projects .form-row .form-actions {
  grid-column: 1/3;
  text-align: center;
}

.projects section.search-projects .form-row .form-actions button {
  width: 40%;
}

.projects section.external-projects .external-websites {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.projects section.external-projects .external-websites .external-project-block,
.project-page .project-info .external-project-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
}

.projects section.external-projects .external-websites .external-project-block img,
.project-page .project-info .external-project-block img {
  width: 12rem;
  height: 12rem;
}

.projects section.external-projects .external-websites .external-project-block a,
.project-page .project-info .external-project-block a {
  font-family: "Nexa Bold";
  margin-top: 2rem;
  color: var(--main-text-color);
  word-break: break-all;
}

/* PROJECT PAGE STYLES */

.project-page .pillar-title h1 {
  text-transform: none;
}

.project-page .pillar-title {
  margin-bottom: 2rem;
}

.project-page .pillar-title .title-infos {
  margin-top: -6rem;
}

.project-page .pillar-title .title-infos span {
  text-align: right;
  display: block;
  padding-right: 10rem;
  color: var(--medium-blue-color);
  font-family: "Nexa light";
}

.project-page .project-info .info-title {
  display: flex;
  align-items: center;
}

.project-page .project-info .info-title img {
  width: 4rem;
  height: 4rem;
}

.project-page .project-info .info-title h2 {
  margin: 0 0 -.8rem 1rem;
  padding-right: 1rem;
}


.project-page .project-info .info-content {
  margin-top: 1rem;
}

.project-page .project-info .info-content span.separator {
  margin-left: -.5rem;
}

.project-page .project-info {
  margin-bottom: 3rem;
}

.project-page .project-info h1 {
  margin-top: 4rem;
}

.project-page .project-info h1+hr {
  margin-bottom: 4rem;
}

.project-page .publications-scroll > div > div {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100rem;
  margin: 0 auto;
}

.project-page .publications-scroll > div >  div::-webkit-scrollbar {
  display: none;
}

.project-page .publications-scroll .publication-card {
  flex: 0 0 auto;
  margin: 0 2rem;
  width: 21rem;
}

.project-page .publications-scroll .publication-card .publication-teaser h3 {
  min-height: 14.5rem;
  padding: 1rem;
}

.project-page .publications-scroll .publication-card .publication-teaser h3 a {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: "Nexa Light";
  line-height: 1.2;
  color: var(--link-color, #ffffff);
  padding: 0;
  min-height: 6rem;
  font-weight: bold;
}

.project-page .publications-scroll .publication-card .publication-teaser .fields {
  border-bottom: none;
  padding: 1rem 0;
  font-size: 1.2rem;
  font-family: "Nexa Bold";
  color: #ffffff;
  margin: 0;
}

.project-page .publications-scroll .publication-card .publication-teaser .fields .field {
  font-size: 1.4rem;
  font-family: "Nexa Bold";
  color: var(--link-color, #ffffff);
  padding-left: 4rem;
  position: relative;
}

.project-page .publications-scroll .publication-card .publication-teaser .fields .field:before {
  content: "";
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-image: url(/themes/custom/ipcig/images/teaser-icon.svg);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-image: url(/themes/custom/ipcig/images/teaser-icon.svg);
  background-color: var(--link-color, #ffffff);
  width: 20px;
  height: 20px;
  position: absolute;
  left: 1rem;
  bottom: 0.1rem;
}

.project-page .project-news .news-container .news-card {
  padding: 0rem 1rem 2rem 4rem;
  background-image: url(/themes/custom/ipcig/images/news-list-decorator.svg);
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 35px;
  margin-bottom: 1rem;
}

.project-page .project-news .news-container .news-card .news-teaser h3 a {
  font-weight: 800;
  font-size: 2rem;
}

.project-page .project-publications .publication-guide {
  text-align: center;
  margin-top: 2rem;
  font-style: italic;
}
