/* --- Gallery Redesign (Desktop Masonry) --- */
.gallery-desktop {
  display: none;
}
.gallery-mobile {
  display: block;
}

@media (min-width: 992px) {
  .gallery-desktop {
    display: block;
  }
  .gallery-mobile {
    display: none;
  }
}

.masonry-grid {
  column-count: 3;
  column-gap: 20px;
}

@media (min-width: 1400px) {
  .masonry-grid {
    column-count: 4;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  background: #fff;
}
.masonry-item img {
  width: 100%;
  border-radius: 8px;
  display: block;
  transition: transform 0.5s ease;
}
.masonry-item:hover img {
  transform: scale(1.05);
}
.masonry-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  padding: 40px 15px 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  pointer-events: none;
}
.masonry-item:hover .masonry-caption {
  opacity: 1;
}
.masonry-caption h3 {
  font-family: 'Playfair Display', serif; 
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #ffd700;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}
.masonry-caption p {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}
