/* SCRL public site (Bootstrap 5.3 + this file). No external resources. */
html, body { margin: 0; padding: 0; }
body { font-family: 'Kanit', system-ui, sans-serif; font-weight: 300; color: #333; background: #fff; }
strong, b, h1, h2, h3, h4, h5 { font-weight: 500; }
a { color: #37517e; }
img { max-width: 100%; height: auto; }

/* ---------- top menu (pure CSS, mobile toggle via checkbox) ---------- */
.site-nav-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 1030; }
nav.site-nav { margin: 0; padding: 0; background: #fff; box-shadow: 0 3px 10px -2px rgba(0,0,0,.1); border: 1px solid rgba(0,0,0,.1); }
nav.site-nav:after { content: ""; display: table; clear: both; }
nav.site-nav ul { float: left; padding: 0; margin: 0; list-style: none; position: relative; }
nav.site-nav ul li { margin: 0; display: inline-block; float: left; background: #fff; border-right: 1px solid #f9f9f9; }
nav.site-nav a { display: block; padding: 0 20px; line-height: 80px; color: #000; font-size: 16px; text-decoration: none; }
nav.site-nav a:hover, nav.site-nav ul li ul li:hover { background: #eee; }
nav.site-nav ul ul { display: none; position: absolute; top: 80px; }
nav.site-nav ul li:hover > ul { display: inherit; }
nav.site-nav ul ul li { width: 250px; float: none; display: list-item; position: relative; box-shadow: 0 3px 10px -2px rgba(0,0,0,.3); }
nav.site-nav ul ul a { line-height: 1.4; padding: 14px 20px; }
nav.site-nav li > a:after { content: ' +'; }
nav.site-nav li > a:only-child:after { content: ''; }
nav.site-nav .logo img { height: 80px; width: auto; }
nav.site-nav .lang a { font-weight: 500; color: #37517e; }
nav.site-nav .lang a.active { color: #fb1f63; }
.toggle, [id^=drop] { display: none; }

@media (max-width: 768px) {
  .toggle + a, nav.site-nav .menu { display: none; }
  .toggle { display: block; background: #fff; padding: 14px 20px; color: #000; font-size: 17px; cursor: pointer; box-shadow: 0 3px 10px -2px rgba(0,0,0,.1); }
  .toggle:hover { background: #eee; }
  [id^=drop]:checked + ul { display: block; }
  nav.site-nav ul, nav.site-nav ul li { float: none; display: block; width: 100%; }
  nav.site-nav a { line-height: 1.4; padding: 14px 20px; }
  nav.site-nav ul ul { position: static; }
  nav.site-nav ul li:hover > ul { display: none; }
  nav.site-nav ul ul li { width: 100%; }
  nav.site-nav .logo img { height: 56px; }
}

/* ---------- page chrome ---------- */
.page-top { height: 200px; margin-top: 82px; background: url('../../images/title-bar2.png') center center; }
.page-top.home { height: 210px; }
.page-strip { height: 15px; background: url('../../images/title-bar.png') center center; }
.page-body { background: url('../../images/bg.png') fixed center center; padding: 32px 0 64px; min-height: 40vh; }
.page-title { font-size: 24px; color: #37517e; font-weight: 500; margin: 8px 0 24px; }
.section-alt { background: #f3f5fa; padding: 30px 0 60px; }
.see-more { font-size: 20px; color: #fb1f63; margin-left: 1rem; text-decoration: none; }
.rich-content { overflow-wrap: anywhere; }
.rich-content table { max-width: 100%; }
.rich-content img { height: auto; }

.person-card { background: #fff; padding: 18px; height: 100%; border-radius: 6px; }
.person-card .photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; }
.person-name { font-size: 18px; color: #37517e; font-weight: 500; }
.person-card hr { color: #dfdada; }

.album-card { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); height: 100%; border-radius: 6px; overflow: hidden; }
.album-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.album-card .album-body { padding: 10px; }
.album-date { color: #f43faf; font-size: 14px; }
.album-title { color: #087f19; font-weight: 500; }
.gallery a { display: block; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid #ddd; border-radius: 4px; padding: 3px; background: #fff; }

/* ---------- footer ---------- */
.site-contact { background: #79709f; color: #fff; padding: 40px 0 60px; }
.site-contact h4 { font-weight: 500; }
.site-footer { background: #000; color: #fff; text-align: center; padding: 18px 0; }

/* ---------- light-weight animations (replaces animate.css) ---------- */
.fade-in { animation: scrlFadeIn .8s ease both; }
@keyframes scrlFadeIn { from { opacity: 0 } to { opacity: 1 } }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fade-in { animation: none } .reveal { opacity: 1; transform: none; transition: none } }

/* ---------- lightbox (replaces magnific-popup) ---------- */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.88); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; box-shadow: 0 0 30px rgba(0,0,0,.6); }
.lightbox button { position: absolute; background: transparent; border: 0; color: #fff; font-size: 40px; line-height: 1; padding: 12px 18px; cursor: pointer; }
.lightbox .lb-close { top: 8px; right: 12px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 14px; color: #ddd; font-size: 14px; }
