.image-source-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0}.image-source-buttons .gallery-picker-open{margin:0;display:inline-flex;align-items:center;justify-content:center;flex:1 1 180px;min-height:46px;padding:12px 16px;background:#f5dfd2;color:#263d37;border:1px solid #ddbaa7;border-radius:12px;font:inherit;font-weight:600;cursor:pointer}.image-source-buttons .gallery-picker-open:hover{background:#efd0bd}.image-source-buttons .gallery-picker-open:focus-visible{outline:3px solid #263d37;outline-offset:3px}.image-source-buttons .gallery-picker-open:disabled{opacity:.5;cursor:not-allowed}
.gallery-picker{width:min(820px,calc(100vw - 32px));max-height:85dvh;overflow:auto;border:1px solid #d8ddd0;border-radius:22px;padding:24px;background:#f8f7f1;color:#14252c;box-sizing:border-box}
.gallery-picker::backdrop{background:rgb(14 31 34 / .65)}
.gallery-picker>button:first-child{float:right}.gallery-picker h2{font-family:Georgia,serif;margin:12px 0}.gallery-picker input{width:100%;padding:12px;border:1px solid #cad2c7;border-radius:10px;box-sizing:border-box}
.gallery-picker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.gallery-picker-tile{border:3px solid transparent;border-radius:12px;padding:5px;background:white;color:inherit;text-align:left;cursor:pointer;min-width:0}.gallery-picker-tile[aria-pressed=true]{border-color:#54816c;background:#e4eddf}.gallery-picker-tile img{width:100%;height:160px;object-fit:contain;background:#eef0e9;border-radius:8px}.gallery-picker-tile span{display:block;padding:8px;overflow-wrap:anywhere}.gallery-picker button:focus-visible{outline:3px solid #14252c;outline-offset:3px}.gallery-picker>.primary-button{position:sticky;bottom:0;width:100%}
@media(max-width:550px){.gallery-picker{padding:16px}.gallery-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-picker-tile img{height:125px}}
