/* Homepage AI tool image sizing fix.
   Keep all three cards visually consistent without the very tall/narrow crop. */
.home-ai-tool-card {
  display: flex;
  flex-direction: column;
}

.home-ai-tool-head {
  flex: 0 0 auto;
}

.home-ai-tool-card > img {
  display: block;
  width: calc(100% - 24px);
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center center;
  margin: 0 12px 12px;
  border-radius: 14px;
}

/* The source images have their subjects at slightly different horizontal positions. */
.home-ai-tool-card[href="/zakelijke-foto/"] > img {
  object-position: 52% center;
}

.home-ai-tool-card[href="/voetballer/"] > img {
  object-position: 50% center;
}

.home-ai-tool-card[href="/paspoort/"] > img {
  object-position: 54% center;
}

@media (min-width: 681px) {
  /* 4 kaarten: 2x2, zodat de voor-en-na-beelden groot genoeg blijven. */
  .home-ai-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .home-ai-tool-card > img {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .home-ai-tool-card > img {
    aspect-ratio: 3 / 2;
  }
}
