/* ===== IDŐVONAL ===== */
.timeline {
  position: relative;
  margin: 30px 0;
  padding-left: 30px;
}

/* VONAL */
.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #999;
  border-radius: 3px;
}
/* ESEMÉNY FEJLÉC */
.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.event-header h3 {
  margin: 0;
}

/* ESEMÉNY */
.event {
  position: relative;
  background: white;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-left: 30px;
}

/* PONT */
.event::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 25px;
  width: 16px;
  height: 16px;
  background: #006400;
  border-radius: 50%;
  border: 3px solid white;
}

/* DÁTUM */
.event-date {
  font-size: 0.9em;
  color: #555;
  margin-bottom: 10px;
}

/* GALÉRIA */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 15px 0;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* ===== JELENTKEZÉS ===== */
.event-form {
  background: #f4f4f4;
  padding: 15px;
  border-radius: 10px;
  margin-top: 15px;
}

.event-form h4 {
  margin-top: 0;
}

.event-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.event-form input:focus {
  outline: none;
  border-color: #006400;
}

/* GOMB */
.event-form button {
  width: 100%;
  padding: 12px;
  background: #006400;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
}

.event-form button:hover {
  background: #004d00;
}

/* ===== MOBIL ===== */
@media (max-width: 768px) {

  .timeline {
    padding-left: 15px;
  }

  .timeline::before {
    left: 0;
  }

  .event {
    margin-left: 20px;
  }

  .event::before {
    left: -18px;
  }
}
.gallery-btn {
  margin-top: 10px;
  padding: 8px 14px;
  background: #222;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9em;
}

.gallery-btn:hover {
  background: #000;
}

/* MODAL */
.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.gallery-modal.open {
  display: flex;
}

.gallery-content {
  background: white;
  padding: 20px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  border-radius: 12px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
}

.gallery-close {
  text-align: right;
  margin-bottom: 10px;
}

.gallery-close button {
  background: #006400;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.gallery-btn {
  white-space: nowrap;
  padding: 6px 12px;
  font-size: 0.85em;
}