/* สไตล์สำหรับ Popup (Modal) */
.modal {
	display: none; /* ซ่อน Popup ไว้ก่อนเมื่อโหลดหน้าเว็บ */
	position: fixed; 
	z-index: 1000; 
	left: 0;
	top: 40px;
	width: 100%; 
	height: 100%; 
	overflow: auto; 
	background-color: rgba(0,0,0,0.8); /* เพิ่มความทึบให้เห็นชัดเจนขึ้น */
}

/* กล่องเนื้อหาด้านใน Popup */
.modal-content {
	background-color: #fefefe00;
	/* จัดให้อยู่ตรงกลางหน้าจอ */
	margin: 10vh auto; /* 10% จากด้านบน, ตรงกลางแนวนอน */
	padding: 0;
	width: 90%; 
	max-width: 500px; /* ความกว้างที่เหมาะสมสำหรับ Popup */
	text-align: center;
	border-radius: 12px;
	position: relative; /* สำคัญสำหรับการจัดวางปุ่มปิด */
}

/* รูปภาพใน Popup */
.modal-content img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
	border-radius: 8px; /* ขอบโค้งมนให้รูปภาพ */
}

/* ปุ่มปิด (X) */
.close-button {
	color: #898989;
	position: absolute; /* จัดตำแหน่งสัมพันธ์กับ modal-content */
	top: 15px;
	right: 75px;
	font-size: 40px; /* ทำให้ปุ่มใหญ่ขึ้น */
	font-weight: bold;
	cursor: pointer;
	line-height: 1;
}

.close-button:hover,
.close-button:focus {
	color: #333;
	text-decoration: none;
}