  body {
      max-width: 1320px;
      padding: 20px;
      font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
      /*  font-family: sans-serif;*/
      background-color: #fff;   
      margin: auto;        
    }

    header {
      background-color: #f5f5f5;
      padding: 10px 20px;
    }

    .wrapper {
      
      margin: 0 auto;
      background-color: #fff;
      padding: 20px;
      box-sizing: border-box;
    }

    .image-float-left,
    .image-float-right {
      width: 50%;
      max-width: 800px;
      margin-bottom: 10px;
      border: 1px solid #ccc;
      border-radius: 8px;
      background-color: #fff;
      /*background-color: #fafafa;*/
      padding: 10px;
      box-sizing: border-box;
    }

    .image-float-left {
      float: left;
      margin-right: 20px;
    }

    .image-float-right {
      float: right;
      margin-left: 20px;
    }

    .image-float-left img,
    .image-float-right img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 4px;
    }

    .caption {
      text-align: center;
      font-size: 0.8em;
      color: #555;
      margin-top: 5px;
    }

    .text-content,
    .text-content-second {
      box-sizing: border-box;
    }

    .text-below,
    .text-below-second {
      clear: both;
      margin-top: 20px;
      box-sizing: border-box;
    }

    .spacer {
      height: 40px;
    }

    /* Nová sekce: dva obrázky vedle sebe */
    .double-images {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      margin-top: 40px;
    }

    .double-images .image-box {
      flex: 1 1 48%;
      border: 1px solid #ccc;
      border-radius: 8px;
      background-color: #fafafa;
      padding: 10px;
      box-sizing: border-box;
    }

    .double-images .image-box img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 4px;
    }

    .text-under-double {
      margin-top: 20px;
    }

    .full-width-image {
      margin-top: 40px;
      border: 1px solid #ccc;
      border-radius: 8px;
      background-color: #fafafa;
      padding: 10px;
    }

    .full-width-image img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 4px;
    }

    @media (max-width: 768px) {
      .image-float-left,
      .image-float-right {
        float: none;
        width: 100%;
        margin: 0 0 10px 0;
      }

      .double-images {
        flex-direction: column;
      }

      .double-images .image-box {
        flex: 1 1 100%;
      }
      
       }
      

    .menu-toggle {
      display: none;
      font-size: 24px;
      cursor: pointer;
      text-align: right;
    }

    nav {
      display: flex;
      justify-content: flex-start;
      flex-wrap: wrap;
      gap: 10px;
      padding-left: 10px;
    }

    .menu {
      position: relative;
    }

    .menu > a {
      color: #333;
      text-decoration: none;
      padding: 10px;
      display: block;
        /* nové: zaoblení a plynulý přechod */
  border-radius: 6px;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
  }

    
.menu > a:hover,
.menu:hover > a {
  background-color: #eee;   /* decentní světle šedá */
  color: #111;
  box-shadow: 0 1px 0 rgba(0,0,0,.04) inset;
}    
  
    .submenu {
  display: none;
  position: absolute;
  background-color:  #F5F5F5 ;
  border-radius: 6px;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
  top: 100%;
  left: 0;
  width: max-content;
  white-space: nowrap;
  z-index: 1000;
}

    .submenu a {
      color: #333;
      padding: 10px;
      display: block;
      text-decoration: none;
        /* nové: plynulý přechod */
  transition: background-color 160ms ease, color 160ms ease;
    }

    .menu:hover .submenu {
      display: block;
    }

    .submenu a:hover {
  background-color: #eee;
  color: #111;
  border-radius: 4px;
}
    
    
      
     footer {
      background-color: #f5f5f5;
      padding: 20px;
      /*text-align: left;*/
      margin: 20px
    }

    footer a {
      display: block;
      margin: 5px 0;
      color: #333;
      /*text-decoration: none;*/
    }
  
  
     @media (max-width: 768px) {
      .menu-toggle {
        display: block;
      }
     .menu.open > a:hover {
    background-color: #eef3f8;
    color: #111;
  }
      
      nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
      }

      nav.active {
        display: flex;
      }

      .menu:hover .submenu {
        display: none;
      }

      .menu.open .submenu {
        display: block;
        position: static;
      }
    }
        
    .nadpis-bloku  {
         text-align: center;
          margin-top: 20px;
         margin-bottom: 20px;
         font-weight: 300; /* tenké písmo */
        font-size: 1.5em; /* odpovídá velikosti h2 */
      }
    
    .nadpis-v-bloku  { 
      font-weight: bold; /* tučné písmo */
       }
    
    .nadpis-sekce   {
        text-align: center;
        margin-top: 10px;
         margin-bottom: 20px;
         font-weight: 300; /* tenké písmo */
        font-size: 1.7em; /* odpovídá velikosti h2 */
        
      }
      
      .zarovnani-in-out {
        display: flex;
        justify-content: space-between;
      }
      
/* POPUP */
/* POPUP */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-window {
  position: relative;
  background: #ffffff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);

  width: 800px;
  height: 600px;           /* celkové okno 800 × 600 */
  display: flex;
  flex-direction: column;  /* obrázek + popisek pod sebou */
  align-items: center;
}

/* obrázek – rezervujeme místo pro popisek */
.popup-window img {
  max-width: 100%;
  max-height: calc(100% - 40px);  /* 40 px necháme na popisek */
  width: auto;
  height: auto;
  object-fit: contain;
}

.popup-caption {
  margin-top: 8px;
  font-size: 0.8em;
   cy or ?? 55;
  text-align: center;
  width: 100%;
  flex-shrink: 0;  /* popisek se nesmí smrsknout */
  }
  
.popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

.popup-close:hover {
  color: black;
}

.hidden {
  display: none !important;
}

/* SEZNAM clanku*/ 
 
 
 
 .links-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1500px;
    margin: 0 auto;   /* ‹ vystředění na střed stránky */
}


.link-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    color: #000;
}

.link-item:hover {
    background-color: #f5f5f5;
}

.link-image {
    width: 160px;
    height: 120px;
    object-fit: cover;
    flex-shrink: 0;
}

.link-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.link-title {
    margin: 0;
    font-size: 18px;
}

.link-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

 /* OPACITY segment dvou fotografií */
.opacity-segment {
  background-color: #fff;
}

.opacity-compare {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background-color: #eee;
}

.opacity-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.opacity-img-bottom {
  z-index: 1;
}

.opacity-img-top {
  z-index: 2;
  opacity: 0.5;
  transition: opacity 0.12s linear;
}

.opacity-controls {
  margin-top: 12px;
}

.opacity-controls label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95em;
  color: #333;
}

.opacity-controls input[type="range"] {
  width: 100%;
  cursor: pointer;
}

.opacity-values {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.8em;
  color: #555;
}
 
 
 /* SEGMENT OBTEKANI - UKONCENI*/
 
 .opacity-block-wrap {
  overflow: hidden;   /* ukončí obtékání uvnitř bloku */
  margin-bottom: 20px;
}

.opacity-text {
  box-sizing: border-box;
}

.text-below-opacity {
  clear: both;        /* další obsah začne až pod segmentem */
  margin-top: 10px;
}
 
 

/*  foto + 9x batt pro zobrazeni leteckych snimku*/
  .historicke-snimky-segment {
    margin-top: 40px;
    background-color: #fff;
  }

  .historicke-snimky-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .historicke-snimky-viewer {
    width: 960px;
    height: 540px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fafafa;
    padding: 10px;
    box-sizing: border-box;
    flex: 0 0 960px;
    overflow: hidden;
  }

  .historicke-snimky-viewer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    background-color: #eee;
  }

  .historicke-snimky-menu {
    width: 300px;
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .snimek-btn {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f5f5f5;
    color: #333;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
  }

  .snimek-btn:hover {
    background-color: #eee;
    color: #111;
    box-shadow: 0 1px 0 rgba(0,0,0,.04) inset;
  }

  .snimek-btn.active {
    background-color: #e9eef3;
    color: #111;
    border-color: #cfd6dd;
    font-weight: 600;
  }

  @media (max-width: 1320px) {
    .historicke-snimky-layout {
      flex-direction: column;
    }

    .historicke-snimky-viewer {
      width: 100%;
      height: auto;
      aspect-ratio: 16 / 9;
      flex: none;
    }

    .historicke-snimky-menu {
      width: 100%;
      flex: none;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }

    .snimek-btn {
      text-align: center;
    }
  }

  @media (max-width: 768px) {
    .historicke-snimky-menu {
      grid-template-columns: repeat(2, 1fr);
    }
  }
 
 
 
 
 
      