body {
  font-family: Arial, sans-serif;
  background-color: #1e1e1e;
  color: #f0f0f0;
  margin: 0;
  padding: 20px;
}

/* Fejléc */
header {
  margin-bottom: 25px;
}

h1 {
  margin-top: 0;
  margin-bottom: 15px;
}

/* Kereső */
#search {
  width: 100%;
  max-width: 500px;
  padding: 12px;
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #444;
  border-radius: 8px;
  box-sizing: border-box;
}

/* Statisztika */
#stats {
  margin-top: 10px;
  margin-bottom: 15px;
  color: #aaaaaa;
}

/* Kategóriák */
#categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

#categories button {
  background: #2f2f2f;
  color: #fff;
  border: 1px solid #555;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

#categories button {
  background: #444;
}

/* Galéria */
#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* Kártya */
.card {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  /*object-fit: cover;*/
  cursor: pointer;
  display: block;
}

.card h3 {
  margin: 12px;
  margin-bottom: 6px;
  font-size: 18px;
}

.card p {
  margin: 12px;
  margin-top: 0;
  color: #bdbdbd;
}

/* Kategória címke */
.category-tag {
  display: inline-block;
  margin: 0 12px 12px;
  padding: 4px 10px;
  background: #444;
  border-radius: 20px;
  font-size: 12px;
  color: #ddd;
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightbox.hidden {
  display: none;
}

#lightbox-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

#close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  cursor: pointer;
  color: white;
}