/* extra.css */

.link-button {
  background: none;
  border: 1.5px solid var(--md-primary-fg-color);
  border-radius: 6px;
  color: var(--md-primary-fg-color);
  padding: 4px 10px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}
.link-button:hover {
  background: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
}

/* Hide the small site name above the sidebar navigation */
.md-nav__title {
  display: none !important;
}

/* Research card grid layout */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.research-card {
  background-color: var(--md-surface);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  box-shadow: var(--md-shadow-z1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.research-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--md-shadow-z3);
}

.research-card h3 {
  margin-top: 0.2rem;
  color: rgb(247, 46, 46); /* var(--md-primary-fg-color); */
  font-weight: 600;
}

.research-card p {
  margin: 0.4rem 0 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  justify-items: center;
  align-items: center;
}

.left-column {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.right-column {
  grid-row: 0 / span 1; /* spans both rows */
  width: 100%;
}

.photo-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 0 0px rgba(0,0,0,0.2);
}

.photo-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}

.caption {
  position: absolute;
  bottom: 8px;
  left: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 4px 10px;
  font-size: 0.9em;
  border-radius: 8px;
}
