/* Goodnews builder: เอฟเฟกต์ตอนเลื่อนมาถึง + ซ่อนตามขนาดจอ + หัวหน้าเพจแบบมีรูป */
html.gn-js .gn-reveal { opacity: 0; transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
html.gn-js .gn-reveal--fade-up { transform: translateY(32px); }
html.gn-js .gn-reveal--slide-left { transform: translateX(-48px); }
html.gn-js .gn-reveal--slide-right { transform: translateX(48px); }
html.gn-js .gn-reveal--zoom { transform: scale(.92); }
html.gn-js .gn-reveal.is-visible { opacity: 1; transform: none; }
.gn-delay-1 { transition-delay: .15s !important; }
.gn-delay-2 { transition-delay: .3s !important; }
.gn-delay-3 { transition-delay: .45s !important; }
@media (prefers-reduced-motion: reduce) { html.gn-js .gn-reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 600px) { body:not(.block-editor-iframe__body) .gn-hide-mobile { display: none !important; } }
@media (min-width: 601px) and (max-width: 1024px) { body:not(.block-editor-iframe__body) .gn-hide-tablet { display: none !important; } }
@media (min-width: 1025px) { body:not(.block-editor-iframe__body) .gn-hide-desktop { display: none !important; } }
/* ในตัวแก้ไข: แสดงไว้ แต่มีป้ายบอกว่าซ่อนบนจอไหน */
.block-editor-iframe__body .gn-hide-mobile, .block-editor-iframe__body .gn-hide-tablet, .block-editor-iframe__body .gn-hide-desktop,
.editor-styles-wrapper .gn-hide-mobile, .editor-styles-wrapper .gn-hide-tablet, .editor-styles-wrapper .gn-hide-desktop { outline: 1px dashed #c58a00; outline-offset: 2px; }

/* หัวหน้าเพจแบบมีรูปจริง */
.wp-block-cover.gn-page-hero--photo::before, .wp-block-cover.gn-page-hero--photo::after { display: none !important; }
.gn-page-hero--photo h1, .gn-page-hero--photo p, .gn-cta--photo h2, .gn-cta--photo p { text-shadow: 0 2px 18px rgb(0 0 0 / .35); }

/* การ์ดทีมงาน */
.gn-team .gn-member { text-align: center; }
.gn-team .gn-member .wp-block-image img { aspect-ratio: 315 / 400; object-fit: cover; object-position: top; border-radius: 18px; width: 100%; background: linear-gradient(160deg, #e8edff, #fff4dc); }
.gn-team .gn-member h3 { margin-top: .6rem; margin-bottom: .2rem; font-size: 1.1rem; }

/* รายการแบบมีเลข (วัตถุประสงค์ ฯลฯ) */
.gn-steps .gn-step__num { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--wp--preset--color--accent-soft, #fff1cc); color: var(--wp--preset--color--primary-dark, #0e1d5c); font-weight: 700; margin: 0 0 .6rem; }

/* ข้อมูลติดต่อ */
.gn-contact-item p { margin: 0; }
.gn-contact-item .gn-contact-item__label { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--muted, #5b6476); font-weight: 600; }

/* รายการติ๊กถูก */
ul.gn-checklist { list-style: none; padding-left: 0; }
ul.gn-checklist li { position: relative; padding-left: 1.9em; margin-bottom: .5em; }
ul.gn-checklist li::before { content: "✓"; position: absolute; left: 0; top: .05em; width: 1.35em; height: 1.35em; border-radius: 50%; display: grid; place-items: center; font-size: .8em; font-weight: 700; background: var(--wp--preset--color--accent, #ffb020); color: var(--wp--preset--color--contrast, #0b1220); }
.gn-member__link a { font-weight: 600; text-decoration: none; }

/* กันจอเลื่อนข้างระหว่างเอฟเฟกต์ และลดระยะเลื่อนบนมือถือ */
html, body { overflow-x: clip; }
@media (max-width: 600px) {
	html.gn-js .gn-reveal--slide-left { transform: translateX(-20px); }
	html.gn-js .gn-reveal--slide-right { transform: translateX(20px); }
}
