/* One responsive frame for photographs displayed together in collections. */
:root {
  --foto-breedte: min(21vw, 300px);
  --foto-verhouding: 4 / 3;
}
@media (max-width: 1050px) {
  :root { --foto-breedte: 27vw; }
}
@media (max-width: 760px) {
  :root { --foto-breedte: 41vw; }
}
@media (max-width: 600px) {
  :root { --foto-breedte: min(84vw, 420px); }
}

body.gpon-v3 :is(.nl-projects, .nl-services-grid, .practice-grid, .heide-fotos,
         .kanthoeve-gallery, .kastplaatsing-gallery, .sale-grid) {
  display: grid;
  grid-template-columns: repeat(auto-fit, min(100%, var(--foto-breedte)));
  justify-content: center;
  gap: 24px;
}
body.gpon-v3 .kanthoeve-gallery .kanthoeve-main { grid-column: auto; }
body.gpon-v3 .kanthoeve-gallery figure { grid-row: auto; }
body.gpon-v3 .heide-fotos a { display: block; }

body.gpon-v3 :is(.nl-project-photo, .editorial-project-image, .practice-photo, .sale-image),
body.gpon-v3 .nl-service > img,
body.gpon-v3 .heide-fotos img,
body.gpon-v3 :is(.kanthoeve-gallery, .kastplaatsing-gallery) a {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: var(--foto-verhouding);
  object-fit: cover;
  overflow: hidden;
}
body.gpon-v3 .sale-image { display: grid; }
body.gpon-v3 :is(.kanthoeve-gallery, .kastplaatsing-gallery) a > img,
body.gpon-v3 .kanthoeve-gallery .kanthoeve-main img,
body.gpon-v3 .editorial-project-image > img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}
/* Draw the card outline inside the box so it consumes no image width. */
body.gpon-v3 :is(.nl-project, .nl-service, .sale-card),
body.gpon-v3 .kanthoeve-gallery a {
  border-width: 0;
  outline: 1px solid var(--gpon-border, #d4dfe5);
  outline-offset: -1px;
}
body.gpon-v3 :is(.nl-project, .nl-service, .kanthoeve-gallery a):focus-visible {
  outline: 3px solid #e36a12;
  outline-offset: 2px;
}
