* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.public {
  margin: 0;
  font-family: var(--font-body, "Open Sans", system-ui, sans-serif);
  color: var(--color-text, #222);
  background: var(--color-bg, #f5f5f5);
  line-height: 1.65;
  transition: background-color 0.2s ease, color 0.2s ease;
}
a { color: var(--color-link, #222); text-decoration: none; }
a:hover { color: var(--color-accent, #d63384); }

.wrap { width: min(1140px, calc(100% - 2rem)); margin: 0 auto; }

.top-social { background: var(--color-top-bar, #f0c14b); }
.social-inner {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.45rem 0;
}
.social-inner a {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.social-inner a:hover { background: #000; color: #fff; }

.site-header { background: var(--color-header, #fff); }
.header-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem 0 1.1rem;
  position: relative;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
  max-width: min(100%, 28rem);
}
.site-logo {
  display: block;
  height: clamp(2.75rem, 8vw, 4.25rem);
  width: auto;
  max-width: min(100%, 16rem);
  object-fit: contain;
}
.site-title {
  font-family: var(--font-logo, "Great Vibes", cursive);
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 400;
  color: var(--color-primary, #111);
  text-decoration: none;
  line-height: 1.1;
  text-align: center;
}
.site-brand.has-logo .site-title {
  font-size: clamp(1.55rem, 4vw, 2.35rem);
}
.theme-toggle {
  border: 0;
  background: rgba(0,0,0,0.75);
  color: #fff;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
}
html.theme-dark .site-header,
html.theme-dark .nav-bar,
html.theme-dark .post-card,
html.theme-dark .widget,
html.theme-dark .single,
html.theme-dark .pager {
  background: #111827;
  color: var(--color-text);
  border-color: #1f2937;
}
html.theme-dark .post-title a,
html.theme-dark .site-title { color: #f9fafb; }
html.theme-dark .site-logo { filter: none; }
html.theme-dark .meta,
html.theme-dark .excerpt { color: #9ca3af; }
html.theme-dark .btn-more {
  border-color: #e5e7eb;
  color: #e5e7eb !important;
}
html.theme-dark .site-footer { background: #020617; }
.nav-bar {
  background: #fff;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
}
.nav-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  position: relative;
  flex-wrap: wrap;
}
.site-search {
  display: flex;
  gap: 0.35rem;
  align-items: stretch;
  width: 100%;
}
.site-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 1px solid #ddd;
  border-radius: 0.35rem;
  padding: 0.45rem 0.65rem;
  font: inherit;
  background: #fff;
  color: inherit;
}
.site-search button {
  border: 0;
  background: var(--color-primary, #111);
  color: #fff;
  border-radius: 0.35rem;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.site-search-nav {
  width: auto;
  min-width: 11rem;
  max-width: 16rem;
  margin-left: auto;
}
.site-search-nav input[type="search"] {
  font-size: 0.85rem;
  padding: 0.4rem 0.55rem;
}
.site-search-nav button {
  min-width: 2.25rem;
  padding: 0.4rem 0.55rem;
}
.site-search-lg { max-width: 36rem; margin: 0.75rem 0 0; }
.search-page-head { margin-bottom: 1.25rem; }
.search-page-head h1 { margin: 0 0 0.5rem; }
.search-results { margin-top: 0.5rem; }
.site-search-suggest { position: relative; }
.suggest-box {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 0.25rem);
  z-index: 80;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.55rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
  max-height: 22rem;
  overflow: auto;
  padding: 0.25rem;
}
.suggest-item {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.4rem;
  text-decoration: none;
  color: inherit;
}
.suggest-item:hover,
.suggest-item.is-active {
  background: #f1f5f9;
}
.suggest-title { font-weight: 650; font-size: 0.92rem; line-height: 1.3; }
.suggest-title mark {
  background: #fef08a;
  color: inherit;
  padding: 0 0.1em;
  border-radius: 0.15rem;
}
.suggest-meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent, #d63384);
}
.suggest-excerpt {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.35;
}
.suggest-all {
  border-top: 1px solid #e5e7eb;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--color-link, #222);
}
html.theme-dark .suggest-box {
  background: #0f172a;
  border-color: #334155;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
html.theme-dark .suggest-item:hover,
html.theme-dark .suggest-item.is-active { background: #1e293b; }
html.theme-dark .suggest-excerpt { color: #94a3b8; }
html.theme-dark .suggest-all { border-top-color: #334155; color: #e2e8f0; }
html.theme-dark .suggest-title mark { background: #854d0e; color: #fef9c3; }
html.theme-dark .site-search input[type="search"] {
  background: #111827;
  border-color: #374151;
  color: #e5e7eb;
}
html.theme-dark .site-search button {
  background: #e5e7eb;
  color: #111827;
}
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav .nav-root {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem;
  position: relative;
}
.primary-nav .nav-item {
  position: relative;
}
.primary-nav .nav-item-row {
  display: flex;
  align-items: center;
}
.primary-nav a {
  display: block;
  padding: 0.85rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #333;
  text-decoration: none;
}
.primary-nav a:hover,
.primary-nav a.active { color: var(--color-accent, #d63384); }
.primary-nav .nav-submenu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0.35rem 0.55rem;
  font-size: 0.75rem;
  line-height: 1;
}
.primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  z-index: 40;
  padding: 0.35rem 0;
  flex-direction: column;
  align-items: stretch;
}
.primary-nav .sub-menu a {
  padding: 0.65rem 1rem;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.primary-nav .sub-menu a:hover {
  background: #f8fafc;
}
.primary-nav .nav-item.has-children:hover > .sub-menu,
.primary-nav .nav-item.has-children:focus-within > .sub-menu,
.primary-nav .nav-item.has-children.is-open > .sub-menu {
  display: flex;
}
html.theme-dark .primary-nav a {
  color: #f3f4f6;
}
html.theme-dark .primary-nav a:hover,
html.theme-dark .primary-nav a.active {
  color: #67e8f9;
}
html.theme-dark .primary-nav .sub-menu {
  background: #111827;
  border-color: #374151;
}
html.theme-dark .primary-nav .sub-menu a:hover {
  background: #1f2937;
}
html.theme-dark .nav-bar {
  border-top-color: #374151;
  border-bottom-color: #374151;
}
.nav-toggle {
  display: none;
  border: 0;
  background: #fff;
  color: #111;
  padding: 0.35rem;
  margin: 0;
  cursor: pointer;
  line-height: 0;
  border-radius: 0.35rem;
}
.nav-toggle .hamburger-icon {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
}
html.theme-dark .nav-toggle {
  background: transparent;
  color: #f9fafb;
}

.layout-2col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.75rem;
  padding: 1.75rem 0 3rem;
  align-items: start;
}
.layout-2col.sidebar-left {
  grid-template-columns: 300px minmax(0, 1fr);
}
.layout-2col.sidebar-left .content { order: 2; }
.layout-2col.sidebar-left .sidebar { order: 1; }
.layout-1col {
  padding: 1.75rem 0 3rem;
}
.layout-1col .content { max-width: none; width: 100%; }
.page-news-full .news-full-content {
  width: 100%;
  max-width: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.page-news-full .news-full-content > .blocks {
  width: 100%;
}
.content, .sidebar { min-width: 0; }

.post-card {
  background: #fff;
  padding: 1.5rem 1.5rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.post-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.post-grid .post-card { margin-bottom: 0; height: 100%; }
.post-title {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 700;
}
.post-featured .post-title { font-size: 1.7rem; }
.post-title a { color: #111; }
.post-title a:hover { color: var(--color-accent, #d63384); }
.meta { margin: 0 0 0.8rem; color: #888; font-size: 0.86rem; }
.excerpt { margin: 0 0 1rem; color: #444; }
.btn-more {
  display: inline-block;
  border: 1px solid #222;
  color: #222 !important;
  padding: 0.45rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
}
.btn-more:hover {
  background: #111;
  color: #fff !important;
  border-color: #111;
}
.post-cat { margin: 1rem 0 0; font-size: 0.85rem; color: #666; }
.post-cat a { color: #666; }
.thumb { display: block; margin: 0 0 1rem; }
.thumb img, .featured {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  display: block;
}

.single {
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.single h1 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.2;
}
.prose { font-size: 1.02rem; }
.prose img { max-width: 100%; height: auto; }
.prose pre {
  overflow-x: auto;
  padding: 1rem;
  background: #1b2430;
  color: #eef2f6;
}
.prose blockquote {
  margin-left: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--color-accent, #d63384);
  color: #555;
}

.widget {
  background: #fff;
  padding: 1.1rem 1.15rem 1.2rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.widget h3 {
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--font-body, inherit);
}
.post-title, .single h1 {
  font-family: var(--font-heading, inherit);
}
.about-img {
  width: 140px;
  height: auto;
  display: block;
  margin: 0 0 0.85rem;
}
.recent-list, .cat-list { list-style: none; margin: 0; padding: 0; }
.recent-list li, .cat-list li {
  margin: 0;
  padding: 0.45rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.92rem;
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  font-weight: 600;
  background: #fff;
  padding: 0.9rem 1rem;
}
.empty { background: #fff; padding: 1.25rem; }

.site-footer {
  background: #111;
  color: rgba(255,255,255,0.85);
  padding: 1.35rem 0;
  font-size: 0.9rem;
}
.site-footer p { margin: 0; text-align: center; }

@media (max-width: 900px) {
  .layout-2col { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .header-bar {
    justify-content: center;
    padding: 1.1rem 2.75rem 1rem 0.25rem; /* room on right for hamburger; keep title centered */
  }
  .site-title {
    text-align: center;
    font-size: clamp(2rem, 8vw, 2.85rem);
  }
  .site-logo {
    height: clamp(2.25rem, 9vw, 3.25rem);
    max-width: min(100%, 11rem);
  }
  .site-brand.has-logo .site-title {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }
  .nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }
  .nav-bar { border-top: 0; }
  body:not(.nav-open) .nav-bar { border-bottom-color: transparent; }
  .primary-nav { display: none; width: 100%; }
  body.nav-open .primary-nav { display: block; }
  body.nav-open .nav-bar { border-top: 1px solid #ececec; }
  .primary-nav .nav-root { flex-direction: column; align-items: stretch; padding: 0.25rem 0 0.65rem; }
  .primary-nav a { padding: 0.75rem 0.15rem; }
  .primary-nav .nav-item-row { justify-content: space-between; width: 100%; }
  .primary-nav .nav-submenu-toggle { display: inline-flex; color: #333; }
  html.theme-dark .primary-nav .nav-submenu-toggle { color: #f3f4f6; }
  .primary-nav .sub-menu {
    position: static;
    box-shadow: none;
    border: 0;
    border-left: 2px solid #e5e7eb;
    margin: 0 0 0.35rem 0.5rem;
    padding: 0;
    background: transparent;
    display: none;
  }
  .primary-nav .nav-item.has-children:hover > .sub-menu,
  .primary-nav .nav-item.has-children:focus-within > .sub-menu {
    display: none;
  }
  .primary-nav .nav-item.has-children.is-open > .sub-menu { display: flex; }
  html.theme-dark .primary-nav .sub-menu { border-left-color: #374151; background: transparent; }
  .nav-inner { justify-content: stretch; }
  .site-search-nav {
    width: 100%;
    max-width: none;
    margin: 0.35rem 0 0.65rem;
  }
}

/* Desktop: force centered brand, never show hamburger */
@media (min-width: 901px) {
  .header-bar { justify-content: center; }
  .site-brand, .site-title { text-align: center; }
  .nav-toggle { display: none !important; }
}

/* —— News homepage —— */
.news-home { padding: 1rem 0 3rem; }
.news-ticker {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  background: #111;
  color: #fff;
  padding: 0.55rem 0.85rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.news-ticker-label {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-accent, #d63384);
  padding: 0.2rem 0.45rem;
  z-index: 1;
}
.news-ticker-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent);
}
.news-ticker-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  width: max-content;
  will-change: transform;
  animation: news-ticker-scroll var(--ticker-duration, 40s) linear infinite;
}
.news-ticker:hover .news-ticker-list,
.news-ticker:focus-within .news-ticker-list {
  animation-play-state: paused;
}
.news-ticker-list li {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding-right: 1.25rem;
}
.news-ticker-list li::after {
  content: "•";
  margin-left: 1.25rem;
  opacity: 0.45;
  font-weight: 700;
}
.news-ticker-list a { color: #fff; font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.news-ticker-list a:hover { color: #fde68a; }
@keyframes news-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .news-ticker-list {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    gap: 0.35rem 1rem;
  }
  .news-ticker-list li { padding-right: 0; }
  .news-ticker-list li::after { display: none; }
  .news-ticker-viewport {
    mask-image: none;
    -webkit-mask-image: none;
    overflow: visible;
  }
}
.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.75rem;
  align-items: start;
}
.news-layout.sidebar-left {
  grid-template-columns: 300px minmax(0, 1fr);
}
.news-layout.sidebar-left .news-main { order: 2; }
.news-layout.sidebar-left .news-side { order: 1; }
.news-layout.no-sidebar { grid-template-columns: 1fr; }
.news-main { min-width: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.news-side .sidebar { margin: 0; }
.news-hero {
  background: #fff;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid #ececec;
}
.news-hero-media { display: block; min-height: 100%; }
.news-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}
.news-hero-body { padding: 1.25rem 1.35rem; }
.news-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent, #d63384);
  margin-bottom: 0.4rem;
}
.news-hero-title {
  font-family: var(--font-heading, Georgia, serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  margin: 0 0 0.5rem;
  font-weight: 700;
}
.news-hero-title a { color: inherit; }
.news-meta { margin: 0; color: #888; font-size: 0.82rem; }
.news-excerpt { margin: 0.65rem 0 1rem; color: #444; line-height: 1.55; }
.news-secondary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.news-card {
  background: #fff;
  border: 1px solid #ececec;
  padding: 0 0 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.news-card .news-kicker,
.news-card .news-card-title,
.news-card .news-meta { padding-left: 0.85rem; padding-right: 0.85rem; }
.news-card-media { display: block; }
.news-card-media img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.news-card-title {
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0.35rem 0 0;
  font-weight: 700;
}
.news-card-title a { color: #111; }
.news-card-title a:hover { color: var(--color-accent, #d63384); }
.news-card.compact .news-card-title { font-size: 0.95rem; }
.news-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid #111;
  margin-bottom: 0.85rem;
  padding-bottom: 0.35rem;
}
.news-section-head h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.news-section-more {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #666;
}
.news-section-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
.news-latest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #ececec;
}
.news-latest-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  align-items: baseline;
}
.news-latest-list li:last-child { border-bottom: 0; }
.news-latest-list a {
  font-weight: 700;
  color: #111;
  flex: 1;
  min-width: 0;
}
.news-latest-list a:hover { color: var(--color-accent, #d63384); }
html.theme-dark .news-hero,
html.theme-dark .news-card,
html.theme-dark .news-latest-list {
  background: #111827;
  border-color: #1f2937;
}
html.theme-dark .news-card-title a,
html.theme-dark .news-hero-title a,
html.theme-dark .news-latest-list a { color: #f9fafb; }
html.theme-dark .news-excerpt { color: #9ca3af; }
html.theme-dark .news-section-head { border-bottom-color: #e5e7eb; }
html.theme-dark .news-section-head h2 { color: #f9fafb; }

/* Block content on public site */
.blocks { display: flex; flex-direction: column; gap: 1.1rem; }
.block-image img { max-width: 100%; height: auto; display: block; }
.block-image figcaption { font-size: 0.85rem; color: #666; margin-top: 0.35rem; }
.block-image-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
.block-image-text.image-right { direction: rtl; }
.block-image-text.image-right > * { direction: ltr; }
.block-image-text img { width: 100%; height: auto; display: block; }
.block-quote {
  margin: 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--color-accent, #d63384);
  background: #f8f8f8;
  font-size: 1.15rem;
}
html.theme-dark .block-quote { background: #0f172a; }
.block-divider { border: 0; border-top: 1px solid #ddd; margin: 0.5rem 0; }
.block-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.block-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.home-blocks .blocks { gap: 1.5rem; }
.block-section-title { margin: 0 0 0.75rem; font-family: var(--font-heading); font-size: 1.5rem; }

/* Hero / image sliders */
.block-hero-slider, .block-image-slider {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #0f172a;
}
.hero-slider-track, .image-slider-track { position: relative; }
.hero-slide, .img-slide {
  display: none;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  min-height: 280px;
  background: #111827;
  color: #f9fafb;
}
.hero-slide.is-active { display: grid; }
.img-slide.is-active { display: block; }
.hero-slide-media, .img-slide a, .img-slide img {
  display: block; width: 100%; height: 100%;
}
.hero-slide-media img, .img-slide img {
  width: 100%; height: 100%; object-fit: cover; min-height: 280px; max-height: 420px;
  display: block;
}
.hero-slide-placeholder {
  min-height: 280px; background: linear-gradient(135deg, #1f2937, #374151);
}
.hero-slide-body { padding: 1.35rem 1.5rem; display: flex; flex-direction: column; justify-content: center; gap: 0.45rem; }
.hero-slide-title { margin: 0; font-family: var(--font-heading); font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.2; }
.hero-slide-title a { color: inherit; text-decoration: none; }
.hero-slide .news-kicker { color: var(--color-accent, #f472b6); }
.hero-slide .news-excerpt { color: #cbd5e1; margin: 0; }
.hero-slide .news-meta { color: #94a3b8; margin: 0; }
.block-image-slider.height-sm .img-slide img { min-height: 180px; max-height: 220px; }
.block-image-slider.height-md .img-slide img { min-height: 260px; max-height: 360px; }
.block-image-slider.height-lg .img-slide img { min-height: 340px; max-height: 480px; }

.social-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.social-list a { text-decoration: none; }
.widget-body :first-child { margin-top: 0; }
.widget-body :last-child { margin-bottom: 0; }

/* Gallery grid + lightbox */
.block-gallery .gallery-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.block-gallery.cols-2 .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.block-gallery.cols-4 .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #e2e8f0;
  aspect-ratio: 1 / 1;
  text-decoration: none;
  color: inherit;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.25s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.4rem 0.55rem; font-size: 0.8rem;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  color: #fff;
}
.gallery-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(2, 6, 23, 0.88);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.gallery-lightbox[hidden] { display: none !important; }
body.gallery-lb-open { overflow: hidden; }
.gallery-lb-figure { margin: 0; max-width: min(96vw, 1100px); max-height: 90vh; text-align: center; }
.gallery-lb-figure img {
  max-width: 100%; max-height: 82vh; object-fit: contain;
  border-radius: 0.35rem; box-shadow: 0 20px 50px rgba(0,0,0,.45);
}
.gallery-lb-figure figcaption { color: #e2e8f0; margin-top: 0.65rem; font-size: 0.95rem; }
.gallery-lb-close, .gallery-lb-prev, .gallery-lb-next {
  position: absolute; border: 0; background: rgba(15,23,42,.7); color: #fff;
  cursor: pointer; border-radius: 999px; width: 2.5rem; height: 2.5rem;
  font-size: 1.5rem; line-height: 1; z-index: 2;
}
.gallery-lb-close { top: 1rem; right: 1rem; }
.gallery-lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.gallery-lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .block-gallery .gallery-grid,
  .block-gallery.cols-4 .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.img-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.65rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: #fff; font-size: 0.9rem;
}
.img-slide { position: relative; }
.slider-prev, .slider-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; border: 0; width: 2.25rem; height: 2.25rem; border-radius: 999px;
  background: rgba(15, 23, 42, 0.65); color: #fff; cursor: pointer; font-size: 1.35rem; line-height: 1;
}
.slider-prev { left: 0.65rem; }
.slider-next { right: 0.65rem; }
.slider-dots {
  position: absolute; left: 0; right: 0; bottom: 0.65rem;
  display: flex; justify-content: center; gap: 0.4rem; z-index: 3;
}
.slider-dots button {
  width: 0.55rem; height: 0.55rem; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.45); cursor: pointer; padding: 0;
}
.slider-dots button.is-active { background: #fff; }

.posts-grid {
  display: grid;
  gap: 1rem;
}
.posts-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.posts-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.posts-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.block-post-carousel { position: relative; }
.carousel-viewport {
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.carousel-track {
  display: flex; gap: 1rem; padding: 0.25rem 0.15rem 0.75rem;
}
.carousel-card {
  flex: 0 0 min(260px, 78vw);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.65rem;
  overflow: hidden;
}
html.theme-dark .carousel-card { background: #111827; border-color: #1f2937; }
.block-post-carousel .slider-prev,
.block-post-carousel .slider-next {
  background: rgba(15, 23, 42, 0.8);
}

@media (max-width: 900px) {
  .news-layout { grid-template-columns: 1fr; }
  .news-hero { grid-template-columns: 1fr; }
  .news-hero-media img { min-height: 200px; max-height: 280px; }
  .news-secondary { grid-template-columns: 1fr; }
  .news-section-grid { grid-template-columns: 1fr 1fr; }
  .block-image-text { grid-template-columns: 1fr; }
  .block-image-text.image-right { direction: ltr; }
  .hero-slide.is-active { grid-template-columns: 1fr; }
  .posts-grid.cols-2, .posts-grid.cols-3, .posts-grid.cols-4 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .posts-grid.cols-2, .posts-grid.cols-3, .posts-grid.cols-4 {
    grid-template-columns: 1fr;
  }
}
