    body,
    html {
      margin: 0;
      padding: 0;
      width: 100%;
      height: 100%;
      background-color: #111;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      scroll-behavior: smooth;
    }

    /* ---------------------------------
           Mode 1: Fit Page (Default)
           No scrollbars, fits within viewport
           --------------------------------- */
    body.fit-page-mode {
      overflow: hidden;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    body.fit-page-mode .image-container {
      position: relative;
      width: 100vw;
      height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    body.fit-page-mode img[usemap] {
      display: block;
      width: auto;
      height: auto;
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    }

    /* ---------------------------------
           Mode 2: Fit Width
           Forces 100% width, adds vertical scrolling
           --------------------------------- */
    body.fit-width-mode {
      overflow-y: auto;
      overflow-x: hidden;
      display: block;
      /* Normal block flow to allow natural scroll height */
    }

    body.fit-width-mode .image-container {
      position: relative;
      width: 100%;
      height: auto;
      display: block;
      /* Let the height adapt dynamically */
    }

    body.fit-width-mode img[usemap] {
      display: block;
      width: 100%;
      height: auto;
      max-width: none;
      max-height: none;
      box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
      margin: 0;
      /* Align perfectly */
    }


    /* ---------------------------------
           UI Controls (Buttons in top-right)
           --------------------------------- */
    .controls {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 500;
      display: flex;
      gap: 10px;
      background: rgba(0, 0, 0, 0.65);
      padding: 8px;
      border-radius: 8px;
      backdrop-filter: blur(8px);
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    }

    .controls button {
      background: rgba(255, 255, 255, 0.05);
      border: 2px solid transparent;
      color: white;
      width: 44px;
      height: 44px;
      cursor: pointer;
      border-radius: 6px;
      display: flex;
      justify-content: center;
      align-items: center;
      transition: all 0.2s;
      outline: none;
    }

    .controls button:hover {
      background: rgba(255, 255, 255, 0.15);
      transform: scale(1.05);
    }

    /* The visually "active" button */
    .controls button.active {
      border-color: rgba(255, 255, 255, 0.7);
      background: rgba(255, 255, 255, 0.25);
      box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
      transform: scale(1);
    }

    .controls button svg {
      width: 22px;
      height: 22px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }


    /* ---------------------------------
           Modal Styles
           --------------------------------- */
    .modal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100vw;
      height: 100vh;
      background-color: rgba(0, 0, 0, 0.85);
      backdrop-filter: blur(8px);
      justify-content: center;
      align-items: center;
      opacity: 0;
      transition: opacity 0.4s ease;
    }

    .modal.show {
      display: flex;
      opacity: 1;
    }

    .modal-content {
      position: relative;
      width: 90%;
      max-width: 1024px;
      background: #000;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
      transform: scale(0.95);
      transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .modal.show .modal-content {
      transform: scale(1);
    }

    .close-btn {
      position: absolute;
      top: 15px;
      right: 20px;
      color: #fff;
      font-size: 36px;
      line-height: 1;
      font-weight: bold;
      cursor: pointer;
      z-index: 1001;
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
      transition: color 0.2s, transform 0.2s;
    }

    .close-btn:hover {
      color: #ff4c4c;
      transform: scale(1.1);
    }

    video {
      width: 100%;
      height: auto;
      max-height: 85vh;
      /* In case the video gets too tall compared to screen */
      display: block;
      outline: none;
      border-radius: 12px;
    }

    .loading-spinner {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      border: 4px solid rgba(255, 255, 255, 0.1);
      border-top: 4px solid #fff;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      animation: spin 1s linear infinite;
      display: none;
      z-index: 999;
    }

    @keyframes spin {
      0% {
        transform: translate(-50%, -50%) rotate(0deg);
      }

      100% {
        transform: translate(-50%, -50%) rotate(360deg);
      }
    }

    /* Navigation Controls */
    .nav-controls {
      position: fixed;
      bottom: 20px;
      right: 20px;
      z-index: 500;
      display: flex;
      gap: 10px;
      background: rgba(0, 0, 0, 0.65);
      padding: 8px;
      border-radius: 8px;
      backdrop-filter: blur(8px);
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    }

    .nav-controls a {
      background: rgba(255, 255, 255, 0.05);
      color: white;
      width: 44px;
      height: 44px;
      cursor: pointer;
      border-radius: 6px;
      display: flex;
      justify-content: center;
      align-items: center;
      transition: all 0.2s;
      text-decoration: none;
    }

    .nav-controls a:hover {
      background: rgba(255, 255, 255, 0.15);
      transform: scale(1.05);
    }

    .nav-controls a.disabled {
      opacity: 0.3;
      pointer-events: none;
    }

    .nav-controls svg {
      width: 24px;
      height: 24px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .notes-control {
      position: fixed;
      bottom: 20px;
      left: 20px;
      z-index: 500;
      background: rgba(0, 0, 0, 0.65);
      padding: 8px 16px;
      border-radius: 8px;
      backdrop-filter: blur(8px);
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    }

    .notes-control a {
      color: white;
      text-decoration: none;
      font-weight: bold;
      font-size: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .notes-control a:hover {
      color: #ddd;
    }

    /* Home Button */
    .home-control {
      position: fixed;
      top: 20px;
      left: 20px;
      z-index: 500;
      background: rgba(0, 0, 0, 0.65);
      padding: 8px 16px;
      border-radius: 8px;
      backdrop-filter: blur(8px);
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
      transition: background 0.3s;
    }

    .home-control:hover {
      background: rgba(30, 50, 36, 0.85);
    }

    .home-control a {
      color: white;
      text-decoration: none;
      font-weight: bold;
      font-size: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .home-control a:hover {
      color: #fff;
    }

    /* Highlight Areas Styles */
    .area-highlight {
      position: absolute;
      background: transparent;
      border: 2px solid transparent;
      border-radius: 8px;
      box-sizing: border-box;
      transition: all 0.2s ease;
      cursor: pointer;
      z-index: 10;
    }

    .area-highlight:hover {
      background: rgba(0, 0, 0, 0.15);
      border-color: rgba(255, 255, 255, 0.6);
      box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
      transform: scale(1.02);
    }

    /* Extra Video Button (Doplnky) */
    .extra-video-btn {
      position: absolute;
      top: 5px;
      left: 5px;
      background: rgba(0, 0, 0, 0.75);
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.4);
      border-radius: 4px;
      padding: 4px 8px;
      font-size: 12px;
      font-weight: bold;
      cursor: pointer;
      opacity: 0;
      pointer-events: none;
      transition: all 0.2s ease;
      z-index: 20;
      backdrop-filter: blur(4px);
    }

    .area-highlight:hover .extra-video-btn {
      opacity: 1;
      pointer-events: auto;
    }

    .extra-video-btn:hover {
      background: rgba(64, 64, 64, 0.9);
      color: #fff;
      transform: scale(1.05);
    }
