 /* The Modal (background) */
 .custom-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2002; /* Sit on top, as per your original z-index */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }

  /* Modal Content */
  .custom-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 10% auto;
    padding: 0;
    border: 1px solid #888;
    width: 600px;
    max-width: 80%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    animation-name: custom-modalopen;
    animation-duration: 0.4s;
  }

  /* Modal Header */
  .custom-modal-header {
    padding: 10px 16px;
    background-color: #f1f1f1;
    border-bottom: 1px solid #ddd;
    position: relative;
  }

  /* Modal Body */
  .custom-modal-body {
    padding: 16px;
    max-height: 60vh;
    overflow-y: auto;
  }

  /* Modal Footer */
  .custom-modal-footer {
    padding: 10px 16px;
    background-color: #f1f1f1;
    border-top: 1px solid #ddd;
    text-align: right;
  }

  /* The Close Button */
  .custom-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    position: absolute;
    right: 16px;
    top: 8px;
  }

  .custom-close:hover,
  .custom-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }

  /* Close button in footer */
  .custom-btn-close {
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
  }

  .custom-btn-close:hover {
    background-color: #ddd;
  }

  /* Add Animation */
  @keyframes custom-modalopen {
    from {opacity: 0}
    to {opacity: 1}
  }