
  body {
    margin: 0;
    background: linear-gradient(180deg, #b65fcf 0%, #BEC4DF 100%);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
  }

  /* Tombol kembali */
  .back-btn {
    position: absolute;
    top: 25px;
    left: 25px;
    background: #b65fcf;
    color: white;
    padding: 14px 35px;
    font-size: 1.2rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    z-index: 10000;
  }
  .back-btn:hover {
    background: #7a327a;
    transform: scale(1.05);
  }

  /* Container utama */
  .gallery-container {
    min-height: 100vh;
    padding: 10px 40px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
  }

  h2 {
    font-size: 3rem;
    color: white;
    font-weight: bold;
    margin-bottom: 40px;
    text-align: center;
  }

  /* Grid galeri: 3 kolom per baris */
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* ✅ 3 item per baris */
    gap: 25px;
    width: 100%;
  }

  .gallery-item {
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
  }

  .gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  }

  .gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain; /* jaga rasio asli */
    border-radius: 12px;
  }

  /* Modal Preview */
  .preview-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    padding: 20px;
  }

  .preview-modal img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    animation: zoomIn 0.3s ease-in-out;
  }

  .preview-close {
    position: absolute;
    top: 25px;
    right: 40px;
    color: white;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
  }

  @keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }

  /* RESPONSIVE */
  @media (max-width: 1200px) {
    .gallery-grid {
      grid-template-columns: repeat(2, 1fr); /* 2 kolom di laptop kecil */
    }
  }

  @media (max-width: 768px) {
    .gallery-grid {
      grid-template-columns: repeat(1, 1fr); /* 1 kolom di tablet/HP */
    }
    .gallery-container { padding: 80px 20px; }
    .back-btn { padding: 10px 20px; font-size: 1rem; }
  }

  @media (max-width: 480px) {
    h2 { font-size: 1.6rem; }
  }