/* STUDIOFENCE v29 — Portrait Photo Rhythm / Desktop Gallery
   Preserve the original composition and aspect ratio. No forced crop or upscaling.
   Portraits fit within a desktop viewport with generous top/bottom breathing room.
   Landscape works retain their original wide photographic presence.
*/
@media (min-width: 761px) {
  .sf22-gallery {
    row-gap: clamp(72px, 9svh, 124px);
  }
  .sf22-gallery .sf22-photo.sf29-portrait {
    text-align: center;
  }
  .sf22-gallery .sf22-photo.sf29-portrait > img,
  .sf22-gallery .sf22-photo.sf29-portrait > picture > img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 154px); /* fallback for older browsers */
    max-height: calc(100svh - clamp(124px, 18svh, 192px));
    object-fit: contain;
    object-position: center;
    margin-inline: auto;
  }
  .sf22-gallery .sf22-photo.sf29-portrait figcaption {
    max-width: 600px;
    margin-inline: auto;
    text-align: left;
  }
}
/* Touch layouts retain the fluid full-width reading sequence. */
