/*************** En-tête ***************/
main
{
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto;
    gap: 1rem;
}
.boxImg
{
    grid-column: span 1;
    grid-row: auto; 
    width: auto;
    height: auto;
}
.contentImg
{
    background-color: black;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contentImg img
{
    max-height: 250px;
    max-width: 250px;
    filter: brightness(50%);
    -webkit-filter: brightness(50%);
}
.contentImg img:hover
{
    filter: brightness(100%);
    -webkit-filter: brightness(100%);
}
.description 
{
    display: none;
}

.modal {
  display: none;
  position: fixed;
  width: 100vw;
  height: 100vh;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  top: 0;
  left: 0;
  align-items: center;
  justify-content: center;
}
.modal.open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
  z-index: 100;
  display: flex;
}
.modal-bg {
  position: absolute;
  background: rgb(0, 0, 0,0.7);
  width: 100%;
  height: 100%;
}
.modal-container {
  border-radius: 10px;
  position: relative;
  padding: 30px;
  max-height: 100%;
  max-width: 100%;
  text-align: center;
}
.modal-container img
{
  max-height: 70vh;
  max-width: 95vh;
  overflow: auto;
  margin: auto;
}
.modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
  outline: none;
  appearance: none;
  color: red;
  background: none;
  border: 0px;
  font-weight: bold;
  cursor: pointer;
  font-size: 2rem;
}
.infoMeta
{
  font-size: 1rem;
  max-height: 20vh;
  max-width: 95vh;
  overflow: auto;
  text-align: left;

}
/******************************/
/* Style pour écran < 1200 px */
/******************************/
@media only screen and (max-width: 1200px) 
{
    main
    {
        grid-template-columns: repeat(4, 1fr);   
        gap: 0.8rem;
    }

}
/******************************/
/* Style pour écran < 1024 px */
/******************************/
@media only screen and (max-width: 1024px) 
{
    main
  {
      grid-template-columns: repeat(3, 1fr);  
      gap: 0.6rem;
  }
}

/******************************/
/* Style pour écran < 767px */
/******************************/
@media only screen and (max-width: 767px) 
{
  main
  {
      grid-template-columns: repeat(1, 1fr);  
      gap: 0.5rem; 
  }  
  .contentImg img
  {
      max-height: 250px;
      max-width: 250px;
      filter: brightness(100%);
      -webkit-filter: brightness(100%);
  }
  .modal-container {
    border-radius: 10px;
    position: relative;
    padding: 5px;
    max-height: 100%;
    max-width: 100%;
    overflow: auto;
  }
  .modal-container img
  {
    max-height: 100%;
    max-width: 100%;
  }
  .infoMeta
  {
    font-size: 0.90rem;
    max-height: 80vh;
    overflow: auto;
  }
}

  
  
  