.gallery {
  max-width: 1000px;
  margin: 20px 15px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.gallery img {
  width: 100%;
  display: block;
  cursor: pointer;
  border-radius: 8px;
  transition: transform .2s ease;
}
.gallery img:hover { transform: scale(1.03); }

/* Galéria overlay */
.gallery-wrapper {
  position: relative;
  min-height: 200px; /* hogy legyen hely a betöltőnek */
}
#gallery-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #e5e6e8;
  color:  rgb(255, 128, 0);
  font-family: sans-serif;
  font-size: 1.2rem;
  z-index: 10;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color:  rgb(255, 128, 0);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 9999;
}
#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}
#lightbox button {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 10px 16px;
  border-radius: 50%;
  cursor: pointer;
}
#lightbox button:hover {
  background: rgba(255,255,255,0.3);
}
