/* ==================================================
   ROYAL SECTION (ราชวงศ์) – Desktop Baseline
   CSS Grid (Area-based)
================================================== */

/* จำกัดความกว้างให้อ่านสบาย */
.royal-page {
  max-width: 1100px;
  margin-inline: auto;
}

.royal-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "left right";
  gap: 48px;
  align-items: center;
}

.royal-left {
  grid-area: left;
  padding: 10px;
  min-width: 0;
}

.royal-right {
  grid-area: right;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;   
  gap: 16px;
  text-align: center;
}
.royal-text{
	text-align: center;
}
.royal-title-main{
	text-align: center;
}

.royal-logo {
  height: 170px;
  width: auto;
}

.royal-logo--center {
  display: block;
  margin-inline: auto;
}

.royal-paragraph {
  font-size: 22px;
  line-height: 2;
  text-align: justify;
  text-indent: 2em;
  letter-spacing: 0.2px;
  font-style: italic;
}

.royal-source {
  font-size: 20px;
  text-align: right;
  margin-top: 8px;
  opacity: 0.9;
}

.royal-portrait {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.king-frame {
  border: 6px solid #d4af37;
  padding: 6px;
  border-radius: 8px;
  background: #fff;
}

.royal-caption {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  line-height: 1.6;
}

/*-------and------*/
/*---บทกลอนเราสู้---*/
/*--โครงเราสู้---*/
.cav-we-fight__poem .poem {
	position: relative;
	top: -15px; 
}
.cav-we-fight__col--left .poem{
	text-indent: 30px;
	line-height: 1.9;
	text-align: left
}


/*-----โคลง 3 แถว /ร.10 หน้าล่าง-------*/
/* ===== Wrapper ===== */
.three-poem__inner {
  max-width: 900px;
  margin-inline: auto;
}

/* ===== Box ===== */
.three-poem__box {
  background-color: #e3e1e1;
  border-radius: 8px;
  padding: 40px;
}

/* ===== Grid ===== */
.three-poem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;

  justify-items: center;   /* ✅ ทุกคอลัมน์อยู่กลาง */
  align-items: start;      /* ✅ เริ่มจากบน */
}

.three-poem__col {
  max-width: 280px;   /* จาก 240 → 280 */
  text-align: left;
}
.three-poem__col {
  max-width: 35ch;
}

.three-poem__col h5 {
  text-wrap: balance;
}

.three-poem__col--1 {
  margin-top: 0;
}

.three-poem__col--2 {
  margin-top: 40px;
}

.three-poem__col--3 {
  margin-top: 80px;
}

/* ===== Divider ===== */
.three-poem__divider {
  width: 170px;
  border-top: 2px dashed #24466C;
  margin: 30px auto 0;
}

@media (max-width: 768px) {
  .three-poem__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .three-poem__col {
    align-self: center;   /* ✅ มือถือให้เรียงตรงกลาง */
   text-align: left;      /*เดิม center*/
  }
}
@media (max-width: 1024px) {
  .three-poem__col {
    max-width: 100%;
  }
}







