/* The photo gallery and title row shared by the sale page and the rental pages (23 Nov 2026).
   Markup from sale_preview.gallery_html / lightbox_html; behaviour in gallery.js.
   Each page sets its own phone edge-to-edge margin on .sl-galw. */
:root{--sl-ink:#191713;--sl-ink2:#4a463f;--sl-ink3:#7d776d;--sl-gold:#b8935a;--sl-soft:#f3ece0;--sl-sand:#faf8f4;
  --sl-serif:"Cormorant Garamond",Georgia,"Times New Roman",serif}

.sl-galw{position:relative}
.sl-gal{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));gap:6px;height:460px;border-radius:3px;overflow:hidden;background:var(--sl-sand)}
.sl-gal img{min-width:0;min-height:0;width:100%;height:100%;object-fit:cover;display:block;cursor:pointer;background:var(--sl-soft)}
.sl-gal .g0{grid-row:1/3}
.sl-gal img:nth-child(n+6){display:none}
.sl-nophoto{display:grid;place-items:center;background:var(--sl-soft);color:var(--sl-ink3);min-height:220px;grid-column:1/-1;grid-row:1/-1}
.sl-all{position:absolute;right:12px;bottom:12px;background:rgba(255,255,255,.95);padding:8px 13px;font:inherit;font-size:12px;
  letter-spacing:.08em;text-transform:uppercase;font-weight:500;border:0;border-radius:2px;cursor:pointer;color:var(--sl-ink)}
.sl-count{display:none;position:absolute;left:12px;bottom:12px;background:rgba(25,23,19,.72);color:#fff;font-size:13px;
  padding:4px 10px;border-radius:20px;font-variant-numeric:tabular-nums}
.sl-ar{aspect-ratio:4/3}

/* lightbox */
.sl-lb{position:fixed;inset:0;z-index:2000;background:rgba(15,13,10,.94);display:flex;align-items:center;justify-content:center}
.sl-lb[hidden]{display:none}
.sl-lb img{max-width:94vw;max-height:84vh;object-fit:contain}
.sl-lb button{position:absolute;background:transparent;border:0;color:#fff;font-size:42px;cursor:pointer;padding:10px 16px;line-height:1}
.sl-lb-x{top:8px;right:8px}.sl-lb-p{left:6px;top:50%}.sl-lb-n{right:6px;top:50%}
.sl-lb-c{position:absolute;bottom:14px;left:0;right:0;text-align:center;color:#fff;font-size:13px}

/* title row (title_row_html) */
.sl-head{display:flex;justify-content:space-between;gap:12px 24px;align-items:flex-end;flex-wrap:wrap;margin:26px 0 18px}
.sl-eyebrow{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--sl-gold);font-weight:500}
.sl-head h1{font-family:var(--sl-serif);font-weight:400;text-wrap:balance;font-size:44px;line-height:1.05;margin:6px 0 4px}
.sl-sub{color:var(--sl-ink2);font-family:var(--sl-serif);font-style:italic;font-size:19px}
.sl-price{font-family:var(--sl-serif);font-size:36px;line-height:1;white-space:nowrap;font-variant-numeric:lining-nums tabular-nums}
.sl-badge{display:block;font-family:"Inter",sans-serif;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--sl-gold);margin-top:6px}
.sl-head .excl-tag{display:inline-block;margin-top:10px}

/* rental pages: the gallery sits in a 92vw main, under the price line */
.rgal{margin:20px 0 0}

/* phone */
@media (max-width:760px){
  .rgal .sl-galw{margin:0 -4vw}
  .sl-head{margin:18px 0 14px;align-items:flex-start;flex-direction:column}
  .sl-head h1{font-size:34px}
  .sl-price{font-size:30px}
  .sl-eyebrow{font-size:12px;letter-spacing:.12em}
  .sl-gal{display:flex;height:auto;gap:0;overflow-x:auto;scroll-snap-type:x mandatory;border-radius:0;scrollbar-width:none}
  .sl-gal::-webkit-scrollbar{display:none}
  .sl-gal img,.sl-gal img:nth-child(n+6){display:block;flex:0 0 100%;width:100%;height:auto;aspect-ratio:4/3;scroll-snap-align:start}
  .sl-count{display:block}
  .sl-all{right:10px;bottom:10px;font-size:11px;padding:6px 10px}
}
