.edel-photo-gallery-admin .form-table {
    margin-bottom: 20px;
}

.edel-create-group {
    background: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

.edel-create-group h3 {
    margin-top: 0;
}

.edel-shortcode-copy {
    cursor: pointer;
    background: #f0f0f1;
    padding: 3px 6px;
    border-radius: 3px;
    user-select: all;
}

.edel-shortcode-copy:hover {
    background: #e0e0e1;
}

.edel-copy-hint {
    color: #0073aa;
    font-size: 12px;
}

/* Edit screen */
.edel-editor-container {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    margin: 20px 0;
}

.edel-photos-wrapped {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.edel-photo-item {
    border: 1px solid #ddd;
    background: #f9f9f9;
    padding: 10px;
    cursor: move;
    border-radius: 4px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.edel-photo-placeholder {
    border: 2px dashed #b4b9be;
    background: #f1f1f1;
    min-height: 200px;
    border-radius: 4px;
}

.edel-photo-thumb {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #eee;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edel-photo-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.edel-photo-fields {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.edel-photo-fields p {
    margin: 0 0 10px 0;
}

.edel-photo-fields input[type="text"],
.edel-photo-fields textarea {
    width: 100%;
}

.edel-photo-fields textarea {
    resize: vertical;
    min-height: 60px;
}

.edel-remove-photo-btn {
    align-self: flex-start;
    color: #b32d2e !important;
    border-color: #b32d2e !important;
}

.edel-remove-photo-btn:hover {
    background: #b32d2e !important;
    color: #fff !important;
}

/* Settings Form overrides */
.edel-photo-gallery-settings .form-table th {
    width: 250px;
}

/* Modal */
body.modal-open {
    overflow: hidden;
}

#edel-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100000;
}

.edel-preview-modal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.edel-preview-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    padding: 30px;
    box-sizing: border-box;
}

.edel-preview-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: #333;
    cursor: pointer;
    line-height: 1;
}

.edel-preview-modal-close:hover {
    color: #d63638;
}

#edel-preview-modal-body {
    margin-top: 10px;
}