/* Update about profile image to be smaller */
.research-profile img {
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 1vw;
}

.img-large {
  width: 100%;
  max-width: 40vw;
  height: auto;
  /* allow full image to display; don't constrain by viewport height */
  max-height: none;
  object-fit: contain;
}

.img-medium {
  width: 100%;
  max-width: 20vw;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.img-small {
  width: 100%;
  max-width: 15vw;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.research-content {
  flex: 1;
  max-width: 60vw;
  /* Increased from 600px to give more space for text */
  padding: 2vw;
  text-align: justify;
  /* Justify text for better readability */
}

/* Add these styles to improve your layout */

.research-content ul {
  list-style-type: disc;
  padding-left: 3vw;
  /* Add padding to the left for better readability */
}

/* About container styling */
.research-container {
  max-width: 90vw;
  margin: 0 auto;
  padding: 4vw;
}

/* Adjust the about profile to work within this container */
.research-profile {
  display: flex;
  /* center images vertically so they show in full and align with content */
  align-items: center;
  gap: 4vw;
  padding: 4vw;
  background-color: #f9f9f9;
  margin-bottom: 4vw;
  border-radius: 1vw;
}

/* Make sure about headings have proper spacing */
.research-container h1,
.about-container h2 {
  color: #1c80ab;
  margin-bottom: 2vw;
}

/* Add spacing between sections */
.research-section {
  margin-bottom: 6vw;
}

.research-section a {
  color: #1c80ab;
  text-decoration: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .research-profile {
    flex-direction: column;
    gap: 3vw;
    padding: 5vw;
    margin: 3vw;
  }

  .img-large,
  .img-medium,
  .img-small {
    width: 100%;
    max-width: 80vw;
    height: auto;
    max-height: none;
  }

  .research-content {
    max-width: 100%;
    padding: 2vw;
  }

  .research-container {
    padding: 3vw;
  }

  .research-content ul {
    padding-left: 5vw;
  }
}