.gallery-filters{display:flex;align-items:end;flex-wrap:wrap;gap:14px;margin:0 0 18px}.gallery-filters label{display:block;flex:1;min-width:170px;max-width:270px}.gallery-filters label>span{display:block;margin-bottom:8px;font-size:11px;color:var(--muted)}.gallery-filters select{max-width:100%;font-size:12px}.gallery-count{font-size:12px;color:var(--muted);min-height:20px;margin:0 0 20px}.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px}.gallery-card{background:var(--paper);border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:var(--shadow)}.gallery-card.is-disabled{border-color:#dbc4b9}.gallery-card-open{border:0;width:100%;height:100%;padding:0;background:transparent;text-align:left;color:inherit;display:flex;flex-direction:column}.gallery-card-open:hover .gallery-card-image img{transform:scale(1.025)}.gallery-card-open:focus-visible{outline-offset:-4px}.gallery-card-image{display:block;width:100%;aspect-ratio:4/3;background:var(--bg);overflow:hidden;position:relative}.gallery-card-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s ease}.gallery-state{position:absolute;top:12px;right:12px;background:var(--surface-tint);border:1px solid var(--line);color:var(--brand-primary);font-size:10px;padding:5px 8px;border-radius:5px;box-shadow:0 2px 8px #0000000a}.gallery-state.is-disabled{background:#fbefe8f5;border-color:#e6c4b4;color:#974d36}.gallery-card-body{display:flex;flex-direction:column;gap:7px;padding:18px;width:100%}.gallery-card-body>strong{font-weight:600;font-size:14px;line-height:1.6;overflow-wrap:anywhere;margin-bottom:3px}.gallery-author{font-size:12px}.gallery-shop{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.gallery-card-date{font-size:10px;color:var(--muted);margin-top:5px}.gallery-image-error{width:100%;min-height:120px;height:100%;display:grid;place-content:center;padding:20px;background:var(--surface-tint);color:var(--muted);font-size:12px;text-align:center}.gallery-card-image [hidden],.gallery-main-preview [hidden],.gallery-reference-image [hidden]{display:none!important}.gallery-pagination{display:flex;justify-content:center;align-items:center;gap:22px;margin-top:28px}.gallery-pagination>span{font-size:12px;color:var(--muted)}.gallery-main-preview{border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--bg);min-height:160px}.gallery-main-preview>a{display:block}.gallery-main-preview img{display:block;width:100%;max-height:52vh;object-fit:contain}.gallery-preview-hint{margin:9px 0 23px}.gallery-detail-meta{grid-template-columns:repeat(2,minmax(0,1fr));padding-bottom:22px;border-bottom:1px solid var(--line)}.gallery-disabled-notice strong{display:block;margin-bottom:4px}.gallery-moderation{border:1px solid var(--line);padding:20px;border-radius:9px;background:var(--bg);margin-bottom:28px}.gallery-moderation h3{font-size:14px;margin-bottom:8px}.gallery-moderation .field{margin-bottom:12px}.gallery-moderation-actions{display:flex;justify-content:space-between;align-items:center;gap:16px}.gallery-operation-result{font-size:12px;line-height:1.7;margin:10px 0 0}.gallery-operation-result:empty{display:none}.gallery-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.gallery-section-head h3{margin:0}.gallery-section-head>span{font-size:11px;color:var(--muted)}.gallery-references{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:28px}.gallery-references figure{margin:0;min-width:0}.gallery-references a{display:block}.gallery-reference-image{display:block;aspect-ratio:4/3;border:1px solid var(--line);border-radius:7px;background:var(--bg);overflow:hidden}.gallery-reference-image img{width:100%;height:100%;object-fit:contain;display:block}.gallery-reference-image .gallery-image-error{min-height:0;font-size:11px}.gallery-references strong{font-size:11px;font-weight:500;display:block;line-height:1.7;margin-top:8px;overflow-wrap:anywhere}.gallery-references small{font-size:9px;display:block;color:var(--muted);line-height:1.7;overflow-wrap:anywhere;margin-top:3px}.gallery-request-section{border-top:1px solid var(--line);padding-top:24px}.gallery-request-section>h3{margin-bottom:17px}.gallery-parameters{border:1px solid var(--line);border-radius:8px;margin-bottom:12px;overflow:hidden}.gallery-parameters summary{font-size:12px;font-weight:500;cursor:pointer;padding:14px;background:var(--bg);line-height:1.6}.gallery-parameters summary:focus-visible{outline:2px solid var(--sage);outline-offset:-2px}.gallery-parameters .json-view{border-radius:0;margin:0;border-top:1px solid var(--line);overflow-wrap:anywhere;max-height:390px}.gallery-parameters .gallery-prompt{font-family:inherit;font-size:12px;line-height:1.9}.gallery-reference-section>p{margin-bottom:24px}@media(max-width:760px){.gallery-filters{gap:10px}.gallery-filters label{min-width:calc(50% - 10px);max-width:none}.gallery-filters .btn{flex:1}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gallery-card-body{padding:12px;gap:5px}.gallery-card-body>strong{font-size:12px}.gallery-author{font-size:11px}.gallery-shop,.gallery-card-date{font-size:10px}.gallery-state{top:8px;right:8px;font-size:9px}.gallery-section-head{align-items:start;flex-direction:column;gap:6px}.gallery-references{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-detail-meta{gap:17px}.gallery-detail-meta strong{font-size:12px}.gallery-moderation{padding:15px}.gallery-pagination{gap:15px}}@media(max-width:380px){.gallery-grid{grid-template-columns:1fr}.gallery-filters label{min-width:100%}.gallery-detail-meta{grid-template-columns:1fr}}
