.gallery-dialog{width:min(1180px,96vw);max-width:96vw;max-height:94vh;padding:24px;background:#fafaf5;border:1px solid #d4dfd6;border-radius:20px}.gallery-dialog::backdrop{background:#102f28a8}.gallery-close{position:sticky;top:0;z-index:3;background:#fff;margin-bottom:14px}.gallery-heading{display:flex;justify-content:space-between;align-items:start;gap:20px;margin-bottom:24px}.gallery-heading h2{font-size:clamp(1.4rem,3vw,2.15rem);margin:8px 0}.gallery-heading p{max-width:760px;line-height:1.9}.gallery-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:16px 0}.gallery-muted{color:#626e65;font-size:.88rem;line-height:1.9}.gallery-status{min-height:1.5em;color:#245548}.gallery-status.is-loading:before{content:'';display:inline-block;width:16px;height:16px;border:2px solid #ccd8cf;border-top-color:#245548;border-radius:50%;animation:gallery-spin .8s linear infinite;margin-left:8px;vertical-align:middle}@keyframes gallery-spin{to{transform:rotate(360deg)}}.gallery-error{color:#942b28;white-space:pre-wrap}.gallery-filters{display:flex;flex-wrap:wrap;gap:12px;background:#eef2e8;padding:18px;border-radius:14px;align-items:end}.gallery-field{display:flex;flex-direction:column;gap:6px;flex:1;min-width:170px;font-size:.87rem}.gallery-field input,.gallery-field select,.gallery-field textarea{width:100%;box-sizing:border-box;border:1px solid #bbcbbf;border-radius:9px;background:#fff;padding:11px;color:#173b31;font:inherit}.gallery-field textarea{min-height:100px;resize:vertical}.gallery-filter-more{flex-basis:100%}.gallery-filter-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding-top:12px}.gallery-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:20px 0}.gallery-card{display:flex;flex-direction:column;border:1px solid #d9e2d8;border-radius:17px;overflow:hidden;background:white;box-shadow:0 4px 18px #213c2d08}.gallery-card>img{width:100%;height:150px;object-fit:contain;background:#edf1e8}.gallery-card-art{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:22px 28%;height:150px;box-sizing:border-box;background:#e5eee6}.gallery-card-art span{background:#b9d1c1;border-radius:5px}.gallery-card-art span:nth-child(5){background:#285e4b}.gallery-card:nth-child(3n+2) .gallery-card-art{background:#f2eddf}.gallery-card:nth-child(3n+2) .gallery-card-art span{background:#daceab}.gallery-card:nth-child(3n+2) .gallery-card-art span:nth-child(5){background:#847544}.gallery-card-body{display:flex;flex-direction:column;gap:10px;padding:20px;flex:1}.gallery-card-body h3{font-size:1.1rem;line-height:1.8;margin:0}.gallery-card-body p{line-height:1.9;margin:0;font-size:.88rem}.gallery-card-body>.button{margin-top:auto}.gallery-kicker{font-size:.74rem;color:#607263}.gallery-counts{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:10px 0}.gallery-counts strong{background:#e4edda;color:#214d3c;padding:5px 10px;border-radius:8px}.gallery-counts span,.gallery-rating{font-size:.78rem;color:#53695b}.gallery-rating{display:flex;gap:12px;flex-wrap:wrap}.gallery-pill{border-radius:6px;background:#f3eddc;padding:4px 8px;display:inline-block}.gallery-detail-cover{max-width:100%;max-height:300px;object-fit:contain;margin:12px 0}.gallery-preview{border:1px solid #d1ddd2;padding:18px;border-radius:15px;margin:25px 0;background:#fff}.gallery-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:800px;margin:12px auto}.gallery-preview-tile,.gallery-preview-empty,.gallery-preview-center{padding:20px 12px;border:1px solid #dbe6da;border-radius:12px;min-height:100px;background:#edf3e6;color:#183f38;line-height:1.8;font:inherit;text-align:center;overflow-wrap:anywhere}.gallery-preview-tile{cursor:pointer}.gallery-preview-tile:hover{border-color:#397052;background:#e1edda}.gallery-preview-center{background:#183f38;color:#fff}.gallery-preview-empty{background:#fafbf8;color:#adb4a8}.gallery-crumbs{display:flex;gap:6px;flex-wrap:wrap}.gallery-crumbs .text-button{max-width:240px;font-size:.8rem}.gallery-notes{white-space:pre-wrap;line-height:2;overflow-wrap:anywhere}.gallery-family{border-top:1px solid #d5dfd4;margin-top:24px;padding-top:18px}.gallery-family-row{border-right:3px solid #b4c7b3;padding:12px 18px;margin:12px 0;display:flex;flex-direction:column;align-items:start;gap:5px}.gallery-family-row small{color:#647263}.gallery-report,.gallery-admin-reports article,.gallery-review-row{background:#fff;border:1px solid #d7dfd2;border-radius:12px;padding:18px;margin:16px 0}.gallery-publish{display:grid;grid-template-columns:1fr 1fr;gap:16px}.gallery-publish>p,.gallery-publish>section,.gallery-publish>.gallery-consent{grid-column:1/-1}.gallery-consent{display:flex;align-items:start;gap:10px;line-height:1.9}.gallery-consent input{width:20px;height:20px;flex:none}.gallery-warning{color:#855c20;background:#fff4de;padding:12px;border-radius:8px;line-height:1.9}.gallery-findings{max-height:360px;overflow:auto;display:grid;gap:10px}.gallery-findings article{border:1px solid #e6ddc6;padding:12px;border-radius:9px}.gallery-findings small{display:block;color:#665e4c;margin:5px 0}.gallery-findings p{font-size:.86rem;line-height:1.9;margin:0}.gallery-rule-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.gallery-rule{font:inherit;padding:8px 12px;border:1px solid #cad6c7;border-radius:7px;background:#fff;color:#264b37;cursor:pointer}.public-gallery{background:#fafaf5}.public-gallery>header,.public-gallery>main,.public-gallery>footer{max-width:1180px;margin:auto;padding:25px}.public-gallery>header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #d5dfd3}.public-gallery>header nav{display:flex;gap:20px;flex-wrap:wrap}.public-gallery a{color:#245d46}.public-gallery footer{color:#667565;line-height:1.9;border-top:1px solid #d5dfd3}.gallery-admin{color:#815428!important}.gallery-content .button[aria-pressed=true]{background:#245d46;color:white}.gallery-content button:focus-visible,.gallery-content input:focus-visible{outline:3px solid #c1a764;outline-offset:2px}@media(max-width:850px){.gallery-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-heading{display:block}.gallery-filter-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:550px){.gallery-dialog{padding:12px}.gallery-cards,.gallery-publish,.gallery-filter-grid{grid-template-columns:1fr}.gallery-preview{padding:10px}.gallery-preview-tile,.gallery-preview-empty,.gallery-preview-center{padding:8px 5px;font-size:.8rem;min-height:85px}.public-gallery>header{align-items:start;gap:15px}.public-gallery>header nav{gap:12px;font-size:.8rem}.public-gallery>main{padding:15px}.gallery-publish>*{grid-column:1}.gallery-field{min-width:140px}}
.gallery-custom-model{background:#edf3e2;border:1px solid #cfddc3;border-right:4px solid #55794a;border-radius:14px;padding:18px 22px;margin:0 0 22px;line-height:1.9}.gallery-custom-model h3{margin:0 0 8px}.gallery-custom-model p{max-width:850px;margin:0}.gallery-custom-model small{color:#4d634a}.gallery-model-code{line-height:1.9;overflow-wrap:anywhere}.gallery-model-code code{display:inline-block;user-select:all;background:#edf1e8;padding:3px 8px;border-radius:5px;font-size:.8rem}
