/* EPA V52 – keep uploaded photos unaltered; a zoom control shows the complete source. */
#epaHomeDashboard #listingCards .listing-photo,#epaWorkspace .epa-property-photo{position:relative!important;isolation:isolate!important;min-width:0!important;overflow:hidden!important;background-color:#dfe9ef!important}
#epaHomeDashboard #listingCards .listing-photo .epa-v48-listing-img,#epaWorkspace .epa-property-photo .epa-v50-property-cover{object-fit:contain!important;object-position:50% 50%!important;border:0!important;display:block!important}
#epaHomeDashboard #listingCards .listing-photo .epa-v52-photo-magnify,#epaWorkspace .epa-property-photo .epa-v52-photo-magnify{position:absolute!important;right:8px!important;bottom:8px!important;z-index:8!important;width:32px!important;height:32px!important;min-height:32px!important;border-radius:10px!important;background:#0c3656cc!important;color:white!important;border:1px solid #ffffffaa!important;display:grid!important;place-items:center!important;font-size:21px!important;cursor:zoom-in!important;padding:0!important}
#epaHomeDashboard #listingCards[data-epa-view-mode="stack"] .listing-photo{height:270px!important;min-height:270px!important;max-height:270px!important}
#epaHomeDashboard #listingCards[data-epa-view-mode="grid"] .listing-photo{height:162px!important;min-height:162px!important;max-height:162px!important}
#epaWorkspace .epa-listings[data-epa-view-mode="grid"] .epa-property-photo{height:173px!important;min-height:173px!important;max-height:173px!important}
#epaWorkspace .epa-listings[data-epa-view-mode="stack"] .epa-property-photo{height:270px!important;min-height:270px!important;max-height:270px!important}
#epaWorkspace .epa-listings[data-epa-view-mode="grid"] .epa-property-owner{align-items:center!important;min-width:0!important}
#epaWorkspace .epa-listings[data-epa-view-mode="grid"] .epa-property-owner>span:last-child{min-width:0!important;overflow-wrap:anywhere!important}
#epaWorkspace .epa-listings[data-epa-view-mode="grid"] .epa-property-owner small{font-size:10px!important;line-height:1.35!important}
#epaWorkspace .epa-listings[data-epa-view-mode="grid"] .epa-property-actions{display:flex!important;flex-wrap:wrap!important;align-items:stretch!important}
#epaWorkspace .epa-listings[data-epa-view-mode="grid"] .epa-property-actions .epa-btn{flex:1 1 45%!important;white-space:normal!important;min-width:0!important}
#epaWorkspace .epa-v41-room-card>img,#epaWorkspace .epa-office-cover,#epaWorkspace .epa-office-gallery img{object-fit:contain!important;object-position:center!important;max-width:100%!important}
#epaWorkspace .epa-v41-room-card>img{background:#edf3f8!important}
.epa-v52-image-dialog{position:fixed;inset:0;z-index:2147483602;background:#071521f5;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;padding:16px;box-sizing:border-box}
.epa-v52-image-dialog img{max-width:min(96vw,1200px)!important;max-height:82dvh!important;height:auto!important;width:auto!important;object-fit:contain!important;background:transparent!important}
.epa-v52-image-dialog p{color:white;font-size:11px;text-align:center;margin:0}
.epa-v52-photo-close{position:absolute;top:max(12px,env(safe-area-inset-top));right:12px;background:#143a55;border:1px solid #ffffff55;width:44px;height:44px;border-radius:50%;font-size:28px;color:white;cursor:pointer}
/* Only portraits with a detected portrait avatar flag get a lower crop; the photo source is unchanged. */
#epaWorkspace .epa-collab-avatar img.epa-photo-portrait{object-position:center 65%!important}
@media(max-width:400px){#epaHomeDashboard #listingCards[data-epa-view-mode="grid"] .listing-photo{height:152px!important;min-height:152px!important;max-height:152px!important}#epaWorkspace .epa-listings[data-epa-view-mode="grid"] .epa-property-photo{height:160px!important;min-height:160px!important;max-height:160px!important}}
