/* V1 only: clickable client names and accessible photography viewer */
.theme-editorial .clients-matrix>.client-gallery-trigger{
  appearance:none;-webkit-appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  min-height:110px;width:100%;padding:19px 16px;border:1px solid var(--line);border-radius:0;
  color:inherit;background:var(--surface);font-family:var(--head-font);font-size:clamp(15px,1.55vw,21px);
  line-height:1.25;white-space:normal;text-align:center;cursor:pointer;transition:border-color .2s,transform .2s,background .2s;
}
.theme-editorial .clients-matrix>.client-gallery-trigger:hover{border-color:var(--primary);background:#f6eee4;transform:translateY(-3px)}
.theme-editorial .clients-matrix>.client-gallery-trigger:focus-visible{outline:3px solid #9b623d;outline-offset:3px}
.client-gallery-name{display:block;font-family:inherit;font-size:inherit;line-height:inherit}
.client-gallery-hint{font-family:'Trebuchet MS',Arial,sans-serif;font-size:11px;letter-spacing:.04em;font-weight:700;color:var(--primary)}
.client-gallery-open{overflow:hidden}
.client-gallery-overlay[hidden]{display:none!important}
.client-gallery-overlay{position:fixed;inset:0;z-index:9999;background:rgba(15,11,9,.78);display:grid;place-items:center;padding:18px;overflow-y:auto;overscroll-behavior:contain}
.client-gallery-modal{position:relative;width:min(100%,1060px);max-height:calc(100dvh - 36px);overflow-y:auto;overscroll-behavior:contain;
 background:#fffaf4;color:#342922;border:1px solid #d9c6ae;box-shadow:0 24px 72px #0008;padding:clamp(16px,3vw,30px);border-radius:10px}
.client-gallery-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.client-gallery-kicker{font-family:'Trebuchet MS',Arial,sans-serif;font-size:11px!important;letter-spacing:.18em;font-weight:800;color:#8a5438;margin:0 0 8px}
.client-gallery-top h2{font-family:Georgia,'Times New Roman',serif;font-size:clamp(25px,3.2vw,43px);letter-spacing:-.035em;max-width:850px;margin:0 0 12px;line-height:1.17}
.client-gallery-close{flex:0 0 44px;width:44px;height:44px;border:1px solid #cdbfb0;background:#f3e9dc;color:#442b1d;font-size:29px;line-height:1;border-radius:50%;cursor:pointer}
.client-gallery-disclosure{font-size:13px;line-height:1.5;color:#675443;margin:0 0 16px;max-width:920px}
.client-gallery-stage{position:relative;width:100%;background:#e5d7c7;display:flex;align-items:center;justify-content:center;border-radius:5px;overflow:hidden;min-height:230px}
.client-gallery-stage>img{display:block;width:100%;height:min(47vh,520px);object-fit:contain;object-position:center;background:transparent}
.client-gallery-stage>button{position:absolute;top:50%;transform:translateY(-50%);z-index:1;display:grid;place-items:center;border:1px solid #fff8;background:#211911b9;color:#fff;width:46px;height:46px;border-radius:50%;font-size:32px;line-height:1;cursor:pointer}
.client-gallery-prev{left:12px}.client-gallery-next{right:12px}
.client-gallery-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:16px;flex-wrap:wrap}
.client-gallery-counter{font-size:12px;font-weight:700;color:#705441;white-space:nowrap}
.client-gallery-thumbs{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.client-gallery-thumb{width:83px;height:57px;padding:0;border:2px solid transparent;border-radius:5px;overflow:hidden;cursor:pointer;background:#f1e4d3}
.client-gallery-thumb.active{border-color:#8b4f30}.client-gallery-thumb:focus-visible,.client-gallery-close:focus-visible,.client-gallery-stage button:focus-visible{outline:3px solid #bc844e;outline-offset:2px}
.client-gallery-thumb img{display:block;width:100%;height:100%;object-fit:cover}
@media(max-width:680px){.client-gallery-overlay{padding:10px}.client-gallery-modal{max-height:calc(100dvh - 20px);padding:16px}.client-gallery-stage{min-height:0}.client-gallery-stage>img{height:clamp(165px,27vh,235px)}.client-gallery-top h2{font-size:clamp(23px,6.8vw,31px)}.client-gallery-disclosure{font-size:12px}.client-gallery-stage>button{width:40px;height:40px}.client-gallery-thumb{width:69px;height:50px}.theme-editorial .clients-matrix>.client-gallery-trigger{min-height:112px;padding:16px 10px}}
@media(prefers-reduced-motion:reduce){.theme-editorial .clients-matrix>.client-gallery-trigger{transition:none}}
