*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;  
    }
  
    
  .galeria{
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      grid-auto-rows: minmax(300px, auto);
      gap: 20px;
      padding: 50px;
      overflow: hidden;
  }
  
   
      
  .galeria img{
      width: 80%;     
      object-fit: cover;
      border-radius: 10px;
      transition: transform 0.5s;
      margin: 10px 10px 10px 10px;
  }
  
  .galeria a:hover img{
     transform: scale(.9);
 
  }
  
 
  
      
  @media screen and(min-width: 640px){
      .galeria{
          grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

}

@media only screen and (max-width: 768px){
    .content_section_ph{
    background-position: center top;
    background-size: 70vh;
}}

@media only screen and (min-device-width: 375px) and (max-device-width: 812px) and (-webkit-device-pixel-ratio: 3){
    .content_section_ph{
        background-position: center top;
        background-size: 70vh;
    }
}


@media only screen and (min-device-width: 768px) and (max-device-width: 1024px)  and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2){
    .content_section_ph{
        background-position: center top;
    }
    
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1112px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 2){
    .content_section_ph{
        background-size: 70vh;
    }
}