#fazenda-530ha .property-gallery-real{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:auto;align-items:start;gap:10px}
#fazenda-530ha .property-gallery-real a{display:block;min-width:0;background:#0c2c22}
#fazenda-530ha .property-gallery-real a:first-child{grid-column:1/-1}
#fazenda-530ha .property-gallery-real img{display:block;width:100%;height:auto;object-fit:contain;grid-column:auto;grid-row:auto}
#fazenda-530ha .property-gallery-real a:focus-visible{outline:3px solid #c8df63;outline-offset:3px}
#fazenda-530ha .gallery-instruction{margin:0 0 16px;font-size:16px;color:#53625a}
#fazenda-530ha .technical-note{font-size:16px!important;line-height:1.65}
#fazenda-530ha .property-contact .property-signature{margin-top:28px;padding-top:22px;border-top:1px solid #456358}
#fazenda-530ha .property-signature strong{color:#fff}
#fazenda-530ha .property-contact p a{text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.farm-photo-open{overflow:hidden}
.farm-photo-lightbox{width:min(1120px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:16px;border:1px solid #71887d;background:#0c2c22;color:#fff;overflow:auto}
.farm-photo-lightbox::backdrop{background:rgba(3,16,11,.88)}
.farm-photo-lightbox header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}
.farm-photo-lightbox header p{margin:0;font-size:16px;font-weight:700}
.farm-photo-lightbox button,.farm-photo-lightbox .photo-original{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:8px 16px;border:1px solid #71887d;background:transparent;color:#fff;font:600 16px 'DM Sans',sans-serif;cursor:pointer}
.farm-photo-lightbox button:hover,.farm-photo-lightbox .photo-original:hover{background:#183f31}
.farm-photo-lightbox button:focus-visible,.farm-photo-lightbox a:focus-visible{outline:3px solid #c8df63;outline-offset:2px}
.farm-photo-lightbox figure{margin:0}
.farm-photo-lightbox figure img{display:block;width:100%;max-height:calc(100vh - 220px);max-height:calc(100dvh - 220px);height:auto;object-fit:contain}
.farm-photo-lightbox figcaption{margin-top:10px;font-size:16px;line-height:1.4;color:#c2d0c9}
.farm-photo-lightbox .photo-navigation{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-top:14px}
.farm-photo-lightbox .photo-navigation span{font-size:16px}
.farm-photo-lightbox .photo-original{margin-top:12px}
@media(max-width:850px){#fazenda-530ha .property-gallery-real{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:auto}}
@media(max-width:520px){.farm-photo-lightbox{padding:12px}.farm-photo-lightbox header p{font-size:14px}.farm-photo-lightbox button{padding:8px 12px}}
