/* Make the entire grid item clickable for PDF */
.quarto-grid-item {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  background-color: #f8f5f1;
}

.quarto-grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Style the grid item images - fit to content, no rounding */
.quarto-grid-item img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 0;
}

/* Style the related article link */
.related-article-link {
  margin-top: 10px;
  padding: 8px 12px;
  background: #f8f5f1;
  border-radius: 4px;
  border-left: 4px solid #007bff;
  font-size: 0.9em;
}

.related-article-link a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.related-article-link a:hover {
  text-decoration: underline;
}

/* Prevent article link from triggering PDF opening */
.related-article-link {
  pointer-events: auto;
  position: relative;
  z-index: 2;
}



/* Optional: Add some padding around the image */
.quarto-grid-item .card-img-top {
  padding: 10px;
  box-sizing: border-box;

}
