/* Mini Lightbox */
.galerija { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.galerija img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 4px; }
.ml-thumb { cursor: zoom-in; transition: opacity .2s; }
.ml-thumb:hover { opacity: .85; }

.ml-lock, .ml-lock body { overflow: hidden; }

.ml-box {
  position: fixed; inset: 0; z-index: 99999;
  display: none; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .92);
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
}
.ml-box.ml-open { display: flex; }

.ml-fig { margin: 0; text-align: center; max-width: 92vw; }
.ml-img {
  max-width: 92vw; max-height: 84vh; display: block; margin: 0 auto;
  cursor: pointer; transition: opacity .25s;
  box-shadow: 0 4px 30px rgba(0, 0, 0, .5);
}
.ml-img.ml-fade { opacity: 0; }
.ml-cap { color: #ddd; font: 15px/1.4 sans-serif; padding-top: 10px; }

.ml-btn {
  position: absolute; background: none; border: 0; color: #fff;
  font-size: 34px; line-height: 1; padding: 16px; cursor: pointer;
  opacity: .7; transition: opacity .2s;
}
.ml-btn:hover, .ml-btn:focus-visible { opacity: 1; }
.ml-close { top: 4px; right: 8px; font-size: 42px; }
.ml-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.ml-next { right: 4px; top: 50%; transform: translateY(-50%); }
.ml-single .ml-prev, .ml-single .ml-next { display: none; }
.ml-count { position: absolute; top: 18px; left: 18px; color: #aaa; font: 14px sans-serif; }

/* Na telefonu strelice se kriju — listaš prstom */
@media (max-width: 600px) { .ml-prev, .ml-next { display: none; } }
