.galeria-section {
  background-color: var(--white);
  padding: 5rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

.galeria-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--cyclamen);
  font-weight: 700;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.filter-buttons button {
  background-color: var(--turquoise);
  border: none;
  color: var(--black);
  padding: 1rem 2.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.filter-buttons button:hover,
.filter-buttons button.active {
  background-color: var(--cyclamen);
  color: var(--white);
  transform: scale(1.05);
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  flex: 1 1 260px;
  max-width: 280px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
  background: white;
  padding: 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  height: auto;
  object-fit: cover;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  font-weight: 500;
  border-radius: 12px;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.description {
  display: none;
}





/* === Modal Image === */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.modal .close:hover {
  transform: scale(1.2);
}

