/* Property gallery grid */
.pre-gallery { margin: 24px 0; }
.pre-gallery h3 { margin: 0 0 12px; }
.pre-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 900px) {
  .pre-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .pre-gallery-grid { grid-template-columns: 1fr; }
}
.pre-gallery-item {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
}
.pre-gallery-item img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Lightweight lightbox */
.pre-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}
.pre-lightbox.is-open { display: block; }
.pre-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.85);
}
.pre-lightbox__dialog {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pre-lightbox__img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
  background: #111;
}
.pre-lightbox__btn {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 22px;
  line-height: 42px;
}
.pre-lightbox__nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.pre-lightbox__arrow {
  pointer-events: auto;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 22px;
  margin: 0 14px;
}
