/* BLIK gallery: scoped styles, no changes to other pages. */
body.gallery-layout {
  isolation: isolate;
}

body.gallery-layout::before {
  content: "";
  position: fixed;
  inset: auto auto 0 0;
  z-index: -1;
  width: min(100vw, max(36vw, 54svh));
  min-height: 54svh;
  aspect-ratio: 1;
  pointer-events: none;
  background: url("gallery-tropical-thicket.webp") left bottom / 100% 100% no-repeat;
}

.gallery-pagination :where(a, span) {
  background-color: var(--paper, #edf6f3);
}
.gallery-page{width:min(1440px,calc(100% - 2 * var(--gutter,24px)));margin:112px auto 40px;padding:0;min-width:0}
.gallery-page .gallery-title{display:flex;justify-content:space-between;align-items:end;gap:24px;text-align:left;margin:0 0 22px}
.gallery-page .gallery-title h1{margin:0;text-align:left;font-size:clamp(32px,4vw,52px);line-height:1.08}
.gallery-title .eyebrow{font-size:10px;margin:0 0 10px}.gallery-title>p{font-size:13px;margin:0;color:#68726f}
.gallery-filter-panel{position:relative;inset:auto;box-sizing:border-box;width:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;overflow:visible;background:transparent;color:#071a17}
.gallery-filter-panel-head,.gallery-mobile-filters{display:none}
.gallery-multi-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:start;margin:0}
.gallery-multi-fields{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;min-width:0}
.gallery-multi-group{position:relative;min-width:0;border:0;border-radius:10px;background:transparent;padding:0}
.gallery-multi-group summary{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:46px;padding:12px 14px;border:1px solid #afc8be;border-radius:10px;background:#eaf5f0;color:#12382b;cursor:pointer;font-size:13px;line-height:1.35;list-style:none;user-select:none}
.gallery-multi-group summary::-webkit-details-marker{display:none}.gallery-multi-group summary::marker{content:''}
.gallery-multi-group summary svg{flex-shrink:0}.gallery-multi-group[open] summary{border-color:#2c8269}.gallery-multi-group[open] summary svg{transform:rotate(180deg)}
.gallery-multi-options{position:absolute;z-index:20;top:calc(100% + 8px);left:0;box-sizing:border-box;width:max-content;min-width:100%;max-width:min(300px,80vw);max-height:330px;overflow:auto;margin:0;padding:12px;border:1px solid #c5d9d0;border-radius:12px;background:#f5faf7;box-shadow:0 14px 35px #071a1726}
.gallery-multi-option{display:flex;align-items:center;gap:10px;min-height:34px;padding:4px 6px;margin:0;border-radius:6px;cursor:pointer;color:#12382b;font:400 13px/1.4 Inter,sans-serif;overflow-wrap:anywhere}
.gallery-multi-option:hover{background:#dff3e9}.gallery-multi-option input{appearance:none;-webkit-appearance:none;position:static;display:block;box-sizing:border-box;flex:0 0 18px;width:18px;height:18px;min-width:18px;margin:0;padding:0;border:1.5px solid #779c8c;border-radius:4px;background:#fff;box-shadow:none;opacity:1;cursor:pointer}
.gallery-multi-option input:checked{background:#246b50;border-color:#246b50;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' stroke='%23fff' stroke-width='2' fill='none'/%3E%3C/svg%3E")}
.gallery-multi-option input:focus-visible,.gallery-multi-group summary:focus-visible,.gallery-chip:focus-visible{outline:3px solid #85f2d0;outline-offset:3px}
.gallery-multi-actions{display:flex;align-items:center;gap:16px}.gallery-multi-actions .button{white-space:nowrap;padding:14px 20px;font-size:13px;min-height:46px}.gallery-multi-actions>a{font-size:12px;color:#426355;white-space:nowrap}
.gallery-multi-actions>a{display:none}.gallery-selected{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:14px}
.gallery-chip{display:inline-flex;align-items:center;gap:10px;border-radius:18px;background:#def0e8;padding:8px 12px;color:#12382b;text-decoration:none;font-size:12px;line-height:1.35}
.gallery-chip:hover{background:#bff1df}.gallery-chip>span:last-child{font-size:17px;line-height:1}.gallery-reset{font-size:12px;text-underline-offset:3px;margin-left:8px;color:#426355}
.gallery-page .gallery-results-bar{margin:20px 0 14px}.gallery-page .gallery-stage{min-width:0}
.gallery-page .gallery-thumb > .item-price{font-size:clamp(8px,1vw,11.5px);line-height:1.2;padding:3px 6px;border-radius:4px}
.gallery-visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(min-width:1024px){
.gallery-page .gallery-grid{--gallery-columns:5;gap:12px;grid-template-columns:repeat(var(--gallery-columns),minmax(0,1fr))}
}
@media(min-width:1024px) and (min-height:780px){
.gallery-page{height:calc(100svh - 140px);margin:108px auto 32px;display:flex;flex-direction:column;gap:12px}
.gallery-page .gallery-title{flex:0 0 auto;margin:0}.gallery-page .gallery-title h1{font-size:36px}.gallery-title .eyebrow{margin-bottom:6px}
.gallery-filter-panel,.gallery-selected,.gallery-page .gallery-results-bar,.gallery-page .gallery-pagination{flex:0 0 auto;margin:0}
.gallery-page .gallery-stage{flex:1;min-height:250px;display:flex;justify-content:center;align-items:start}
.gallery-page .gallery-grid{width:min(100%,var(--gallery-grid-width,1148px));margin:0}
.gallery-page .gallery-pagination a,.gallery-page .gallery-pagination>span{width:36px;height:36px;min-width:36px;font-size:13px}
}
@media(min-width:761px) and (max-width:1100px){.gallery-multi-form{grid-template-columns:1fr}.gallery-multi-actions{justify-content:flex-end}.gallery-multi-fields{gap:8px}.gallery-multi-group summary{padding:12px 9px;font-size:12px}}
@media(max-width:760px){
.gallery-page{margin-top:110px;margin-bottom:32px}.gallery-page .gallery-title{display:block;margin-bottom:20px}.gallery-title>p{margin-top:12px}
.gallery-mobile-filters:not([hidden]){display:flex;align-items:center;gap:6px;width:100%;padding:14px 16px;border:1px solid #afc8be;border-radius:10px;background:#eaf5f0;color:#12382b;font:500 14px/1.4 Inter,sans-serif;cursor:pointer}.gallery-mobile-filters .icon{margin-left:auto}
.gallery-filter-panel{position:fixed;inset:auto 0 0;width:100%;max-width:640px;max-height:90dvh;margin:0 auto;border:1px solid #c5d9d0;border-bottom:0;border-radius:22px 22px 0 0;padding:22px 20px max(22px,env(safe-area-inset-bottom));background:#f3f7f5;overflow:hidden}
.gallery-filter-panel[open]{display:flex;flex-direction:column}.gallery-filter-panel::backdrop{background:#071a177a}.gallery-filters-open{overflow:hidden}
.gallery-filter-panel-head{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-shrink:0;margin-bottom:12px}.gallery-filter-panel-head h2{margin:0;font-size:26px}.gallery-filter-close{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;background:transparent;color:#12382b;font:30px/1 sans-serif;cursor:pointer}
.gallery-multi-form{display:flex;flex-direction:column;gap:0;min-height:0;overflow:hidden}.gallery-multi-fields{display:block;width:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;flex:1}
.gallery-multi-group{border-bottom:1px solid #d1e0d9;border-radius:0}.gallery-multi-group summary{border:0;border-radius:0;background:transparent;min-height:52px;padding:14px 2px;font-size:14px}.gallery-multi-group[open] summary{border:0}
.gallery-multi-options{position:static;min-width:0;width:100%;max-width:none;max-height:none;border:0;border-radius:0;background:transparent;box-shadow:none;padding:0 0 14px;overflow:visible}.gallery-multi-option{min-height:40px;padding:5px 4px;font-size:14px}
.gallery-multi-actions{flex-shrink:0;flex-direction:column;gap:14px;width:100%;padding-top:18px;background:#f3f7f5}.gallery-multi-actions .button{width:100%;justify-content:space-between;padding:15px 22px}.gallery-multi-actions>a{display:block}
.gallery-selected{margin-top:14px}.gallery-page .gallery-grid{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){.gallery-filter-panel *{scroll-behavior:auto!important}}
/* The shared stylesheet adds +/- to all details; these controls use chevrons. */
.gallery-multi-group summary::after{content:none}
.gallery-page .gallery-multi-group>summary::after,.gallery-page .gallery-multi-group[open]>summary::after{display:none;content:none}

/* Запись по выбранной работе в окне галереи. */
.gallery-layout .blik-photo-viewer .blik-photo-booking {
  flex: none;
  max-width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 18px;
  text-align: center;
  font-size: 14px;
  line-height: 1.3;
  touch-action: manipulation;
}
.gallery-layout .blik-photo-viewer .blik-photo-booking[hidden] {
  display: none;
}
.gallery-layout .blik-photo-viewer .blik-photo-booking:focus-visible {
  outline: 2px solid #f0f8f6;
  outline-offset: 3px;
}
