html<!DOCTYPE html>
<html lang="id">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Popup</title>
  <style>
    .popup-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.6);
      z-index: 999;
    }
    .popup-overlay.active {
      display: block;
    }

    .popup-box {
      display: none;
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 1000;
      width: 90%;
      max-width: 500px;
    }
    .popup-box.active {
      display: block;
    }

    .popup-box img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 8px;
    }

    .popup-close {
      position: absolute;
      top: -14px;
      right: -14px;
      width: 32px;
      height: 32px;
      background: #fff;
      border: none;
      border-radius: 50%;
      font-size: 20px;
      line-height: 30px;
      text-align: center;
      cursor: pointer;
      color: #333;
      box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    }
    .popup-close:hover {
      background: #f0f0f0;
    }

    /* Mobile */
    @media (max-width: 480px) {
      .popup-box {
        width: 85%;
      }
      .popup-close {
        top: -10px;
        right: -10px;
        width: 28px;
        height: 28px;
        font-size: 16px;
        line-height: 28px;
      }
    }