/* ================================
   DESKTOP / DEFAULT
   ================================ */

/* overlay peste pagină */
.property-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  justify-content: center;
  align-items: stretch;
  z-index: 9999;
}

.property-lightbox-backdrop.is-open {
  display: flex;
}

/* panoul de property */
.property-lightbox {
  position: relative;
  background: #111;
  border-radius: 0;
  overflow: visible;              /* 🔁 vizibil și în afară, nu mai taie X-ul */
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  height: 100vh;
  width: min(1250px, 100vw - 96px);
}

/* conținutul intern */
.property-lightbox-content {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: #ffffff;
}

/* X în afara panoului, dar vizibil */
.property-lightbox-close {
  position: absolute;
  top: 16px;
  right: -36px;
  z-index: 2;
  border: none;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

body.no-scroll {
  overflow: hidden;
}


/* ================================
   MOBILE OVERRIDES
   ================================ */

@media (max-width: 768px) {
  /* Mobile: full-screen, X în interior */
  .property-lightbox {
    width: 100vw;
    height: 100vh;
  }

  .property-lightbox-close {
    top: 0;
    right: 0;
    width: auto;
    height: auto;
	background: none;
    z-index: 999;
  }
  
}


/* ================================
   LAPTOP (WIDE + SHORT HEIGHT) OVERRIDES
   ================================ */

@media (max-height: 900px) and (min-width: 1200px){
  .property-lightbox{
    width: min(1050px, 100vw - 64px);
  }
}

@media (max-height: 700px) and (min-width: 1200px){
  .property-lightbox{
    width: min(900px, 100vw - 64px);
  }
}
