/* Izgled sadržaja iz uređivača (Sadržaj) — isti u Minervi i na sajtu, za svaku temu.
   Prilog iz biblioteke Preuzimanja: <a class="cms-file cms-file-pdf"> <span class="cms-file-ico">PDF</span>
   <span class="cms-file-name">Naziv</span> <span class="cms-file-meta">PDF · 1,2 MB</span></a> [+ <a class="cms-file-btn">Preuzmi</a>] */
a.cms-file { display: inline-flex; align-items: center; gap: .45em; text-decoration: none; line-height: 1.35; padding: .1em 0; }
a.cms-file:hover .cms-file-name, a.cms-file:focus-visible .cms-file-name { text-decoration: underline; }
a.cms-file .cms-file-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; overflow-wrap: anywhere; }
.cms-file-ico { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6em; padding: .15em .35em; border-radius: .3em;
    font: 700 .68em/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: #4b5563; flex-shrink: 0; }
.cms-file-pdf .cms-file-ico { background: #b91c1c; }
.cms-file-doc .cms-file-ico, .cms-file-docx .cms-file-ico, .cms-file-odt .cms-file-ico, .cms-file-txt .cms-file-ico { background: #1d4ed8; }
.cms-file-xls .cms-file-ico, .cms-file-xlsx .cms-file-ico, .cms-file-ods .cms-file-ico, .cms-file-csv .cms-file-ico { background: #15803d; }
.cms-file-ppt .cms-file-ico, .cms-file-pptx .cms-file-ico { background: #c2410c; }
.cms-file-jpg .cms-file-ico, .cms-file-png .cms-file-ico, .cms-file-webp .cms-file-ico, .cms-file-gif .cms-file-ico { background: #0e7490; }
.cms-file-zip .cms-file-ico { background: #6b21a8; }
.cms-file-meta { font-size: .85em; opacity: .75; white-space: nowrap; }
a.cms-file-btn { display: inline-block; margin-left: .5em; padding: .35em .9em; border-radius: .35em; font-weight: 600; font-size: .9em;
    text-decoration: none; background: #00B4FF; color: #001F33; min-height: 2.2em; line-height: 1.5; }
a.cms-file-btn:hover, a.cms-file-btn:focus-visible { background: #001F33; color: #fff; }
a.cms-file-btn::before { content: "\2193\00a0"; }
.cms-table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.cms-table th, .cms-table td { border: 1px solid rgba(127, 127, 127, .4); padding: .45em .7em; vertical-align: top; }

/* Slike iz uređivača: <figure class="cms-img cms-img-{none|left|center|right|full} cms-img-w{25..100} [cms-img-round] [cms-img-shadow]"> */
figure.cms-img { margin: 1em 0; max-width: 100%; }
figure.cms-img img { display: block; width: 100%; height: auto; }
figure.cms-img figcaption { font-size: .88em; opacity: .8; margin-top: .4em; line-height: 1.4; }
figure.cms-img-w25 { width: 25%; } figure.cms-img-w33 { width: 33.333%; } figure.cms-img-w50 { width: 50%; }
figure.cms-img-w75 { width: 75%; } figure.cms-img-w100, figure.cms-img-full { width: 100%; }
figure.cms-img-center { margin-left: auto; margin-right: auto; }
figure.cms-img-left { float: left; margin: .3em 1.4em 1em 0; }
figure.cms-img-right { float: right; margin: .3em 0 1em 1.4em; }
figure.cms-img-round img { border-radius: 12px; }
figure.cms-img-shadow img { box-shadow: 0 8px 24px rgba(0, 0, 0, .22); }
figure.cms-img a.cms-img-zoom { cursor: zoom-in; display: block; }
/* na telefonu slike zauzimaju celu širinu (bez obavijanja teksta), da ostanu čitljive */
@media (max-width: 640px) {
    figure.cms-img-left, figure.cms-img-right { float: none; margin: 1em 0; }
    figure.cms-img[class*="cms-img-w"] { width: 100%; }
}
/* uvećanje slike (assets/cms-content.js) */
dialog.cms-zoom { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
dialog.cms-zoom::backdrop { background: rgba(0, 0, 0, .85); }
dialog.cms-zoom img { display: block; max-width: 96vw; max-height: 90vh; width: auto; height: auto; }
dialog.cms-zoom button { position: fixed; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 0;
    background: rgba(255, 255, 255, .9); color: #000; font-size: 28px; line-height: 1; cursor: pointer; }
dialog.cms-zoom p { color: #fff; text-align: center; margin: .5em 0 0; font-size: .95em; }
