/* GALÉRIA RÁCS */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* LINK KÁRTYA */
.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* HOVER ZOOM */
.gallery-item:hover {
  transform: scale(1.03);
}

/* SÖTÉT ÁTLÁTSZÓ OVERLAY */
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  transition: background 0.3s ease;
}

.gallery-item:hover::before {
  background: rgba(0,0,0,0.15);
}

/* ALSÓ CÍM SÁV */
.gallery-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.55);
  text-align: center;
  font-size: 16px;
}

/* SZÖVEG A KÁRTYÁN BELÜL */
.gallery-item span {
  position: relative;
  z-index: 2;
}

/* ALGALÉRIA */
.algaleria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 30px;
  max-width: 1200px;
  margin: auto;
}

.algaleria img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
object-position: top;
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

#imgModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#modalImg {
  max-width: 90%;
  max-height: 90%;
}

/* ===== LIGHTBOX NYILAK ===== */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 60px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  opacity: 0.6;
  transition: 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;


  padding: 0 15px;   
  height: 34px;

  background: #222;
  color: #fff;

  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;

  text-decoration: none;
  border-radius: 4px;

  cursor: pointer;

  display: flex;
  width: fit-content;
  margin-left: auto;
}


.back-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-icon svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}
