@charset "utf-8";


@media (min-width: 750px) {
  #vsechno {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
  }

  #vsechno h1 {
    flex-basis: 100%;
  }

  div.uvod {
    flex: 1 1 calc(50% - 10px);
  }
}

/*container + LAYOUT*/
body {
  background: #003;
  padding: 4% 0%
}

#container {
  border: 2px solid #06c;
  margin: 0 auto;
  padding: 2%;
  background: #cde;
  max-width: 1280px;
}

#head {
  margin: 0;
  padding: 0;
  border: 0;
  position: relative
}

#logo {
  margin: 0;
  float: left;
  border: 0
}

#motto {
  font-style: italic;
  font-family: Georgia, "Times New Roman", Times, serif;
  color: #666;
  font-size: 20px;
  text-align: right;
  margin: 0;
  min-height: 125px;
}

#menu {
  float: right;
  display: inline;
  position: relative
}

#dropdown {
  margin: 0;
  border: 1px solid #666;
  border-bottom: 2px solid #666;
  display: inline-block
}

#dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #666;
  position: absolute;
  display: none;
  z-index: 10;
  right: 0
}

#dropdown a {
  width: 300px;
  border: 1px solid #666;
  border-bottom: 0;
  padding: 2px 5px;
  margin: 0;
  text-decoration: none;
  font-weight: bold;
  color: #666;
  background: #eee;
  display: block
}

#dropdown a:hover {
  color: #fff;
  background: #999
}

#dropdown:hover ul,
#dropdown.open ul {
  display: block
}

#foot {
  clear: both;
  margin: 20px 0 0 0;
  text-align: center;
  font-size: 12px;
  background: #003;
  color: #99b;
}

#foot a {
  color: #adf;
  text-decoration: none;
}


/* text */
div.text {
  border: 1px dotted #06c;
  margin: 0;
  padding: 2%;
  background: #ffffff;
  clear: both;
  display: flow-root;
}

div.uvod {
  position: relative;
  padding: 10px;
  margin: 20px 0 0 0;
  border: 1px dotted #ccc;
  background: #eee;
  box-sizing: border-box;
  display: flow-root;
}

div.uvod h2 {
  margin: 0 0 10px 0;
}

div.uvod:hover {
  border-color: #06c;
  background: #e0e8f0;
}

div.uvod img {
  border: 1px solid #999;
  float: left;
  display: block;
  clear: left;
  margin: 5px 20px 5px 5px
}

body,
p,
td,
li {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 20px;
}

p {
  
  margin: 15px 0 0 0;
  padding: 0
}

a {
  text-decoration: underline;
  color: #06c
}

a:hover {
  text-decoration: none;
  color: #c00
}

h1,
h2,
h3 {
  font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, Sans-Serif;
}

h1 {
  font-size: 24px;
  margin: 24px 0;
  clear: both
}

h2 {
  font-size: 18px;
  margin: 18px 0
}

h3 {
  font-size: 16px;
  margin: 16px 0 
}

ul.links {
  padding: 0 5px;
  list-style: none;
  margin: 0 0 20px 0;
  border-right: 2px solid #999;
  background: #ddd;
  display: block;
  text-align: right
}

h1+ul.links {
  margin-top: -25px
}

ul.links li {
  font-weight: bold;
  display: inline;
  padding: 0;
  margin: 0 0 0 10px;
  font-size: 10px
}



p.right {
  text-align: right
}

/*-----------------*/
/* FILMSTRIP GALERIE */
/*-----------------*/

.filmstrip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0;
}

.filmstrip figure {
  height: var(--strip-height, 300px);
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #111;
  cursor: default;
  max-width: 100%;
}

.filmstrip figure img {
  height: 100%;
  width: auto;
  display: block;
}

.filmstrip figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.62);
  color: #eee;
  font-size: 11px;
  line-height: 1.4;
}

.filmstrip h3 {
  flex-basis: 100%;
  margin: 18px 0 3px 0;
}

/* ── collapsible sections ── */
details {
  margin: 8px 0;
}

details summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary h2,
details summary h3 {
  display: inline;
  margin-left: 6px;
}

details summary::before {
  content: '▶';
  color: #69c;
  font-size: 12px;
}

details[open] summary::before {
  content: '▼';
}

/* ── section thumbnails ── */
img.thumb {
  width: 200px;
  height: 200px;
  object-fit: cover;
}

/*--------------*/
/* FOTO V TEXTU */
/*--------------*/

figure.fotofloat {
  position: relative;
  display: inline-block;
}

figure.fotofloat.right {
  float: right;
  clear: right;
  margin: 15px 0 5px 10px;
}

figure.fotofloat.left {
  float: left;
  clear: left;
  margin: 15px 10px 5px 0;
}

figure.fotofloat img {
  display: block;
  max-width: 400px;
  height: auto;
  transition: transform 0.25s ease;
  position: relative;
  z-index: 1;
}

figure.fotofloat.right img {
  transform-origin: top right;
}

figure.fotofloat.left img {
  transform-origin: top left;
}

figure.fotofloat figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.62);
  color: #eee;
  font-size: 11px;
  line-height: 1.4;
}


img.border {
  border: 1px solid #666
}


/*--------------*/
/* BLOG CARDS   */
/*--------------*/

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.blog-card {
  position: relative;
  background: #f4f7fb;
  border: 1px solid #b0c4de;
  padding: 14px 16px 16px;
  box-sizing: border-box;
}

.blog-card:hover {
  background: #e0eaf6;
  border-color: #06c;
}

.blog-card h3 {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 8px 0;
  padding: 0;
  line-height: 1.4;
}

.blog-card h3 a {
  text-decoration: none;
  color: #06c;
}

.blog-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.blog-card .count {
  font-size: 10px;
  color: #888;
  margin: 0 0 8px 0;
}

.blog-card p:not(.count) {
  font-size: 11px;
  color: #555;
  line-height: 16px;
  margin: 0;
}

.post-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.post-card {
  position: relative;
  background: #f4f7fb;
  border: 1px solid #b0c4de;
  padding: 10px 12px 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  background: #e0eaf6;
  border-color: #06c;
}

.post-card-date {
  font-size: 10px;
  color: #888;
  margin-bottom: 5px;
}

.post-card h3 {
  font-size: 13px;
  font-weight: bold;
  margin: 0 0 6px 0;
  padding: 0;
  color: #06c;
  line-height: 1.4;
}

.post-card h3 a {
  text-decoration: none;
  color: #06c;
}

.post-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.post-card-abstract {
  font-size: 11px;
  color: #555;
  line-height: 16px;
  margin: 0;
}

@media (max-width: 749px) {
  body {
    padding: 0;
  }

  #container {
    padding: 10px 12px 0 12px;
  }

  div.text {
    padding: 12px;
  }

  body,
  p,
  td,
  li {
    font-size: 14px;
  }

  p {
    line-height: 22px;
  }

  li {
    line-height: 22px;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .filmstrip figure {
    height: auto !important;
    width: 100%;
  }

  .filmstrip figure img {
    width: 100%;
    height: auto;
  }

  div.uvod img {
    float: none !important;
    display: block;
    margin: 0 0 10px 0;
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  div.uvod ul,
  div.uvod p,
  div.uvod h2 {
    margin-left: 0;
  }

  img.thumb {
    width: 100%;
    height: 180px;
  }

  .blog-card p:not(.count),
  .post-card-abstract {
    font-size: 13px;
  }

  .blog-card .count,
  .post-card-date {
    font-size: 12px;
  }

  table.dvazapisy,
  table.dvazapisy tbody,
  table.dvazapisy tr,
  table.dvazapisy td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  table.dvazapisy td.left {
    border-right: 0;
    border-bottom: 1px dotted #999;
    padding: 0 0 15px 0;
    margin-bottom: 15px;
  }

  table.dvazapisy td.right {
    padding: 15px 0 0 0;
  }

}
