/* Important layered declarations win over legacy unlayered cropping rules.
   This changes presentation only: original pixels and editor geometry stay intact. */
@layer photo_presentation {
 img[data-photo-preserve],
 :is(.studio-template-card,.studio-portfolio-grid,.studio-gallery,.studio-thumb,.atelier-example,.studio-chosen-template,.studio-package-gallery) img,
 img.studio-tariff-photo,img.studio-photo,.portfolio-notice img {
  object-fit:contain!important;
  object-position:center center!important;
 }
 /* Album and case-study photographs retain their complete native composition. */
 img[data-photo-layout="natural"] {
  display:block;
  width:100%;max-width:100%;
  height:auto!important;max-height:none!important;
  aspect-ratio:auto!important;
 }
 [data-photo-frame="natural"] {
  display:block;height:auto!important;max-height:none!important;aspect-ratio:auto!important;
 }
 :is(.alla-grid,.gallery,.marina-tiles,.family-grid,.pf-service-grid,.ng-portfolio__grid){align-items:start}
 .pf .prints{display:grid!important;height:auto!important;min-height:0!important;gap:16px;padding:16px;overflow:visible!important}
 .pf .prints img{transform:none!important;margin:0!important;width:100%;height:auto!important}
 @media(max-width:800px){
  #home-studio.home-studio-fullscreen .home-studio-background {height:auto!important}
  #home-studio.home-studio-fullscreen .home-studio-background img {height:auto!important;aspect-ratio:auto!important}
 }
}
