.grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  padding: 0px;
  grid-gap: 0px;
  float: left;
  }
  

.tn, .rdm, .abt { 
  cursor: pointer;
  aspect-ratio : 1/1;
  object-fit: cover;
  transition: 0.2s;
  }

.tn{
height: 100%;
width: 100%;
}  

.rdm, .abt{
transform: scale(0.95);
}

.tn:hover{
    transform: scale(0.90);
    filter: saturate(0) contrast(140%);
     }

.rdm:hover{
    transform: scale(0.90);
    filter: invert(17%) sepia(83%) saturate(7499%) hue-rotate(359deg) brightness(99%) contrast(108%);
     }
  
.abt:hover{
    transform: scale(0.90);
    filter: invert(65%) sepia(55%) saturate(6856%) hue-rotate(89deg) brightness(133%) contrast(111%);
}
  
  
  /* The Modal (background) */
.modal, .modal2 {
    cursor: zoom-out;
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: hidden; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
  }
  
  /* Modal Content (image) */
  .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    max-height: calc(95vh); /*taille img max si portrait*/
    object-fit: contain;
    overflow-y: hidden;
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1200px;
  }
  
  p{
    margin: auto;
    display: block;
    width: 100vw;
      
    position: absolute;
    bottom: 0;
  
    font-family: monospace;
    font-size: 12pt;
    color:white;
    padding: 10px;
    text-align:left;
  }

  .hl{color : yellow;}
  .hl:hover{color:blue;}
  
  /* Animation Modal */
  .modal-content {  
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.4s;
    animation-name: zoom;
    animation-duration: 0.4s;
  }
  
  @-webkit-keyframes zoom {
    from {-webkit-transform:translate(-50%,-50%) scale(0)} 
    to {-webkit-transform:translate(-50%,-50%) scale(1)}
  }
  
  @keyframes zoom {
    from {transform:translate(-50%,-50%) scale(0)} 
    to {transform:translate(-50%,-50%) scale(1)}
  }

  @media (max-width: 1000px) {
    .grid {
      grid-template-columns: auto auto auto auto auto auto auto auto auto;
      }
    }

      @media (max-width: 800px) {
        .grid {
          grid-template-columns: auto auto auto auto auto auto auto;
          }
        }

          @media (max-width: 600px) {
    .grid {
      grid-template-columns: auto auto auto auto auto;
      }
    .rdm{
      filter: invert(17%) sepia(83%) saturate(7499%) hue-rotate(359deg) brightness(99%) contrast(108%);
      }
    .abt{
      filter: invert(65%) sepia(55%) saturate(6856%) hue-rotate(89deg) brightness(133%) contrast(111%);
      }
    }
  