/* RC20 companion: public listing gallery refinement. No ERP data writes. */
.single-property-page-v52 .property-gallery-premium.property-gallery-v49{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);
  grid-template-rows:auto;
  gap:10px;
  height:clamp(340px,43vw,570px);
  position:relative;
  direction:ltr;
}
.single-property-page-v52 .property-gallery-premium.property-gallery-v49 .property-gallery-main{
  min-width:0;min-height:0;height:100%;width:100%;border-radius:16px;display:block;
  overflow:hidden;position:relative;padding:0;
}
.single-property-page-v52 .property-gallery-premium.property-gallery-v49 .property-gallery-main img{
  display:block;width:100%;height:100%;min-height:0;object-fit:cover;
}
.single-property-page-v52 .property-gallery-premium.property-gallery-v49 .property-gallery-side{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));
  gap:10px;margin:0;min-width:0;min-height:0;overflow:visible;padding:0;
}
.single-property-page-v52 .property-gallery-premium.property-gallery-v49 .premium-thumb{
  position:relative;display:block;width:100%;height:100%;min-height:0;min-width:0;
  margin:0;padding:0;border-radius:14px;overflow:hidden;flex:none;
}
.single-property-page-v52 .property-gallery-premium.property-gallery-v49 .premium-thumb img{
  display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease;
}
.single-property-page-v52 .property-gallery-premium.property-gallery-v49 .premium-thumb:hover img,
.single-property-page-v52 .property-gallery-premium.property-gallery-v49 .property-gallery-main:hover img{transform:scale(1.035)}
.single-property-page-v52 .property-gallery-premium.property-gallery-v49 .gallery-all-photos{
  position:absolute;z-index:3;right:16px;bottom:16px;top:auto;left:auto;margin:0;
}
.single-property-page-v52 .property-gallery-premium.property-gallery-v49 .gallery-view-chip{z-index:2}
.single-property-page-v52 .property-gallery-premium.property-gallery-v49 button:focus-visible{
  outline:3px solid #dcb96a;outline-offset:2px;
}
@media(max-width:850px){
  .single-property-page-v52 .property-gallery-premium.property-gallery-v49{
    grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);height:clamp(290px,53vw,460px);gap:8px;
  }
  .single-property-page-v52 .property-gallery-premium.property-gallery-v49 .property-gallery-side{gap:8px}
}
@media(max-width:600px){
  .single-property-page-v52 .property-gallery-premium.property-gallery-v49{display:block;height:auto}
  .single-property-page-v52 .property-gallery-premium.property-gallery-v49 .property-gallery-main,
  .single-property-page-v52 .property-gallery-premium.property-gallery-v49 .property-gallery-main img{
    width:100%;height:clamp(235px,67vw,350px);min-height:0;border-radius:13px;
  }
  .single-property-page-v52 .property-gallery-premium.property-gallery-v49 .property-gallery-side{
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:none;
    gap:7px;margin-top:8px;overflow:visible;padding:0;
  }
  .single-property-page-v52 .property-gallery-premium.property-gallery-v49 .premium-thumb{
    width:100%;height:auto;min-height:0;aspect-ratio:1.15;border-radius:9px;
  }
  .single-property-page-v52 .property-gallery-premium.property-gallery-v49 .gallery-all-photos{
    top:auto;bottom:calc((100vw - 32px - 21px)/4/1.15 + 17px);right:12px;
    min-height:34px;padding:7px 10px;font-size:11px;
  }
  .single-property-page-v52 .property-gallery-premium.property-gallery-v49 .gallery-view-chip{display:none}
}
@media(prefers-reduced-motion:reduce){
  .single-property-page-v52 .property-gallery-premium.property-gallery-v49 img{transition:none!important}
}
