/* ==========================================================
   Premises photo grid (homepage) and lightbox
   ========================================================== */
.premises { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.premises .pm { margin: 0; position: relative; overflow: hidden; border-radius: 16px; cursor: zoom-in; background: #eadfcb; outline: none; }
.premises .pm img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.premises .pm:hover img, .premises .pm:focus-visible img { transform: scale(1.04); }
.premises .pm:focus-visible { box-shadow: 0 0 0 3px var(--gold, #b08d4a); }
.premises .pm figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 16px 12px; color: #fbf7f0; font-family: var(--serif, Georgia, serif); font-size: 1.05rem; background: linear-gradient(transparent, rgba(30,20,12,.7)); }
.premises .pm-feature { grid-column: span 2; grid-row: span 2; }

.lb { position: fixed; inset: 0; z-index: 300; background: rgba(20,12,6,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; gap: 12px; }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: 82vh; border-radius: 12px; object-fit: contain; }
.lb p { margin: 0; color: #fbf7f0; font-family: var(--serif, Georgia, serif); }
.lb-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }

@media (max-width: 899px) {
  .premises { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; gap: 10px; }
  .premises .pm-feature { grid-column: 1 / -1; grid-row: span 2; }
}
