.patterns-page .patterns-library{max-width:1376px}.patterns-page .section-intro{text-align:left}.gallery-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:20px;padding-bottom:24px;border-bottom:1px solid var(--line)}.gallery-filters{display:flex;flex-wrap:wrap;gap:8px}.gallery-filters button{min-height:42px;padding:9px 18px;border:1px solid var(--line);border-radius:24px;background:#fff;font-size:14px;color:var(--muted)}.gallery-filters button:hover{border-color:var(--accent);color:var(--accent)}.gallery-filters button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:#fff}.gallery-featured{display:flex;align-items:center;gap:8px;font-size:14px;cursor:pointer;white-space:nowrap}.gallery-featured input{width:17px;height:17px;accent-color:var(--accent)}.gallery-result-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:24px 0;font-size:13px;color:var(--muted);scroll-margin-top:100px}.gallery-result-heading>span{font-size:12px;color:var(--theme-subtle)}.gallery-grid{align-items:start;gap:28px 22px}.gallery-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:white;transition:box-shadow .2s,transform .2s}.gallery-card:hover{transform:translateY(-3px);box-shadow:0 9px 25px #513c4210}.gallery-card-button{display:block;padding:0;width:100%;text-align:left}.gallery-card-image{position:relative;display:grid;place-items:center;aspect-ratio:1;background:#f6f4ef;padding:16px}.gallery-card-image img{width:100%;height:100%;min-height:0;object-fit:contain;border-radius:5px}.gallery-badge{position:absolute;top:13px;left:13px;border:1px solid #ffffffc0;border-radius:6px;padding:4px 8px;background:#fffffff0;color:#6b6262;font-size:11px}.gallery-card-copy{padding:18px}.gallery-card-copy h2{font-size:15px;line-height:1.6;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gallery-card-copy p{margin-top:8px;font-size:12px;color:var(--muted)}.gallery-card-copy p>span{padding:0 8px}.gallery-card-bottom{display:flex;justify-content:space-between;gap:6px;margin-top:18px;font-size:12px;color:var(--muted)}.gallery-card-bottom>span:last-child{color:var(--accent)}.gallery-card-bottom b{margin-left:4px;font-weight:400}.gallery-pagination{display:flex;justify-content:center;align-items:center;gap:24px;margin-top:48px}.gallery-pagination>span{font-size:13px;color:var(--muted)}.gallery-state{padding:80px 20px;text-align:center;border:1px dashed var(--line);border-radius:16px}.gallery-state h2{font-size:21px}.gallery-state p{margin:14px 0 24px;color:var(--muted);font-size:14px}.gallery-skeleton{overflow:hidden}.gallery-skeleton div{aspect-ratio:1;background:#efebe7;border-radius:16px}.gallery-skeleton span{display:block;width:80%;height:14px;margin-top:18px;border-radius:5px;background:#efebe7}.gallery-skeleton span:last-child{width:50%;height:10px}.gallery-image-fallback{color:var(--muted);font-size:13px}.gallery-dialog{padding:0;border:1px solid var(--line);border-radius:22px;width:min(920px,calc(100vw - 40px));max-height:calc(100dvh - 48px);color:var(--ink);background:var(--theme-page);box-shadow:0 25px 80px #29152230}.gallery-dialog::backdrop{background:#26212a85;backdrop-filter:blur(3px)}.gallery-preview{display:grid;grid-template-columns:1.1fr 1fr;position:relative}.gallery-preview-art{display:grid;place-items:center;padding:30px;background:#f6f4ef;min-height:420px}.gallery-preview-art img{width:100%;max-height:65dvh;object-fit:contain}.gallery-preview-copy{padding:45px 30px 28px}.gallery-close{position:absolute;right:12px;top:12px;width:34px;height:34px;border-radius:50%;background:white;border:1px solid var(--line);font-size:25px;line-height:1;z-index:1}.gallery-eyebrow{font-size:12px;color:var(--accent);margin-bottom:12px}.gallery-preview-copy h2{font-size:23px;line-height:1.5;overflow-wrap:anywhere}.gallery-stats{display:grid;grid-template-columns:1fr 1fr;gap:22px 16px;margin:28px 0}.gallery-stats dt{font-size:12px;color:var(--muted);margin-bottom:7px}.gallery-stats dd{margin:0;font-size:15px;font-weight:600}.gallery-description,.gallery-note{font-size:13px;line-height:1.9;color:var(--muted);margin-bottom:20px}.gallery-text-button{color:var(--accent);text-decoration:underline}.gallery-source-button{margin-top:12px}.gallery-credit{font-size:11px;line-height:1.8;color:var(--muted);margin-top:18px}@media(max-width:650px){.gallery-filters{gap:6px}.gallery-filters button{padding:8px 12px;font-size:12px;min-height:38px}.gallery-toolbar{gap:16px}.gallery-grid{gap:20px 12px}.gallery-card{border-radius:12px}.gallery-card-image{padding:10px}.gallery-badge{top:8px;left:8px;font-size:10px;padding:3px 6px}.gallery-card-copy{padding:12px}.gallery-card-copy h2{font-size:13px}.gallery-card-copy p{font-size:11px}.gallery-card-copy p>span{padding:0 4px}.gallery-card-bottom{flex-wrap:wrap;font-size:11px;gap:8px;margin-top:13px}.gallery-pagination{gap:14px}.gallery-pagination .button{font-size:12px;padding:0 12px}.gallery-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:16px}.gallery-preview{grid-template-columns:1fr}.gallery-preview-art{min-height:0;padding:24px}.gallery-preview-art img{max-height:35dvh}.gallery-preview-copy{padding:24px}.gallery-preview-copy h2{font-size:20px}}@media(prefers-reduced-motion:reduce){.gallery-card{transition:none}.gallery-card:hover{transform:none}}