/* Ray Kocurek – vlastní vzhled podle původní stránky ray_index.htm */
:root {
  --ray-pozadi: #F2FFF2;
  --ray-text: #1b2a1b;
  --ray-odkaz: #1d5e1d;
  --ray-popisek: #3d4a3d;
  --ray-cara: #b9d3b9;
}
* { box-sizing: border-box; }
body.ray { margin: 0; background: var(--ray-pozadi); color: var(--ray-text); font: 15px/1.55 Arial, Helvetica, sans-serif; }
.ray-ramec { max-width: 750px; margin: 0 auto; background: url(../img/ray/ray_homepage_stred.jpg) repeat-y; background-size: 100% auto; }

/* baner: puzzle vlevo nahoře = HP fajfklubu, cedule vpravo = Rayova homepage */
.ray-banner { position: relative; aspect-ratio: 750 / 157; background: url(../img/ray/ray_homepage_up.jpg) no-repeat 0 0 / 100% 100%; }
.ray-banner a span, .ray-pata a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ray-hp   { position: absolute; left: 0; top: 0; width: 27%; height: 90%; }
.ray-home { position: absolute; right: 1%; top: 5%; width: 18%; height: 60%; }

.ray-obsah { padding: 16px 5% 8px; }
.ray-pata { aspect-ratio: 750 / 21; background: url(../img/ray/ray_homepage_dole.jpg) no-repeat 0 0 / 100% 100%; }
.ray-pata a { display: block; height: 100%; }

a { color: var(--ray-odkaz); }
hr { border: 0; border-top: 1px solid var(--ray-cara); margin: 28px 0; }
.ray-intro p { margin: 0 0 1em; }
.ray-zpet { margin: 0 0 8px; font-size: 13px; }
.ray-pribeh h2 { font-size: 19px; margin: 0 0 12px; }
.ray-pribeh h2 a { text-decoration: none; color: inherit; }
.ray-pribeh h2 a:hover { text-decoration: underline; }
.ray-pribeh h2 .kdy { font-weight: normal; color: var(--ray-popisek); }
.ray-pribeh p { margin: 0 0 1em; }

figure { margin: 0 0 16px; text-align: center; }
figure img { max-width: 100%; height: auto; display: inline-block; vertical-align: top; }
figcaption { font-size: 12.5px; line-height: 1.45; color: var(--ray-popisek); margin-top: 6px; text-align: left; }
.blk-foto.plna img { width: 100%; }

.blk-fotky { display: grid; gap: 14px 20px; margin-bottom: 16px; }
.blk-fotky.sloupce-1 { grid-template-columns: 1fr; }
.blk-fotky.sloupce-2 { grid-template-columns: 1fr 1fr; }
.blk-fotky.sloupce-3 { grid-template-columns: repeat(3, 1fr); }
.blk-fotky figure { margin: 0; }

.blk-vedle { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; margin-bottom: 16px; }
.blk-vedle.foto-vlevo figure { order: -1; }

@media (max-width: 560px) {
  .blk-fotky.sloupce-2, .blk-fotky.sloupce-3, .blk-vedle { grid-template-columns: 1fr; }
  .blk-vedle.foto-vlevo figure { order: 0; }
}
