*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;     
    }

     .foto-galeria{
    padding: 0px 10px 50px 10px;
    background-color: white;
    
  }

  

  .galeria{
      display: flex;
     flex-flow: wrap;
justify-content: space-around;
margin: auto;
       grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      grid-auto-rows: minmax(250px, auto);
      gap: 20px;
      padding: 50px;
      overflow: hidden;
      background: white;
  }
  
   
      
  .galeria img{
      width: 250px;     
      height: auto;
      margin: 5px ;
      object-fit: cover;
      border-radius: 25px;
      transition: 0.3s;
  }
  
  .galeria a:hover img{
     transform: scale(1.1);
          border-radius: 15px;

  }




  
      
  @media screen and(min-width: 640px){
      .galeria{
          grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

}

@media only screen and (max-width: 768px){
    .content_section_ph{
    background-position: left 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: left 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: right 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;
    }
}