.block {
    border: 1px solid transparent;
    padding: 10px;
    margin: 10px 0;
    position: relative;
}
.block .block-controls {
    position: absolute;
    top: 5px;
    right: 5px;
    display: none;
}
.dev-mode .block {
    border: 1px solid #ccc;
}
.dev-mode .block .block-controls {
    display: block;
}
.column {
    position: relative;
    padding: 10px;
    border: 1px solid transparent;
    display: inline-block;
    width: 100%;
}

.dev-mode .column {
    border: 1px solid #ccc;
}
.resize-handle {
    width: 10px;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    cursor: col-resize;
    background-color: transparent;
}
.dev-mode .resize-handle {
    background-color: #ddd;
}
#floating-dialog {
    position: fixed;
    right: 20px;
    top: 20px;
    width: 600px;
    border: 1px solid #ccc;
    padding: 10px;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 100;
}
#floating-dialog-title {
    cursor: move;
    background: #f0f0f0;
    padding: 5px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}
#toolbar button {
    margin-right: 5px;
}
.template {
    margin-top: 10px;
    cursor: pointer;
    padding: 5px;
    border: 1px solid #ccc;
}
.add-block-button {
    font-size: 24px;
    cursor: pointer;
    color: white;
    background-color: #007bff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
}
.image-gallery {
    display: none;
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -20%);
    background: white;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}
.image-gallery.visible {
    display: block;
}
.image-gallery input {
    width: 100%;
    margin-bottom: 10px;
    padding: 5px;
}
.image-gallery .image-item {
    display: inline-block;
    margin: 5px;
    cursor: pointer;
}
.image-gallery .image-item img {
    max-width: 100px;
    max-height: 100px;
}
#html-editor {
    width: 100%;
    height: 100px;
    margin-top: 10px;
    display: block;
}

/* Custom column classes */
.col-1 { width: 8.33%; }
.col-2 { width: 16.66%; }
.col-3 { width: 25%; }
.col-4 { width: 33.33%; }
.col-5 { width: 41.66%; }
.col-6 { width: 50%; }
.col-7 { width: 58.33%; }
.col-8 { width: 66.66%; }
.col-9 { width: 75%; }
.col-10 { width: 83.33%; }
.col-11 { width: 91.66%; }
.col-12 { width: 100%; }

/* Custom column classes */
seditor .col {
    padding: 10px;
    border: 1px solid #ccc;
}
#floating-dialog .column {
    border: none;
    padding: 3px;
}
#floating-dialog .col {
    background-color: #eee;
    border: none;
    border-radius: 3px;
}


        
        
.image-gallery {
    display: none;
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -10%);
    background: white;
    border: 1px solid #ccc;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 80%;
    max-width: 800px;
    height: 80%;
    overflow: auto;
}
.image-gallery.visible {
    display: block;
}
.image-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.image-gallery-header h4 {
    margin: 0;
}
.image-gallery-header .close-button {
    cursor: pointer;
}
.search-upload-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.search-upload-container input[type="text"] {
    flex: 1;
    margin-right: 10px;
    padding: 5px;
}
.search-upload-container input[type="file"] {
    display: none;
}
.search-upload-container label[for="file-upload"] {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #fff;
    background-color: #5bc0de;
    border-color: #46b8da;
}
.image-gallery .image-item {
    display: inline-block;
    width: 100px;
    height: 100px;
    margin: 5px;
    cursor: pointer;
    border: 1px solid #ccc;
    box-sizing: border-box;
    overflow: hidden;
}
.image-gallery .image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
.pagination button {
    margin: 0 5px;
}












