  .detail--content, .image-overlay {
    isolation: isolate !important
  }

  figure.image, .image-overlay {
    position:relative
  }

  .zoomable {
    border-radius: 6px;
    display: block;
  }

  /* Tombol "Perbesar" muncul saat hover */
  .enlarge-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10; /* harus lebih tinggi dari gambar */
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 10px;
    cursor: pointer;
    border-radius: 4px;
    border:0px;
    z-index:1000;
    display: inline-flex;
    gap: 5px;
  }

  .zoom-in-icon {
    width: 14px;
    height: 14px;
    color: #fff; /* White icon to match text */
  }

  /* .img-content-article {
    bottom: 40px !important;
  } */

  .zoom-container:hover .enlarge-btn {
    opacity: 1;
  }

  .img-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 4px solid #ddd;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
  }

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

  .overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 999;
    flex-direction: column;
  }

  .overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    transition: transform 0.3s ease;
    position: absolute;
  }

  /* Tombol close */
  .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 35px;
    color: white;
    cursor: pointer;
    font-weight: bold;
  }

 /* Kontrol zoom di kanan bawah */
 .zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 30px;
    display: flex;
    gap: 10px;
  }

  .zoom-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 22px;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
  }

  .zoom-btn:hover {
    background: rgba(255, 255, 255, 0.4);
  }