.project {
  position: relative;
  border-radius: 8px;
  background: var(--green);
}


.project .field-content>div {
  display: flex;
  justify-content: space-between;
  height: 100%;
  flex-direction: column;
}

.top {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
}

/* .project .box {
  padding-top: 56px;
} */

.project .box .bg-img {
  position: absolute;
  border-radius: 8px;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.project .box .bg-img img {
  height: 100%;
  width: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  position: absolute;
}

.project .project-date {
  position: relative;
  top: 0;
  left: 0;
}

.project-date,
.project-title,
.box-organization,
.project-description,
.project-title {
  z-index: 3;
  position: relative;
}

.project .box-organization {
  margin-top: 31px;
}

.project .box-organization>div {
  display: flex;
  align-items: center;
}

.project-title a {
  display: block;
  font-size: 1.875rem;
  color: #2E2E2E;
  color: #fff;
  font-family: 'Merriweather';
  font-weight: 800;
  line-height: 2.5rem;
}

.project .box-organization img {
  max-height: 40px;
  width: auto;
}

.project.project-size-small .label-institution {
  color: #333;
}

.project.project-size-small .project-title::after {
  border-color: var(--green);
}

.project .label-institution {
  color: #fff;
}

.project .institution-title {
  margin-left: 15px;
}

.project .institution-title a {
  color: #fff;
  line-height: 1.2;
}

.project .project-title::after {
  margin-top: 13px;
  margin-bottom: 13px;
  content: '';
  width: 60px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: block;
}

.project-date {
  position: absolute;
  top: 30px;
  left: 37px;
  color: #fff;
  padding: 3px 10px;
  border: 2px solid #fff;
  border-radius: 11px;
  font-size: var(--small-font-size);
  font-family: Ubuntu;
}

.project .topic {
  top: 0px;
  right: 0px;
  position: relative;
}

.project-description {
  display: none;
}

.project-description p {
  color: #fff;
  font-family: Ubuntu;
}

/*ONGOING PROJECT*/
.project.carousel-project {
  min-height: 360px;
  background-size: cover;
  margin: 0px 0 50px 15px;
  position: relative;
  padding: 36px 35px 35px 35px;
  display: block;
  background: #F4F2F0 url(../assets/bg-small-tiles-waves.png) bottom center no-repeat;
  width: 342px;
}

.project.carousel-project:after {
  display: block;
  position: absolute;
  left: 50%;
  bottom: -9px;
  background: var(--green);
  content: "";
  border-radius: 0px 0px 8px 8px;
  width: 95%;
  height: 9px;
  z-index: 0;
  transform: translate(-50%);
  box-shadow: inset 0px 2px 5px rgba(0,0,0,0.19);
}

.project.carousel-project time {
  position: relative;
  top: 0;
  display: inline-block;
}

.project.carousel-project .box a {
  font-size: 1.5rem;
  margin-bottom: 0px;
}

.project.carousel-project .box.top>div {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  margin-bottom: 20px;
  justify-content: space-between;
}

.project.carousel-project .box.bottom>div {
  display: flex;
  align-items: center;
  flex-direction: row;
}

.project.carousel-project .box .label-institution {
  color: var(--darkGrey);
}

.project.carousel-project .box {
  padding-top: 45px;
}

.project.carousel-project .box.top {
  padding-top: 0px;
  display: block;
}


.project.carousel-project .topic {
  top: -5px;
  right: 0px;
  position: relative;
  display: block;
}

/*SMALL*/
.project-size-small {
  max-width: 358px;
  background: #F4F2F0 url(../assets/pattern-lines-projects.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.project-size-small .bg-img {
  display: none;
}

.project-size-small .project-title a {
  color: var(--darkGrey);
  font-size: 1.5rem;
  line-height: 1.8rem;
}


/*MEDIUM & LARGE*/

.project-size-medium .box .bg-img:after,
.project-size-large .box .bg-img:after {
  display: block;
  position: absolute;
  background: linear-gradient(rgba(0,0,0,0.36), rgba(0,0,0,0.62));
  content: "";
  width: 100%;
  height: 100%;
  z-index: 1;
  top: 0;
}


.project-size-medium,
.project-size-large {
  /* min-height: 730px;
  width: 746px;
  height: 746px; */
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.6));
}

.project-size-medium {
  /* max-width: 358px; */
}

.project-size-medium .project-title a {
  font-size: 1.875rem;
}

.project-size-large .project-description,
.project-size-medium .project-description {
  display: block;
}

.project-size-large .project-description p,
.project-size-medium .project-description p {
  color: #fff;
  font-size: var(--small-font-size);
  line-height: 1.4rem;
}

/*
.project-description p::before{
  margin-top: 40px;
  margin-bottom: 40px;
  content: '';
  width: 60px;
  border: 2px solid var(--green);
  display: block;
}
*/


 .project-date {
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
}

.project-size-small:after,
.project-size-medium:after,
.project-size-large:after {
  content: "";
  background: var(--green);
  width: 95%;
  height: 9px;
  position: absolute;
  bottom: -9px;
  left: 50%;
  border-radius: 0px 0px 8px 8px;
  transform: translate(-50%);
}


/*RELATED PROJECT*/
.node--type-event .field--name-field-related-project .field--type-entity-reference {
  display: none;
}

.field--name-field-related-project .news__project {
  margin-top: 60px;
}

.field--name-field-related-project .field--type-entity-reference {
  margin: 0;
}

.field--name-field-related-project .node--type-project {
  border-radius: 8px;
  box-shadow: 0px 0px 10px rgba(0,0,0,0.11);
  background: #f3f0ed url(../assets/bg-related-project-tiles-waves.png) bottom center no-repeat;
  padding: 20px 25px 18px;
  background-size: cover;
}

.field--name-field-related-project .node--type-project .container {
  padding: 0;
}

.field--name-field-related-project .node--view-mode-teaser .field--type-image img {
  margin-bottom: 5px;
  max-height: 60px;
  width: auto;
}


.field--name-field-related-project .node__content {
  margin: 0;
}

.field--name-field-related-project .field--name-field-common-topic .field__item {
  top: 32px;
  right: 27px;
  font-size: 0;
  width: 23px;
  height: 23px;
  border-radius: 4px;
  z-index: 9;
  position: absolute;
}



.field--name-field-related-project .node--type-organization .node__content {
  padding: 0;
  display: flex;
  align-items: center;
}

.field--name-field-related-project .node--view-mode-teaser .field--name-field-project-lead-organization .field__label {
  margin-bottom: 9px;
}


.field--name-field-related-project .node--view-mode-teaser h2.node__title__project {
  margin: 0;
  padding: 0;
  margin-bottom: .5rem;
}

.field--name-field-related-project .node--view-mode-teaser .field--name-field-project-lead-organization .field__label,
.field--name-field-related-project .node--view-mode-teaser .node--type-organization .node__title {
  font-size: var(--xsmall-font-size);
}




.node--view-mode-teaser {
  border: 0;
  padding: 0;
  margin: 0;
}

.field--name-field-related-project .node--type-project {
  position: relative;
}

.field--name-field-related-project .node--type-project:after {
  display: block;
  position: absolute;
  left: 50%;
  bottom: -6px;
  background: var(--green);
  content: "";
  border-radius: 0px 0px 6px 6px;
  width: 93%;
  height: 6px;
  z-index: 0;
  transform: translate(-50%);
}

.project.carousel-project a {
  color: var(--darkGrey);
  line-height: 1.4;
  font-size: var(--large-font-size);
  font-family: 'Merriweather';
  font-weight: 700;
  padding: 0;
  display: block;
  font-style: normal;
}

.field--name-field-related-project .field-project-start-date {
  display: inline-block;
  margin-bottom: 10px;
  background-color: var(--green);
  color: #fff;
  padding: 4px 12px;
  border-radius: 10px;
  font-family: Ubuntu;
  font-size: var(--xsmall-font-size);

}



.field--name-field-related-project .node__title .field--name-title {
  color: var(--darkGrey);
  line-height: 1.4;
  font-size: 1.25rem;
  font-family: 'Merriweather';
  font-weight: 400;
  padding: 0;
  display: block;
  font-style: normal;
}


@media (max-width:1200px) {
  .project.carousel-project .box a {
    font-size: var(--large-font-size);
  }
}

@media (max-width:576px) {
  .project.carousel-project {
    background-size: cover;
    min-height: 280px;
    margin: 0;
    width: 100%;
    padding: 36px 15px 35px 15px;
  }

  .project {
    padding: 0px;
  }

  div.archived-project {
    padding: 20px 49px 18px 25px;
    background-position-x: -2px;
  }

  div.archived-project-title a {
    font-size: 1.4rem;
    line-height: 1.4;
  }

  div.archived-project-description p,
  div.archived-project-description {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  div.project.carousel-project .box a {
    font-size: 1.4rem;
  }

  div.mini-home .news .box time {
    font-size: 1.125rem;
  }

}
