/* aktualita.css — detail příspěvku s médii
   ZUŠ Pardubice — viz CSS-ARCHITEKTURA.md */

.clanek { --akt-c: var(--ink); }
.clanek-tag {
  display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px;
  border-radius: 999px; border: 1.5px solid var(--akt-c); color: var(--akt-c); margin-bottom: 16px;
}
.clanek-titulek {
  font-size: clamp(34px, 5.5vw, 60px); line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 700; margin-bottom: 12px;
}
.clanek-datum {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; opacity: 0.6; margin-bottom: 32px;
}
.clanek-cover {
  width: 100%; border-radius: 24px; border: 2px solid var(--ink);
  box-shadow: -8px 8px 0 var(--akt-c); margin-bottom: 32px; display: block;
}
.clanek-perex {
  font-family: 'Instrument Serif', serif; font-style: italic; font-size: 24px;
  line-height: 1.4; margin-bottom: 24px;
}
.clanek-text { font-size: 18px; line-height: 1.6; }
.clanek-text p { margin-bottom: 16px; }
.clanek-text a { color: var(--akt-c); text-decoration: underline; text-underline-offset: 3px; }

/* videa */
.clanek-videa { margin-top: 40px; display: grid; gap: 20px; }
.clanek-video {
  position: relative; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden;
  border: 2px solid var(--ink); box-shadow: -6px 6px 0 var(--akt-c);
}
.clanek-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* galerie fotek */
.clanek-galerie {
  margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 14px;
}
.clanek-galerie a { display: block; aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; border: 2px solid var(--ink); transition: transform .15s; }
.clanek-galerie a:hover { transform: translate(2px,-2px); }
.clanek-galerie img { width: 100%; height: 100%; object-fit: cover; display: block; }

.clanek-galerie a { cursor: zoom-in; }

/* lightbox (galerie fotek na celé obrazovce) */
.lb {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  background: rgba(31, 27, 26, 0.92);
  padding: 24px;
}
.lb.open { display: flex; }
.lb-stage {
  position: relative; max-width: min(1100px, 100%); max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.lb-img {
  max-width: 100%; max-height: 78vh; display: block;
  border: 3px solid var(--bg); border-radius: 16px;
  background: var(--bg); object-fit: contain;
  box-shadow: 10px 10px 0 var(--akt-c, var(--bg));
  user-select: none; -webkit-user-drag: none;
}
.lb-cap { color: var(--bg); font-size: 16px; text-align: center; max-width: 80ch; min-height: 1.2em; }
.lb-count {
  position: absolute; top: -38px; left: 50%; transform: translateX(-50%);
  color: var(--bg); font-size: 15px; letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.lb-btn {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg); color: var(--ink); border: 3px solid var(--ink);
  font-size: 28px; line-height: 1; cursor: pointer; padding: 0;
  transition: transform .12s; user-select: none;
}
.lb-btn:hover { transform: scale(1.08); }
.lb-btn:active { transform: scale(.96); }
.lb-prev { left: -8px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.08); }
.lb-next { right: -8px; top: 50%; transform: translateY(-50%); }
.lb-next:hover { transform: translateY(-50%) scale(1.08); }
.lb-close { top: -8px; right: -8px; width: 46px; height: 46px; font-size: 24px; }
.lb.single .lb-prev, .lb.single .lb-next { display: none; }

@media (max-width: 640px) {
  .clanek-galerie { grid-template-columns: 1fr 1fr; gap: 10px; }
  .clanek-perex { font-size: 20px; }
  .lb { padding: 12px; }
  .lb-img { max-height: 72vh; box-shadow: 6px 6px 0 var(--akt-c, var(--bg)); }
  .lb-btn { width: 44px; height: 44px; font-size: 24px; }
  .lb-prev { left: 0; } .lb-next { right: 0; }
  .lb-close { top: 0; right: 0; width: 40px; height: 40px; }
}
