/* Общий каркас галереи недвижимости и посёлка: одно фото, стрелки, счётчик, лента. */
.photo-gallery.photo-gallery{position:relative;display:block;grid-area:auto;order:initial;width:100%;max-width:100%;min-width:0;margin:0;padding:0}
.photo-gallery .photo-gallery__main{position:relative;display:block;width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:16/10;margin:0 0 12px;padding:0;overflow:hidden;border:0;border-radius:3px;background:#d8ded8;box-shadow:0 18px 48px #0e17131f;touch-action:pan-y pinch-zoom}
.photo-gallery .photo-gallery__frame{position:absolute;inset:0;display:block;width:100%;height:100%;margin:0;padding:0;border:0;color:inherit;text-decoration:none}
.photo-gallery .photo-gallery__frame[hidden]{display:none}
.photo-gallery .photo-gallery__frame picture,.photo-gallery .photo-gallery__frame img{display:block;width:100%;height:100%;margin:0;padding:0}
.photo-gallery .photo-gallery__frame img{object-fit:cover;object-position:50% 50%}
.photo-gallery .photo-gallery__frame img:not([src]),.photo-gallery .photo-gallery__thumb img:not([src]){visibility:hidden}
.photo-gallery .photo-gallery__open{position:absolute;inset:0;z-index:2;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:0;background:transparent;cursor:zoom-in}
.photo-gallery .photo-gallery__open:focus-visible{outline:2px solid #c9aa72;outline-offset:-4px}
.photo-gallery .photo-gallery__arrow{position:absolute;top:50%;z-index:3;display:block;width:44px;height:44px;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:50%;background:#ffffffeb;box-shadow:0 8px 24px #1724282e;cursor:pointer;transform:translateY(-50%);transition:background-color .2s,box-shadow .2s}
.photo-gallery .photo-gallery__arrow::before{content:"";position:absolute;top:50%;left:50%;width:12px;height:12px;border-top:2px solid #30383d;border-right:2px solid #30383d}
.photo-gallery .photo-gallery__arrow--prev{left:14px;right:auto}
.photo-gallery .photo-gallery__arrow--prev::before{transform:translate(-38%,-50%) rotate(-135deg)}
.photo-gallery .photo-gallery__arrow--next{right:14px;left:auto}
.photo-gallery .photo-gallery__arrow--next::before{transform:translate(-62%,-50%) rotate(45deg)}
.photo-gallery .photo-gallery__arrow:hover{background:#fff;box-shadow:0 8px 24px #1724284d}
.photo-gallery .photo-gallery__arrow:focus-visible{outline:2px solid #c9aa72;outline-offset:3px}
.photo-gallery .photo-gallery__counter{position:absolute;right:13px;bottom:13px;z-index:3;min-width:54px;padding:7px 10px;border:1px solid #ffffff4d;border-radius:2px;background:#0e1713c7;color:#fff;font:700 12px/1 "Roboto Condensed",Arial,sans-serif;text-align:center;pointer-events:none}
.photo-gallery .photo-gallery__track{position:static;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(80px,110px);gap:9px;width:100%;height:auto;max-height:none;margin:0;padding:3px 3px 8px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;scroll-snap-type:x;scroll-padding-inline:3px;-webkit-overflow-scrolling:touch}
.photo-gallery .photo-gallery__track::-webkit-scrollbar{display:none}
.photo-gallery .photo-gallery__thumb{position:relative;display:block;width:auto;min-width:0;height:auto;aspect-ratio:4/3;margin:0;padding:0;overflow:hidden;border:2px solid transparent;border-radius:2px;background:#d8ded8;opacity:.66;cursor:pointer;scroll-snap-align:start;transform:none;transition:border-color .18s,opacity .18s}
.photo-gallery .photo-gallery__thumb picture,.photo-gallery .photo-gallery__thumb img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%}
.photo-gallery .photo-gallery__thumb:hover,.photo-gallery .photo-gallery__thumb:focus-visible,.photo-gallery .photo-gallery__thumb.is-active{border-color:#c9aa72;opacity:1}
.photo-gallery .photo-gallery__thumb:focus-visible{outline:2px solid #c9aa72;outline-offset:1px}
.photo-gallery .photo-gallery__status{position:absolute;inset:auto 64px 56px;z-index:4;margin:0;padding:10px 14px;border-radius:4px;background:#10291fed;color:#fff;font:14px/1.5 Arial,sans-serif;text-align:center;pointer-events:none}
.photo-gallery .photo-gallery__status[hidden]{display:none}
.photo-gallery .photo-gallery__retry{pointer-events:auto;display:inline-block;margin-top:8px;min-height:40px;padding:8px 14px;border:1px solid #e4c58b;border-radius:4px;color:#173c2f;background:#e4c58b;font:600 13px/1.3 Arial,sans-serif;cursor:pointer;transition:background .25s}
.photo-gallery .photo-gallery__retry:hover{background:#f2dbae}
.photo-gallery-heading{margin:0;font:400 clamp(34px,4.2vw,62px)/1.12 Georgia,"Times New Roman",serif;letter-spacing:-1px}
.photo-gallery-heading em{font-size:inherit;font-weight:inherit;white-space:normal}
@media(max-width:640px){.photo-gallery .photo-gallery__arrow{width:38px;height:38px}}
@media(max-width:639px){.photo-gallery .photo-gallery__main{aspect-ratio:4/3}.photo-gallery .photo-gallery__status{inset:auto 38px 50px;font-size:13px}.photo-gallery-heading{font-size:36px;letter-spacing:-.6px}}
