/* Card crops only. The viewer opens the original photograph or video. */
body[data-grove-page="gallery"] .project-grid .project-card .photo-button {
  display:block; position:relative; width:100%; overflow:hidden;
  aspect-ratio:var(--card-photo-ratio,4 / 3)!important; max-height:none;
}
body[data-grove-page="gallery"] .project-grid .project-card .photo-button > :is(img,video) {
  position:absolute; inset:0; width:100%!important; height:100%!important; max-height:none;
  object-fit:cover!important; object-position:var(--card-focus,50% 50%)!important;
  transform:scale(var(--card-zoom,1))!important; transform-origin:var(--card-focus,50% 50%);
}

/* Lift the shadows in the SGK driveway photo in both gallery views. */
body[data-grove-page="gallery"] :is(.project-card .photo-button, #photo-dialog) img[src*="e571a0_77bb2447f94c406aa973b5368a2b3d1a"] {
  filter:brightness(1.14) contrast(.95);
}
