/* v252 — sitewide image cards: clean, text-free portfolio layout */
.photo-card{
  min-height:0 !important;
  background:transparent !important;
  border:1px solid rgba(24,18,14,.08) !important;
  border-radius:28px !important;
  overflow:hidden !important;
  box-shadow:0 18px 48px rgba(70,50,35,.10) !important;
}
.photo-card::before,
.photo-card::after{
  content:none !important;
  display:none !important;
}
.photo-card > img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  aspect-ratio:auto !important;
  object-fit:contain !important;
  object-position:center !important;
  border-radius:0 !important;
  transition:none !important;
}
.photo-card:hover > img{
  transform:none !important;
}
.photo-card > figcaption,
.photo-card .photo-card-mobile-title,
.photo-card .photo-card-mobile-caption{
  display:none !important;
}

/* Portfolio gallery: equal card widths, natural image proportions, no cropping. */
.portfolio-photo-gallery-new .portfolio-photo-grid{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  grid-auto-flow:row !important;
  align-items:start !important;
  gap:24px !important;
}
.portfolio-photo-gallery-new .portfolio-photo-grid .photo-card,
.portfolio-photo-gallery-new .portfolio-photo-grid .photo-card-wide,
.portfolio-photo-gallery-new .portfolio-photo-grid .photo-card-portrait{
  grid-column:auto !important;
  min-height:0 !important;
  width:100% !important;
  max-width:none !important;
}
.portfolio-photo-gallery-new .portfolio-photo-grid .photo-card > img{
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  object-fit:contain !important;
}

/* Existing media-gallery cards use the same clean image treatment. */
.media-gallery .photo-card{
  align-self:start !important;
}
.media-gallery .photo-card > img{
  height:auto !important;
  min-height:0 !important;
  object-fit:contain !important;
}

@media (max-width:640px){
  .portfolio-photo-gallery-new .portfolio-photo-grid{
    grid-template-columns:1fr !important;
    width:calc(100vw - 80px) !important;
    max-width:calc(100vw - 80px) !important;
    margin-left:auto !important;
    margin-right:auto !important;
    gap:22px !important;
  }
  .photo-card{
    border-radius:24px !important;
  }
}
