/*
Theme Name: Abamoo
Theme URI: https://abamoo.com
Author: Abamoo Group
Author URI: https://abamoo.com
Description: Custom WordPress theme for Abamoo - fixed size 540px x 100dvh, centered, top-aligned
Version: 1.2
Text Domain: abamoo
*/

body {
    margin: auto;
    padding: 0;
    background: #000000;
    display: block;
    justify-content: center; /* กึ่งกลางแนวนอน */
}

iframe.ifm_home {
    width: 100%;
    border-width: 0;
    height: 100%;
    position: absolute;
    z-index: 9999999999;
}

.container {
    width: 540px;        /* fixed width */
    height: 100dvh;      /* full viewport height */
    overflow: hidden;    /* ป้องกัน element ล้น */
    box-sizing: border-box;
    background: #ffffff;
    position: relative;
    display: block;
    flex-direction: column; /* ให้ header, main, footer เรียงตาม column */
    align-items: stretch;
    margin: auto;
    overflow: hidden;
}

header, main, footer {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* ป้องกันเนื้อหาเกิน */
    height: 0;
}

article {
    box-sizing: border-box;
    overflow-wrap: break-word;
}

h1, h2 {
    margin: 0;
}

img, iframe, video, embed, object {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

iframe.ifm_home {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999999999;
}





@media (max-width: 540px) {
	.container {
		width: 100%;
		height: 100dvh;
		overflow: hidden;
		box-sizing: border-box;
		background: #ffffff;
		position: relative;
		display: block;
		flex-direction: column;
		align-items: stretch;
		margin: auto;
		overflow: hidden;
	}
}