* {
  box-sizing: border-box;
}

:root {
  --link-color: black;
  --publication-link-color: #3164aa;
  --background-color: white;
  --font-size: 13px;
  --button-font-size: 13px;
  --measure: 80ch;
  --wide-page: 80ch;
  --page-pad: clamp(16px, 4vw, 32px);
}

html, body {
  overflow-x: hidden;
}


body {
    font-family: "Poppins", Palatino, "Book Antiqua", Georgia, serif;
    font-weight: 400;
    padding: 32px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0 72px;
    line-height: 1.6;
    font-size: var(--font-size);
    max-width: calc(100% - 144px);
    background-color: var(--background-color);
}
/* Add this general paragraph rule */
p {
  margin-bottom: 1.5rem;
  margin-top: 0;
}

/* Update your existing .container p rule */
.container p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* Update your .h-introduction p rule to be more consistent */
.h-introduction p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}
sup {
  font-size: 0.75em; /* Changed from xx-small to a more readable size */
  vertical-align: super;
}

.container {
  display: flex;
  flex-direction: column;
  width: var(--measure);
  max-width: 98%;
  margin: 0 auto;
  padding-inline: 0;
}

.container.publications {
  width: var(--wide-page);
  max-width: 100%;
  box-sizing: border-box;
  padding-inline: 0;
}



/* If you want your main text column inside the header to stay readable */

.header-container {
  display: flex;
  gap: 60px;
}

.text-content {
  flex: 6; /* Takes 60% of the space */
  min-width: 0;
}

.image-content {
  flex: 4; /* Takes 40% of the space */
  min-width: 0;
}

h1 {
  font-size: 1.2em;
  font-weight: 400;
  font-size: 30px;
  line-height: 0.9;
  padding: 36px 0 36px 0;
  margin: 0;
}

.header-icons {
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 0 0 24px 0;
  padding: 0;
}

.header-icon {
  width: 20px;
  height: 20px;
  opacity: 0.7;
  filter: invert(34%) sepia(89%) saturate(548%) hue-rotate(178deg) brightness(86%) contrast(88%);
}

.icon-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-link:hover .header-icon {
  opacity: 1;
}

h2 {
  font-size: 18px;
  font-weight: 400;
  margin: 0;
  padding: 36px 0 4px 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h3 {
  font-size: 18px;
  font-weight: 400;
  margin: 0;
  padding: 8px 0 4px 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h4 {
  font-size: var(--font-size);
  font-weight: 500;
  margin: 0;
  padding: 4px 0 4px 0;
}

b {
  font-weight: 600;
}

/* Header */ 
.h-image {
    flex: 2;
    padding: 0 56px;
    aspect-ratio: 16 / 9; /* or any other ratio */
    object-fit: contain; 
    display: flex;
    justify-content: center;
    align-items: center;
}


.h-introduction {
  flex: 1;
}

.h-introduction h1 {
  margin-top: 0;
  margin-bottom: 20px;
}




.container p {
  margin-top: 6px;
}

.publication-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px;
  margin-top: 30px;
}

.publication-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease;
  border-width: 1px;
  border-style: solid;
  border-color: rgba(32,33,36,0.15);
  border-radius: 8px;
  overflow: hidden; /* This ensures the image doesn't overflow the rounded corners */
}

.publication-card-link p {
  color: black;
}

.publication-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.publication-card-image {
  width: 100%;
  height: 180px; /* Adjust this value as needed */
  background-size: cover;
  background-position: center;
}

.publication-card-content {
  padding: 10px;
  height: calc(100% - 180px);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between; /* This will push the venue to the bottom */
}

.pub-title {
  font-weight: 400;
  margin: 0 0 0 0; /* Add some bottom margin */
}

.pub-venue {
  margin: 0;
  font-weight: 400;
  margin-bottom: 14px;
  margin-top: auto; /* This pushes the venue to the bottom */
  align-self: flex-start; /* This aligns the venue to the left */
}

/* Remove the ::before pseudo-element styles */

/* Specific style for the "Measuring Progress..." card */
.publication-card[data-bg="board"]::before {
  background-image: url('assets/images/board_2.webp');
}
.publication-card[data-bg="pink"]::before {
  background-image: url('assets/images/pink.webp');
}
.publication-card[data-bg="leaves"]::before {
  background-image: url('assets/images/leaves.webp');
} 

/* Media query for screens smaller than 896px */
@media (max-width: 896px) {
  body {
    margin: 0 40px;
    max-width: calc(100% - 80px);
  }

  .publication-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .container {
    margin-top: 20px !important; /* Reduce from 32px to 20px */
  }

  .container.publications {
    width: 100%;
    max-width: 100%;
  }

  .social-links {
    gap: 14px; /* Reduced from 18px */
  }

  .social-links a:not(:last-child)::after {
    right: -9px; /* Reduced from -11px */
  }
}

/* Media query for screens smaller than 600px */
@media (max-width: 600px) {
  body {
    margin: 0 20px;
    max-width: calc(100% - 40px);
  }

  .publication-cards {
    grid-template-columns: repeat(1, 1fr);
  }

  .container {
    margin-top: 12px !important; /* Further reduce to 12px on very small screens */
  }

  .container.publications {
    width: 100%;
    max-width: 100%;
  }

  .h-image {
    order: -1;
    padding: 0 20px;
    margin-bottom: 30px; /* Add space between image and text on mobile */
  }

  .inner-image {
    width: 70%;
    height: 70%;
  }

  .publications {
    padding: 0 20px;
  }

  .social-links {
    gap: 10px; /* Reduced from 12px */
  }

  .social-links a:not(:last-child)::after {
    right: -6px; /* Reduced from -8px */
  }
}

/* Media query for very small screens */
@media (max-width: 480px) {
  body {
    margin: 0 12px;
    max-width: calc(100% - 24px);
  }

  .container.publications {
    width: 100%;
    max-width: 100%;
  }
}


.social-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #f0f0f0;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.social-button:hover {
  background-color: #e0e0e0;
}

.social-icon {
  width: 20px;
  height: 20px;
  fill: currentColor; /* This ensures the SVG icon color matches the text color */
}

/* You can remove or comment out the previous .button styles */

.social-button img[alt="Google Scholar"] {
  width: 24px;
  height: 24px;
}

.research-label {
  color: #2563eb;
  font-weight: 500;
  margin-bottom: 12px;
}

.main-title {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 16px;
}

.subtitle {
  color: #666;
  max-width: 600px;
  margin: 0 auto 20px;
}

.publication-count {
  color: #666;
}

.publications-list {
  padding-inline-start: 25px;
  margin: 0;
  list-style-type: disc;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.publication-item {
  display: list-item;
  padding: 6px 0;
  position: relative;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

.publications-description {
  padding-bottom: 12px;
}

.publication-date {
  color: rgb(95, 99, 104);;
}

.publication-content {
  position: relative;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.publication-authors {
  display: inline;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

.publication-title {
  font-weight: 400;
  display: inline;
  margin-left: 4px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

.publication-title-link {
  text-decoration: none;
  font-weight: 400;
  color: var(--publication-link-color);
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

.publication-title-link:hover {
  text-decoration: underline;
}

.publication-venue {
  display: inline;
  margin-left: 4px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

.publication-links {
  display: block;
  margin-top: 4px;
  margin-left: 0;
}

.publication-links a {
  display: inline;
  margin-right: 12px;
  text-decoration: none;
}

.publication-links a:last-child {
  margin-right: 0;
}

.publication-list {
  margin: 0;
}

.highlighted-text {
  color: #0a2dac;
  font-weight: 600;
}

a {
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 1px;
  color: var(--link-color);
}

a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping to next row */
  gap: 18px; /* Reduced from 24px */
  align-items: center;
  margin-bottom: 0px;
  margin: 32px 0 32px 0;
}

.publications-links {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 8px;
}

.publications-links a {
  color: var(--link-color);
  font-weight: 500;
  text-decoration: none;
}

.paper-links {
  display: flex;
  gap: 24px; 
}

.paper-links a {
  text-decoration: none;
  margin-bottom: 10px;
} 

.publication-link {
  text-decoration: none;
  color: inherit;
  display: contents;
}

.author-highlight {
  text-decoration: none;
  font-weight: 600;
}

.publication-highlight {
  margin-top: 6px;
}

.paper-highlight {
  background-color: #e3f2fd;
  color: #1565c0;
  font-weight: 500;
  font-size: var(--font-size);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid #bbdefb;
  margin-right: 8px;
}

.card-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 10px;
}

.card {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.image-wrapper {
  flex: 0 0 300px;
  min-width: 0;
}

.card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
}

.card-content {
  flex: 1;
  min-width: 0;
}

.card-main-title {
  font-weight: 600;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.card-subtitle {
  margin: 0 0 12px 0;
  color: #666;
  line-height: 1.4;
}

.card-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}

.publication-authors {
  margin-bottom: 8px;
  line-height: 1.5;
}

.publication-venue {
  margin-bottom: 12px;
}

.main-page-venue {
  margin-bottom: 12px;
  margin-left: 0;
}

.publication-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.publication-button {
  background-color: #e3f2fd;
  color: #1565c0;
  font-weight: 500;
  font-size: var(--font-size);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #bbdefb;
  margin-right: 8px;
}

.publication-button:hover {
  background-color: #e5e7eb;
  color: #374151;
  border-color: #9ca3af;
  text-decoration: none;
}





/* Keep existing inline-flex styles */
.inline-flex {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.space-y-2 {
  margin-bottom: 16px;
}

.section {
  display: flex;
  margin-bottom: 20px;
  align-items: flex-start;
  gap: 80px;
}

.section-image {
  width: 320px;
  aspect-ratio: 16/9; /* Changes from 1 to 16/9 for widescreen ratio */
  background-color: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.section-image img {
  height: 80%;
  object-fit: cover;
  opacity: 0.9;
}

.section-image:hover {
  background-color: #f0f0f0;
  border-color: #d0d0d0;
  transition: all 0.2s ease;
}

.section-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.paper-conference {
  margin: 4px 0;
  font-weight: 500;
}

.paper-title {
  margin-bottom: 10px;
}

.paper-authors {
  margin-bottom: 10px;
}

.links {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.link-item {
  display: flex;
  align-items: center;
  color: var(--link-color);
  text-decoration: none;
}

.link-item svg {
  margin-right: 5px;
}

.abstract {
  margin-bottom: 20px;
}

.intro-text {
  max-width: 800px;
  margin-bottom: 50px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--link-color);
  text-decoration: none;
}

.read-more svg {
  margin: 4px 0;
}

/* Media query for narrow screens - make cards vertical */
@media (max-width: 768px) {
  .section {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .section-image {
    width: 100%;
    margin-bottom: 16px;
    align-self: center;
  }
  
  .section-content {
    width: 100%;
  }

  .card-container {
    gap: 32px;
  }

  .card {
    flex-direction: column;
    gap: 16px;
  }

  .image-wrapper {
    flex: none;
    width: 100%;
    order: -1;
  }

  .card-content {
    flex: none;
    width: 100%;
  }

  .card-main-title {
    font-size: 16px;
  }

  .card-subtitle {
    font-size: 16px;
  }
}

.paper-cluster {
  background-color: #f3f4f6;
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 2rem;
}

.paper-cluster p {
  color: #333;
}

.cluster-paper-list {
  list-style-type: none;
  padding-left: 0;
  margin-top: 0.5rem;
}

.cluster-paper-list li {
  margin-bottom: 0.5rem;
}

.cluster-paper-list a {
  color: var(--link-color);
  text-decoration: underline;
}


.resident-card {
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.resident-image-hoverable {
  border-radius: 0.38 rem;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.resident-image-hoverable:hover {
  transform: translateY(-4px);
}

.resident-image-placeholder {
  width: 186px;
  height: 186px;
  position: relative;
  overflow: hidden;
  border-radius: 0.38rem;
  /* Background color will be set dynamically via JavaScript */
  display: flex;
  align-items: center;
  justify-content: center;
}

.resident-image-placeholder img {
  /* width and height will now be set inline per card */
  object-fit: contain; /* Changed from 'cover' to 'contain' to ensure full image is visible */
  border-radius: 0.38rem;
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* When there's an image, it will cover the background */
  max-width: 100%;  /* Ensure image doesn't exceed container width */
  max-height: 100%; /* Ensure image doesn't exceed container height */
}

/* For cards without images, ensure the background color is visible */
.resident-image-placeholder:not(:has(img)) {
  /* This selector targets placeholders that don't contain images */
  min-height: 186px;
}

/* Remove all the gradient background styles */
/* Delete these sections:
.resident-card:nth-child(1) .resident-image-placeholder {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.resident-card:nth-child(2) .resident-image-placeholder {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.resident-card:nth-child(3) .resident-image-placeholder {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.resident-card:nth-child(4) .resident-image-placeholder {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}
*/

/* Remove the overlay entirely */
/* Delete this section:
.resident-image-placeholder::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(1px);
}
*/

.resident-card-content {
  padding: 10px 0 0 0;
  text-align: left;
}

.resident-card-title {
  margin: 0 0 12px 0;
  color: #111827;
  display: flex;
  align-items: flex-start;
  font-family: Open Sans, sans-serif;
  font-weight: 400;
  font-size: 16px;
}

.resident-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.resident-card-subtitle {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

.resident-card-date {
  font-size: 16px;
  color: #9ca3af;
  margin: 0;
}


/* ONE ROW, FREE-SCROLLING, FIXED-WIDTH CARDS (no grid, no snap) */
.resident-research-container {
  display: flex;
  flex-direction: row;
  gap: 24px;

  /* scrolling */
  overflow-x: auto;
  overflow-y: visible;        /* let hover shadow/offset show */
  padding: 12px 0px 16px;    /* air so hover translateY isn't clipped */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;

  /* optional: hide scrollbar */
  scrollbar-width: none;                  /* Firefox */
}
.resident-research-container::-webkit-scrollbar { display: none; }  /* WebKit */

/* Update the fixed card width to match new image size */
.resident-card {
  flex: 0 0 186px;    /* fixed width; no grow, no shrink */
  min-width: 186px;   /* belt-and-suspenders */
}

/* Keep your existing hover styling, plus z-index so it floats */
.resident-image-hoverable {
  border-radius: 0.38rem;
  overflow: hidden;
  transition: all 0.3s ease;
  will-change: transform;
}
.resident-image-hoverable:hover {
  transform: translateY(-4px);
  position: relative;
  z-index: 2;
}

/* Make the visual box fill and stay square */
.resident-image-placeholder {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border-radius: 0.38rem;
}

/* Research List Styles */
.research-list {
  display: flex;
  flex-direction: column;
  gap: 3px; /* Reduced from 12px */
  padding: 0;
  margin: 0;
}

.research-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  column-gap: 12px; /* Horizontal gap between date and title */
  row-gap: 8px; /* No vertical gap */
  align-items: center;
  border-bottom: none; /* Remove borders for cleaner look */
}

.research-item:last-child {
  border-bottom: none;
}

.research-date {
  font-weight: 500;
  white-space: nowrap;
  font-size: var(--font-size);
}

.research-title {
  font-size: var(--font-size);
}

.research-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.research-title a:hover {
  color: var(--link-color);
}

.research-title .research-link {
  font-size: 0.75em;
  vertical-align: super;
  text-decoration: none;
}

.site-header {
  width: 100%;
  margin-bottom: 12px;
}

.site-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.site-name {
  font-weight: 400;
  font-size: 24px;
}

.site-link {
  font-family: "EB Garamond", Palatino, "Book Antiqua", Georgia, serif;
  font-weight: 400;
  font-size: 20px;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.site-link:hover {
  color: var(--link-color);
}

.h-introduction p {
  margin-top: 12px;
  margin-bottom: 12px;
}

p.text {
  padding-top: 8px;
  padding-bottom: 8px;
  margin: 0;
  
} /* Publications page section headers */
/* Publications year headers */
.publications-year-header {
    font-weight: 600;
    margin-top: 4px;
    margin-bottom: 4px;
    color: #666;
}

hr {
  border: 0;
  height: 0;
  border-top: 1px solid rgb(0, 0, 0);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  grid-column: 1 / -1;
  width: 100%;
  margin: 8px 0;
}

hr.hard {
  border-top: 1px solid rgba(0, 0, 0, 0.5);
  margin-bottom: 12px;
}

hr.soft {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}



input[type=submit], input[type=reset], input[type=button], button, .button {
  background-color: #ececec;
  border-radius: 10px;
  padding: 0.75em 1em;
  color: #353535;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--button-font-size);
  font-weight: 500;
  letter-spacing: 0.075em;
  text-decoration: none;
  text-transform: uppercase;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

input[type=submit]:hover, input[type=reset]:hover, input[type=button]:hover, button:hover, .button:hover {
  background-color: #ececec;
  opacity: 0.8;
  color: #353535;
}

input[type=submit]:active, input[type=reset]:active, input[type=button]:active, button:active, .button:active {
  opacity: 0.5;
  background-color: #ececec;
  color: #353535;
}

input[type=submit].icon i, input[type=reset].icon i, input[type=button].icon i, button.icon i, .button.icon i {
  font-size: var(--button-font-size);
  padding-left: 0.5em;
  padding-bottom: 1px;
}

input[type=submit].project, input[type=reset].project, input[type=button].project, button.project, .button.project {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  height: 0.6em;
  padding: 0.75em;
  font-size: var(--button-font-size);
  color: #353535;
  flex-shrink: 0;
}

input[type=submit].project.white, input[type=reset].project.white, input[type=button].project.white, button.project.white, .button.project.white {
  color: #f4f3ef;
}

input[type=submit].project.inline, input[type=reset].project.inline, input[type=button].project.inline, button.project.inline, .button.project.inline {
  border-radius: 8px;
  height: 0.55em;
  padding: 0.55em 0.4em 0.4em 0.4em;
}

.button:hover,
.button.project:hover {
  text-decoration: none;
}

input[type=submit]:hover, input[type=reset]:hover, input[type=button]:hover, button:hover, .button:hover {
  background-color: #ececec;
  opacity: 0.8;
  color: #353535;
  text-decoration: none; /* Add this line */
}

@media screen and (max-width: 992px) {
  input[type=submit], input[type=reset], input[type=button], button, .button {
      font-size: 0.6em;
  }

  input[type=submit].icon i, input[type=reset].icon i, input[type=button].icon i, button.icon i, .button.icon i {
      font-size: 1.2em;
  }
}

.research-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  column-gap: 12px;
  row-gap: 0;
  align-items: center;
  border-bottom: none;
}

.research-date {
  font-weight: 500;
  white-space: nowrap;
  font-size: var(--font-size);
}

.research-title {
  font-size: var(--font-size);
  overflow-wrap: break-word;
  word-wrap: break-word;
  min-width: 0; /* Add this - critical for allowing text to wrap in grid */
}

.research-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.research-title a:hover {
  color: var(--link-color);
}

/* Add this media query for small screens */
@media (max-width: 600px) {
  body {
    margin: 0 20px;
    max-width: calc(100% - 40px);
  }
  .research-item {
    grid-template-columns: 1fr; /* Single column layout */
    row-gap: 0px;
  }
}
@media (min-width: 1024px) {
  :root {
    --font-size: 14px;
  }

  h2 {
    font-size: 16px;
  }

  .research-item {
    grid-template-columns: 140px 1fr;
  }
}

.sort-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-size: 10px;
  margin: 0;
}

.sort-button {
  padding: 8px 16px;
  font-family: inherit;
  font-size: var(--font-size);
  font-weight: 500;
  background-color: transparent;
  cursor: pointer;
}


input[type=submit], input[type=reset], input[type=button], button, .button {
  background-color: #ececec;
  border-radius: 10px;
  padding: 0.75em 1em;
  color: #353535;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--button-font-size);
  font-weight: 500;
  letter-spacing: 0.075em;
  text-decoration: none;
  text-transform: uppercase;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  box-sizing: content-box; /* Restore original button box-sizing */
}

/* Fix for sort-controls - remove any shadow-like border */
.sort-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin: 0;
  padding-bottom: 0;
  border-bottom: none; /* Remove any border that might look like shadow */
}

/* Highlight the active sort button */
.button.project.active {
  background-color: #0f2440;
  color: #ffffff;
  border: none; /* Remove default button border to avoid shadow appearance */
}

/* Remove default borders from buttons to avoid shadow effect */
input[type=submit], input[type=reset], input[type=button], button, .button {
  background-color: #ececec;
  border-radius: 10px;
  padding: 0.75em 1em;
  color: #353535;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--button-font-size);
  font-weight: 500;
  letter-spacing: 0.075em;
  text-decoration: none;
  text-transform: uppercase;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  box-sizing: content-box; /* Restore original button box-sizing */
  border: none; /* Remove default button border to prevent shadow appearance */
}