/* Фото с объектов */
#sreda-site .foto-head{padding-top:90px;padding-bottom:80px;background-color:#222820;background-size:cover;background-position:center 45%}
#sreda-site .foto-head .eyebrow{margin-bottom:6px}
#sreda-site .foto-lead{max-width:720px;margin:22px 0 0;font:19px/1.55 Georgia,'Times New Roman',serif;color:#d8d5cc}

#sreda-site .foto-filter{padding:0;position:sticky;top:0;z-index:15;background:#f2f0e9;border-bottom:1px solid rgba(32,37,31,.12)}
#sreda-site .foto-filter__in{padding:16px 10% 14px}
#sreda-site .foto-chips{display:flex;flex-wrap:wrap;gap:8px}
#sreda-site .chip{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid rgba(32,37,31,.28);background:#fbfaf7;color:#20251f;text-decoration:none;font:13px/1.2 Arial,sans-serif;white-space:nowrap;transition:background .2s,color .2s,border-color .2s}
#sreda-site .chip span{font-size:11px;color:#74776f}
#sreda-site .chip:hover{border-color:#20251f}
#sreda-site .chip.is-active{background:#20251f;color:#f2f0e9;border-color:#20251f}
#sreda-site .chip.is-active span{color:#c9cfbf}
#sreda-site .chip--stage{border-color:#59644e;color:#3f4838}
#sreda-site .chip--stage + .chip:not(.chip--stage){margin-left:10px}

#sreda-site .foto-body{padding:28px 10% 100px;background:#f2f0e9;color:#20251f}
#sreda-site .foto-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}
#sreda-site .foto-grid.is-masonry{grid-auto-rows:4px;gap:0 12px}
#sreda-site .foto-grid.is-masonry .ph{margin-bottom:12px}
#sreda-site .ph{position:relative;margin:0;overflow:hidden;background:#e4e0d6}
#sreda-site .ph[hidden]{display:none}
#sreda-site .ph__link{display:block;aspect-ratio:var(--ar);cursor:zoom-in}
#sreda-site .ph img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s}
#sreda-site .ph:hover img{transform:scale(1.03)}
#sreda-site .ph__tags{position:absolute;left:8px;right:8px;bottom:8px;display:flex;flex-wrap:wrap;gap:4px;pointer-events:none}
#sreda-site .ph__tags a{pointer-events:auto;background:rgba(32,37,31,.86);color:#f2f0e9;text-decoration:none;font:11px/1.2 Arial,sans-serif;padding:5px 7px}
#sreda-site .ph__tags a:hover{background:#20251f}
#sreda-site .ph__tags a.is-stage{background:rgba(216,198,165,.95);color:#20251f}
#sreda-site .screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

#sreda-site .foto-more{text-align:center;margin:30px 0 8px}
#sreda-site .foto-more[hidden]{display:none}
#sreda-site .foto-more__btn{cursor:pointer;font-size:12px;padding:16px 26px}
#sreda-site .foto-note,#sreda-site .foto-empty{text-align:center;font:13px Arial,sans-serif;color:#74776f;margin:12px 0 0}
#sreda-site .foto-text{margin-top:56px}

/* просмотр */
#sreda-site .lb{position:fixed;inset:0;z-index:1000;background:rgba(15,18,15,.94);display:flex;align-items:center;justify-content:center;padding:24px 70px}
#sreda-site .lb[hidden]{display:none}
#sreda-site .lb__fig{margin:0;max-width:100%;max-height:100%;display:flex;flex-direction:column;align-items:center}
#sreda-site .lb__img{max-width:100%;max-height:calc(100vh - 140px);object-fit:contain;display:block}
#sreda-site .lb__cap{color:#e9e6dd;font:14px/1.5 Arial,sans-serif;margin-top:12px;text-align:center;max-width:760px}
#sreda-site .lb__alt{display:block}
#sreda-site .lb__tags{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:8px}
#sreda-site .lb__tags a{color:#20251f;background:#d8c6a5;text-decoration:none;font-size:12px;padding:4px 8px}
#sreda-site .lb button{position:absolute;background:none;border:0;color:#f2f0e9;cursor:pointer;font:300 46px/1 Georgia,serif;padding:12px 16px}
#sreda-site .lb__close{top:8px;right:12px}
#sreda-site .lb__prev{left:6px;top:50%;transform:translateY(-50%)}
#sreda-site .lb__next{right:6px;top:50%;transform:translateY(-50%)}

@media(max-width:1000px){#sreda-site .foto-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
#sreda-site .foto-head{padding:50px 6% 44px}
#sreda-site .foto-lead{font-size:16px}
#sreda-site .foto-filter__in{padding:12px 0 12px 6%}
#sreda-site .foto-chips{flex-wrap:nowrap;overflow-x:auto;padding-right:6%;scrollbar-width:none;-webkit-overflow-scrolling:touch}
#sreda-site .foto-chips::-webkit-scrollbar{display:none}
#sreda-site .foto-body{padding:16px 4% 70px}
#sreda-site .foto-grid{gap:8px}
#sreda-site .foto-grid.is-masonry{gap:0 8px}
#sreda-site .foto-grid.is-masonry .ph{margin-bottom:8px}
#sreda-site .ph__tags{left:5px;right:5px;bottom:5px;gap:3px}
#sreda-site .ph__tags a{font-size:10px;padding:4px 5px}
#sreda-site .ph__tags a:nth-child(n+3){display:none}
#sreda-site .lb{padding:50px 8px 20px}
#sreda-site .lb__prev,#sreda-site .lb__next{top:auto;bottom:8px;transform:none}
}

/* Пока фото перемешиваются, сетку не показываем (без мигания порядка). Если скрипт не сработал — сетка появится через 1,5 с. */
.sp-js #sreda-site .foto-grid:not(.is-ready){opacity:0;animation:sp-foto-show 0s 1.5s forwards}
@keyframes sp-foto-show{to{opacity:1}}
#sreda-site .foto-grid.is-ready{opacity:1;transition:opacity .25s}
