/*------------------------------------------------------------------*/
/*  สไตล์สำหรับเนื้อหาที่เขียนจาก Quill Editor                        */
/*  ใช้กับ <div class="post-html"> ในหน้าข่าวและหน้าแก้ไขข่าว          */
/*                                                                    */
/*  Quill 2 เก็บรายการหัวข้อเป็น <ol><li data-list="bullet">           */
/*  ถ้าไม่มีสไตล์ชุดนี้ รายการแบบจุดจะแสดงเป็นตัวเลขแทน                */
/*------------------------------------------------------------------*/

/*---- กล่องพิมพ์เนื้อหาในตัวแก้ไข (ทับค่าเริ่มต้นของ quill.snow.css ที่ตั้งไว้ 13px) ----*/
/*  ต้องเขียนเป็น .quill-editor .ql-container เพราะ quill.snow.css ถูกโหลดทีหลังไฟล์นี้
    ถ้าใช้ .ql-container เฉย ๆ จะโดนค่า 13px ของ quill ทับกลับ                        */
.quill-editor .ql-container{
    font-family: Helvetica, Arial, sans-serif;
    font-size: 15px;
}

/*---- รายการหัวข้อ ----*/
.post-html ol li[data-list=bullet],
.post-html ol li[data-list=checked],
.post-html ol li[data-list=unchecked]{
    list-style-type: none;
    position: relative;
}
.post-html ol li[data-list=bullet]:before{content: "\2022"; position: absolute; left: -1em;}
.post-html ol li[data-list=checked]:before{content: "\2611"; position: absolute; left: -1.1em;}
.post-html ol li[data-list=unchecked]:before{content: "\2610"; position: absolute; left: -1.1em;}
.post-html ol li[data-list=ordered]{list-style-type: decimal;}

/*---- จัดตำแหน่งข้อความ ----*/
.post-html .ql-align-center{text-align: center;}
.post-html .ql-align-right{text-align: right;}
.post-html .ql-align-justify{text-align: justify;}

/*---- ทิศทางข้อความ ----*/
.post-html .ql-direction-rtl{direction: rtl; text-align: inherit;}

/*---- ระยะย่อหน้า ----*/
.post-html .ql-indent-1{padding-left: 3em;}
.post-html .ql-indent-2{padding-left: 6em;}
.post-html .ql-indent-3{padding-left: 9em;}
.post-html .ql-indent-4{padding-left: 12em;}
.post-html .ql-indent-5{padding-left: 15em;}
.post-html .ql-indent-6{padding-left: 18em;}
.post-html .ql-indent-7{padding-left: 21em;}
.post-html .ql-indent-8{padding-left: 24em;}

/*---- ขนาดตัวอักษร ----*/
.post-html .ql-size-small{font-size: 0.75em;}
.post-html .ql-size-large{font-size: 1.5em;}
.post-html .ql-size-huge{font-size: 2.5em;}

/*---- แบบตัวอักษร ----*/
.post-html .ql-font-serif{font-family: Georgia, "Times New Roman", serif;}
.post-html .ql-font-monospace{font-family: Monaco, "Courier New", monospace;}

/*---- ข้อความอ้างอิง / โค้ด ----*/
.post-html blockquote{
    border-left: 4px solid #ccc;
    margin: 1em 0;
    padding-left: 16px;
}
.post-html pre.ql-syntax,
.post-html pre{
    background: #23241f;
    color: #f8f8f2;
    border-radius: 4px;
    padding: 10px 14px;
    overflow-x: auto;
    white-space: pre-wrap;
}

/*---- รูปภาพ / คลิปวิดีโอ ที่แทรกในเนื้อหา ----*/
.post-html img{
    max-width: 100%;
    height: auto;
}
.post-html iframe.ql-video{
    width: 100%;
    max-width: 700px;
    aspect-ratio: 16 / 9;
    border: 0;
}
