/* Public photos stay in a horizontal strip; the complete photo opens on demand. */
.property-photo-gallery{--gallery-gold:#d3b46f;--gallery-dark:#151719;width:100%;min-width:0}
.property-gallery-hero{position:relative;background:#e9e9e5}
.property-gallery-track{display:flex;gap:2px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none}
.property-gallery-track::-webkit-scrollbar{display:none}
.property-gallery-tile{position:relative;flex:0 0 calc((100% - 4px)/3);height:clamp(280px,29vw,510px);padding:0;border:0;border-radius:0;overflow:hidden;background:#e9e9e5;cursor:zoom-in;scroll-snap-align:start}
.property-gallery-tile img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.property-gallery-expand{display:grid;place-items:center;position:absolute;right:18px;bottom:18px;width:38px;height:38px;border:1px solid #ffffff80;border-radius:50%;color:#fff;background:#10243865;opacity:0;transition:opacity .2s ease}
.property-gallery-expand svg{width:20px;height:20px}
.property-gallery-tile:hover img{transform:scale(1.035)}
.property-gallery-tile:is(:hover,:focus-visible) .property-gallery-expand{opacity:1}
.property-photo-gallery button:focus-visible{outline:3px solid var(--gallery-gold);outline-offset:-4px}
.property-photo-gallery .property-gallery-arrow{position:absolute;z-index:2;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:48px;height:64px;padding:10px;border:0;border-radius:0;background:#10243875;color:#fff;cursor:pointer;transition:background .2s ease,opacity .2s ease}
.property-gallery-arrow svg{width:28px;height:28px;stroke-width:2}
.property-gallery-arrow.previous{left:0}.property-gallery-arrow.next{right:0}
.property-gallery-arrow.previous svg{transform:rotate(90deg)}.property-gallery-arrow.next svg{transform:rotate(-90deg)}
.property-photo-gallery .property-gallery-arrow:hover{background:#102438d9;color:var(--gallery-gold)}
.property-photo-gallery .property-gallery-arrow:disabled{opacity:.22;cursor:default}
.property-gallery-summary{display:flex;align-items:center;gap:18px;padding-top:16px;padding-bottom:14px;border-bottom:1px solid var(--line,#e5e9ec)}
.property-gallery-all{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:9px 17px;border:1px solid #b69a60;border-radius:5px;background:#fff;color:var(--navy,#102438);font-family:inherit;font-size:.8125rem;font-weight:600;line-height:1.3;cursor:pointer}
.property-gallery-all svg{width:18px;height:18px}.property-gallery-all:hover{background:#f7f3e9}
.property-gallery-summary>span{color:var(--muted,#61707a);font-size:.8125rem}
.single-photo .property-gallery-hero{background:#fff}
.single-photo .property-gallery-tile{flex-basis:100%;height:clamp(300px,37vw,560px);background:#fff}
.single-photo .property-gallery-tile img{object-fit:contain;background:#fff}
html.property-gallery-is-open{overflow:hidden;scrollbar-gutter:stable}
.property-gallery-dialog{position:fixed;inset:0;margin:0;padding:0;border:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;color:#fff;background:transparent;overflow:hidden;overscroll-behavior:contain}
.property-gallery-dialog:not([open]){display:none}
.property-gallery-dialog::backdrop{background:rgb(0 0 0 / 85%)}
.property-gallery-lightbox{display:grid;grid-template-rows:56px minmax(0,1fr) auto 96px;gap:14px;width:min(1440px,100%);height:100%;margin:auto;padding:10px max(24px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));box-sizing:border-box}
.property-gallery-top{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;min-width:0;color:#fff;font-size:.875rem}
.property-gallery-top>span:first-child{color:#bdbebf;font-size:.8125rem;letter-spacing:.025em}
.property-gallery-top [data-gallery-count]{font-variant-numeric:tabular-nums;font-weight:600}
.property-gallery-close{justify-self:end;display:grid;place-items:center;width:48px;height:48px;border:0;background:transparent;color:#d1d1d1;cursor:pointer}
.property-gallery-close svg{width:27px;height:27px}.property-gallery-close:hover{color:var(--gallery-gold);background:#ffffff09}
.property-gallery-stage{position:relative;min-height:0;min-width:0;padding:0 68px;touch-action:pan-y pinch-zoom}
.property-gallery-photo{display:block;width:100%;height:100%;max-height:100%;max-width:100%;object-fit:contain;user-select:none}
.property-gallery-photo[hidden]{display:none}
.property-gallery-dialog .property-gallery-arrow{width:56px;height:72px;color:var(--gallery-gold);background:transparent}
.property-gallery-dialog .property-gallery-arrow svg{width:40px;height:40px;stroke-width:1.7}
.property-gallery-dialog .property-gallery-arrow:hover{background:#ffffff0c}
.property-gallery-dialog .property-gallery-arrow:disabled{opacity:.15}
.property-gallery-caption{display:flex;align-items:center;justify-content:center;min-height:28px;min-width:0}
.property-gallery-caption p{margin:0;max-width:min(850px,100%);padding:5px 12px;border-radius:20px;background:#fff;color:#414141;font-size:.8125rem;line-height:1.35;text-align:center;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.property-gallery-caption p[hidden]{display:none}
.property-gallery-thumbnails{display:flex;align-items:flex-start;gap:10px;min-height:0;min-width:0;overflow-x:auto;overflow-y:hidden;padding:3px 2px 10px;scrollbar-width:thin;scrollbar-color:#6b6b68 #ffffff0a;overscroll-behavior-x:contain}
.property-gallery-thumbnail{flex:0 0 118px;height:78px;margin:0;padding:0;border:2px solid transparent;border-radius:8px;overflow:hidden;background:#ffffff0b;cursor:pointer;opacity:.5;transition:opacity .15s ease,border-color .15s ease}
.property-gallery-thumbnail img{display:block;width:100%;height:100%;object-fit:cover}
.property-gallery-thumbnail:hover{opacity:.85}
.property-gallery-thumbnail[aria-current="true"]{opacity:1;border-color:var(--gallery-gold)}
.property-gallery-thumbnail[data-pending="true"]{opacity:.85;border-color:#b2a689}
.property-gallery-message{position:absolute;z-index:3;left:50%;bottom:16px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 112px);padding:12px 18px;border:1px solid #ffffff26;border-radius:8px;background:#182129ed;color:#fff;text-align:center}
.property-gallery-message[hidden]{display:none}.property-gallery-message p{margin:0;font-size:.875rem;line-height:1.45}
.property-gallery-message button{margin-top:10px;min-height:44px;padding:8px 16px;border:1px solid var(--gallery-gold);border-radius:4px;background:transparent;color:#fff;cursor:pointer}
@media(min-width:1001px){.property-gallery-track:has(>.property-gallery-tile:nth-child(2):last-child) .property-gallery-tile{flex-basis:calc((100% - 2px)/2)}}
@media(max-width:1000px){.property-gallery-tile{flex-basis:calc((100% - 2px)/2);height:clamp(280px,42vw,430px)}}
@media(max-width:600px){
 .property-gallery-tile{flex-basis:88%;height:clamp(240px,70vw,370px)}
 .property-photo-gallery .property-gallery-hero>.property-gallery-arrow{width:38px;height:52px;padding:6px}
 .property-gallery-summary{gap:12px;padding-top:12px;padding-bottom:12px}.property-gallery-summary>span{font-size:.75rem;max-width:160px}
 .property-gallery-lightbox{grid-template-rows:48px minmax(0,1fr) auto 80px;gap:10px;padding:4px max(10px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}
 .property-gallery-top{gap:5px;font-size:.8125rem}.property-gallery-top>span:first-child{font-size:.6875rem;letter-spacing:0}.property-gallery-close{width:44px;height:44px}
 .property-gallery-stage{padding:0}
 .property-gallery-dialog .property-gallery-arrow{width:44px;height:56px;background:#1617198c}
 .property-gallery-dialog .property-gallery-arrow svg{width:31px;height:31px}
 .property-gallery-caption p{font-size:.75rem;padding:5px 10px}.property-gallery-thumbnail{flex-basis:94px;height:64px;border-radius:6px}.property-gallery-thumbnails{gap:8px;padding-bottom:8px}
 .property-gallery-message{max-width:calc(100% - 88px);padding:10px;font-size:.75rem}
 .single-photo .property-gallery-tile{height:clamp(250px,75vw,400px)}
}
@media(max-height:500px) and (min-width:601px){
 .property-gallery-lightbox{grid-template-rows:44px minmax(0,1fr) auto 60px;gap:6px;padding-top:0;padding-bottom:8px}
 .property-gallery-close{width:44px;height:44px}.property-gallery-thumbnail{flex-basis:76px;height:50px}.property-gallery-thumbnails{gap:8px;padding:0 2px 6px}
 .property-gallery-caption{min-height:22px}.property-gallery-caption p{padding:3px 10px;font-size:.6875rem}
}
@media(prefers-reduced-motion:reduce){.property-gallery-tile img,.property-gallery-expand,.property-gallery-arrow,.property-gallery-thumbnail{transition:none}.property-gallery-tile:hover img{transform:none}}
