/* Modal overlay */
.custom-overlay {
    /* background-color: rgba(0, 0, 0, 0.75); Dark background with opacity */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -40rem;
  }
  
  /* Modal content */
  .custom-modal {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
  }
  
  /* Modal header */
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  /* Title */
  .modal-title {
    font-size: 1.5rem;
    margin: 0;
  }
  
  /* Close button */
  .close-button {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    transition: color 0.3s ease;
  }
  
  .close-button:hover {
    color: #ff0000; /* Red color on hover */
  }
  
  /* Modal body */
  .modal-body {
    margin-top: 20px;
    text-align: center;
  }
  
  /* Image styling */
  .popup-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Full height to center the spinner */
  }