/* Egyszerű, külső függőség nélküli lightbox galéria */
.static-gallery,
.modern-gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 18px 0 30px 0;
  clear: both;
}
.static-gallery li { margin: 0; padding: 0; }
.static-gallery a,
.modern-gallery a,
.modern-gallery-item a {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #f5f5f5;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.static-gallery a:hover,
.modern-gallery a:hover,
.modern-gallery-item a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
.static-gallery img,
.modern-gallery img,
.modern-gallery-item img {
  display: block;
  width: 100%;
  height: 145px;
  object-fit: cover;
  border: 0;
}
.modern-gallery-item { float: none !important; margin: 0 !important; }
.simple-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.88);
  padding: 30px 70px;
}
.simple-lightbox.is-open { display: flex; }
.simple-lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 90px);
  object-fit: contain;
  box-shadow: 0 15px 45px rgba(0,0,0,.45);
  background: #fff;
}
.simple-lightbox button {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.16);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  transition: background .2s ease;
}
.simple-lightbox button:hover { background: rgba(255,255,255,.28); }
.simple-lightbox-close {
  top: 18px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 34px;
}
.simple-lightbox-prev,
.simple-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 70px;
  border-radius: 8px;
  font-size: 44px;
}
.simple-lightbox-prev { left: 12px; }
.simple-lightbox-next { right: 12px; }
.simple-lightbox-counter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  color: #fff;
  text-align: center;
  font-size: 14px;
  opacity: .9;
}
@media (max-width: 700px) {
  .simple-lightbox { padding: 22px 50px; }
  .simple-lightbox-prev,
  .simple-lightbox-next { width: 42px; height: 60px; font-size: 34px; }
  .simple-lightbox-close { top: 10px; right: 12px; }
  .static-gallery,
  .modern-gallery { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 10px; }
  .static-gallery img,
  .modern-gallery img,
  .modern-gallery-item img { height: 115px; }
}
