/*
Theme Name: Chaiyo
Version: 1.0
Description: WordPress theme for Chaiyo
Author: INSPIRE
Author URI: http://www.inspiredm.co.uk
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chaiyo

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/*** General ***/
* { padding: 0px; margin: 0px; }
p { margin: 10px 0px }
body { font-family: 'HALFour', serif; font-size: 20px; background: #f4eee6; margin:0; font-weight:400; overflow-x: hidden }
.inwrap { width: 100%; margin: 0 auto; }
.contentwrap { width: 100%; display:flex; flex-direction: column }
.content { width: 90%; margin: 130px auto 0; }
.contenthome { width: 100%; margin: 0 auto; }
.clear { clear: both; display: block; }
a, a:link, a:active, div a { text-decoration:none; }
a img {border:none }
@font-face { font-family: 'ginka-bold'; src: url('fonts/ginka-bold.woff2') format('woff2'); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: 'HALFour'; src: url('fonts/HALFourGrotesk-Regular.woff2') format('woff2'); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: 'Noto'; src: url('fonts/NotoSerifThai-VariableFont.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

/*** Header ***/
.header { margin: 0 auto; width:100%; position:fixed; z-index: 1000; height: 110px; display: flex; align-items: center; justify-content: center }
.header .logo { position: relative; z-index: 10000; background: url("images/chaiyo-logo.svg") no-repeat center; width:200px; background-size: 200px; height: 55px; }
.home .header .logo { display: none }
.header .logo img { display:block; margin: 0 auto; text-align:center; width:100%; height:auto}
.header .headerbuttons { position: absolute; right: 25px; top: 25px; display: flex; align-items: center}
.header .careersbutton a.book { position: absolute; left: 150px; top: 25px; background: url("images/careers.svg") no-repeat center; width:133px; background-size: cover; height: 52px; }
.header .careersbutton a.book:hover { background: url("images/careers-red.svg") no-repeat center; background-size: cover; }
.header .headerbuttons a.instagram { background: url("images/instagram-black.png") no-repeat center; height: 52px; width: 52px; background-size: contain; z-index: 10000 }
.header .headerbuttons a.instagram:hover { background: url("images/instagram-black-hover.png") no-repeat center; height: 52px; width: 52px; background-size: contain; z-index: 10000 }
.header .headerbuttons a.tiktok { background: url("images/tiktok.png") no-repeat center; height: 52px; width: 52px; background-size: contain; z-index: 10000; margin: 0 20px 0 0}
.mobile-active .header .headerbuttons button.book { }
.mobile-active .header .headerbuttons a.instagram { background: url("images/instagram-black.png") no-repeat center; background-size: contain }
.mobile-active .header .headerbuttons a.instagram:hover { background: url("images/instagram-black-hover.png") no-repeat center; background-size: contain }
.mobile-active .header .logo { display: block }

.stick { position: fixed ; top: 0; width:100%; z-index: 10000; background: rgba(244, 238, 230,.8); }
.stick .logo, .home .stick .logo { display: block}

.home .stick .logo { opacity: 0; animation: fadeIn 1s ease forwards; animation-delay: 0.25s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.fadeout { opacity: 1; transition: opacity 0.5s ease; }
.fadeout.fade-out { opacity: 0; transition-delay: 0.1s; }

.plazalink a, .speedboatlink a {color: #000 }
.plazalink:hover a {color: #fdd008 }
.speedboatlink:hover a {color: #e3151d }

/*** Mobile Menu ***/
#mobile-menu .sub-menu { display: none; }
#mobile-menu .sub-menu.active { display: block; }
.mobile-active .location li a { }
.menu-toggle { display: none; }
.menu-toggle-label { position: fixed; top:25px; left: 25px; cursor: pointer; z-index: 100000; display: flex; flex-direction: column; width: 60px}
.menu-toggle-label span { display: block; width: 100%; height: 12px; background-color: #000; margin-bottom: 8px; transition: transform 0.3s, opacity 0.3s; }
.menu-toggle-label span.visually-hidden { height: 0 !important; margin: 0 !important }
.menu-toggle-label span:last-child { margin-bottom: 0; }
.menu-toggle:checked + .menu-toggle-label span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.menu-toggle:checked + .menu-toggle-label span:nth-child(2) { opacity: 0; }
.menu-toggle:checked + .menu-toggle-label span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile { position: fixed; top: 0; left: 0; width: 100%; height: 100%; ; z-index: 1000; overflow-y: auto; transition: transform 0.3s ease; transform: translateX(-100%); background: #f4eee6; }
.mobile-main { font-size: 3.25em; font-family: 'ginka-bold', serif; width:100%; text-transform: uppercase; padding: 100px 25px}
.mobile.active { transform: translateX(0%); display: flex;  }
.menu-mobile-container { width: 100% }
.mobile ul { list-style: none; padding: 0; margin: 0; line-height: 1.1 }
.mobile .mobile-main ul li a { position: relative; color: #000; transition: padding-left 0.3s ease; }
.mobile .mobile-main ul li a:hover { padding-left: 1em  }
.mobile .mobile-main ul li a span { font-family: 'Noto'; font-weight: 700 }
.mobile-active span.top { rotate: 45deg; margin: 18px 0 }
.mobile-active span.middle { display: none }
.mobile-active span.bottom { rotate: -45deg; margin: -30px 0 0 }
.mobile ul.sub-menu { font-size: 0.6em; text-transform: none; margin: 0.5em 0 1em }
.mobile ul.sub-menu li a:hover::before, .mobile ul.sub-menu li a:hover::after { display: none !important }
.mobile li.menu-item-has-children a:hover::before, .mobile li.menu-item-has-children a:hover::after { content: none !important; width: auto; height: auto; background: none; }
.menu-item-has-children > a { position: relative; display: block; text-align: center; }
.menu-item-has-children > a .submenu-indicator { position: absolute; right: -1em; top: 50%; transform: translateY(-50%); transition: transform 0.3s ease, opacity 0.3s ease; font-size: 1em; display: flex; align-items: center; justify-content: center; width: 1.5em; height: 1.5em; }
.toggle-icon {  stroke: currentColor; display: block; }
.toggle-icon .vertical { transition: opacity 0.2s ease; }
.toggle-icon .vertical.hidden { opacity: 0; }

/*** Navigation ***/
.navigation { text-transform: uppercase; font-family: 'ginka-bold',sans-serif; position: absolute; left: 25px; top: 25px; z-index: 100 }
.navigation ul { list-style:none; display:flex; }
.navigation li a { display: inline-block; text-decoration: none; margin-right: 3em; font-size: 0.8em; letter-spacing: 1px}

/*** Content ***/
.page { float:left; width:100%; }
.page .postHead { background: none; }
.postContent { padding: 0; max-width: 1200px; margin: 0 auto }
.contenthome .postContent { padding: 0; }
.postContent a { text-decoration:underline; color: #000 }
h1, h2, h3, h4, h5, h6 { font-family: 'ginka-bold', serif; text-transform: uppercase; letter-spacing: 2%; line-height: 120%; font-weight: normal }
.postContent h1 { font-size: 3em; margin:0.5em 0; }
.postContent h1 span, .postContent h2 span { font-family: 'Noto'; font-weight: bold }
body.page-template-tpl_aboutpage h1 { font-size: 6em; position: relative; margin: 0}
.postContent h2 { font-size: 2.5em; margin:.5em 0; }
.postContent h3 { font-size: 2em; margin: 0.5em 0;  }
.postContent h4 { font-size: 1.5em; margin: 0.5em 0; font-family: 'HALFour', serif; letter-spacing: 30%; }
.postContent h5 { font-size: 1.25em; margin: 0.5em 0; font-family: 'HALFour', serif; letter-spacing: 30%;}
.postContent h6 { font-size: 1em; margin: 0.5em 0; font-family: 'HALFour', serif; letter-spacing: 30%;}
.postContent p { font-size: 1.75em; margin: 1.25em 0 ; font-family: 'ginka-bold', sans-serif }
.postContent p.hal { font-size: 1em; font-family: 'HALFour', sans-serif }
.postContent ul { margin: 1em; line-height: 126%; }
.postContent ul li { margin: 1% 0; }
.postContent ol li { padding:5px 0; }
.postContent ol { margin: 1em; line-height: 126% }
.postContent blockquote { font-weight:normal; margin: 2em 0; padding: 0.5em 0.5em 1em ; border-left: 10px solid rgba(0,0,0,1); background: rgba(0,0,0,0.1) }
.postContent blockquote p { margin: 1%; font-size: 1.25em; }
.postContent blockquote cite { margin: 1%; font-size: 1em; }
.postContent hr { margin: 5% 0 }
.postContent img { max-width: 100%; height:auto }
.postContent h1 a { text-decoration: none }
.postContent .noto { font-family: 'Noto'; font-weight: 700 }
.visually-hidden { align-content: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.featuredimage { position: absolute; right: 0; width: 40%; height: 800px; background-size: cover; background-repeat: no-repeat}

/*** Specials ***/
.postContent .wp-caption { background: #f8f7eb; border: solid 1px #EBE9D7; text-align: center; padding-bottom: 4px; }
.postContent .wp-caption img { border: solid 5px #f8f7eb; }
.postContent .alignleft { float: left; margin: 0px 15px 5px 0px; display: block; max-width: 50% }
.postContent .alignright { float: right; margin: 0px 0px 5px 15px; display: inline; }
.postContent .aligncenter { width: 100%}
.postContent .wp-caption p { margin: 0px; }
.alignfull { margin: 0 calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.postContent .alignwide { max-width: 1300px; margin-left: auto; margin-right: auto }
.kadence-blocks-gallery-item__caption { font-family: 'ginka-bold', sans-serif; }
.kadence-blocks-gallery-item__caption br + br { margin-bottom: 1em; display: block; content: ""; }
.wp-block-kadence-advancedgallery .kt-blocks-carousel .splide__arrow--next { right: calc(50% - 100px); background: none; top: 5px; opacity: 1; z-index: 100;}
.wp-block-kadence-advancedgallery .kt-blocks-carousel .splide__arrow--prev { left: calc(50% - 100px); background: none; top: 5px; opacity: 1; z-index: 100;}
/* Target the gallery wrapper */
.wp-block-kadence-advancedgallery .kt-blocks-carousel { position: relative; }
.wp-block-kadence-advancedgallery .kt-blocks-carousel::after { content: "SCROLL"; position: absolute; bottom: -51px; left: 50%; transform: translateX(-50%); font-size: 24px; z-index: 101; pointer-events: none; font-family:'ginka-bold'}
.wp-block-kadence-advancedgallery .kt-blocks-carousel::before { content: "เลื่อน"; position: absolute; bottom: -90px; left: 50%; transform: translateX(-50%); font-size: 24px; z-index: 101; pointer-events: none; font-family:'Noto'; font-weight: 700}

/*** Buttons ***/
.wp-block-button__link, .wp-block-kadence-advancedbtn { font-family: 'ginka-bold',sans-serif; text-transform: uppercase; font-weight: 500; line-height: 1.5 }
span.kt-btn-inner-text { padding: 2px 0 0}
.entry-content .kt-blocks-post-readmore { font-family: 'ginka-bold',sans-serif; text-transform: uppercase; font-weight: 500 !important; }
.dotstop ul.splide__pagination { bottom: 735px !important }
.kt-blocks-modal-link { font-family: 'ginka-bold',sans-serif !important; font-weight: 500 !important }

/*** Category ***/
.catpost { width: 85%; display: flex; justify-content: flex-start; margin: 0 auto }
.catpost .postContent { width: 30% }

/*** Footer ***/
.footer { font-size:0.8em; width: 100%; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; background: #000; }
.footer .footer-content { width: 100%; padding: 1em; position: relative }
.footer .footer-content h3 { font-size: 1.5em; margin: 0.5em 0; letter-spacing: 2px }
.footer .sidebarItem p { line-height: 1.5; letter-spacing: 10%; }
.menu-footer-container { margin: 1em 0 0 0; text-transform: uppercase; }
.menu-footer-container ul { display: flex; padding: 0; margin: 0; list-style: none; flex-wrap: wrap; justify-content: center; font-size: 0.8em }
.menu-footer-container ul li { list-style: none; white-space: nowrap; letter-spacing: 10%; margin: 0 0 0 1.5em }
.menu-footer-container ul li a { color: #f4eee6; text-decoration: none }

.page-template-tpl_pagehometemp .menu-footer-container { left: 50%; transform: translateX(-50%); width: 50% }
.page-template-tpl_pagehometemp .menu-footer-container ul { justify-content: center }
.page-template-tpl_pagehometemp .footer .footer-content .logo { position: absolute; right: 2em; left: unset}

/*** Skip Links ***/
.skip-link { position: absolute; top: -100px; left: 0; padding: 8px; background: #fff; z-index: 100; }
.skip-link:focus { top: 0; }
.screen-reader-text {  clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }

/*** Cookie Notice ***/
#moove_gdpr_cookie_info_bar.moove-gdpr-light-scheme { background: #f4eee6 !important; z-index: 10000 }
#moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-modal-right-content, #moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-modal-footer-content, #moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-modal-left-content #moove-gdpr-menu li button { background: #f4eee6 !important }
button.mgbutton.moove-gdpr-infobar-settings-btn:hover { background: #273d7f !important}
#moove_gdpr_cookie_info_bar.moove-gdpr-light-scheme { border-top: 1px solid #273d7f !important }

/* -- Media Queries -- */

@media only screen and (min-width : 601px) and (max-width : 1024px) {
.mobile-active .header .logo { width: 65px; background-size: 65px }
.mobile-active .header .headerbuttons .book { display: none }
.mobile-main { font-size: 2.5em; }
.mobile .mobile-main ul li a:hover::after { background-size: 25px; }
.contenthome .postContent { max-width: 90% }
body.page-template-tpl_aboutpage h1 { font-size: 4em }
.featuredimage { height: 600px }
.postContent p { font-size: 1.5em }
}

@media only screen and (max-width : 600px) {
.header .logo { width: 100px; background-size: 100px; margin: 0 50px 0 0 }
body.page-template-tpl_aboutpage h1 { font-size: 2.5em; }
.featuredimage { width: 100%; margin: 25vh 0 0; height: 450px }
.mobile-active .header .headerbuttons .book { display: none }
.mobile-active span.top { margin: 14px 0 }
.mobile-active span.bottom { margin: -22px 0 0 }
.mobile-main { font-size: 1.5em; }
.mobile .mobile-main ul li a span { display: block; margin-top: 0.125em }
.menu-toggle-label { width: 40px}
.header { height: 75px }
.header .headerbuttons a.instagram { height: 31px; width: 31px; }
.header .headerbuttons a.instagram:hover { height: 31px; width: 31px; }
.header .headerbuttons a.tiktok { height: 31px; width: 31px; }
.mobile .mobile-main ul li a:hover::after { background-size: 25px; }
.mobile .mobile-main ul li a { margin-bottom: 0.5em; display: block }
.menu-toggle-label span { height: 7px; margin-bottom: 5px; }
.header .careersbutton a.book { display: none }
.contentwrap { flex-direction: column}
.content { width: 100%; margin: 80px auto 0 }
.contenthome .postContent { max-width: 90% }
.footer { font-size: 0.75em }
.menu-footer-container ul li { margin: 0.5em }
.mobile-footer { bottom: 3em }
.mobile-footer ul#mobile-footer-menu {  }
.postContent { max-width: 90% }
.postContent h1 { font-size: 1.5em }
.postContent h2 { font-size: 1em }
.postContent p { font-size: 1.5em }
.postContent ul, .postContent ol { font-size: 0.75em }
.mobile ul li a:hover::before { width: 40px; height: 25px; }
.mobile ul li a:hover::after { width: 40px; height: 25px; background-size: 25px }
.navigation { right: 0px; left: unset;}
.navigation li a { font-size: 0.6em }
}