@charset "ISO-8859-1";

.contentAB {
	width: 1024px;
	background: url(/img/bgweb.webp) center / cover;
    background-attachment: fixed;
	font-family: Arial, 'Noto Sans Thai', sans-serif;
	border-radius: 5px;
	padding-bottom : 5px; 
	padding-top : 10px;
	margin: 0 auto;
	overflow: hidden;
	position: relative;
	z-index: 100;
}

.aboutUSContent{
	max-width: 980px;
    position: relative;
    overflow: hidden;
    z-index: 100;
    font-size: 17px;
    letter-spacing: 0.02em;
    line-height: 1.5em;
	font-family: Arial, 'Noto Sans Thai', sans-serif;
    padding: 50px;
    text-align: justify;
	margin-top: -25px;
}

.headerPic {
	height: 200px;
	background-color: #E6FAF8;
	margin: 0 auto;
	overflow: hidden;
}

.idheaderpi {
	height: 200px;
	WIDTH: 100%;
	margin: 0 auto;
	position: relative;
}

@media (min-width: 1200px){
	.aboutUSContent{
		font-size : 17px;
		max-width: 100%;
		text-align: justify;
	}
	.contentAB{
		max-width: 100%;
		margin: 0 auto;
		padding-left: 10px;
	}
	.contentHeaderAboutus{
		max-width: 580px;
		font-size : 4.6em;
		height : 100px;
		padding-top : 85px;
		position: relative; 
		margin:auto;
		font-family: Arial, 'Noto Sans Thai', sans-serif;
		color: white;
		text-align: center;
		text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
	}
	.idheaderpi {
		height: 200px;
		WIDTH: 100%;
		margin: 0 auto;
		background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/img/dot.gif') center/cover, url('/img/aboutUs_1200.jpg') center/cover;
  		background-blend-mode: screen;
		position: relative;
		padding-left: 0px;
		padding-right: 0px;
	}
	.headerPic {
		padding-left: 0px;
		padding-right: 0px;
	}
}
@media (min-width: 992px) and (max-width: 1199px){
	.aboutUSContent{
		font-size : 1.45em;
		max-width: 100%;
		text-align: justify;
	}
	.contentAB{
		max-width: 100%;
		margin: 0 auto;
		padding-left: 10px;
	}
	.contentHeaderAboutus{
		max-width: 580px;
		font-size : 4.5em;
		height : 100px;
		padding-top : 85px;
		position: relative; 
		margin: auto;
		font-family: Arial, 'Noto Sans Thai', sans-serif;
		color: white;
		text-align: center;
		text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
	}
	.idheaderpi {
		height: 200px;
		WIDTH: 100%;
		margin: 0 auto;
		background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/img/dot.gif') center/cover, url('/img/aboutUs_1200.jpg') center/cover;
  		background-blend-mode: screen;
		position: relative;
		padding-left: 0px;
		padding-right: 0px;
	}
	.headerPic {
		padding-left: 0px;
		padding-right: 0px;
	}
} 
@media (min-width: 768px) and (max-width: 991px) {
	.aboutUSContent{	
		font-size : 1.40em;
		text-align: left;
		max-width: 100%;
	}
	.contentAB{
		max-width: 100%;
		margin: 0 auto;
		padding-left: 10px;
	}
	.contentHeaderAboutus{
		max-width: 75%;
		height : 100px;
		font-size: 4.2em;	
		margin: 0 auto;
		margin-left: 0px;
		padding-top: 110px;
		margin:auto;
		font-family: Arial, 'Noto Sans Thai', sans-serif;
		color: white;
		text-align: center;
		text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
	}
	.idheaderpi{
		height: 250px;
		WIDTH: 100%;
		margin : 0 auto;
		background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/img/dot.gif') center/cover, url('/img/aboutUs_1200.jpg') center/cover;
  		background-blend-mode: screen;
		position: relative;
		padding-left:0px;
		padding-right : 0px;
		background-repeat: no-repeat; 
		background-size: cover;
	}
	.headerPic{
		padding-left:0px;
		padding-right : 0px;
		height: 250px;
	}
}
@media (min-width:641px) and (max-width: 767px) {
	.aboutUSContent{
		font-size : 1.35em;
		text-align: left;
		max-width: 100%;
	}
	.contentAB{
		max-width: 100%;
		margin: 0 auto;
		padding-left: 10px;
	}
	.contentHeaderAboutus{
		max-width: 75%;
		height : 100px;
		font-size: 4.0em;	
		margin: 0 auto;
		margin-left: 80px;
		padding-top: 105px;
		font-family: Arial, 'Noto Sans Thai', sans-serif;
		color: white;
		text-align: center;
		text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
	}
	.idheaderpi {
		height: 250px;
		WIDTH: 100%;
		margin: 0 auto;
		background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/img/dot.gif') center/cover, url('/img/aboutUs_1200.jpg') center/cover;
  		background-blend-mode: screen;
		position: relative;
		margin:auto;
		background-repeat: no-repeat;
		background-size: cover;
	}
	.headerPic {
		height: 250px;
		padding-left: 0px;
		padding-right: 0px;
	}
}
@media (min-width:480px) and (max-width: 640px) {
	.aboutUSContent{
		font-size : 1.30em;
		text-align: left;
		max-width: 100%;
	}
	.contentAB{
		max-width: 100%;
		margin: 0 auto;
		padding-left: 10px;
	}
	.contentHeaderAboutus{
		max-width: 75%;
		height : 100px;
		font-size: 3.8em;	
		margin: 0 auto;
		margin-left: 0px;
		padding-top: 90px;
		text-align: center;
		margin:auto;
		font-family: Arial, 'Noto Sans Thai', sans-serif;
		color: white;
		text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
	}
	.idheaderpi {
		height: 200px;
		WIDTH: 100%;
		margin: 0 auto;
		background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/img/dot.gif') center/cover, url('/img/aboutUs_1200.jpg') center/cover;
  		background-blend-mode: screen;
		position: relative;
		padding-left: 0px;
		padding-right: 0px;
		background-repeat: no-repeat;
		background-size: cover;
	}
	.headerPic {
		padding-left: 0px;
		padding-right: 0px;
	}
}
@media (min-width: 320px) and (max-width: 479px){
	.contentAB{
		max-width: 100%;
		margin: 0 auto;
		padding-left: 10px;
	}
	.aboutUSContent{
		font-size : 1.25em;
		max-width: 100%;
		text-align: left;
	}
	.contentHeaderAboutus{
		max-width: 75%;
		height : 100px;
		font-size: 3.5em;	
		margin: 0 auto;
		margin-left: 50px;
		padding-top: 20.5%;
		font-family: Arial, 'Noto Sans Thai', sans-serif;
		color: white;
		text-align: center;
		text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
	}
	.idheaderpi {
		height: 200px;
		WIDTH: 100%;
		margin: 0 auto;
		background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/img/dot.gif') center/cover, url('/img/aboutUs_1200.jpg') center/cover;
  		background-blend-mode: screen;
		position: relative;
		padding-left: 0px;
		padding-right: 0px;
		background-repeat: no-repeat;
		background-size: cover;
	}
	.headerPic {
		padding-left: 0px;
		padding-right: 0px;
	}
}

.containabout-number {
    font-size: 2rem;
    font-weight: bold;
    transition: all 1s ease-out;
}

.about-image {
    float: right;
    margin: 10px 0 10px 20px;
    max-width: 40%;	
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.responsive-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    margin-top: -18px;
}

.responsive-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.grid-container {
	display: grid;
	grid-template-columns: repeat(3, 350px); /* ขนาดเริ่มต้นเป็น 750px */
	gap: 30px;
	justify-content: center;
	margin: auto;
}

.grid-item {
	width: 350px; /* ขนาดเริ่มต้น */
	height: 350px; /* ขนาดเริ่มต้น */
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 8px;
}

.grid-item img {
	width: 100%; /* ใช้ 100% เพื่อให้ภาพเต็มกรอบ */
	height: 100%; /* ใช้ 100% เพื่อให้ภาพเต็มกรอบ */
	object-fit: contain; /* ใช้ contain เพื่อไม่ให้ภาพถูกตัด */
}

/* สำหรับหน้าจอขนาดกลาง (เช่น tablet) */
@media (max-width: 1024px) {
	.grid-container {
		grid-template-columns: repeat(2, 1fr); /* แสดง 2 คอลัมน์ */
	}
	.grid-item {
		width: 100%; /* ทำให้กรอบแต่ละตัวใช้พื้นที่เต็ม */
		height: auto; /* ปรับความสูงให้ยืดหยุ่น */
	}
	.grid-item img {
		width: 100%; /* ปรับให้ภาพเต็มกรอบ */
		height: auto; /* ปรับให้ภาพไม่บิดเบี้ยว */
		object-fit: contain; /* ใช้ contain เพื่อไม่ให้ภาพถูกตัด */
	}
}

/* สำหรับหน้าจอขนาดเล็ก (เช่น มือถือ) */
@media (max-width: 600px) {
	.grid-container {
		grid-template-columns: 1fr; /* แสดง 1 คอลัมน์ */
	}
	.grid-item {
		width: 100%; /* กรอบแต่ละตัวจะขยายเต็มหน้าจอ */
		height: auto; /* ปรับความสูงให้ยืดหยุ่น */
	}
	.grid-item img {
		width: 100%; /* ปรับให้ภาพเต็มกรอบ */
		height: auto; /* ปรับให้ภาพไม่บิดเบี้ยว */
		object-fit: contain; /* ใช้ contain เพื่อไม่ให้ภาพถูกตัด */
	}
}

