.archive-item {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}
.archive-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  padding: 1rem 0 0 0;
  margin: 1rem 0 0 0;
  border-top: 1px solid #ccc;
}
@media (min-width: 600px) {
  .archive-item {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-rows: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .archive-meta {
    padding: 0 0 0 1rem;
    margin: 0 0 0 1rem;
    border-top: none;
    border-left: 1px solid #ccc;
  }
}
.archive-title h2 {
  font-size: 1.5rem;
  margin: 0;
}
ul.archive-identifiers {
  list-style: none;
  padding: 0;
  margin: 0;
}
.request-copy-btn,
.wpcf7-submit {
  border: 1px solid #1c3d8c33;
  color: #1c3d8c;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--wp--preset--font-family--ibm-plex-sans);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  /* Enable scrolling on the modal itself if needed */
  overflow-y: auto;
}

.modal-content {
  background-color: #fefefe;
  border-radius: 1rem;
  margin: 5% auto; /* Reduced from 15% to 5% to allow more content space */
  padding: 20px;
  border: 1px solid #888;
  width: auto;
  max-width: 600px;
  position: relative;
  /* Enable scrolling within the modal content */
  max-height: 80vh; /* 80% of viewport height */
  overflow-y: auto;
}
.modal-content .wpcf7-form-control,
.modal-content input[readonly] {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  padding: 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid #ccc;
}
.modal-content input[readonly] {
  border: 1px solid #f3f3f3;
}
.modal-content .close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
}
/* Optional: Make scrollbar less obtrusive */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.request-form-row,
.request-form-row p {
  display: flex;
  width: 100%;
}
.request-form-row label {
  flex: none;
  display: block;
  width: 125px;
}
