/* Nội dung prompt câu hỏi có HTML (ảnh, định dạng) */
.question-prompt-html {
    margin-bottom: 0.5rem;
    max-width: 100%;
    overflow: hidden;
}

.question-prompt-html--compact {
    color: #6c757d;
    font-size: 0.95rem;
}

.question-prompt-html .imgbox,
.question-prompt-html--compact .imgbox {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fafafa;
    vertical-align: middle;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.question-prompt-html .imgbox img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.question-prompt-html img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

@media (min-width: 769px) {
    .question-prompt-html img,
    .question-prompt-html .imgbox img,
    .q-sub.question-prompt-html img {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .question-prompt-html img,
    .question-prompt-html .imgbox img {
        width: 100% !important;
        max-width: 100% !important;
    }
}

.question-prompt-html table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.question-prompt-html--compact .imgbox {
    max-width: 200px;
    margin: 0 0 8px;
}

.question-prompt-html--compact .imgbox img {
    max-width: 100%;
    max-height: 140px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .question-prompt-html--compact .imgbox {
        max-width: 100%;
    }
    .question-prompt-html--compact .imgbox img {
        max-width: 100%;
    }
}
