/* Listing photography: an editorial preview and a full-image lightbox. */
.gallery-open-photo,.gallery-preview-photo,.gallery-editorial-photo{display:block;width:100%;height:100%;padding:0;position:relative;overflow:hidden;cursor:zoom-in}
.gallery-editorial-photo{height:auto}
.gallery-open-photo:hover img,.gallery-preview-photo:hover img,.gallery-editorial-photo:hover img{opacity:.93}
.gallery-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:8px;min-height:0}
.detail-gallery .gallery-preview-photo img{object-fit:cover}
.gallery-view-all{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1px solid #1b396745;padding:8px;text-align:center;background:var(--paper);transition:background .2s}
.gallery-view-all:hover{background:#e3e3e4}
.gallery-view-all>span{font:clamp(15px,1.65vw,27px)/1.1 var(--serif);letter-spacing:-.025em}
.gallery-view-all small{font-size:15px;line-height:1.3;color:var(--muted)}
.property-gallery-dialog{border:0;padding:0;margin:auto;width:min(1440px,96vw);max-width:96vw;height:min(1050px,94dvh);max-height:94dvh;background:var(--paper);color:var(--ink);overflow:hidden;box-shadow:0 25px 100px #0006}
.property-gallery-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto}
.property-gallery-dialog::backdrop{background:#1b3967e8;backdrop-filter:blur(7px)}
.property-gallery-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 24px;border-bottom:1px solid var(--line)}
.property-gallery-header .eyebrow{font-size:15px;margin-bottom:6px}
.property-gallery-header h2{font:clamp(22px,2vw,32px)/1.1 var(--serif);letter-spacing:-.025em}
.property-gallery-actions{display:flex;align-items:center;gap:18px;flex-shrink:0}
.property-gallery-zoom{display:flex;align-items:center;gap:8px;min-height:44px;font-size:15px;padding:8px}
.property-gallery-zoom svg{width:19px;height:19px}
.property-gallery-close{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);font:32px/1 var(--sans);padding:0}
.property-gallery-close:hover,.property-gallery-zoom:hover{background:#e3e3e4}
.property-gallery-stage{position:relative;min-height:0;overflow:hidden;background:#1b3967}
.property-gallery-viewport{width:100%;height:100%;overflow:hidden;overscroll-behavior:contain;touch-action:pan-y}
.property-gallery-photo{display:block;width:100%;height:100%;padding:0;cursor:zoom-in}
.property-gallery-photo img{display:block;width:100%;height:100%;max-width:none;object-fit:contain}
.property-gallery-dialog.is-zoomed .property-gallery-viewport{overflow:auto;touch-action:pan-x pan-y}
.property-gallery-dialog.is-zoomed .property-gallery-photo{width:200%;height:200%;cursor:zoom-out}
.property-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:48px;height:48px;padding:10px;background:#1b3967;border:1px solid #f0eee775;color:var(--paper)}
.property-gallery-arrow:hover{background:#56575a}
.property-gallery-arrow svg{width:25px;height:25px}
.property-gallery-prev{left:16px}.property-gallery-next{right:16px}
.property-gallery-arrow:focus-visible,.property-gallery-photo:focus-visible{outline:2px solid var(--paper);outline-offset:-4px}
.property-gallery-info{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 24px;font-size:15px;line-height:1.5}
.property-gallery-info p{line-height:1.5}
[data-gallery-count]{font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--muted)}
.property-gallery-thumbnails{display:flex;gap:10px;overflow-x:auto;padding:0 24px 18px;scrollbar-width:thin;scrollbar-color:#1b3967 transparent;overscroll-behavior:contain}
.property-gallery-thumb{flex:0 0 clamp(80px,8vw,116px);aspect-ratio:4/3;padding:3px;border:1px solid transparent;opacity:.65;transition:opacity .2s}
.property-gallery-thumb:hover{opacity:1}
.property-gallery-thumb[aria-pressed="true"]{border-color:var(--green);opacity:1;background:#dddddf}
.property-gallery-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.property-gallery-error:not([hidden]){position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:60px;color:var(--paper);background:#1b3967;pointer-events:none;font-size:17px}
@media(max-width:760px){
  .gallery-preview-grid{gap:5px;aspect-ratio:4/3}
  .gallery-view-all{gap:4px;padding:4px}
  .property-gallery-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh}
  .property-gallery-header{padding:12px 14px;gap:10px}
  .property-gallery-header h2{font-size:22px}
  .property-gallery-header .eyebrow{font-size:15px}
  .property-gallery-actions{gap:5px}
  .property-gallery-zoom{font-size:15px;padding:5px;gap:5px}
  .property-gallery-zoom svg{width:17px;height:17px}
  .property-gallery-close{width:40px;height:44px}
  .property-gallery-arrow{width:42px;height:46px;padding:8px}
  .property-gallery-prev{left:8px}.property-gallery-next{right:8px}
  .property-gallery-info{padding:12px 14px;gap:12px;font-size:15px}
  .property-gallery-thumbnails{gap:7px;padding:0 14px 12px}
  .property-gallery-thumb{flex-basis:82px}
}
@media(max-width:370px){
  .property-gallery-header h2{font-size:20px}
  .property-gallery-zoom svg{display:none}
}

/* The main photograph can be browsed in place; the full gallery is a separate action. */
.gallery-primary[data-gallery-inline]{overflow:hidden;touch-action:pan-y}
.gallery-inline-arrow{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:48px;height:48px;padding:10px;color:#fff;background:#1b3967;border:1px solid #ffffff80}
.gallery-inline-prev{left:16px}.gallery-inline-next{right:16px}
.gallery-inline-arrow svg{width:25px;height:25px}
.gallery-inline-arrow:hover{background:#56575a}
.gallery-inline-arrow:focus-visible,.gallery-inline-view-all:focus-visible{outline:2px solid #fff;outline-offset:3px}
.gallery-inline-controls{position:absolute;bottom:20px;left:20px;right:20px;display:flex;justify-content:space-between;align-items:center;gap:12px;pointer-events:none}
.gallery-inline-view-all,.gallery-inline-count{color:var(--ink);background:#f0eee7f5;font:15px/1.4 var(--sans)}
.gallery-inline-view-all{padding:12px 17px;min-height:46px;pointer-events:auto}
.gallery-inline-count{padding:8px 12px;font-variant-numeric:tabular-nums;white-space:nowrap}
.detail-main>.offered-by-strip{padding:22px 0;border-top:1px solid var(--line);border-bottom:0}
.detail-main>.offered-by-strip p,.detail-main>.offered-by-strip .eyebrow,.detail-main>.offered-by-strip a,.detail-main>.offered-by-strip .offered-brokerage{font-size:15px;line-height:1.5}
.detail-main>.offered-by-strip a{font-family:var(--sans)}
@media(max-width:760px){
  .gallery-inline-prev{left:10px}.gallery-inline-next{right:10px}
  .gallery-inline-controls{bottom:12px;left:12px;right:12px;gap:8px}
  .gallery-inline-view-all{padding:10px 12px}
  .gallery-inline-count{padding:8px 10px}
  .gallery-view-all small{display:none}
  .property-gallery-header .eyebrow{letter-spacing:.06em}
  .property-gallery-header h2{font-size:21px}
  .property-gallery-zoom{flex-direction:column;gap:1px;line-height:1.2}
  .property-gallery-actions{gap:3px}
}
