/* ============================================
   Lightbox / Full-screen Image Viewer
   ============================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  font-weight: 300;
  cursor: pointer;
  z-index: 1010;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.lightbox-close:hover {
  opacity: 1;
}

/* Nav arrows */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 48px;
  font-weight: 300;
  cursor: pointer;
  z-index: 1010;
  padding: 16px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

/* Content */
.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 65vh;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.lightbox-caption {
  margin-top: 16px;
  text-align: center;
  flex-shrink: 0;
}

.lightbox-title {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.lightbox-details-line {
  display: block;
  margin-top: 2px;
}

.lightbox-details {
  display: inline;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.5px;
}

/* Status in lightbox — inline with details */
.lightbox-status {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  margin-left: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.lightbox-status.status-sold {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
}

.lightbox-status.status-available {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Inquire button */
.lightbox-inquire {
  margin-top: 16px;
}

.btn-inquire {
  font-size: 11px;
  padding: 12px 28px;
  letter-spacing: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .lightbox-prev {
    left: 8px;
    font-size: 36px;
    padding: 12px;
  }

  .lightbox-next {
    right: 8px;
    font-size: 36px;
    padding: 12px;
  }

  .lightbox-close {
    top: 12px;
    right: 16px;
    font-size: 30px;
  }

  .lightbox-img {
    max-width: 95vw;
    max-height: 65vh;
  }

  .lightbox-title {
    font-size: 14px;
  }

  .lightbox-details {
    font-size: 12px;
  }
}
