.page-content-header{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.page-content-header-item-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  -o-object-fit: cover;
}

.page-content-header-item-subtitle{
  font-size: 0.8rem !important;
}

.page-content-header-item-title{
  background-color: var(--primary-color);
  padding: 1rem;
  text-align: center;
  width:  100%;
  height: 100%;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-content-header-item-text{
  font-family: 'Playfair Display', serif;
  background-color: var(--green-color);
  font-size: 0.85rem;
  padding: 1rem;
}

@media screen and (min-width: 768px) {
  .page-content-header{
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 300px;
  }
  
  .page-content-header-item-title{
    position: relative;
  }

  .page-content-header-item-title{
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
  }
  .page-content-header-item-block{
    text-align: right;
  }
  .page-content-header-item-title span:nth-child(1){
    font-size:  1.3rem;
    text-align: right;
  }
  .page-content-header-item-subtitle{
    font-size: 0.8rem !important;
  }
}

@media screen and (min-width: 1024px) {
  .page-content-header{
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
  }
  .page-content-header-item-title span:nth-child(1){
    font-size:  1.8rem;
  }
}

@media screen and (min-width: 1200px) {
  .page-content-header-item-text{
    font-size: 1rem;
  }
  .page-content-header-item-title span:nth-child(1){
    font-size:  2rem;
  }
}

.gallery-container, .gallery-container-with-text, .gallery-container-profile{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1rem auto;
  justify-content: center;
}

.gallery-item-img{
  height: 100%;
  transition: all 0.5s ease;
}

.gallery-item-img:hover{
  opacity: 0.8;
  transform: scale(0.95);
}


.gallery-item-img a img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  -o-object-fit: cover;
}

.gallery-item-text{
  /* font-family: 'Playfair Display', serif; */
  font-family: "Roboto", arial, sans-serif;
  background-color: var(--green-color);
  height: 100%;
  padding: 1rem;
  word-break: keep-all;
  font-size: 0.85rem;
  position: relative;
}

.gallery-item-text span{
  position: inherit;
  z-index: 2;
}

.gallery-fond-fougere{
  width: 100%;
  height: 100%;
  object-fit: cover;
  -o-object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  opacity: 0.6;
}

@media screen and (min-width: 768px) {
  .gallery-container{
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 300px;
  }
  .gallery-container-with-text{
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 300px 300px;
  }

  .gallery-container-profile{
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 400px;
  }

  .gallery-photo-right div:nth-child(1){
    grid-column-start: 1;
    grid-row-start: 1;
  }
  .gallery-photo-right div:nth-child(2){
    grid-column-start: 1;
    grid-row-start: 2;
  }
  .gallery-photo-right div:nth-child(3){
    grid-column-start: 2;
    grid-column: span 2;
    grid-row-start: 2;
    grid-row: span 2;
  }

  .gallery-photo-left div:nth-child(1){
    grid-column-start: 1;
    grid-column: span 2;
    grid-row-start: 1;
    grid-row: span 2;
  }
  .gallery-photo-left div:nth-child(2){
    grid-column-start: 3;
    grid-row-start: 1;
  }
  .gallery-photo-left div:nth-child(3){
    grid-column-start: 3;
    grid-row-start: 2;
  }

}

@media screen and (min-width: 1024px) {
  .gallery-container, .gallery-container-with-text{
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-container-profile{
    grid-template-rows: 500px;
  }
}
@media screen and (min-width: 1200px) {
  .gallery-item-text{
    font-size: 1rem;
  }
  .gallery-container-profile{
    grid-template-rows: 600px;
  }
}

.text-right .gallery-item-text{
  order: 2;
}

.text-right .gallery-item-img{
  order: 1;
}

.portfolio-item .item {
  position: relative;
  height: 250px;
  margin-bottom: 25px;
  transition: all 0.5s ease;
}

.portfolio-item .item.item:hover {
  opacity: 0.8;
  transform: scale(0.95);
}

.portfolio-item .item img {
  /* position: relative; */
  width: 100%;
  height: 100%;
  object-fit: cover;
  -o-object-fit: cover;
}
/* .portfolio-item .item a img:hover::after {
  background: rgba(0, 0, 0, 0.8) none repeat scroll 0 0;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
} */
