.imgtext-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    margin: 20px 0;
    clear: both;
}

.imgtext-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

.imgtext-description {
    width: 100%;
    margin-top: 10px;
    font-style: italic;
    color: #666;
    text-align: center;
}

/* Lightweight modal */
.imgtext-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imgtext-modal {
    background: #fff;
    width: 90%;
    max-width: 480px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

.imgtext-modal__header {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e5e5;
    font-weight: bold;
}

.imgtext-modal__body {
    padding: 16px;
}

.imgtext-modal__row {
    margin-bottom: 12px;
}

.imgtext-modal__label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.imgtext-modal__input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

.imgtext-modal__hint {
    color: #666;
    display: block;
    margin-top: 6px;
    font-size: 12px;
}

.imgtext-modal__footer {
    padding: 12px 16px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.imgtext-modal__btn {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #ccc;
    background: #f7f7f7;
    color: #333;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
}

.imgtext-modal__btn--primary {
    border-color: #0d6efd;
    background: #0d6efd;
    color: #fff;
}


