/* Archive pages – shared styles */
body { font-family: sans-serif; line-height: 1.6; max-width: 800px; margin: 40px auto; padding: 0 20px; color: #333; }
img { max-width: 100%; height: auto; }
a { color: #0ea5e9; }

/* Navigation */
.nav { margin-bottom: 20px; font-size: 0.9em; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }

/* Header */
.header { border-bottom: 2px solid #eee; margin-bottom: 30px; padding-bottom: 10px; }

/* Content */
h2 { color: #444; border-bottom: 1px solid #eee; padding-bottom: 8px; }
h3 { color: #555; }
table { border-collapse: collapse; width: 100%; margin: 10px 0; }
td { padding: 6px 12px; border-bottom: 1px solid #eee; }
ul { padding-left: 20px; }
li { margin-bottom: 8px; }
.download-all { background: #f0f0f0; padding: 12px; border-radius: 8px; margin: 16px 0; }
.info { background: #f8f8f8; padding: 6px 12px; font-size: 0.9em; color: #666; margin: 4px 0; }
th { text-align: left; vertical-align: top; padding: 6px 12px; font-weight: bold; color: #555; }

/* Footer */
.footer { margin-top: 50px; border-top: 1px solid #eee; padding-top: 20px; font-size: 0.8em; color: #777; }
.footer a { color: #999; }

/* Image classes */
.img-left { float: left; margin: 0 1em 1em 0; max-width: 500px; }
.img-right { float: right; margin: 0 0 1em 1em; max-width: 500px; }
.img-center { display: block; margin: 1em auto; max-width: 500px; }
.img-inline { display: inline; max-width: 150px; vertical-align: top; margin: 4px; }

/* Figure */
figure { margin: 0; }
figcaption { font-size: 0.85em; color: #666; margin-top: 4px; text-align: center; }

/* Clear floats */
.content::after { content: ""; display: table; clear: both; }

/* Lightbox */
.lightbox { cursor: pointer; }
.lightbox-overlay {
  display: none; position: fixed; top: 0; left: 0;
  width: 100%; height: 100%; background: rgba(0,0,0,0.9);
  z-index: 1000; justify-content: center; align-items: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img { max-width: 95vw; max-height: 95vh; object-fit: contain; }

/* Day/section text block */
.odstavec { margin: 1em 0; overflow: hidden; }
.odstavec::after { content: ""; display: table; clear: both; }

/* Gallery — multi-image row */
.gallery { display: flex; flex-wrap: wrap; gap: 8px; margin: 1em 0; justify-content: center; clear: both; }
.gallery a, .gallery img { max-height: 180px; width: auto; }

/* Expedition card */
.card { background: #fafafa; border: 1px solid #eee; border-radius: 8px; padding: 12px 16px; margin: 12px 0; }
.card h3 { margin: 0 0 4px; border: none; padding: 0; }
.card div { font-size: 0.9em; color: #555; margin: 2px 0; }
.card span { font-size: 0.85em; color: #777; margin-right: 12px; }

/* Responsive video embed */
.video-responsive { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 1em 0; max-width: 640px; }
.video-responsive iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* Dead links */
.dead-link { color: #999; text-decoration: line-through; }
.dead-link small { text-decoration: none; font-style: italic; }

/* Data tables (.tab) */
.tab { border: 1px solid #ddd; border-radius: 6px; overflow: hidden; }
.tab th { background: #f8f8f8; white-space: nowrap; }
.tab td { border-bottom: 1px solid #eee; }
.tab tr:last-child td { border-bottom: none; }

/* Responsive — stack floats on mobile */
@media (max-width: 600px) {
  .img-left, .img-right {
    float: none;
    display: block;
    margin: 1em auto;
    max-width: 100%;
  }
  .gallery a, .gallery img { max-height: 140px; }
  .video-responsive { max-width: 100%; }
}
