/* VK ALL-WORK FULL-FRAME THUMBNAILS V1
   Keep every photograph's original composition visible in the All Photographs grid.
   A consistent frame keeps rows calm; contain prevents the thumbnail from cropping the image. */
body.portfolio-review-v50 .all-work-grid .gallery-photo-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 1.25 / 1;
  background: #151a16;
}

body.portfolio-review-v50 .all-work-grid .gallery-photo-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center center;
  transform: none !important;
  transition: opacity .22s ease;
}

/* Keep full-frame thumbnails uncropped on hover/focus as well. */
body.portfolio-review-v50 .all-work-grid .gallery-photo:hover .gallery-photo-frame > img,
body.portfolio-review-v50 .all-work-grid .gallery-photo:focus-within .gallery-photo-frame > img {
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body.portfolio-review-v50 .all-work-grid .gallery-photo-frame > img {
    transition: none !important;
  }
}
