.card[data-style=small] {
  width: 250px;
}

.card-image img {
  aspect-ratio: 21/9;
  object-fit: cover;
  width: 100%;
}

.card-text {
  display: inline-flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  max-width: 100%;
  padding: 20px;
}

.card-text > * {
  margin: 0 !important;
}

.card-title {
  font-family: var(--heading);
  font-weight: var(--semi-bold);
}

.card-subtitle {
  margin-top: -10px !important;
  font-style: italic;
}

/* Modal styling for the BibTeX popup */
.show-bibtex {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--secondary, #ADE4F6);
  color: var(--text, #000);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
  margin-top: 5px;
}

.show-bibtex:hover {
  background: var(--light-gray, #9BD2E8);
}

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

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
}

/* NEW: Ensure the <pre> inside the modal wraps properly */
.modal-content pre {
  white-space: pre-wrap !important; /* Allow wrapping */
  word-break: break-word !important; /* Break long words if needed */
  max-width: 100% !important;
  text-align: justify;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  margin-left: 10px;
}

.close:hover {
  color: black;
}

/* Copy BibTeX Button */
.copy-bibtex {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--secondary, #ADE4F6);
  color: var(--text, #000);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
  margin-top: 10px;
}

.copy-bibtex:hover {
  background: var(--light-gray, #9BD2E8);
}

.list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.project-grid > .card-wrapper {
  flex: 1 1 calc(50% - 20px);
  max-width: calc(50% - 20px);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .project-grid > .card-wrapper {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--background);
  border-radius: var(--rounded);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.list:not(.project-grid) > .card-wrapper {
  flex: 1 1 100%;
  max-width: 100%;
}

.people-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.people-grid > .people-wrapper {
  flex: 1 1 calc(25% - 20px);
  max-width: calc(25% - 20px);
}

@media (max-width: 1024px) {
  .people-grid > .people-wrapper {
    flex: 1 1 calc(33.33% - 20px);
    max-width: calc(33.33% - 20px);
  }
}
@media (max-width: 768px) {
  .people-grid > .people-wrapper {
    flex: 1 1 50%;
    max-width: 50%;
  }
}
@media (max-width: 480px) {
  .people-grid > .people-wrapper {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/*# sourceMappingURL=card.css.map */