.attachment-picker p{margin:0;padding:0}.attachment-picker picture{max-width:100%}.gallery p{margin:0}.gallery_attachmentbox{display:grid;gap:.2rem;background:#fff;padding:.2rem;border:1px solid #e8e8e8;border-radius:var(--border-radius-base);float:left;margin:5px;overflow:hidden;position:relative;width:170px}.gallery .current{background-color:#eee}.gallery .current .gallery_attachmenttitle{font-weight:bold}.gallery_attachmentbox:hover{background-color:#eee}.gallery_attachmenttitle{grid-area:1 / 1 / 2 / 2;font-size:85%;padding:3px 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gallery_attachmenttitle p{text-align:center;overflow:hidden}.gallery_attachmentframe{grid-area:2 / 1 / 3 / 3;height:160px;overflow:hidden;position:relative}.gallery_attachmentframe a{display:block;text-align:center}.gallery_attachmentbox img{max-height:160px;max-width:160px;width:auto}.gallery_attachmentframe ul{list-style-type:none;margin:0;padding:0}.gallery_attachmentframe li{margin:.5em 0 .5em 20px;font-size:.8em}.gallery_attachmentframe .mime{margin:0 2px 0 -20px}.gallery_attachmentframe .mime img{vertical-align:top}.gallery_attachmentframe li .filename{display:inline-block;font-weight:bold;width:138px;word-wrap:break-word}.gallery_actions p{grid-area:1 / 2 / 2 / 3;display:flex;justify-content:flex-end;gap:.2rem}.gallery_actions .tool{cursor:pointer;display:block}.gallery_upload{width:352px}.gallery_upload,.gallery_upload:hover{background-color:#fafafa}.gallery_upload .gallery_attachmentframe{height:auto}.gallery_upload_input{margin-bottom:10px}.gallery_upload input[type="file"]{font-size:86%;width:342px}.gallery_upload .buttonwrapper{margin:0}.gallery_upload .button,.gallery_upload label{font-size:86%}.gallery_upload input[type="checkbox"]{vertical-align:text-bottom}.gallery_upload label[for="commentinput"]{margin-top:10px}.gallery_actions{top:1px;right:3px}.gallery_attachmenttitle p{text-align:left;margin-right:37px}.gallery_buttons{clear:both;margin:5px}