/* Gallery — masonry layout matching original Wix gallery */

.puppies-gallery-page {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.puppies-gallery-page .container {
  max-width: 1100px;
}

.puppies-gallery-page__lead {
  margin-bottom: 1.75rem;
}

.gallery-masonry {
  column-count: 3;
  column-gap: 1.25rem;
}

.gallery-masonry__item {
  break-inside: avoid;
  margin: 0 0 1.25rem;
  background: #fff;
  padding: 6px;
  box-shadow: 0 6px 24px rgba(46, 44, 40, 0.1);
  border-radius: 2px;
  overflow: hidden;
  transition:
    transform 0.45s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow 0.45s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.gallery-masonry__item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 40px rgba(46, 44, 40, 0.18);
  z-index: 2;
  position: relative;
}

.gallery-masonry__item img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  transition: transform 0.6s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.gallery-masonry__item:hover img {
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .gallery-masonry {
    column-count: 2;
    column-gap: 1rem;
  }
}

@media (max-width: 560px) {
  .gallery-masonry {
    column-count: 1;
  }

  .gallery-masonry__item {
    margin-bottom: 1rem;
  }
}
