/* ===============================
   GLOBAL
================================ */
body {
  font-family: "Sarabun", sans-serif;
  background: #0b0c0e;
  margin: 0;
  padding: 20px;
  color: #f5e9c8;
}

/* ===============================
   HEADER
================================ */
.info-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.info-cute-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px 10px;
}

.info-header-image {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

.info-header-title h2 {
  text-align: center;
  margin-top: 15px;
  color: #ffe9a3;
}

/* ===============================
   TITLES
================================ */
.info-activity-main-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffe9a3;
  margin-bottom: 10px;
  border-left: 6px solid #b8860b;
  padding-left: 12px;
}

.info-activity-sub-title {
  font-size: 1.1rem;
  font-weight: 300;
  color: #c7b98a;
  margin-top: -5px;
  margin-bottom: 20px;
  padding-left: 18px;
  opacity: 0.85;
}
/* ชื่อบุคคล (h3) */
.info-activity-title {
    text-align: center;
    width: 100%;
    margin: 20 auto 15px auto;
    display: block;
}

/* ===============================
   GRID (เวอร์ชันแก้ไข)
================================ */

.info-activity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  justify-items: center;
}
/* ===============================
   DESKTOP (จัดกลาง 1–3 รูป)
================================ */
.info-activity-grid {
  display: grid;
  gap: 25px;
  justify-content: center;   /* สำคัญมาก → จัดทั้ง grid ให้อยู่กลาง */
}

/* 1 รูป → 1 คอลัมน์กลาง */
.info-activity-grid:has(.info-activity-item:nth-child(1)):not(:has(.info-activity-item:nth-child(2))) {
  grid-template-columns: repeat(1, auto);
}

/* 2 รูป → 2 คอลัมน์กลาง */
.info-activity-grid:has(.info-activity-item:nth-child(2)):not(:has(.info-activity-item:nth-child(3))) {
  grid-template-columns: repeat(2, auto);
}

/* 3 รูป → 3 คอลัมน์กลาง */
.info-activity-grid:has(.info-activity-item:nth-child(3)):not(:has(.info-activity-item:nth-child(4))) {
  grid-template-columns: repeat(3, auto);
}

/* 4 รูปขึ้นไป → 4 คอลัมน์เต็ม */
.info-activity-grid:has(.info-activity-item:nth-child(4)) {
  grid-template-columns: repeat(4, 1fr);
}

/* ===============================
   IMAGE CARD (เวอร์ชันแก้ไข)
================================ */
.info-activity-item {
  background: #1a1a1a;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #957e33;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

/*.info-activity-item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}*/
.info-activity-item img {
  width: 100%;
  height: auto;
  object-fit: cover;     /* ทำให้ภาพเต็มเฟรม */
  border-radius: 6px;
  display: block;
}

.info-activity-caption {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #c7b98a;
  line-height: 1.55;
  text-align: justify;
}

/* ===============================
   IMAGE STYLE
================================ */
.img-fluid {
  max-width: 100%;
  height: auto;
}

.rounded {
  border-radius: 3px;
}

.shadow {
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.info-premium-frame {
  padding: 3px;
  /*background: linear-gradient(135deg, #d4af37, #b8860b);*/
  border-radius: 10px;
  border: 2px solid #957e33;
  box-shadow: 0 0 0 2px #000 inset, 0 4px 12px rgba(0,0,0,0.35);
}

/*--hero--*/
/* เฉพาะส่วนวีระบุรุษ 3 ภาพ */
.hero-grid .activity-item img {
    width: 70%;        /* ลดขนาดลงบน Desktop */
    max-width: 350px;  /* จำกัดไม่ให้เกินนี้ */
    height: auto;
    margin: 0 auto;
    display: block;
}
/*--hero--*/
/* เฉพาะ 3 นายนี้ */
.title-on-image .info-activity-title {
    width: 100%;          /* ให้กว้างเต็มเพจ */
    text-align: center;   /* จัดให้อยู่ตรงกลางเพจ */
    margin-bottom: 10px;  /* ระยะห่างจากภาพ */
    margin-top: 0;
}
/* กล่องภาพให้เล็กลง */
.hero-grid .info-activity-item {
    max-width: 380px;
}
/*--เส้นคั่น--*/

.special-hero .divider {
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #000000, #d4b46a, #000000);
    margin: 25px 0 15px;
    border-radius: 2px;
}

.special-hero .divider::after {
    content: "";
    width: 10px;
    height: 10px;
    background: #d4b46a;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: -4px;
    transform: translateX(-50%);
}


/* ===============================
   RESPONSIVE
================================ */
/* มือถือ → 1 คอลัมน์เต็มจอ */
@media (max-width: 768px) {
  .info-activity-grid {
    grid-template-columns: 1fr !important;
  }
  .info-activity-item {
    max-width: 100%;
  }
}

/* แท็บเล็ต (769–1024px) → 2 คอลัมน์เต็มจอ */
@media (min-width: 769px) and (max-width: 1024px) {
  .info-activity-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .info-activity-item {
    max-width: 100%;
  }
}


/* มือถือ → ใช้ขนาดเต็มเหมือนเดิม */
/*@media (max-width: 768px) {
    .hero-grid .info-activity-item img {
        width: 100%;
        max-width: none;
    }
    .hero-grid .info-activity-item {
        max-width: 100%;
    }
}
@media (max-width: 768px) {
  .info-activity-grid {
    grid-template-columns: 1fr !important;
  }

  .info-activity-main-title {
    font-size: 1.4rem;
    border-left-width: 4px;
    padding-left: 10px;
  }

  .info-activity-item {
    max-width: 260px;
  }
}
@media (max-width: 768px) {
  .info-activity-item {
    max-width: 100%;   
  }
}*/
