/* galerie: projekty jako karty s mozaikou nahledu, feed projektu po dnech (signature: lepkavy den + barevny pruh session) */

/* ---------- projekty ---------- */
.ga-projekty { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.ga-projekt {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border-radius: var(--r-l); background: var(--plocha); border: 1px solid var(--cara);
  color: inherit; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.ga-projekt:hover { transform: translateY(-2px); box-shadow: var(--stin-2); border-color: var(--cara-2); }
.ga-projekt:active { transform: translateY(0); }
.ga-mozaika {
  display: grid; gap: 2px; aspect-ratio: 16 / 9; background: var(--bg-2); overflow: hidden;
  grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr));
}
.ga-mozaika img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: top; display: block; }
.ga-mozaika--1 img { grid-column: 1 / -1; grid-row: 1 / -1; }
.ga-mozaika--2 img { grid-row: 1 / -1; }
.ga-mozaika--3 img:first-child { grid-row: 1 / -1; }
.ga-mozaika--0 { display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
.ga-mozaika-prazdna .ik { width: 32px; height: 32px; }
.ga-projekt-telo { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px 14px; min-width: 0; }
.ga-projekt-nazev { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.ga-slozka {
  display: flex; align-items: center; gap: 5px; color: var(--ink-3); font-size: 12.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ga-slozka .ik { width: 14px; height: 14px; flex: none; }

/* ---------- session ---------- */
.ga-sessions { flex-wrap: wrap; margin-bottom: 8px; }
.ga-sessions .zalozka { display: inline-flex; align-items: center; gap: 6px; }
.ga-tecka {
  width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block;
  background: hsl(var(--h, 260) 55% 52%);
}

/* ---------- feed ---------- */
.ga-den { margin-top: 8px; }
.ga-den-nadpis {
  position: sticky; top: var(--bezpeci-nahore, 0); z-index: 2;
  margin: 0 -4px 10px; padding: 10px 4px 8px;
  font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: -.01em;
  background: linear-gradient(var(--bg) 70%, transparent);
}
.ga-sada {
  position: relative; margin-bottom: 16px; padding: 14px 16px 16px 18px;
  border-radius: var(--r-l); background: var(--plocha); border: 1px solid var(--cara);
  scroll-margin-top: 56px;
}
.ga-sada::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0;
  background: hsl(var(--h, 260) 55% 52%);
}
.ga-sada:target { border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-mekky); }
.ga-sada-hlava { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ga-sada-titulek { min-width: 0; }
.ga-sada-titulek h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; line-height: 1.3; }
.ga-kdo { display: inline-flex; align-items: center; gap: 6px; }
.ga-sada-titulek .radek-meta > * { white-space: nowrap; }
.ga-popis { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; max-width: 72ch; }

.ga-media { display: grid; gap: 10px; margin-top: 12px; }
.ga-media--1 { grid-template-columns: minmax(0, 1fr); }
.ga-media--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ga-media--n { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.ga-dlazdice { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ga-dlazdice a { display: block; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--cara); background: var(--bg-2); }
.ga-dlazdice img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; object-position: top; }
.ga-media--n .ga-dlazdice img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.ga-dlazdice a:hover img { opacity: .92; }
.ga-dlazdice video { width: 100%; max-height: 70vh; border-radius: var(--r-m); background: #000; }
.ga-dlazdice figcaption {
  color: var(--ink-3); font-size: 12px; font-family: var(--mono);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

@media (max-width: 560px) {
  .ga-media--2 { grid-template-columns: minmax(0, 1fr); }
  .ga-sada { padding: 12px 12px 14px 14px; }
}
