/* assets/css/fonts.css - Local Fonts System (ตรงตามชื่อไฟล์จริงในโฟลเดอร์) */

@font-face {
  font-family: 'Thasadith';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/Thasadith-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Srisakdi';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/Srisakdi-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/Sarabun-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'Prompt';
  font-style: italic;
  font-weight: 300;
  src: url('../fonts/Prompt-LightItalic.ttf') format('truetype');
}

@font-face {
  font-family: 'Pridi';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/Pridi-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'Playpen Sans Thai';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/PlaypenSansThai-VariableFont_wght.ttf') format('truetype');
}

@font-face {
  font-family: 'Noto Sans Thai';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/NotoSansThai-VariableFont_wdth,wght.ttf') format('truetype');
}

@font-face {
  font-family: 'Noto Sans Thai Condensed';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/NotoSansThai_Condensed-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'Niramit';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/Niramit-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'Mitr';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/Mitr-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'Mali';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/Mali-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'KoHo';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/KoHo-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'K2D';
  font-style: italic;
  font-weight: 500;
  src: url('../fonts/K2D-MediumItalic.ttf') format('truetype');
}

@font-face {
  font-family: 'Itim';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/Itim-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'IBM Plex Sans Thai Looped';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/IBMPlexSansThaiLooped-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/IBMPlexSansThai-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/GoogleSans-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Chonburi';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/Chonburi-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/ChakraPetch-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'Bai Jamjuree';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/BaiJamjuree-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'Athiti';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/Athiti-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'Anuphan';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/Anuphan-Light.ttf') format('truetype');
}

/* ========================================================
   พรีวิวตัวหนังสือใน Dropdown ให้แสดงตามเอกลักษณ์แต่ละฟอนต์
   ======================================================== */
#globalFontFamilySelect option[value*="Sarabun"] { font-family: 'Sarabun', sans-serif; }
#globalFontFamilySelect option[value*="Google Sans"] { font-family: 'Google Sans', sans-serif; }
#globalFontFamilySelect option[value*="Prompt"] { font-family: 'Prompt', sans-serif; }
#globalFontFamilySelect option[value*="Mitr"] { font-family: 'Mitr', sans-serif; }
#globalFontFamilySelect option[value*="Chakra Petch"] { font-family: 'Chakra Petch', sans-serif; }
#globalFontFamilySelect option[value*="Anuphan"] { font-family: 'Anuphan', sans-serif; }
#globalFontFamilySelect option[value*="Athiti"] { font-family: 'Athiti', sans-serif; }
#globalFontFamilySelect option[value*="Bai Jamjuree"] { font-family: 'Bai Jamjuree', sans-serif; }
#globalFontFamilySelect option[value*="Chonburi"] { font-family: 'Chonburi', sans-serif; }
#globalFontFamilySelect option[value*="IBM Plex Sans Thai Looped"] { font-family: 'IBM Plex Sans Thai Looped', sans-serif; }
#globalFontFamilySelect option[value*="IBM Plex Sans Thai"] { font-family: 'IBM Plex Sans Thai', sans-serif; }
#globalFontFamilySelect option[value*="Itim"] { font-family: 'Itim', cursive; }
#globalFontFamilySelect option[value*="K2D"] { font-family: 'K2D', sans-serif; }
#globalFontFamilySelect option[value*="KoHo"] { font-family: 'KoHo', sans-serif; }
#globalFontFamilySelect option[value*="Mali"] { font-family: 'Mali', cursive; }
#globalFontFamilySelect option[value*="Niramit"] { font-family: 'Niramit', sans-serif; }
#globalFontFamilySelect option[value*="Noto Sans Thai Condensed"] { font-family: 'Noto Sans Thai Condensed', sans-serif; }
#globalFontFamilySelect option[value*="Noto Sans Thai"] { font-family: 'Noto Sans Thai', sans-serif; }
#globalFontFamilySelect option[value*="Playpen Sans Thai"] { font-family: 'Playpen Sans Thai', cursive; }
#globalFontFamilySelect option[value*="Pridi"] { font-family: 'Pridi', serif; }
#globalFontFamilySelect option[value*="Srisakdi"] { font-family: 'Srisakdi', cursive; }
#globalFontFamilySelect option[value*="Thasadith"] { font-family: 'Thasadith', sans-serif; }