.gallery-filters {
  text-align: center;
  margin: 30px 0;
}

@media (max-width: 768px) {
  .gallery-filters {
      margin: 120px 0;
  }

}

.gallery-filters button {
  background-color: #eee;
  border: 1px solid #ccc;
  padding: 10px 16px;
  margin: 5px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.gallery-filters button:hover,
.gallery-filters button.active {
  background-color: #ccc;
}


/* Sekcja galerii */
.gallery-section {
  margin: 40px auto;
  padding: 0 20px;
  max-width: 1200px;
}

.gallery-section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 10px;
  color: #222;
}

/* Siatka kafelkowa */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* Kafelki */
.gallery-grid a {
  text-decoration: none;
  color: inherit;
  display: block;
  text-align: center;
}

/* Obrazki */
.gallery-grid picture {
  display: block;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Opisy pod zdjęciami */
.gallery-grid p {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
}

/* Responsywność dla bardzo małych ekranów */
@media (max-width: 480px) {
  .gallery-section h2 {
    font-size: 1.4rem;
  }

  .gallery-grid p {
    font-size: 0.85rem;
  }
}


.lb-close {
  display: block !important;
  z-index: 9999 !important;
}
