.tiptap-gallery-wrapper{position:relative;margin:1rem 0}.tiptap-gallery-wrapper.selected{outline:2px solid #3b82f6;outline-offset:2px;border-radius:.5rem}.gallery-add-button-container{display:flex;justify-content:center;margin-bottom:.5rem}.gallery-add-button-container .gallery-add-button{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:#3b82f6;color:#fff;border:none;border-radius:.5rem;cursor:pointer;font-size:.875rem;font-weight:500;transition:all .2s ease;box-shadow:0 2px 4px rgba(59,130,246,.2)}.gallery-add-button-container .gallery-add-button:hover:not(:disabled){background:#2563eb;transform:translateY(-1px);box-shadow:0 4px 8px rgba(59,130,246,.3)}.gallery-add-button-container .gallery-add-button:active:not(:disabled){transform:translateY(0);box-shadow:0 2px 4px rgba(59,130,246,.2)}.gallery-add-button-container .gallery-add-button:disabled{opacity:.6;cursor:not-allowed}.gallery-add-button-container .gallery-add-button .add-icon{font-size:1.125rem;font-weight:700;line-height:1}.gallery-add-button-container .gallery-add-button .add-text{font-size:.875rem}.gallery-add-button-container .gallery-add-button .loading-spinner{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.tiptap-gallery{display:flex;flex-wrap:wrap;gap:6px;width:100%}.tiptap-gallery .gallery-image-container{position:relative;transition:all .2s ease}.tiptap-gallery .gallery-image-container.dragging{opacity:.5;transform:scale(.95);cursor:grabbing!important}.tiptap-gallery .gallery-image-container.drag-over{transform:scale(1.05);box-shadow:0 0 0 2px #3b82f6;border-radius:4px;z-index:1}.tiptap-gallery .gallery-image-container:hover{transform:scale(1.02)}.tiptap-gallery .gallery-image-container img{object-fit:cover;border-radius:6px;width:100%;aspect-ratio:1;transition:inherit;user-select:none;-webkit-user-drag:none}.tiptap-gallery[data-image-count="1"] .gallery-image-container{width:100%!important}.tiptap-gallery[data-image-count="2"] .gallery-image-container{width:calc(50% - 4px)}.tiptap-gallery[data-image-count="3"] .gallery-image-container:first-child,.tiptap-gallery[data-image-count="3"] .gallery-image-container:nth-child(2),.tiptap-gallery[data-image-count="3"] .gallery-image-container:nth-child(3){width:calc(33% - 4px)}.tiptap-gallery[data-image-count="4"] .gallery-image-container{width:calc(50% - 4px)}.tiptap-gallery[data-image-count="5"] .gallery-image-container{width:calc(33% - 4px);margin:0}.tiptap-gallery[data-image-count="6"] .gallery-image-container{width:calc(33% - 4px)}.tiptap-gallery-in-editor{outline:.125rem solid rgba(0,0,0,0);border-radius:var(--tt-radius-xs,.25rem);transition:outline-color .2s ease}.tiptap-gallery-in-editor:hover{outline-color:var(--tt-brand-color-300)}.tiptap.ProseMirror.ProseMirror-focused .ProseMirror-selectednode .tiptap-gallery-in-editor{outline-color:var(--tt-brand-color-500)}.tiptap.ProseMirror.ProseMirror-focused .ProseMirror-selectednode .tiptap-gallery-in-editor:hover{outline-color:var(--tt-brand-color-400)}