 /* Dark overlay behind the popup */
  .popup-overlay {
    display: none;                     /* hidden by default */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  /* The actual popup box */
  .popup {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
  }
  .popup img {
    width: 100%;
    height: auto;
    border: 5px solid #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }
  /* Close X button */
  .popup-close {
    position: absolute;
    top: -15px; right: -15px;
    width: 44px; height: 44px;
    background: #fff;
    color: #000;
    font-size: 28px;
    font-weight: bold;
    line-height: 44px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    user-select: none;
  }
  .popup-close:hover { background: #ff5a5a; color: #fff; }

  /* Tiny zoom animation */
  @keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
  }

  /* Optional: style for the trigger link */
  .open-popup {
    color: #0066cc;
    text-decoration: underline;
    cursor: pointer;
  }