#gallery {
  padding: 60px 20px;
  text-align: center;
}

.gallery-filters {
  margin-bottom: 25px;
}

.gallery-filters button {
  padding: 8px 18px;
  margin: 5px;
  border: none;
  background: #eee;
  border-radius: 20px;
  cursor: pointer;
}
 
/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: auto;
}

/* SQUARE ITEMS */
.gallery-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s ease;
}

.gallery-item.show {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.gallery-item {
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.6s ease;
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.gallery-item {
  transition: 
    opacity 0.4s ease,
    transform 0.5s ease,
    filter 0.4s ease;
}

.gallery-item.hide {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}
.gallery-item img {
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
#gallery h2 {
  display: inline-block;
  padding: 10px 26px;
  background: linear-gradient(135deg, #d32f2f, #9a0007);
  color: #fff;
  border-radius: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 25px rgba(211,47,47,0.4);
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

