/* Fotky sidebar — 2026-11-28
   Shared rules for the right-hand Fotky box on event pages.
   Master look: silvestr.html (layout + label spacing + greyscale thumbs).

   1) Label spacing
   css/style.css (and the inline #bsj-fsc copy) sets
   .side-box-gfx, .side-box-3-gfx { font-size:0; line-height:0 }
   so the thumbnail rows sit flush, with overflow:hidden on the same box.
   The second-row label lives inside that box (either .nadpis-subsite,
   as on silvestr, or a .font15.oswfont div on older pages) and inherits
   the collapsed line-height, so the thumb rows overlap/clip the label.
   This block is a no-op on Fotky boxes that have no label inside the
   thumb grid.

   2) Greyscale thumbs, colour on hover/focus
   Copied from silvestr.html #sil-fotky-hover: fine pointers only.
   Touch stays colour. Existing border/opacity hover is unchanged.

   3) Left alignment of the Highlights label (2026-11-29)
   The first label (Ubytování…) sits in the content box with margin-left 5px.
   The thumb grid (.side-box-gfx) already has margin-left 3px, so a further
   5px on the Highlights text puts it 3px right of Ubytování. Use 2px
   (5-3) on the Highlights text only — do not move the first label.

   Do not put this in css/fixes-2026*.css.
*/
.side-box-gfx .nadpis-subsite,
.side-box-3-gfx .nadpis-subsite,
.side-box-gfx > .font15.oswfont,
.side-box-3-gfx > .font15.oswfont {
  display: block;
  float: none;
  clear: both;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 15px;
  line-height: 1.2;
  margin-top: 10px !important; /* .margintop5 / .margin5 was 5px; +5px above Highlights */
  padding-bottom: 3px;
}
/* Older two-row markup: the Highlights label is the div itself. */
.side-box-gfx > .font15.oswfont,
.side-box-3-gfx > .font15.oswfont {
  margin-left: 2px !important;
}
.side-box-gfx .nadpis-subsite > span,
.side-box-3-gfx .nadpis-subsite > span {
  line-height: 1.2;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-left: 2px !important;
}
.side-box-gfx > .minispacer,
.side-box-3-gfx > .minispacer {
  clear: both;
  float: none;
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .side-box-gfx .img-s-b-3-gfx,
  .side-box-3-gfx .img-s-b-3-gfx {
    filter: grayscale(1);
    transition: filter .3s ease, opacity .3s ease, border-color .3s ease;
  }
  .side-box-gfx a:hover .img-s-b-3-gfx,
  .side-box-gfx a:focus .img-s-b-3-gfx,
  .side-box-gfx a:focus-visible .img-s-b-3-gfx,
  .side-box-gfx .img-s-b-3-gfx:hover,
  .side-box-gfx .img-s-b-3-gfx:focus,
  .side-box-3-gfx a:hover .img-s-b-3-gfx,
  .side-box-3-gfx a:focus .img-s-b-3-gfx,
  .side-box-3-gfx a:focus-visible .img-s-b-3-gfx,
  .side-box-3-gfx .img-s-b-3-gfx:hover,
  .side-box-3-gfx .img-s-b-3-gfx:focus {
    filter: grayscale(0);
  }
}
