/* Wildflower V6.2 — Smaller homepage portfolio preview, all gallery pages unchanged.
   The five original category images, links and hover behaviour are preserved. */
@media (min-width: 761px) {
  body.home-page .portfolio-grid {
    max-width: 1260px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  body.home-page .portfolio-grid .portfolio-card {
    height: clamp(265px, 23vw, 365px) !important;
    min-height: 0 !important;
  }
}
body.home-page .portfolio-grid .portfolio-card {
  isolation: isolate;
}
body.home-page .portfolio-grid .portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.home-page .portfolio-grid .portfolio-card-content {
  bottom: 22px !important;
  left: 22px !important;
  right: 20px !important;
}
body.home-page .portfolio-grid .portfolio-card-content h3 {
  font-size: clamp(1.45rem, 1.8vw, 2rem) !important;
}
body.home-page .portfolio-grid .portfolio-view {
  width: 58px !important;
  height: 58px !important;
  font-size: .59rem !important;
}
@media (max-width:760px) {
  body.home-page .portfolio-grid .portfolio-card,
  body.home-page .portfolio-grid .portfolio-card:nth-child(n) {
    min-height: 0 !important;
    height: 355px !important;
    flex: 0 0 min(73vw, 320px) !important;
  }
  body.home-page .portfolio-grid .portfolio-card-content h3 {
    font-size: 1.55rem !important;
  }
}
@media (max-width:520px) {
  body.home-page .portfolio-grid .portfolio-card,
  body.home-page .portfolio-grid .portfolio-card:nth-child(n) {
    height: 340px !important;
    flex-basis: min(76vw, 310px) !important;
  }
}
