/* ---------- ALAP ---------- */
body {
  margin: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: #fff;
  color: #111;
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

header {
  text-align: center;
  padding: 4rem 1rem 2rem;
}

header h1 {
  font-size: 2.8rem;
  margin: 0;
  letter-spacing: 1px;
}

header p {
  margin-top: 0.5rem;
  color: #555;
  font-size: 1.1rem;
}

/* ---------- GOMBOK ---------- */
.btn-yellow {
  display: inline-block;
  background-color: #f4d03f;
  color: #111;
  padding: 0.7rem 1.5rem;
  margin-top: 1rem;
  font-weight: bold;
  border-radius: 4px;
  transition: background 0.3s, transform 0.2s;
}

.btn-yellow:hover {
  background-color: #e1b12c;
  transform: translateY(-2px);
}

/* ---------- SZŰRŐGOMBOK ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.filter-btn {
  background-color: #f4d03f;
  color: #111;
  border: none;
  padding: 0.7rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.filter-btn:hover {
  background-color: #e1b12c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.filter-btn.active {
  background-color: #e1b12c;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ---------- GALÉRIA ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1300px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  background: #f7f7f7;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  border-radius: 10px;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* ---------- LIGHTBOX ---------- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 10px;
  animation: zoom 0.3s ease;
}

@keyframes zoom {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: #f4d03f;
}

#modal-caption {
  margin: auto;
  display: block;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  font-size: 1rem;
  height: 30px;
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #777;
  border-top: 1px solid #eee;
}

/* ---------- RESZPONZÍV ---------- */
@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }
  header p {
    font-size: 1rem;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }
}
