@font-face{font-family:GalleryManrope;src:url("assets/block-02/Manrope-Regular.woff2") format("woff2");font-weight:400;font-display:block}
@font-face{font-family:GalleryManrope;src:url("assets/block-02/Manrope-SemiBold.woff2") format("woff2");font-weight:600;font-display:block}
#works-gallery{--paper:#faf9f7;--ink:#27221e;--muted:#56504a;--line:#dedbd6;--orange:#ed8a49;--ease-out:cubic-bezier(.23,1,.32,1)}
#works-gallery *{box-sizing:border-box}
html.b6-lightbox-open{overflow:hidden}
#works-gallery{margin:0;background:var(--paper);color:var(--ink);font-family:GalleryManrope,Arial,sans-serif}
#works-gallery button{font:inherit;cursor:pointer}
#works-gallery button:disabled{cursor:default}
#works-gallery [hidden]{display:none!important}
#works-gallery :focus-visible{outline:3px solid var(--orange);outline-offset:4px}
#works-gallery .b6-gallery{background:var(--paper)}
#works-gallery .b6-gallery-shell{max-width:1600px;margin:auto;padding:97px clamp(48px,4.72vw,76px) 116px}
#works-gallery .b6-eyebrow{display:flex;align-items:center;gap:14px;margin:0 0 28px;color:#746a61;font-size:12px;line-height:1.4;letter-spacing:.19em;font-weight:600}
#works-gallery .b6-eyebrow-rule{display:block;width:32px;height:1px;flex:none;background:var(--orange)}
#works-gallery .b6-gallery-header h2{max-width:1000px;margin:0;font-size:clamp(46px,3.75vw,56px);font-weight:400;line-height:1.12;letter-spacing:-.04em}
#works-gallery .b6-gallery-stage{position:relative;height:620px;margin-top:47px;overflow:hidden;touch-action:pan-y;user-select:none}
#works-gallery .b6-current-frame{position:absolute;inset:0 auto 0 0;width:min(74%,980px);height:100%;overflow:hidden;background:#e7e3dc;transition:transform .16s var(--ease-out)}
#works-gallery .b6-current-frame img,#works-gallery .b6-next-preview img{display:block;width:100%;height:100%;object-fit:cover;object-position:var(--photo-focus,50% 50%)}
#works-gallery .b6-current-frame[aria-busy="true"] img{opacity:0}
#works-gallery .b6-open-photo{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:transparent;color:var(--ink);text-align:right}
#works-gallery .b6-zoom-mark{position:absolute;right:18px;top:18px;display:grid;place-items:center;width:48px;height:48px;background:rgba(250,249,247,.95);transition:background .16s ease,transform .16s var(--ease-out)}
#works-gallery .b6-zoom-mark svg,#works-gallery .b6-preview-arrow svg,#works-gallery .b6-arrow svg,#works-gallery .b6-lightbox-close svg,#works-gallery .b6-lightbox-arrow svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
@media(hover:hover) and (pointer:fine){#works-gallery .b6-open-photo:hover .b6-zoom-mark{background:var(--orange);transform:translateY(-2px)}}
#works-gallery .b6-next-preview{position:absolute;left:calc(min(74%,980px) + 26px);top:135px;width:430px;height:455px;overflow:hidden;padding:0;border:0;background:#ddd9d2;text-align:left;transition:transform .16s var(--ease-out)}
#works-gallery .b6-preview-arrow{position:absolute;right:15px;bottom:15px;display:grid;place-items:center;width:48px;height:48px;background:rgba(250,249,247,.96);color:var(--ink);transition:background .16s ease,transform .16s var(--ease-out)}
@media(hover:hover) and (pointer:fine){#works-gallery .b6-next-preview:hover .b6-preview-arrow{background:var(--orange);transform:translateX(2px)}}
#works-gallery .b6-motion-layer{position:absolute;inset:0;z-index:3;overflow:hidden;pointer-events:none}
#works-gallery .b6-motion-frame{position:absolute;overflow:hidden;background:#e7e3dc;transform-origin:top left;will-change:transform,opacity}
#works-gallery .b6-motion-frame img{display:block;width:100%;height:100%;object-fit:cover;object-position:var(--photo-focus,50% 50%)}
#works-gallery .b6-gallery-stage[data-shape="portrait"] .b6-current-frame{width:min(40%,520px)}
#works-gallery .b6-gallery-stage[data-shape="portrait"] .b6-next-preview{left:calc(min(40%,520px) + 32px);top:170px;width:620px;height:420px}
#works-gallery .b6-gallery-stage.b6-is-last .b6-current-frame{left:50%;width:min(48%,620px);translate:-50% 0}
#works-gallery .b6-photo-loading,#works-gallery .b6-photo-error{position:absolute;inset:0;display:grid;place-content:center;gap:16px;text-align:center;color:var(--muted);font-size:16px;line-height:1.4}
#works-gallery .b6-photo-loading{pointer-events:none}
#works-gallery .b6-photo-error{z-index:2;background:#ece8e1}
#works-gallery .b6-photo-error p,#works-gallery .b6-lightbox-error p{margin:0}
#works-gallery .b6-photo-error button,#works-gallery .b6-lightbox-error button{justify-self:center;min-width:120px;min-height:44px;border:1px solid var(--ink);background:transparent;color:var(--ink)}
#works-gallery .b6-gallery-meta{display:flex;justify-content:space-between;align-items:start;gap:32px;padding-top:23px}
#works-gallery .b6-gallery-caption{max-width:720px;min-height:58px;margin:0;font-size:21px;line-height:1.38;letter-spacing:-.02em}
#works-gallery .b6-gallery-tools{display:flex;align-items:center;gap:30px;flex:none}
#works-gallery .b6-gallery-counter{min-width:75px;color:var(--ink);font-size:14px;line-height:1.4;letter-spacing:.08em;font-variant-numeric:tabular-nums;white-space:nowrap}
#works-gallery .b6-gallery-counter span{padding:0 7px;color:#9a9188}
#works-gallery .b6-gallery-arrows{display:flex;gap:9px}
#works-gallery .b6-arrow{display:grid;place-items:center;width:52px;height:52px;padding:0;border:1px solid #aaa29a;background:transparent;color:var(--ink);transition:background .16s ease,border-color .16s ease,color .16s ease}
#works-gallery .b6-arrow:disabled{border-color:#d8d4cf;color:#aba49d}
@media(hover:hover) and (pointer:fine){#works-gallery .b6-arrow:not(:disabled):hover{border-color:var(--orange);background:var(--orange)}}
#works-gallery .b6-lightbox{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:#161616;color:#f7f5f1;overscroll-behavior:contain}
#works-gallery .b6-lightbox::backdrop{background:#161616}
#works-gallery .b6-lightbox-inner{display:flex;flex-direction:column;width:100%;height:100%;padding:24px clamp(24px,3vw,48px) 27px}
#works-gallery .b6-lightbox-top{display:flex;justify-content:space-between;align-items:center;gap:20px;color:#bdb8b2;font-size:12px;font-weight:600;letter-spacing:.16em}
#works-gallery .b6-lightbox-close,#works-gallery .b6-lightbox-arrow{display:grid;place-items:center;width:48px;height:48px;flex:none;padding:0;border:1px solid #716f6a;background:transparent;color:#f7f5f1;transition:border-color .16s ease,background .16s ease}
#works-gallery .b6-lightbox-close{width:48px;height:48px}
#works-gallery .b6-lightbox-arrow:disabled{border-color:#454442;color:#787674}
@media(hover:hover) and (pointer:fine){#works-gallery .b6-lightbox-close:hover,#works-gallery .b6-lightbox-arrow:not(:disabled):hover{border-color:var(--orange);background:#473121}}
#works-gallery .b6-lightbox-media{position:relative;display:grid;place-items:center;flex:1;min-height:0;padding:18px 0}
#works-gallery .b6-lightbox-media img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain}
#works-gallery .b6-lightbox-media[aria-busy="true"] img{opacity:.25}
#works-gallery .b6-lightbox-loading,#works-gallery .b6-lightbox-error{position:absolute;inset:0;display:grid;place-content:center;gap:16px;text-align:center;color:#e8e3de;font-size:16px;line-height:1.4}
#works-gallery .b6-lightbox-error{background:#242322}
#works-gallery .b6-lightbox-error button{border-color:#bcb6b0;color:#f7f5f1}
#works-gallery .b6-lightbox-bottom{display:flex;justify-content:space-between;align-items:center;gap:30px;min-height:68px;border-top:1px solid #4f4c49;padding-top:17px}
#works-gallery .b6-lightbox-bottom p{min-height:26px;margin:0;font-size:19px;line-height:1.35}
#works-gallery .b6-lightbox-tools{display:flex;align-items:center;gap:9px;flex:none}
#works-gallery .b6-lightbox-counter{min-width:75px;margin-right:20px;color:#d8d1ca;font-size:14px;letter-spacing:.08em;font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:900px){#works-gallery .b6-gallery-shell{padding:78px 40px 96px}
#works-gallery .b6-gallery-header h2{font-size:clamp(40px,5.8vw,52px)}
#works-gallery .b6-gallery-stage{height:560px;margin-top:38px}
#works-gallery .b6-current-frame{width:75%}
#works-gallery .b6-next-preview{left:calc(75% + 20px);top:95px;width:320px;height:350px}
#works-gallery .b6-gallery-stage[data-shape="portrait"] .b6-current-frame{width:48%}
#works-gallery .b6-gallery-stage[data-shape="portrait"] .b6-next-preview{left:calc(48% + 22px);top:110px;width:350px;height:350px}
#works-gallery .b6-gallery-meta{padding-top:20px}
#works-gallery .b6-gallery-caption{font-size:19px}}
@media(max-width:600px){#works-gallery .b6-gallery-shell{padding:64px 20px 80px}
#works-gallery .b6-eyebrow{gap:11px;margin-bottom:23px;font-size:12px;letter-spacing:.15em}
#works-gallery .b6-eyebrow-rule{width:26px}
#works-gallery .b6-gallery-header h2{font-size:clamp(32px,8.2vw,38px);line-height:1.15;letter-spacing:-.035em}
#works-gallery .b6-gallery-stage{width:calc(100% + 20px);height:clamp(320px,92vw,370px);margin-top:30px}
#works-gallery .b6-current-frame{top:50%;height:clamp(248px,72vw,330px);translate:0 -50%;width:calc(100% - 56px)}
#works-gallery .b6-next-preview{left:calc(100% - 44px);top:50%;translate:0 -50%;width:160px;height:clamp(248px,72vw,330px)}
#works-gallery .b6-gallery-stage[data-shape="portrait"] .b6-current-frame{top:0;translate:none;width:calc(100% - 56px);height:100%}
#works-gallery .b6-gallery-stage[data-shape="portrait"] .b6-next-preview{left:calc(100% - 44px);top:10%;translate:none;width:160px;height:80%}
#works-gallery .b6-preview-arrow{display:none}
#works-gallery .b6-zoom-mark{right:12px;top:12px;width:44px;height:44px}
#works-gallery .b6-zoom-mark svg{width:20px;height:20px}
#works-gallery .b6-gallery-meta{display:block;padding-top:18px}
#works-gallery .b6-gallery-caption{max-width:100%;min-height:58px;font-size:17px;line-height:1.42}
#works-gallery .b6-gallery-tools{justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:15px}
#works-gallery .b6-gallery-counter{font-size:13px}
#works-gallery .b6-arrow{width:48px;height:48px}
#works-gallery .b6-lightbox-inner{padding:14px 16px 20px}
#works-gallery .b6-lightbox-top{font-size:10px}
#works-gallery .b6-lightbox-close{width:44px;height:44px}
#works-gallery .b6-lightbox-media{padding:14px 0}
#works-gallery .b6-lightbox-bottom{display:block;min-height:0;padding-top:13px}
#works-gallery .b6-lightbox-bottom p{min-height:52px;font-size:15px;line-height:1.4}
#works-gallery .b6-lightbox-tools{justify-content:space-between}
#works-gallery .b6-lightbox-counter{font-size:12px}
#works-gallery .b6-lightbox-arrow{width:48px;height:48px}}
@media(max-width:350px){#works-gallery .b6-gallery-shell{padding-left:16px;padding-right:16px}
#works-gallery .b6-gallery-stage{width:calc(100% + 16px)}
#works-gallery .b6-gallery-header h2{font-size:31px}
#works-gallery .b6-gallery-caption{font-size:16px}}
@media(max-width:600px){#works-gallery .b6-gallery-stage.b6-is-last .b6-current-frame{left:0;width:calc(100% - 20px);translate:none}}
@media(prefers-reduced-motion:reduce){#works-gallery .b6-current-frame,#works-gallery .b6-next-preview,#works-gallery .b6-zoom-mark,#works-gallery .b6-preview-arrow,#works-gallery .b6-arrow,#works-gallery .b6-lightbox-close,#works-gallery .b6-lightbox-arrow{transition:opacity .12s ease,background .12s ease,border-color .12s ease,color .12s ease!important;transform:none!important}}
/* Integration resets: preserve the approved prototype within the landing. */
#works-gallery{font-family:GalleryManrope,Arial,sans-serif;line-height:normal;text-align:left}
#works-gallery .b6-gallery-header{position:static;inset:auto;width:auto;height:auto;min-height:0;padding:0;margin:0;border:0;box-shadow:none;background:none;transform:none}
#works-gallery .b6-lightbox{font:inherit}
/* Waiting affects only a status badge; the current photograph and controls remain usable. */
#works-gallery .b6-is-waiting .b6-photo-loading,#works-gallery .b6-navigation-error .b6-photo-error{inset:auto 12px 12px 12px;padding:12px;background:rgba(250,249,247,.96);color:#27221e;z-index:2}
#works-gallery .b6-is-animating .b6-current-frame,#works-gallery .b6-is-animating .b6-next-preview{background:transparent}
#works-gallery .b6-is-animating .b6-open-photo{opacity:0}
#works-gallery .b6-is-animating .b6-next-preview img,#works-gallery .b6-preview-loading img,#works-gallery .b6-preview-failed img{visibility:hidden}
#works-gallery .b6-motion-loading{display:grid;place-content:center;height:100%;font-size:14px;color:#655f58;text-align:center}
#works-gallery .b6-preview-loading::after,#works-gallery .b6-preview-failed::after{content:"Загрузка фото…";position:absolute;inset:0;display:grid;place-content:center;padding:12px;font-size:14px;color:#655f58;text-align:center;pointer-events:none}
#works-gallery .b6-preview-failed::after{content:"Фото недоступно"}
#works-gallery .b6-is-animating .b6-next-preview::after{display:none}
/* The accepted rhythm sets 36px of mobile padding; offset only anchor scrolling. */
@media(max-width:600px){#works-gallery{scroll-margin-top:max(0px,calc(var(--site-header-height,70px) + 16px - 36px));overflow-anchor:none}}
@media(min-width:601px) and (max-width:1023px){#works-gallery{scroll-margin-top:max(0px,calc(var(--site-header-height,70px) + 16px - 40px));overflow-anchor:none}}
