.realty-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:9rem;grid-auto-flow:dense;gap:1.25rem}
.realty-gallery-card{position:relative;overflow:hidden;border-radius:1.5rem;background:var(--bs-secondary-bg);box-shadow:0 8px 24px rgba(36,39,44,.12)}
.realty-gallery-card[data-orientation="portrait"]{grid-column:span 1;grid-row:span 3}
.realty-gallery-card[data-orientation="landscape"]{grid-column:span 2;grid-row:span 2}
.realty-gallery-card img{width:100%;height:100%;object-fit:cover;display:block}
.realty-gallery-overlay{position:absolute;inset:auto 0 0;padding:4rem 1.4rem 1.3rem;background:linear-gradient(transparent,rgba(0,0,0,.8));color:white;pointer-events:none}
.realty-gallery-overlay h4{color:white;margin:.4rem 0 0;font-weight:700}
.realty-gallery-label,.realty-gallery-state{font-size:.75rem;font-weight:600}
.realty-gallery-state{display:block;margin-top:.3rem}
.realty-gallery-actions{position:absolute;top:.85rem;right:.85rem;display:flex;gap:.4rem}
.realty-gallery-actions .btn{box-shadow:0 2px 8px #0003}
@media(max-width:1000px){.realty-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.realty-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:6rem;gap:.7rem}.realty-gallery-card[data-orientation="portrait"]{grid-row:span 3}.realty-gallery-card[data-orientation="landscape"]{grid-column:span 2;grid-row:span 2}.realty-gallery-overlay{padding:2rem .7rem .7rem}.realty-gallery-overlay h4{font-size:1rem}}
