    body {
      font-family: Arial, sans-serif;
      margin: 0;
      padding: 20px;
      background-color: #f4f4f4;
    }

    h1 { margin-top: 0; }

    .image-container {
      position: relative;
      display: block;
      max-width: 960px;
      margin: 0 auto;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      background: #ddd;
    }
    .image-container img {
      display: block;
      width: 100%;
      height: auto;
      object-fit: contain;
    }

    /* Target icon wrapper keeps icon + tooltip together */
    .target-icon-wrapper {
      position: absolute;
      z-index: 20;
      display: inline-block;
      transform: translate(-50%, -50%); /* center by the given coord */
    }

    .target-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background-color: rgba(255, 0, 0, 0.9);
      border: 1px solid #fff;
      color: #fff;
      font-weight: bold;
      text-decoration: none;
      cursor: pointer;
      transition: transform 0.12s ease;
      font-size: 14px;
      line-height: 1;
    }
    .target-icon:hover,
    .target-icon:focus {
      transform: scale(1.2);
      outline: none;
    }

    /* Tooltip */
    .tooltip {
      position: absolute;
      bottom: 130%;
      left: 50%;
      transform: translateX(-50%);
      background: #333;
      color: #fff;
      padding: 6px 8px;
      border-radius: 4px;
      white-space: normal;                 /* normal wrapping */
      width: min(200px, calc(100vw - 16px)); /* fixed width, wraps naturally */
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.15s ease;
      box-shadow: 0 2px 6px rgba(0,0,0,0.3);
      text-align: center;
      font-size: 13px;
      z-index: 200;
      display: none;                       /* shown via JS */
    }

    
    /* Visible state for tooltip */
    .target-icon-wrapper.show .tooltip {
      opacity: 1;
      pointer-events: auto;
    }
/* When tooltip needs to appear below the icon (for top-edge cases) */
    .tooltip.tooltip-bottom {
      bottom: auto;
      top: 130%;
    }

    .tooltip.tooltip-bottom::after {
      top: auto;
      bottom: 100%;
      border-color: transparent transparent #333 transparent;
    }

    .tooltip a {
      color: #fff;
      text-decoration: none;
      display: block;
      padding: 4px 0;
      border-radius: 2px;
    }
    .tooltip a:hover,
    .tooltip a:focus {
      background: rgba(255,255,255,0.06);
      outline: none;
    }

    /* White separator line between multiple links */
    .tooltip a + a {
      border-top: 1px solid rgba(255,255,255,0.9);
      margin-top: 2px;
      padding-top: 6px;
    }

    .tooltip::after {
      content: "";
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      border-width: 6px;
      border-style: solid;
      border-color: #333 transparent transparent transparent;
    }

    /* Modal for zoomed image (kept from reference, not used yet) */
    .modal {
      display: none;
      position: fixed;
      z-index: 100;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      overflow: auto;
      background-color: rgba(0,0,0,0.8);
      align-items: center;
      justify-content: center;
      padding: 20px;
      box-sizing: border-box;
    }
    .modal.open { display: flex; }
    .modal-content {
      width: 80%;
      max-width: 900px;
      max-height: 90vh;
      overflow: auto;
      background: transparent;
    }
    .modal-content img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 4px;
    }
    .close {
      position: absolute;
      top: 18px;
      right: 28px;
      color: #f1f1f1;
      font-size: 36px;
      font-weight: bold;
      cursor: pointer;
      z-index: 110;
    }
    .close:hover { color: #bbb; }

    @media (max-width: 1100px) {
      body {
        padding: 10px;
      }
      .image-container {
        width: 100%;
      }
    }
  
/* --- HARD STACKING FIX --- */
.image-container { position: relative; z-index: 1 !important; }

.target-icon-wrapper {
  position: absolute;
  z-index: 2 !important; /* base wrapper */
}

/* active wrapper with open tooltip should float above others */
.target-icon-wrapper.show {
  z-index: 9999 !important;
}

.target-icon {
  z-index: 3 !important; /* icon above wrapper */
}

.tooltip {
  z-index: 999999 !important; /* tooltip ALWAYS on top */
  position: absolute;
}

#### QUICKNAV

.quicknav-title {
 text-align:center;
 font-family: sans-serif;
 margin-top:20px;
 font-size:1.2rem;
}

.quicknav-container {
 display:flex;
 justify-content:center;
 gap:15px;
 margin:20px auto;
 flex-wrap:wrap;
}

.quicknav-item {
 border:2px solid #ccc;
 padding:5px;
 border-radius:8px;
 transition:transform .2s, border-color .2s;
}

.quicknav-item img {
 width:120px;
 height:auto;
 display:block;
}

.quicknav-item:hover {
 transform:scale(1.12);
 border-color:#c41e3a;
}

.quicknav-item.active img {
 transform:scale(1.25);
}