/* Galerija projekta */
.galerija { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #121415; color: #fff; overflow: hidden; }
.galerija[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; grid-template-columns: minmax(0,1fr); }
.galerija::backdrop { background: #121415; }
.galerija-vrh { display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem .85rem 1.25rem; }
.galerija-naslov { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.galerija-brojac { color: rgba(255,255,255,.7); font-size: .92rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.galerija-zatvori { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font: 400 1.6rem/1 var(--font); cursor: pointer; flex: none; }
.galerija-zatvori:hover { background: rgba(255,255,255,.22); }
.galerija-pozornica { position: relative; min-height: 0; overflow: hidden; touch-action: pan-y; }
.galerija-pozornica img { position: absolute; top: 0; bottom: 0; left: .5rem; right: .5rem; margin: auto; max-width: calc(100% - 1rem); max-height: 100%; width: auto; height: auto; border-radius: 12px; display: block; user-select: none; -webkit-user-drag: none; }
.galerija-strelica { z-index: 2; position: absolute; top: 50%; translate: 0 -50%; width: 3rem; height: 3rem; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: grid; place-items: center; }
.galerija-strelica:hover { background: rgba(255,255,255,.26); }
.galerija-strelica svg { width: 1.4rem; height: 1.4rem; }
.galerija-prije { left: .75rem; } .galerija-dalje { right: .75rem; }
@media (min-width: 900px) { .galerija-pozornica img { left: 5rem; right: 5rem; max-width: calc(100% - 10rem); } .galerija-prije { left: 1.25rem; } .galerija-dalje { right: 1.25rem; } }
.galerija-dno { padding: .75rem 1rem calc(1rem + env(safe-area-inset-bottom)); display: grid; gap: .7rem; }
.galerija-opis { color: rgba(255,255,255,.82); font-size: .92rem; text-align: center; max-width: 60ch; margin: 0 auto; min-height: 1.4em; }
.galerija-trake { display: flex; gap: .45rem; overflow-x: auto; justify-content: safe center; padding-bottom: .15rem; scrollbar-width: none; }
.galerija-trake::-webkit-scrollbar { display: none; }
.galerija-trake button { flex: none; width: 3.4rem; height: 3.4rem; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #2a2d2f; cursor: pointer; opacity: .55; }
.galerija-trake button[aria-current="true"] { border-color: var(--narancasta); opacity: 1; }
.galerija-trake img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galerija[data-jedna] .galerija-strelica, .galerija[data-jedna] .galerija-trake { display: none; }

.galerija-poveznica { justify-self: center; color: #fff; font-weight: 600; font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; }
.galerija-poveznica:hover { color: #FFD3A8; }
