/* RSPG public theme — NRCT-style reference: deep purple, sage nav, gold accents */
:root {
  --color-royal-purple: #5d3a71;
  --color-royal-purple-dark: #3d2648;
  --color-royal-purple-light: #7a528f;
  --color-purple-rgb: 93, 58, 113;
  --color-nav-bg: #c9d8cc;
  --color-nav-bg-deep: #b2c7b6;
  --color-nav-text: #2a2330;
  --color-sage: #5f8068;
  --color-sage-soft: rgba(95, 128, 104, 0.2);
  --color-mission-sage: #a3b18a;
  --color-gold: #bfad6c;
  --color-gold-soft: #dcd1af;
  --color-bg: #f4f7f5;
  --color-topbar-bg: #eceaef;
  --color-text: #1f1a24;
  --color-muted: #4d4656;
  --font-sarabun: "Sarabun", system-ui, sans-serif;
  --shadow-card: 0 8px 24px rgba(var(--color-purple-rgb), 0.12);
  --radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  overflow-x: hidden;
}

body.rspg-body {
  margin: 0;
  font-family: var(--font-sarabun);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  max-width: 100vw;
  overflow-x: hidden;
}

.rspg-container {
  width: min(1100px, 100% - 2rem);
  margin-inline: auto;
}

/* Top bar — light gray so logo + purple type read clearly */
.rspg-topbar {
  background: var(--color-topbar-bg);
  border-bottom: 1px solid rgba(var(--color-purple-rgb), 0.12);
}

.rspg-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.rspg-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.rspg-brand-logo {
  height: clamp(2.75rem, 8vw, 3.35rem);
  width: auto;
  max-width: min(3.5rem, 22vw);
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.rspg-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.rspg-brand-title {
  font-weight: 700;
  color: var(--color-royal-purple-dark);
  font-size: clamp(1.05rem, 3.5vw, 1.3rem);
}

.rspg-brand-sub {
  font-size: clamp(0.75rem, 2.5vw, 0.9rem);
  color: var(--color-royal-purple-light);
  max-width: 32rem;
  line-height: 1.45;
}

.rspg-admin-link {
  font-size: 0.9rem;
  color: #fff;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
}

.rspg-admin-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Nav — dark purple bar */
.rspg-nav {
  background: linear-gradient(90deg, var(--color-royal-purple-dark) 0%, var(--color-royal-purple) 55%, #4f3160 100%);
  box-shadow: 0 4px 14px rgba(45, 36, 58, 0.28);
}

.rspg-nav-container {
  display: flex;
  flex-direction: column;
}

.rspg-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  padding: 0.85rem 0.5rem;
  font-size: 1.05rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.rspg-nav-toggle:hover {
  background: rgba(255,255,255,0.1);
}

.rspg-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.rspg-nav-list a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 1.1rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 3px solid transparent;
}

.rspg-nav-list a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-bottom-color: var(--color-gold);
  color: #fff;
}

/* ── Dropdown: parent item ── */
.rspg-nav-item {
  position: relative;
}

.rspg-nav-caret {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

/* ── Dropdown panel ── */
.rspg-nav-dropdown {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #4a2f58;
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 2px solid var(--color-gold);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 10px 28px rgba(45,36,58,0.35);
  z-index: 200;
  /* hidden by default */
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.rspg-nav-dropdown li a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.93rem;
  font-weight: 500;
  border-bottom: none;
  white-space: nowrap;
}

.rspg-nav-dropdown li a:hover {
  background: transparent;
  color: var(--color-gold);
  border-bottom: none;
}

/* Show dropdown on hover or keyboard focus */
.rspg-nav-item.has-dropdown:hover > .rspg-nav-dropdown,
.rspg-nav-item.has-dropdown:focus-within > .rspg-nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.rspg-nav-item.has-dropdown:hover > a .rspg-nav-caret,
.rspg-nav-item.has-dropdown:focus-within > a .rspg-nav-caret {
  transform: rotate(180deg);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .rspg-nav-toggle {
    display: flex;
  }
  .rspg-nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-bottom: 0.5rem;
  }
  .rspg-nav-list.is-open {
    display: flex;
  }
  .rspg-nav-list > li > a {
    padding: 0.65rem 0rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  /* Mobile dropdown: inline accordion */
  .rspg-nav-dropdown {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--color-gold);
    border-radius: 0;
    background: rgba(0,0,0,0.2);
    padding: 0;
    /* collapsed */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .rspg-nav-item.has-dropdown.sub-open > .rspg-nav-dropdown {
    max-height: 600px;
  }

  .rspg-nav-item.has-dropdown.sub-open > a .rspg-nav-caret {
    transform: rotate(180deg);
  }

  .rspg-nav-dropdown li a {
    padding: 0.55rem 1.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    white-space: normal;
  }
}

/* Main */
.rspg-main {
  min-height: 50vh;
  padding: 2rem 0 3rem;
}

body:not(.rspg-home) .rspg-main {
  padding-top: 0;
}

/* ── Hero Slider ─────────────────────────────── */
.rspg-hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-royal-purple-dark);
  line-height: 0;
}

.rspg-hero-slider__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: clamp(300px, 52vw, 600px);
}

.rspg-hero-slider__track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.rspg-hero-slide {
  position: relative;
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
}

.rspg-hero-slide__link {
  display: block;
  width: 100%;
  height: 100%;
}

.rspg-hero-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.rspg-hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(61, 38, 72, 0.45) 0%,
    rgba(61, 38, 72, 0.15) 60%,
    transparent 100%
  );
}

.rspg-hero-slide__caption {
  position: absolute;
  bottom: 2.25rem;
  left: 0;
  right: 0;
}

.rspg-hero-slide__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.rspg-hero-slide__sub {
  margin: 0;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

/* Prev/Next buttons */
.rspg-hero-slider__prev,
.rspg-hero-slider__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.rspg-hero-slider__prev { left: 1rem; }
.rspg-hero-slider__next { right: 1rem; }
.rspg-hero-slider__prev:hover,
.rspg-hero-slider__next:hover { background: rgba(255,255,255,0.32); }

/* Dots */
.rspg-hero-slider__dots {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.rspg-hero-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.rspg-hero-slider__dot[aria-selected="true"] {
  background: var(--color-gold);
  transform: scale(1.25);
}

/* Mobile — reduce slide height to ~50% of desktop */
@media (max-width: 768px) {
  .rspg-hero-slider {
    max-height: 280px;
    height: 280px;
  }
  .rspg-hero-slider__viewport {
    height: 280px !important;
    max-height: 280px;
  }
  .rspg-hero-slider__track {
    height: 280px !important;
    max-height: 280px;
  }
  .rspg-hero-slide {
    height: 280px !important;
    max-height: 280px;
  }
  .rspg-hero-slide__img {
    height: 280px !important;
    max-height: 280px;
    object-fit: contain;
    object-position: center center;
    background: var(--color-royal-purple-dark);
  }
  .rspg-hero-slide__caption {
    bottom: 1rem;
  }
  .rspg-hero-slider__prev,
  .rspg-hero-slider__next {
    width: 2rem;
    height: 2rem;
    font-size: 0.9rem;
  }
}

/* Inner pages: full-width bar under nav (breadcrumb + title) */
.rspg-page-head-bar {
  width: 100%;
  margin: 0 0 1.5rem;
  padding: 0;
  background: linear-gradient(180deg, var(--color-topbar-bg) 0%, #e4e0ea 100%);
  border-bottom: 1px solid rgba(var(--color-purple-rgb), 0.14);
  box-shadow: 0 2px 10px rgba(45, 36, 58, 0.06);
}

.rspg-page-head {
  padding: 1.25rem 0 1.35rem;
  text-align: center;
}

.rspg-page-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-royal-purple-light);
}

.rspg-breadcrumb-list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.88rem;
}

.rspg-breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.rspg-breadcrumb-item:not(:last-child)::after {
  content: '\203A';
  margin: 0 0.45rem;
  color: rgba(var(--color-purple-rgb), 0.42);
  font-weight: 700;
}

.rspg-breadcrumb-list a {
  color: var(--color-royal-purple-light);
  font-weight: 600;
  text-decoration: none;
}

.rspg-breadcrumb-list a:hover {
  color: var(--color-royal-purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rspg-breadcrumb-current {
  color: var(--color-muted);
  font-weight: 600;
}

.rspg-page-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-weight: 700;
  color: var(--color-royal-purple);
  line-height: 1.4;
}

.rspg-news-article .rspg-news-meta {
  margin-top: 0;
}

.rspg-news-cover {
  position: relative;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.rspg-news-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(46, 29, 58, 0.62) 0%,
    rgba(46, 29, 58, 0.22) 36%,
    rgba(46, 29, 58, 0) 62%
  );
  pointer-events: none;
}

.rspg-news-cover__img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .rspg-news-cover {
    aspect-ratio: 16 / 9;
  }

  .rspg-news-cover__img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
  }
}

.rspg-news-cover__date {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: transparent;
  border: 0;
  box-shadow: none;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.rspg-news-cover__date-icon {
  width: 0.84rem;
  height: 0.84rem;
  border: 1.4px solid #fff;
  border-radius: 3px;
  box-sizing: border-box;
  background:
    linear-gradient(#fff, #fff) 0 0 / 100% 28% no-repeat,
    linear-gradient(#fff, #fff) 26% 52% / 48% 1.2px no-repeat;
}

.rspg-hero {
  background: linear-gradient(
    135deg,
    rgba(var(--color-purple-rgb), 0.08) 0%,
    rgba(201, 162, 39, 0.12) 50%,
    #fff 100%
  );
  border: 1px solid rgba(var(--color-purple-rgb), 0.12);
  border-radius: var(--radius);
  padding: 2rem 2rem 2.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.rspg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(var(--color-purple-rgb), 0.04) 12px,
    rgba(var(--color-purple-rgb), 0.04) 24px
  );
  pointer-events: none;
}

.rspg-hero-inner {
  position: relative;
}

.rspg-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--color-royal-purple);
}

.rspg-hero p {
  margin: 0;
  color: var(--color-muted);
  max-width: 42rem;
}

.rspg-content-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(var(--color-purple-rgb), 0.1);
}

.rspg-content-card h2 {
  margin-top: 0;
  color: var(--color-royal-purple);
  font-size: 1.35rem;
}

.rspg-prose {
  font-size: 0.9rem;
}

.rspg-prose p {
  margin: 0 0 1rem;
}

.rspg-news-section h2 {
  color: var(--color-royal-purple);
  margin-bottom: 1rem;
}

.rspg-news-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.rspg-news-item {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(var(--color-purple-rgb), 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.rspg-news-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: linear-gradient(135deg, #eee, #f5f0f8);
}

.rspg-news-body {
  padding: 1rem 1.1rem 1.25rem;
}

.rspg-news-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--color-royal-purple);
}

.rspg-news-meta {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.rspg-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: #fff8e6;
  border: 1px solid var(--color-gold-soft);
  color: #5c4a1a;
}

/* Footer — deep purple band like reference */
.rspg-footer {
  background: linear-gradient(180deg, var(--color-royal-purple) 0%, #4a2f58 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.92);
}

.rspg-footer-grid {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.rspg-footer-map {
  min-height: 120px;
}

.rspg-footer-map iframe {
  max-width: 100%;
  border: 0;
  border-radius: 8px;
  min-height: 200px;
}

.rspg-footer-heading {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--color-gold-soft);
}

.rspg-footer-note {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.rspg-footer strong {
  color: #fff;
  font-size: 1.05rem;
}

.rspg-footer-contact p {
  margin: 0.35rem 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
}

.rspg-footer-contact a {
  color: var(--color-gold-soft);
}

.rspg-footer-bar {
  background: var(--color-royal-purple-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

.rspg-footer-bar-inner {
  padding: 0.65rem 0;
}

/* --- Homepage: institutional hero, grid, sidebar --- */
body.rspg-home .rspg-main {
  padding-top: 0;
}

.rspg-home-hero-wrap {
  background: linear-gradient(
    165deg,
    #45264f 0%,
    var(--color-royal-purple) 38%,
    var(--color-royal-purple-light) 68%,
    #4a3558 100%
  );
  color: #fff;
  padding: 2.5rem 0 0;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.rspg-home-hero-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      circle at 12% 20%,
      rgba(241, 196, 15, 0.12) 0%,
      transparent 45%
    ),
    radial-gradient(circle at 88% 78%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
    repeating-linear-gradient(
      -32deg,
      transparent,
      transparent 18px,
      rgba(255, 255, 255, 0.03) 18px,
      rgba(255, 255, 255, 0.03) 36px
    );
  pointer-events: none;
}

.rspg-home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem 2.5rem;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  align-items: start;
  padding-bottom: 2.5rem;
}

/* Soft wave from hero into main content (matches reference site rhythm) */
.rspg-hero-wave {
  display: block;
  line-height: 0;
  margin-top: -2px;
  position: relative;
  z-index: 2;
}

.rspg-hero-wave svg {
  display: block;
  width: 100%;
  height: clamp(40px, 6vw, 64px);
}

.rspg-hero-wave path {
  fill: var(--color-bg);
}

/* Three white mission cards — taller strip + animated purple gradient */
.rspg-home-mission-strip {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 3.75rem;
  min-height: clamp(15rem, 32vh, 22rem);
  background: linear-gradient(90deg, var(--color-royal-purple-dark) 0%, var(--color-royal-purple) 55%, #4f3160 100%);
}

/* Background flowing gradient animation has been removed as requested. Base color #45264f will show instead. */


.rspg-home-mission-strip > .rspg-container {
  position: relative;
  z-index: 1;
}

.rspg-home-mission-head {
  text-align: center;
  margin: 0 auto 1.8rem;
}

.rspg-home-mission-head-line1,
.rspg-home-mission-head-line2 {
  margin: 0;
  text-wrap: balance;
}

.rspg-home-mission-head-line1 {
  color: var(--color-gold);
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  font-weight: 800;
}

.rspg-home-mission-head-line2 {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(0.95rem, 1.9vw, 1.15rem);
  font-weight: 600;
}

.rspg-home-mission-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

@media (max-width: 900px) {
  .rspg-home-mission-grid {
    grid-template-columns: 1fr;
  }
}

.rspg-home-mission-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem 1.35rem;
  text-align: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  border: none;
  overflow: hidden;
}

.rspg-home-mission-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, #a98f45 0%, #d8c477 50%, #a98f45 100%);
}

.rspg-home-mission-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.15rem;
  border-radius: 50%;
  background: #bfad6c;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.rspg-home-mission-icon svg {
  display: block;
  width: 2.65rem;
  height: 2.65rem;
  flex-shrink: 0;
}

.rspg-home-mission-text {
  margin: 0;
  font-size: clamp(0.9rem, 1.85vw, 1.02rem);
  line-height: 1.55;
  color: var(--color-text);
  font-weight: 600;
}

.rspg-home-news-wrap {
  width: min(1100px, 100% - 2.5rem);
  margin-inline: auto;
  padding: 2.25rem 0 1rem;
}

@media (max-width: 900px) {
  .rspg-home-hero-grid {
    grid-template-columns: 1fr;
  }
}

.rspg-home-hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rspg-home-hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-soft);
  border-left: 3px solid var(--color-gold);
  padding-left: 0.75rem;
  line-height: 1.4;
}

.rspg-home-hero-datecard {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(241, 196, 15, 0.45);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.rspg-home-hero-datecard-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-gold-soft);
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.rspg-home-hero-datecard-main {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
}

.rspg-home-hero-venue {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.rspg-home-hero-venue .rspg-icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--color-gold);
}

.rspg-home-hero-main {
  padding-bottom: 0.25rem;
}

.rspg-home-hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.rspg-home-hero-lead {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 40rem;
}

.rspg-home-hero-points {
  margin: 0 0 1.35rem;
  padding-left: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  line-height: 1.55;
}

.rspg-home-hero-points li {
  margin-bottom: 0.35rem;
}

.rspg-home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.rspg-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.rspg-home-btn-primary {
  background: var(--color-gold);
  color: #3d2e0a;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.rspg-home-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
}

.rspg-home-btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.rspg-home-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.rspg-home-layout {
  display: grid;
  gap: 2rem 2.25rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  padding-top: 2.5rem;
  padding-bottom: 1rem;
  width: min(1180px, 100% - 2rem);
}

@media (max-width: 960px) {
  .rspg-home-layout {
    grid-template-columns: 1fr;
  }
}

.rspg-home-main-col {
  min-width: 0;
}

.rspg-home-section-head {
  margin-bottom: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rspg-home-section-head--inline {
  margin-bottom: 0.75rem;
}

.rspg-home-section-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.4rem, 2.6vw, 1.7rem);
  font-weight: 700;
  color: var(--color-royal-purple);
}

.rspg-home-section-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0.55rem auto 0;
  background: linear-gradient(90deg, var(--color-gold), rgba(201, 162, 39, 0.35));
  border-radius: 2px;
}

.rspg-home-section-head--inline .rspg-home-section-title::after {
  margin-top: 0.35rem;
}

.rspg-home-section-desc {
  margin: 0 auto;
  color: var(--color-muted);
  font-size: 0.98rem;
  max-width: 48rem;
  line-height: 1.55;
  text-align: center;
}

.rspg-home-features {
  margin-bottom: 2rem;
}

.rspg-home-feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 560px) {
  .rspg-home-feature-grid {
    grid-template-columns: 1fr;
  }
}

.rspg-home-feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--color-purple-rgb), 0.14);
  box-shadow: 0 6px 22px rgba(var(--color-purple-rgb), 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
}

.rspg-home-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-gold), var(--color-royal-purple-light));
  opacity: 0.85;
}

.rspg-home-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(var(--color-purple-rgb), 0.14);
  border-color: rgba(201, 162, 39, 0.55);
}

.rspg-home-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-sage-soft), rgba(201, 162, 39, 0.12));
  color: var(--color-sage);
  margin-bottom: 0.15rem;
}

.rspg-home-feature-label {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-royal-purple);
  padding-left: 0.15rem;
}

.rspg-home-feature-hint {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.45;
  padding-left: 0.15rem;
}

.rspg-home-welcome {
  margin-bottom: 2rem;
}

.rspg-home-news {
  margin-bottom: 1rem;
}

#section-news {
  scroll-margin-top: 6.5rem;
}

.rspg-home-news-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.rspg-home-news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(var(--color-purple-rgb), 0.12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rspg-home-news-card:hover {
  box-shadow: 0 14px 36px rgba(var(--color-purple-rgb), 0.12);
  transform: translateY(-2px);
}

.rspg-home-news-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #ede7f0, #faf6e8);
  overflow: hidden;
}

.rspg-home-news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.rspg-home-news-media-meta {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  z-index: 2;
}

.rspg-home-news-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.22rem 0.52rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-royal-purple-dark);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(var(--color-purple-rgb), 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.rspg-home-news-chip::before {
  content: "";
  width: 0.72rem;
  height: 0.72rem;
  display: inline-block;
  box-sizing: border-box;
}

.rspg-home-news-chip-date::before {
  border: 1.4px solid var(--color-royal-purple);
  border-radius: 3px;
  background:
    linear-gradient(var(--color-royal-purple), var(--color-royal-purple)) 0 0 / 100% 28% no-repeat,
    linear-gradient(var(--color-royal-purple), var(--color-royal-purple)) 26% 52% / 48% 1.2px no-repeat;
}

.rspg-home-news-chip-project::before {
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, var(--color-royal-purple) 0 20%, transparent 21%),
    linear-gradient(var(--color-royal-purple), var(--color-royal-purple)) 50% 70% / 46% 1.5px no-repeat;
  border: 1.2px solid var(--color-royal-purple);
}

.rspg-home-news-card:hover .rspg-home-news-media img {
  transform: scale(1.04);
}

.rspg-home-news-placeholder {
  width: 100%;
  height: 100%;
  min-height: 10rem;
  background: linear-gradient(135deg, rgba(var(--color-purple-rgb), 0.12), rgba(201, 162, 39, 0.15));
}

.rspg-home-news-badge {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-royal-purple);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  border: 1px solid rgba(var(--color-purple-rgb), 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.rspg-home-news-body {
  padding: 1.1rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rspg-home-news-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.rspg-home-news-title a {
  color: var(--color-royal-purple);
  text-decoration: none;
}

.rspg-home-news-title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rspg-home-news-excerpt {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.5;
  flex: 1;
}

.rspg-home-news-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.rspg-home-news-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--color-royal-purple-light);
  font-weight: 700;
}

.rspg-home-news-date::before {
  content: "";
  width: 0.86rem;
  height: 0.86rem;
  border: 1.5px solid var(--color-royal-purple);
  border-radius: 3px;
  background:
    linear-gradient(var(--color-royal-purple), var(--color-royal-purple)) 0 0 / 100% 28% no-repeat,
    linear-gradient(var(--color-royal-purple), var(--color-royal-purple)) 26% 52% / 48% 1.5px no-repeat;
  box-sizing: border-box;
}

.rspg-home-news-more {
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-top: 0;
  padding: 0.32rem 0.66rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-royal-purple) 0%, #4f3160 100%);
}

.rspg-home-news-more:hover {
  color: #fff;
  filter: brightness(1.08);
}

.rspg-home-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 961px) {
  .rspg-home-aside {
    position: sticky;
    top: 1rem;
    align-self: start;
  }
}

.rspg-home-aside-block {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(var(--color-purple-rgb), 0.12);
  box-shadow: 0 6px 20px rgba(var(--color-purple-rgb), 0.06);
}

.rspg-home-aside-block--accent {
  background: linear-gradient(160deg, rgba(var(--color-purple-rgb), 0.06) 0%, rgba(201, 162, 39, 0.1) 100%);
  border-color: rgba(201, 162, 39, 0.35);
}

.rspg-home-aside-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-royal-purple);
  letter-spacing: 0.02em;
}

.rspg-home-aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rspg-home-aside-list li {
  border-bottom: 1px solid rgba(var(--color-purple-rgb), 0.08);
}

.rspg-home-aside-list li:last-child {
  border-bottom: none;
}

.rspg-home-aside-list a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

.rspg-home-aside-list a:hover {
  color: var(--color-royal-purple-light);
}

.rspg-home-aside-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.rspg-home-aside-phone {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.rspg-home-aside-phone a {
  color: var(--color-royal-purple);
  text-decoration: none;
}

.rspg-home-aside-phone a:hover {
  text-decoration: underline;
}

/* Hero image slider — same purple family + light edge motifs as reference */
.rspg-hero-slider {
  --rspg-hero-slide-h: clamp(17rem, min(78vh, calc(100vh - 7.5rem)), 56rem);
  --rspg-hero-slide-h: clamp(17rem, min(78vh, calc(100dvh - 7.5rem)), 56rem);
  position: relative;
  width: 100%;
  background: linear-gradient(165deg, #45264f 0%, var(--color-royal-purple) 50%, #5a3868 100%);
}

.rspg-hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(
      ellipse 55% 45% at 6% 50%,
      rgba(255, 255, 255, 0.07) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 50% 40% at 96% 45%,
      rgba(255, 255, 255, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.04) 0%, transparent 18%),
    radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.035) 0%, transparent 16%);
}

.rspg-hero-slider__viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  height: var(--rspg-hero-slide-h);
  max-height: var(--rspg-hero-slide-h);
}

.rspg-hero-slider__track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.45s ease;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .rspg-hero-slider__track {
    transition: none;
  }
}

.rspg-hero-slide {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  height: var(--rspg-hero-slide-h);
}

.rspg-hero-slide__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.rspg-hero-slide__img {
  display: block;
  width: 100%;
  height: var(--rspg-hero-slide-h);
  min-height: var(--rspg-hero-slide-h);
  object-fit: cover;
  object-position: center;
}

.rspg-hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(61, 38, 72, 0.78) 0%,
    rgba(61, 38, 72, 0.22) 48%,
    transparent 78%
  );
  pointer-events: none;
}

.rspg-hero-slide__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.9rem;
  padding: 1.2rem 1rem 1.4rem;
  z-index: 2;
}

.rspg-hero-slide__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  line-height: 1.25;
}

.rspg-hero-slide__sub {
  margin: 0;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  max-width: 42rem;
}

/* Desktop: raise caption block higher */
@media (min-width: 1024px) {
  .rspg-hero-slide__caption {
    bottom: 4rem; /* ~50px higher than base */
  }
}

.rspg-hero-slider__prev,
.rspg-hero-slider__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-royal-purple);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: background 0.15s ease, transform 0.15s ease;
}

.rspg-hero-slider__prev:hover,
.rspg-hero-slider__next:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.rspg-hero-slider__prev {
  left: 0.75rem;
}

.rspg-hero-slider__next {
  right: 0.75rem;
}

@media (max-width: 640px) {
  .rspg-hero-slider__prev,
  .rspg-hero-slider__next {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.1rem;
  }
}

.rspg-hero-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.45rem;
}

.rspg-hero-slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rspg-hero-slider__dot[aria-selected="true"] {
  background: var(--color-gold);
  border-color: var(--color-gold);
  transform: scale(1.15);
}

/* Mobile hero fix: keep proportion and center image */
@media (max-width: 768px) {
  .rspg-hero-slider {
    --rspg-hero-slide-h: clamp(12rem, 50vh, 20rem);
    --rspg-hero-slide-h: clamp(12rem, 50dvh, 20rem);
    max-height: none !important;
    height: auto !important;
  }

  .rspg-hero-slider__viewport,
  .rspg-hero-slider__track,
  .rspg-hero-slide {
    height: var(--rspg-hero-slide-h) !important;
    max-height: var(--rspg-hero-slide-h) !important;
  }

  .rspg-hero-slide__img {
    width: 100%;
    height: var(--rspg-hero-slide-h) !important;
    max-height: var(--rspg-hero-slide-h) !important;
    object-fit: cover !important;
    object-position: center center !important;
    background: transparent;
  }
}

/* Shortcode embed: gallery grid (มือถือ 2 คอลัมน์เต็มความกว้าง — จอใหญ่ 3 คอลัมน์) */
.rspg-prose .rspg-embed-gallery {
  margin: 1.5rem 0;
  width: 100%;
  max-width: 100%;
}

.rspg-embed-gallery__grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .rspg-embed-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.rspg-embed-gallery__cell {
  margin: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid rgba(var(--color-purple-rgb), 0.08);
  min-width: 0;
}

.rspg-embed-gallery__trigger {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: #f0ebe8;
  cursor: zoom-in;
  line-height: 0;
  color: inherit;
  transition: opacity 0.15s ease;
}

.rspg-embed-gallery__trigger:hover,
.rspg-embed-gallery__trigger:focus-visible {
  opacity: 0.92;
}

.rspg-embed-gallery__trigger:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.rspg-embed-gallery__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  vertical-align: middle;
  pointer-events: none;
}

.rspg-embed-gallery__cap {
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.4;
}

/* Shortcode embed: รายการดาวน์โหลดเอกสาร */
.rspg-prose .rspg-embed-documents {
  margin: 1.5rem 0;
  width: 100%;
  max-width: 100%;
}

.rspg-embed-documents__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rspg-embed-documents__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(var(--color-purple-rgb), 0.08);
  box-shadow: var(--shadow-card);
}

.rspg-embed-documents__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1 1 12rem;
}

.rspg-embed-documents__title {
  font-weight: 600;
  color: var(--color-text, #2d2438);
  line-height: 1.35;
}

.rspg-embed-documents__meta {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.rspg-embed-documents__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--color-purple, #5d3a71) 0%, #4a2d5c 100%);
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.12s ease;
}

.rspg-embed-documents__btn:hover {
  opacity: 0.92;
  color: #fff;
}

.rspg-embed-documents__btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Lightbox ขยายรูปแกลเลอรี */
.rspg-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  box-sizing: border-box;
}

.rspg-gallery-lightbox[hidden] {
  display: none !important;
}

.rspg-gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 28, 0.88);
  cursor: zoom-out;
}

.rspg-gallery-lightbox__panel {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1200px);
  max-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

.rspg-gallery-lightbox__img {
  max-width: min(90vw, 1100px);
  max-height: min(88vh, 820px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.rspg-gallery-lightbox__close {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-royal-purple);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.rspg-gallery-lightbox__nav {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-royal-purple);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0.15rem;
}

.rspg-gallery-lightbox__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
