.project-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.project-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  position: relative;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.ratio.ratio-1x1 {
  aspect-ratio: 1/1;
}

.projects-grid img,
.projects-grid .project-card,
.projects-grid .ratio {
  opacity: 1 !important;
  visibility: visible !important;
}

.projects-grid .ratio,
.projects-grid .ratio > a,
.projects-grid .ratio > img {
  width: 100%;
  height: 100%;
  display: block;
}

.projects-grid .ratio > a > img,
.projects-grid .ratio > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  padding: 0 !important;
}

.projects-grid img.project-logo {
  object-fit: contain !important;
  padding: 10px !important;
}

.project-card a::after {
  content: attr(data-title);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  text-align: center;
  padding: 8px;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}
.project-card a:hover::after {
  opacity: 1;
}
