/* --- Pinterest masonry via CSS columns --- */
.photo-gallery-container{
  display: block !important;          /* override Webflow grid/flex */
  column-count: 4;
  column-gap: 20px;
  padding: 0 30px;
}
/* @media (min-width: 1400px){
  .photo-gallery-container { column-count: 5; }
} */

@media (max-width: 991px){
  .photo-gallery-container{ column-count: 2; }
}
@media (max-width: 767px){
  .photo-gallery-container{ column-count: 1; }
}

.photo-gallery-container > .photo-wrapper{
  display: inline-block !important;   /* required for columns masonry */
  width: 100% !important;
  margin: 0 0 20px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;

  border-radius: 16px;
  overflow: hidden;
  background: #f5f5f5;
  transition: transform .18s ease, box-shadow .18s ease;
}

.photo-wrapper:hover{
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 40px rgba(0,0,0,.14);
}

/* IMPORTANT: don’t force heights */
.photo-wrapper{ 
  height: auto !important;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .6s ease forwards;
 }

 @keyframes fadeUp{
  to{
    opacity: 1;
    transform: translateY(0);
  }
}
.photo-wrapper img{
  width: 100%;
  height: auto;
  display: block;
}