/* EstateFlow integration — real photos, logos, embeds. */
/* Fill media hosts; keep lazy wrapper as the positioning context */
.ef-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;border-radius:inherit;display:block}
.ef-lazy-image > .ef-photo{position:absolute;inset:0}
.photo{isolation:isolate}
.photo .badges{z-index:2;pointer-events:none}
.photo .save{z-index:3}
/* Video-only listing cards: fill photo host like stills */
.photo > .ef-media-thumb{position:absolute;inset:0;width:100%;height:100%;min-height:0;border-radius:inherit}
.photo > .ef-media-thumb video,.photo > .ef-media-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.photo .ef-media-badge{z-index:2}
.ef-logo{height:30px;width:auto;max-width:150px;object-fit:contain;border-radius:6px}
.agent-mini .avatar{overflow:hidden}
.agent-mini .avatar img{width:100%;height:100%;object-fit:cover}
.lb-stage img.ef-lb{max-width:100%;max-height:100%;object-fit:contain;border-radius:12px}
.map.ef-map{display:block;padding:0}
.map.ef-map iframe{width:100%;height:100%;min-height:280px;border:0;display:block}
.gallery.ef-n1{grid-template-columns:1fr;grid-template-rows:420px}
.gallery.ef-n2{grid-template-columns:2fr 1fr;grid-template-rows:420px}
.gallery.ef-n1 .shot:first-child,.gallery.ef-n2 .shot:first-child{grid-row:auto}
@media (max-width:760px){
  .gallery.ef-n1,.gallery.ef-n2{grid-template-columns:1fr;grid-template-rows:260px 160px}
  .gallery.ef-n1 .shot:first-child,.gallery.ef-n2 .shot:first-child{grid-column:auto}
}

/* Lightbox chrome (versioned — do not rely only on cached /shared CSS) */
dialog.lightbox{position:fixed;inset:0;margin:auto;width:min(1120px,96vw);max-height:min(92vh,900px);padding:0;border:0;border-radius:20px;background:#0b1220;color:#fff;overflow:hidden;box-shadow:0 28px 80px rgba(0,0,0,.55)}
dialog.lightbox::backdrop{background:rgba(8,12,20,.78);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
dialog.lightbox .lb-thumb img,
dialog.lightbox .lb-thumb video{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
dialog.lightbox .lb-thumb.is-active{opacity:1;border-color:#fff}
