/**
 * Project Page
 */

.project {
  color: var(--color-neutral--1);
}
.project__title h1 {
  color: var(--color-secondary--1);
  margin: 0 0 0.5rem;
}
.project__subtitle {
  max-width: 210px;
}
.project__subtitle p {
  margin: 0;
  font-family: var(--font-fraunces);
  color: var(--color-neutral--1);
}
.project__image img{
  margin: 0 auto;
}
.project__header {
  margin-bottom: 5rem;
}
.project__header-top {
  display: flex;
  flex-direction: column-reverse;
  padding: 2rem 0 1rem;
  position: relative;
}
.project__header-top-content {
  margin: 1rem 0;
}
.project__content-sidebar {
  display: grid;
  grid-template-columns: repeat(2, calc(50% - 0.75rem));
  grid-auto-rows: 1fr;
  gap: 1.5rem;
}
.project__content-sidebar-part {
  font-family: var(--font-fraunces);
  padding-right: 1rem;
}
.project__content-sidebar-part p{
  margin: 0;
  color: var(--color-neutral--1);
}
p.project__content-sidebar-title {
  font-family: var(--font-albertsans);
  color: var(--color-neutral--2);
  font-weight: 800;
  line-height: 125%;
  font-size: var(--title-m);
  margin: 0.5rem 0;
}
.project__description {
  margin: 1rem 0;
  color: var(--color-neutral--1);
}
.project__description h2{
  margin: 0;
}
.project__website {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  font-weight: 700;
  line-height: 150%;
  color: var(--color-neutral--1);
}
.project__content-sidebar-part--date .datetime{
  color: var(--color-neutral--1);
}
.project__website span {
  display: block;
  position: relative;
  z-index: 1;
}
.project__website span::before {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background-color: var(--color-secondary--4);
  transition: 0.2s;
  z-index: -1;
}
.project__website:hover span::before{
  background-color: var(--color-highlight--4);
}
.project__website:hover {
  text-decoration: none;
}
.project__website::before{
  content: "";
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("../../images/icons/+_orange.svg");
  transition: 0.2s;
}
.project__website:hover::before{
  transform: rotate(90deg);
  background-image: url("../../images/icons/+_blue.svg");
}
@media all and (min-width: 500px){
  .project__header-top {
    padding: 2rem 0;
  }
  .project__content-sidebar {
    grid-template-columns: repeat(3, calc(33% - 1rem));
  }
}
@media all and (min-width: 600px){
  .project__image img {
    margin: 0 0 0 auto;
  }
  .project__header-top {
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 1.5rem;
  }
  .project__header-top-content {
  }
  .project__title h1 {
    text-align: right;
  }
  .project__subtitle{
    text-align: right;
    margin-left: auto;
  }
  .project__description {
    margin: 2rem 0;
  }
}
@media all and (min-width: 768px){
  .project__header-top-content {
    width: calc(50% - 1.5rem);;
  }
  .project__image{
    width: 50%;
  }
}
@media all and (min-width: 1024px){
  .project__header-top {
    padding: 3rem 0 2rem;
  }
  .project__header-top-content {
    width: 25%;
  }
  .project__image{
    width: 75%;
  }
  .project__title{
    transform: translateX(30px);
  }
  .project__content {
    display: grid;
    grid-template-columns: calc(25% - 1rem) calc(75% - 1rem);
    gap: 2rem;
  }
  .project__content-sidebar {
    grid-template-columns: 100%;
    grid-auto-rows: unset;
  }
  .project__description {
    margin: 0;
  }
}
@media all and (min-width: 1400px){
  .project__header-top {
    padding: 3rem 0 4rem;
  }
}


/**
 * Custom Styles
 */

.project.avene-custom-styles .project__title h1{
  line-height: 100%;
}
.project.avene-custom-styles .project__title em{
  display: inline-block;
}
@media all and (min-width: 1024px){
  .project.avene-custom-styles .project__title em{
    transform: translateX(-50px);
  }
}

.project.fibre-excellence-custom-styles .project__title em{
  display: inline-block;
}
@media all and (min-width: 1024px){
  .project.fibre-excellence-custom-styles .project__title em{
    transform: translateX(-50px);
  }
}


/**
 * Project Teaser
 */

.project-teaser {
  display: block;
  width: 100%;
  max-width: 341px;
  color: var(--color-neutral--1);
  text-align: center;
}
.project-teaser:hover {
  text-decoration: none;
}
.project-teaser__title {
  margin-top: 1.5rem;
}
.project-teaser__title p{
  font-size: var(--title-l);
  margin: 0;
  font-family: var(--font-fraunces);
}
.project-teaser__info {
  margin: 0;
  align-items: center;
  font-family: var(--font-fraunces);
  font-weight: 400;
  color: var(--color-neutral--2);
}
.project-teaser__more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  font-weight: 700;
  line-height: 150%;
  color: var(--color-neutral--1);
  margin-left: calc(-20px - 1rem);
}
.project-teaser__more span {
  display: block;
  position: relative;
  z-index: 1;
}
.project-teaser__more span::before {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background-color: var(--color-secondary--4);
  transition: 0.2s;
  z-index: -1;
}
.project-teaser:hover .project-teaser__more span::before{
  background-color: var(--color-highlight--4);
}
.project-teaser__more::before{
  content: "";
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("../../images/icons/+_orange.svg");
  transition: 0.2s;
}
.project-teaser:hover .project-teaser__more::before{
  transform: rotate(90deg);
  background-image: url("../../images/icons/+_blue.svg");
}
@media all and (min-width: 768px){
  .project-teaser {
    max-width: 511px;
  }
  .project-teaser__title {
    margin-top: 2.5rem;
  }
}
@media all and (min-width: 1024px){
  .project-teaser {
    max-width: 682px;
  }
}

.project-teaser--large {
  max-width: 341px;
}
@media all and (min-width: 425px){
  .project-teaser--large {
    max-width: 702px;
  }
}
@media all and (min-width: 768px){
  .project-teaser--large {
    max-width: 1053px;
  }
}
@media all and (min-width: 1440px){
  .project-teaser--large {
    max-width: 1404px;
  }
}
