:root {
  --pale-yellow:#fff9e6;
  --accent:#d9c37a;
  --text:#222;
  --muted:#555;
  --max-width:1100px;
}

* { box-sizing:border-box; margin:0; padding:0; }

body {
  font-family:"Noto Sans Thai","Helvetica",Arial,sans-serif;
  color:var(--text);
  background:var(--pale-yellow);
  line-height:1.6;
}

/* เลเยอร์เนื้อหา */
.wrap {
  max-width:var(--max-width);
  margin:24px auto;
  background:rgba(255,255,255,0.6);
  border-radius:12px;
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
  overflow:hidden;
}

/* Header & Nav */
header {
  display:flex;
  flex-direction:column;
  padding:18px 24px;
  background:linear-gradient(180deg,var(--pale-yellow),#fff);
  border-bottom:1px solid rgba(0,0,0,0.04);
}

.top-row { display:flex; justify-content:space-between; align-items:center; }

.site-title { font-weight:700; font-size:26px; cursor:pointer; color: var(--text); }

nav {
  display:flex;
  justify-content:flex-end;
  gap:15px;
  margin-top:10px;
}

nav a {
  text-decoration:none;
  color:var(--text);
  font-weight:600;
  padding:6px 12px;
  border-radius:6px;
}

nav a:hover { background: rgba(217,195,122,0.3); }

/* Hamburger มือถือ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width:28px;
  height:20px;
  cursor:pointer;
  z-index:1000; /* เพิ่มให้กดได้ */
}

.hamburger span {
  display:block;
  height:3px;
  background:#222;
  border-radius:2px;
}

/* Mobile Menu Overlay */
.mobile-menu {
  display:none;
  position:fixed;
  top:0; left:0;
  width:100%;
  height:100%;
  background:rgba(255,255,255,0.95);
  z-index:999;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.mobile-menu a {
  color:var(--text);
  text-decoration:none;
  font-size:1.5rem;
  margin:15px 0;
}

.mobile-menu.active { display:flex; }

/* Banner */
.banner img { width:100%; height:auto; object-fit:cover; display:block; }

/* Section */
section { padding:30px; }

h2 {
  text-align:center;
  color:#004aad;
  background:#cfe2ff;
  padding:10px;
  border-radius:8px;
  margin-bottom:20px;
}

/* Gallery ด้านบน */
.gallery {
  display:flex;
  justify-content:center;
  gap:12px;
  margin:20px 0;
}

.gallery img {
  width:calc((100% - 24px)/3); /* 3 รูปขนาดเท่ากัน มีช่องว่าง 12px */
  height:200px;
  object-fit:cover;
  border-radius:10px;
}

/* Activity Item */
.activity-item {
  margin-bottom:15px;
  text-indent:0;
}

.activity-item b {color:#004aad;}

/* Slideshow */
.slideshow-container {
  position:relative;
  max-width:800px;
  margin:30px auto;
  text-align:center;
}

.slides img {
  width:100%;
  height:400px; /* พอดี ไม่สูงเกิน */
  object-fit:cover;
  border-radius:10px;
}

/* ปุ่มเลื่อนภาพ */
.prev, .next {
  cursor:pointer;
  position:absolute;
  top:50%;
  padding:10px 14px;
  color:white;
  font-weight:bold;
  font-size:22px;
  user-select:none;
  background:rgba(0,0,0,0.4);
  transform:translateY(-50%);
  z-index:10;
}

.prev { left:0; border-radius:0 6px 6px 0; }
.next { right:0; border-radius:6px 0 0 6px; }
.prev:hover, .next:hover { background:rgba(0,0,0,0.7); }

/* Footer */
footer {
  background:#fff;
  border-top:1px solid rgba(0,0,0,0.04);
  padding:14px 24px;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:14px;
  line-height:1.2;
}

/* Responsive */
@media(max-width:768px){
  .hamburger { display:flex; }
  nav { display:none; }
  .gallery { flex-direction:column; } /* ให้รูปเรียงแนวตั้งบนมือถือ */
  .gallery img { width:100%; height:auto; }
}

@media(max-width:500px){
  .slides img { height:auto; }
}
