/* Közös alapok minden verzióhoz (galéria-nagyító, mobil hívássáv). A verziók saját theme.css-e erre épül. */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 72px; }
img { max-width: 100%; height: auto; }

.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1rem calc(.9rem + env(safe-area-inset-bottom, 0px));
  font-weight: 700; font-size: 1.1rem; text-decoration: none;
  box-shadow: 0 -4px 18px rgba(0,0,0,.18);
}
@media (max-width: 767.98px) { body { padding-bottom: 64px; } }
@media (min-width: 768px) { .callbar { display: none; } }

.gallery-item { display: block; overflow: hidden; cursor: zoom-in; }
.gallery-item img { display: block; width: 100%; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed; inset: 0; z-index: 2000; display: none;
  align-items: center; justify-content: center;
  background: rgba(10,10,10,.92); padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-height: 82vh; max-width: 100%; width: auto; border-radius: 6px; }
.lightbox figcaption { color: #ddd; margin-top: .75rem; font-size: .95rem; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0;
  width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1;
}
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 575.98px) { .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; } }
