.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  padding: 20px;
  width: 80%;
  height: 80%;
}

.modal-left, .modal-right {
  overflow-y: auto; /* Allow scrolling if content overflows */
}

.modal-left img {
  height: 100%;
  object-fit: cover;
}

.modal-right {
  max-height: 60vh; /* Limiting height for scrolling */
  width: 50%; /* Set the width to 50% for better layout */
  overflow-y: auto; /* Allow scrolling if content overflows */
  text-align: left; /* Ensure text is left-aligned */
  padding-left: 20px; /* Optional: Add some left padding for better spacing */
}

/* Fix the title at the top */
#modal-title {
  position: sticky; /* Make it sticky */
  top: 0; /* Stick to the top of the modal-right */
  background: rgba(0, 0, 0); /* Set background color to avoid overlap with text below */
  z-index: 10; /* Ensure it appears above other content */
  padding: 10px 0; /* Add some padding for spacing */
  margin: 0; /* Remove default margin */
}

/* Hide scrollbar for WebKit browsers (e.g., Chrome, Safari) */
.modal-right::-webkit-scrollbar {
  width: 0; /* Set the scrollbar width to 0 for hiding */
  background: transparent; /* Optional: to make the background of the scrollbar transparent */
}

/* Hide scrollbar for Firefox */
.modal-right {
  scrollbar-width: none; /* Hide scrollbar in Firefox */
}

@media (max-width: 768px) {
  .modal-left {
    display: none; /* Hide left side on mobile */
  }

  .modal-right {
    width: 100%; /* Use full width on mobile */
  }
}
