/* EQ Portfolio. Colors follow the Kinley global settings when present; override --eqpf-* on .eq-pf to change them. */
.eq-pf{--eqpf-accent:var(--emq-accent,#e8743b);--eqpf-ink:var(--emq-text,#2a2f1f);--eqpf-muted:var(--emq-muted,#6b705f);--eqpf-radius:var(--emq-radius,12px);--eqpf-chip:var(--emq-primary,#3a4527);--eqpf-cols:3;font-family:inherit;color:var(--eqpf-ink)}
.eq-pf *{box-sizing:border-box}
.eq-pf-chips{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 24px}
.eq-pf-chip{border:2px solid var(--eqpf-chip);background:transparent;color:var(--eqpf-ink);border-radius:999px;padding:8px 20px;font:600 15px/1.2 inherit;font-family:inherit;cursor:pointer;transition:.15s}
.eq-pf-chip:hover,.eq-pf-chip.on{background:var(--eqpf-chip);color:#fff}
.eq-pf-chip:focus-visible,.eq-pf-card:focus-visible{outline:3px solid var(--eqpf-accent);outline-offset:3px}
.eq-pf-grid{display:grid;grid-template-columns:repeat(var(--eqpf-cols),minmax(0,1fr));gap:28px 24px;align-items:start}
.eq-pf-card{display:block;width:100%;min-width:0;text-align:left;border:0;background:none;padding:0;margin:0;cursor:pointer;font:inherit;color:inherit}
.eq-pf-card.is-hid{display:none}
.eq-pf-thumb{display:block;position:relative;width:100%;aspect-ratio:var(--eqpf-ratio,4/3);overflow:hidden;border-radius:var(--eqpf-radius);background:rgba(0,0,0,.06)}
.eq-pf .eq-pf-thumb img{position:absolute;inset:0;width:100%!important;height:100%!important;max-width:none;object-fit:cover;object-position:center;display:block;margin:0;transition:transform .35s}
.eq-pf-card:hover .eq-pf-thumb img{transform:scale(1.04)}
.eq-pf-noimg{display:block;width:100%;height:100%}
.eq-pf-title{display:block;margin-top:10px;font-weight:700;font-size:1.02em;line-height:1.3}
.eq-pf-cat{display:block;margin-top:2px;font-size:.92em;color:var(--eqpf-muted)}
.eq-pf-empty{padding:18px;border:1px dashed #b8c0c6;border-radius:8px;color:#5b6670}

/* Popup */
.eq-pf-modal{position:fixed;inset:0;z-index:99999;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(20,22,15,.78)}
.eq-pf-modal.open{display:flex}
.eq-pf-box{position:relative;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);width:min(1100px,100%);max-height:calc(100vh - 48px);background:#fff;color:#2a2f1f;border-radius:16px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.45);font-family:inherit}
.eq-pf-stage{position:relative;background:#14160f;display:flex;flex-direction:column;min-height:0}
.eq-pf-main{position:relative;flex:1 1 auto;min-height:260px;display:flex;align-items:center;justify-content:center}
.eq-pf-main img{max-width:100%;max-height:calc(100vh - 220px);object-fit:contain;display:block}
.eq-pf-nav{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.9);color:#222;font-size:22px;line-height:1;cursor:pointer;display:grid;place-items:center}
.eq-pf-nav:hover{background:#fff}.eq-pf-prev{left:12px}.eq-pf-next{right:12px}
.eq-pf-strip{display:flex;gap:8px;padding:10px;overflow-x:auto;background:#0d0f09}
.eq-pf-strip button{flex:none;width:64px;height:48px;padding:0;border:2px solid transparent;border-radius:6px;overflow:hidden;opacity:.6;cursor:pointer;background:none}
.eq-pf-strip button.on{border-color:var(--eqpf-accent,#e8743b);opacity:1}
.eq-pf-strip img{width:100%;height:100%;object-fit:cover;display:block}
.eq-pf-info{padding:32px 30px;overflow:auto}
.eq-pf-pcat{font-size:.78em;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:var(--eqpf-accent,#e8743b);margin:0 0 8px}
.eq-pf-ptitle{margin:0 0 6px;font-size:1.7em;line-height:1.2}
.eq-pf-pclient{margin:0 0 16px;color:#6b705f}
.eq-pf-ptext{margin:0 0 20px;line-height:1.6;white-space:pre-line}
.eq-pf-plink{display:inline-block;background:var(--eqpf-accent,#e8743b);color:#fff;text-decoration:none;font-weight:700;padding:12px 22px;border-radius:999px}
.eq-pf-count{margin:18px 0 0;font-size:.85em;color:#6b705f}
.eq-pf-close{position:absolute;top:10px;right:10px;z-index:3;width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:#222;font-size:24px;line-height:1;cursor:pointer}
body.eq-pf-lock{overflow:hidden}
@media(max-width:1279px){.eq-pf-grid{gap:20px}}
@media(max-width:820px){.eq-pf-box{grid-template-columns:1fr;overflow:auto}.eq-pf-main img{max-height:55vh}.eq-pf-info{padding:22px}.eq-pf-modal{padding:10px}}
@media(prefers-reduced-motion:reduce){.eq-pf-thumb img{transition:none}}
