/* Waterfall Layout Styles */
.waterfall-container {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.waterfall-column {
  flex: 1 1 0%; /* Explicitly set flex-basis to 0 for equal distribution */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0; /* Prevent flex overflow */
  width: 100%; /* Ensure column has width */
}

.waterfall-column-spacer {
  width: 100%;
  flex: 0 0 auto;
  pointer-events: none;
  overflow-anchor: none;
}

.photo-card {
  width: 100%;
  break-inside: avoid;
  display: block;
  /* Ensure aspect-ratio works correctly */
  position: relative;
  contain: layout;
}

.photo-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Keep existing hover and skeleton styles if they were inline or in other files, 
   but ensure they work here. The plan mentions keeping them. */
.img-hover-zoom {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.img-hover-zoom:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
