.photo-gallery {
  padding: 100px 0;
  background: var(--light);
}

.photo-gallery h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: var(--blue-dark);
}

.masonry-grid {
  column-count: 3;
  column-gap: 20px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease;
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
  border-radius: 12px;
}

.masonry-item:hover img {
  transform: scale(1.05);
}

/* Overlay Effects */
.bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.masonry-item:hover .bg {
  opacity: 1;
}

.content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: #fff;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.masonry-item:hover .content {
  opacity: 1;
  transform: translateY(0);
}

.content p:first-child {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.content p:nth-child(2) {
  font-size: 14px;
  opacity: 0.9;
}

.content div i {
  margin-right: 10px;
  font-size: 18px;
  transition: color 0.3s ease;
}

.content div i:hover {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 1024px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .masonry-grid {
    column-count: 1;
  }
}
