.selected-gallery{max-width:1360px;margin:0 auto;padding:76px 46px;border-top:1px solid rgba(55,44,34,.14);scroll-margin-top:130px}
.selected-gallery>header{margin:0 0 32px;max-width:720px}
.selected-gallery>header h2{margin:0 0 16px;font-weight:400}
.selected-gallery>header p{font-size:17px;line-height:1.7;max-width:620px}
.sg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}
.sg-card{margin:0;min-width:0}
.sg-card>a{display:flex;align-items:center;justify-content:center;aspect-ratio:4/5;background:#ebe7df;overflow:hidden}
.sg-card img{display:block;width:100%;height:100%;object-fit:contain!important;object-position:center!important;transition:opacity .2s}
.sg-card>a:hover img{opacity:.9}
.sg-card>a:focus-visible{outline:2px solid #7c6340;outline-offset:5px}
.sg-more{margin-top:34px}
.sg-more>summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;padding:18px 0;border-bottom:1px solid rgba(55,44,34,.3);font-size:15px;letter-spacing:.035em;max-width:360px}
.sg-more>summary::-webkit-details-marker{display:none}
.sg-more[open]>summary{margin-bottom:30px}
.sg-more[open]>summary span{transform:rotate(45deg)}
.photo-viewer{padding:0;border:0;background:#161614;color:#fff;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0}
.photo-viewer::backdrop{background:#161614}
.photo-viewer-inner{display:flex;align-items:center;justify-content:center;height:100%;padding:64px 76px 76px;box-sizing:border-box}
.photo-viewer img{max-width:100%;max-height:100%;object-fit:contain}
.photo-viewer button{position:absolute;z-index:2;background:transparent;color:#fff;border:1px solid #777;cursor:pointer;padding:12px 18px;font:inherit;min-width:48px;min-height:48px}
.photo-viewer .pv-close{top:16px;right:18px}
.photo-viewer .pv-prev{left:16px;top:48%}
.photo-viewer .pv-next{right:16px;top:48%}
.photo-viewer .pv-caption{position:absolute;bottom:12px;left:16px;right:16px;max-width:900px;margin:0 auto;text-align:center;font-size:14px;line-height:1.5}
@media(max-width:1000px){.sg-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.selected-gallery{padding:54px 28px}}
@media(max-width:620px){.selected-gallery{padding:44px 20px}.selected-gallery>header p{font-size:16px}.sg-grid{grid-template-columns:1fr;gap:22px}.sg-card>a{max-height:75vh}.photo-viewer-inner{padding:76px 12px 112px}.photo-viewer .pv-prev,.photo-viewer .pv-next{top:auto;bottom:60px}.photo-viewer .pv-caption{font-size:12px}}
@media(prefers-reduced-motion:reduce){.sg-card img{transition:none}}
