/* GORJE-706h «Izberi najboljše» (orodja/izbor.js): variant C of 706d - shared by the photographer's link and the office.
   A preview is a small tile (corner --r-polje), the star is pressed so it is round, a picked photo has a dark frame, no colour stripe. */
.e-glavno:has(.iz--pisarna) { max-width: calc(72rem + 2 * var(--rob)); }   /* a gallery wants more than the 50rem text column */
.iz-uvod { margin-bottom: 2rem; }
.of--izbor { max-width: 72rem; }
.of--izbor .of-izbor > .of-uvod { max-width: 40rem; }
.of-izbor, .of-poslji { display: grid; gap: 1.5rem; min-width: 0; }
.of-izbor[hidden], .of-poslji[hidden] { display: none; }
.of-izbor .of-uvod p { max-width: 60ch; }
.of-zavihki { margin-top: -0.5rem; }
.iz { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.iz p, .iz h2, .iz h3 { margin: 0; }
.iz-orodja { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; }
.iz-pomoc { margin-top: -0.5rem !important; max-width: 65ch; }
.iz-dogodek { display: grid; gap: 0.25rem; padding-top: 0.5rem; border-top: 1px solid var(--crta); }
.iz-telo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }

/* the grid of tiles */
.iz-mreza { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }  /* phone: always 2 (also inside an open series) */
@container (min-width: 34rem) { .iz-mreza { grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); } }
@container (min-width: 48rem) { .iz-mreza { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem; } }
.iz-kos { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.375rem; min-width: 0; }
.iz-slika { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-polje); background: var(--led); }
.iz-slika img { display: block; width: 100%; height: 100%; object-fit: cover; }
.iz-kos[data-izbran="da"] .iz-slika { box-shadow: 0 0 0 3px var(--noc); }
.iz-kos[data-izbran="da"] .iz-slika::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--bela); pointer-events: none; }

/* the star: 44 px to press, round, white on the photo; picked = night with a filled white star */
.iz-zvezda { position: absolute; right: 0.375rem; bottom: 0.375rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%;
  background: var(--bela); color: var(--noc); box-shadow: 0 2px 8px rgba(20, 38, 51, .22); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color calc(var(--cas-odziv) * var(--k, 1)) ease, scale calc(var(--cas-pritisk) * var(--k, 1)) var(--ease-out); }
.iz-zvezda svg { width: 1.375rem; height: 1.375rem; fill: none; }
.iz-zvezda[aria-pressed="true"] { background: var(--noc); color: var(--bela); }
.iz-zvezda[aria-pressed="true"] svg { fill: currentColor; }
.iz-zvezda:active { scale: calc(1 - .06 * var(--gib, 1)); }
.iz-zvezda:focus-visible { outline: 3px solid var(--jezero); outline-offset: 2px; }

/* marks on the photo: «Najostrejša», «Video · 0:42», «5 podobnih» */
.iz-oznaka { position: absolute; left: 0.375rem; top: 0.375rem; display: inline-flex; align-items: center; gap: 0.3rem; height: 1.75rem; padding: 0 0.625rem; border-radius: var(--r-oznaka);
  background: var(--bela); color: var(--noc); font-size: var(--t-xs); font-weight: 700; line-height: 1; white-space: nowrap; }
.iz-oznaka svg { width: 0.875rem; height: 0.875rem; flex: none; }
.iz-oznaka--spodaj { top: auto; bottom: 0.375rem; }
.iz-kos--video .iz-slika { background: var(--noc); }
.iz-kos--video .iz-slika img { opacity: .55; }
.iz-video { position: absolute; inset: 0; display: grid; place-items: center; color: var(--bela); }
.iz-video svg { width: 2.75rem; height: 2.75rem; padding: 0.625rem; border-radius: 50%; background: rgba(20, 38, 51, .55); }
.iz-video-opomba { padding-inline: 0.125rem; }

/* office: ⋯ menu on a tile */
.iz-vrstica { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 2.25rem; }
.iz-avtor { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iz-meni { flex: none; }
.iz-vec { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--noc); cursor: pointer; }
.iz-vec:hover, .iz-vec[aria-expanded="true"] { background: var(--led); }
.iz-vec svg { width: 1.25rem; height: 1.25rem; }
.iz-meni-plosca { position: absolute; z-index: 6; left: 0; right: 0; top: calc(100% + 0.25rem); min-width: 0; display: grid; gap: 0.125rem; padding: 0.375rem; border-radius: var(--r-plosca); background: var(--bela); box-shadow: var(--senca-okno); }
.iz-meni-plosca[hidden] { display: none; }
.iz-meni-gumb { display: grid; gap: 0.125rem; padding: 0.625rem 0.75rem; border: 0; border-radius: var(--r-polje); background: none; color: var(--noc); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.iz-meni-gumb:hover { background: var(--led); }
.iz-meni-gumb .t-xs { font-weight: 400; }

/* the counter: sticky at the bottom (above the office's phone bar), the dark plate of the coach's plan message (.pm-sporocilo) */
.iz-stevec { position: sticky; bottom: calc(var(--okv-tabi, 0px) + 0.75rem); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1rem;
  margin-top: 0.5rem; padding: 0.875rem 1.25rem; border-radius: var(--r-kartica); background: var(--noc); color: var(--bela); box-shadow: var(--senca-kartica); }
.iz-stevec-txt { font-size: var(--t-lg); }
.iz-stevec-txt b { font-family: var(--f-glas); font-size: var(--t-2xl); font-weight: 700; font-variant-numeric: tabular-nums; }
.iz-stevec-opomba { color: var(--ivje); }

/* photographer: earlier events */
.iz-prej { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.iz-prej-seznam { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.iz-prej-gumb { display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.875rem 1rem 0.875rem 1.25rem; border: 0; border-radius: var(--r-plosca); background: var(--bela); box-shadow: inset 0 0 0 1px var(--led); color: var(--noc); font: inherit; text-align: left; cursor: pointer; }
.iz-prej-txt { flex: 1; display: grid; gap: 0.125rem; min-width: 0; overflow-wrap: anywhere; }
.iz-prej-ime { font-weight: 600; }
.iz-prej-ik { width: 1.125rem; height: 1.125rem; flex: none; color: var(--megla); }
@container (max-width: 29.99rem) { .iz-stevec-opomba { display: none; } .iz-stevec { padding: 0.75rem 1.25rem; } }  /* phone: one line; the intro already says every star saves */
.iz-predlog { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding: 1rem 1.25rem; border-radius: var(--r-plosca); background: var(--led); }
.iz-predlog p { flex: 1 1 18rem; }
@container (max-width: 47.99rem) { .iz-predlog .gumb { flex: 1 1 100%; } }
/* 706h: what the real page adds */
.iz-glava { display: grid; gap: 0.75rem; }
.iz-glava:empty { display: none; }
.iz-sporocilo:empty { display: none; }
.iz-sporocilo { font-weight: 600; }
.iz-sporocilo--napaka { color: var(--napaka, #b3261e); }
.iz-pripravljam, .iz-prazno { padding: 1rem 1.25rem; border-radius: var(--r-plosca); background: var(--led); }
.iz-brez { position: absolute; inset: 0; display: grid; place-items: center; padding: 0.5rem; text-align: center; overflow-wrap: anywhere; }
.iz-oznaka--skrito[hidden] { display: none; }
.iz-kos[data-skrit="da"] .iz-slika img { opacity: .35; }
.iz-zvezda[aria-pressed] { touch-action: manipulation; }
.iz-prej { margin-top: 0; }
.iz-prej > summary { cursor: pointer; font-weight: 600; padding: 0.25rem 0; }
.iz-prej[open] > summary { margin-bottom: 0.5rem; }
.iz-orodja > span:empty { display: none; }
