/* Pregled fotografija preko cijelog zaslona (js/pregled.js): galerija, plakati, O nama, novosti. Boje iz tokens.css (--scrim, --on-scrim…). */
.gl-lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--scrim); color: var(--on-scrim); }
.gl-lb[open] { display: grid; grid-template-rows: auto 1fr; animation: gl-fade .18s ease-out; }
.gl-lb::backdrop { background: transparent; }
@keyframes gl-fade { from { opacity: 0; } }
.gl-lb__bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.gl-lb__count { margin: 0; font: 600 14px/20px var(--font-text); font-variant-numeric: tabular-nums; opacity: .8; }
.gl-lb__btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--on-scrim-soft); color: var(--on-scrim); cursor: pointer; }
.gl-lb__btn:hover { background: var(--on-scrim-hover); }
.gl-lb__btn:focus-visible { outline: 2px solid var(--on-scrim); outline-offset: 2px; }
.gl-lb__btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.gl-lb__stage { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 0; padding: 0 12px 16px; }
.gl-lb__fig { display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 12px; height: 100%; min-height: 0; margin: 0; touch-action: pan-y; }
.gl-lb__img { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; align-self: center; border-radius: 4px; user-select: none; transition: opacity .2s; }
.gl-lb__img.is-loading { opacity: .3; }
.gl-lb__img { cursor: zoom-out; }
.gl-lb__cap { display: grid; gap: 2px; max-width: 70ch; text-align: center; font: 400 15px/22px var(--font-text); }
.gl-lb__meta { font-size: 13px; opacity: .72; }
.gl-lb__cap:empty { display: none; }
@media (max-width: 640px) {
  .gl-lb__stage { grid-template-columns: minmax(0, 1fr); padding: 0 0 12px; }
  .gl-lb__nav { position: absolute; bottom: 12px; z-index: 1; }
  .gl-lb__nav--prev { left: 12px; } .gl-lb__nav--next { right: 12px; }
  .gl-lb__cap { padding: 0 64px; }
}
@media (prefers-reduced-motion: reduce) { .gl-lb__img { transition: none; } .gl-lb[open] { animation: none; } }
