/* ============================================================
   RRO — Rapid Response Organization | Custom Stylesheet
   Bootstrap 5 + Custom CSS
   ============================================================ */

:root {
  --rro-green: #1a6b2f;
  --rro-green-dark: #124a20;
  --rro-green-light: #28a745;
  --rro-gold: #f5a623;
  --rro-blue: #2563eb;
  --rro-light: #f8f9fa;
  --rro-dark: #0f1f14;
  --rro-text: #2c3e2d;
  --rro-muted: #6c7a6e;
}

/* ---- Base ---- */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--rro-text);
  scroll-behavior: smooth;
}

a { text-decoration: none; }

/* ---- Navbar ---- */
.navbar {
  background: var(--rro-green) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  padding: 0.75rem 0;
}
.navbar-brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  background: #fff;
  padding: 2px;
}
.navbar-brand span {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
}
.navbar-brand small {
  color: rgba(255,255,255,0.75);
  font-size: 0.7rem;
  display: block;
}
.navbar-nav .nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: background 0.2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.15);
}
.btn-donate {
  background: var(--rro-gold);
  color: var(--rro-dark) !important;
  font-weight: 700;
  border-radius: 25px;
  padding: 0.4rem 1.4rem !important;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-donate:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(245,166,35,0.5);
  background: #e09400;
  color: #fff !important;
}
.navbar-toggler {
  border-color: rgba(255,255,255,0.4) !important;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ---- Hero ---- */
.hero {
  min-height: 88vh;
  background: linear-gradient(135deg, var(--rro-green-dark) 0%, var(--rro-green) 60%, #2d8c47 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-img, url('../images/field1.jpeg')) center/cover no-repeat;
  opacity: 0.18;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.hero h1 span { color: var(--rro-gold); }
.hero p {
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  max-width: 580px;
  line-height: 1.7;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 25px;
  padding: 6px 18px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--rro-gold);
  border-radius: 50%;
}

/* ---- Stat Strip ---- */
.stat-strip {
  background: var(--rro-dark);
  padding: 2rem 0;
}
.stat-item { text-align: center; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--rro-gold);
  display: block;
}
.stat-label { color: rgba(255,255,255,0.65); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; }

/* ---- Section Titles ---- */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--rro-green-dark);
}
.section-subtitle {
  color: var(--rro-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}
.section-tag {
  display: inline-block;
  background: rgba(26,107,47,0.1);
  color: var(--rro-green);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

/* ---- Program Cards ---- */
.program-card {
  border: 1px solid #e8f0e9;
  border-radius: 14px;
  padding: 1.75rem;
  height: 100%;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  background: #fff;
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(26,107,47,0.12);
  border-color: var(--rro-green);
}
.program-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--rro-green), var(--rro-green-light));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.program-card h5 { font-weight: 700; color: var(--rro-green-dark); font-size: 1rem; }
.program-card p { color: var(--rro-muted); font-size: 0.87rem; line-height: 1.6; margin: 0; }

/* ---- Activity Cards ---- */
.activity-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
  background: #fff;
  border: 1px solid #eee;
}
.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}
.activity-card img {
  width: 100%; height: 220px;
  object-fit: cover;
}
.activity-card .card-body { padding: 1.25rem; }
.activity-meta { font-size: 0.78rem; color: var(--rro-muted); margin-bottom: 0.5rem; }
.activity-meta span { margin-right: 12px; }
.activity-card h5 { font-weight: 700; font-size: 1rem; color: var(--rro-green-dark); }
.activity-card p { font-size: 0.87rem; color: var(--rro-muted); line-height: 1.6; }
.badge-program {
  background: rgba(26,107,47,0.1);
  color: var(--rro-green);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---- About Page ---- */
.about-hero {
  background: linear-gradient(135deg, var(--rro-green-dark), var(--rro-green));
  padding: 5rem 0 4rem;
  color: #fff;
}
.about-hero h1 { font-weight: 800; font-size: 2.5rem; }
.value-card {
  background: #fff;
  border: 1px solid #e8f0e9;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  height: 100%;
  transition: box-shadow 0.2s;
}
.value-card:hover { box-shadow: 0 8px 24px rgba(26,107,47,0.1); }
.value-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.value-card h6 { font-weight: 700; color: var(--rro-green-dark); }
.at-glance {
  background: var(--rro-green);
  color: #fff;
  border-radius: 16px;
  padding: 2rem;
}
.at-glance h5 { font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 0.75rem; margin-bottom: 1rem; }
.glance-item { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; }
.glance-item:last-child { border-bottom: none; }
.glance-label { color: rgba(255,255,255,0.75); }
.glance-value { font-weight: 600; }

/* ---- Contact Page ---- */
.contact-hero {
  background: linear-gradient(135deg, var(--rro-green-dark), var(--rro-green));
  padding: 5rem 0 4rem;
  color: #fff;
}
.contact-card {
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e8f0e9;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.contact-info-item {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 1.5rem;
}
.contact-info-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: linear-gradient(135deg, var(--rro-green), var(--rro-green-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
}
.contact-info-text h6 { font-weight: 700; color: var(--rro-green-dark); margin: 0 0 2px; font-size: 0.9rem; }
.contact-info-text p { color: var(--rro-muted); font-size: 0.88rem; margin: 0; }
.form-control:focus, .form-select:focus {
  border-color: var(--rro-green);
  box-shadow: 0 0 0 0.2rem rgba(26,107,47,0.15);
}

/* ---- Buttons ---- */
.btn-rro {
  background: var(--rro-green);
  color: #fff;
  border-radius: 25px;
  padding: 0.65rem 2rem;
  font-weight: 600;
  border: 2px solid var(--rro-green);
  transition: all 0.2s;
}
.btn-rro:hover {
  background: var(--rro-green-dark);
  border-color: var(--rro-green-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,107,47,0.3);
}
.btn-rro-outline {
  background: transparent;
  color: #fff;
  border-radius: 25px;
  padding: 0.65rem 2rem;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.7);
  transition: all 0.2s;
}
.btn-rro-outline:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
}

/* ---- Footer ---- */
.footer {
  background: var(--rro-dark);
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 0 1.5rem;
}
.footer-logo img {
  height: 60px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
}
.footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--rro-gold); }
.footer-divider { border-color: rgba(255,255,255,0.1); margin: 2rem 0 1rem; }
.footer-bottom { color: rgba(255,255,255,0.5); font-size: 0.82rem; }
.social-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: rgba(255,255,255,0.8);
  margin-right: 8px;
  transition: background 0.2s, color 0.2s;
  font-size: 0.9rem;
}
.social-icons a:hover { background: var(--rro-green); color: #fff; }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--rro-green-dark), var(--rro-green));
  padding: 5rem 0 4rem;
  color: #fff;
}
.page-hero h1 { font-weight: 800; font-size: 2.5rem; }
.breadcrumb-item a { color: rgba(255,255,255,0.75); }
.breadcrumb-item.active { color: rgba(255,255,255,0.95); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ---- Vision/Mission boxes ---- */
.vm-box {
  border-radius: 14px;
  padding: 2rem;
  height: 100%;
}
.vm-box.vision { background: var(--rro-green); color: #fff; }
.vm-box.mission { background: var(--rro-gold); color: var(--rro-dark); }
.vm-box h5 { font-weight: 800; margin-bottom: 0.75rem; font-size: 1.1rem; }
.vm-box p { font-size: 0.95rem; line-height: 1.7; margin: 0; }

/* ---- CTA Strip ---- */
.cta-strip {
  background: linear-gradient(135deg, var(--rro-green-dark), var(--rro-green));
  padding: 4rem 0;
  color: #fff;
  text-align: center;
}
.cta-strip h2 { font-weight: 800; font-size: 2rem; }
.cta-strip p { color: rgba(255,255,255,0.85); font-size: 1.05rem; }

/* ---- Misc ---- */
.bg-light-green { background: #f0f7f1; }
.text-rro { color: var(--rro-green) !important; }
.border-rro { border-color: var(--rro-green) !important; }

@media (max-width: 767px) {
  .hero { min-height: 70vh; text-align: center; }
  .hero p { margin: 0 auto 1.5rem; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 1rem 0; }
  .stat-item:last-child { border-bottom: none; }
  .hero-buttons { justify-content: center !important; }
}


/* ============================================================
   v2 — dynamic content: posts, gallery, lightbox
   ============================================================ */
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
:focus-visible { outline: 3px solid var(--rro-gold); outline-offset: 2px; }

/* Signed-in staff strip */
.admin-strip { background: var(--rro-dark); color: rgba(255,255,255,.8); font-size: .8rem; padding: .35rem 0; }
.admin-strip a { color: var(--rro-gold); }
.admin-strip a:hover { color: #fff; }

/* Cards with images */
.activity-img-link { position: relative; display: block; overflow: hidden; }
.activity-img-link img { transition: transform .4s ease; }
.activity-card:hover .activity-img-link img { transform: scale(1.04); }
.activity-card h5 a { color: inherit; }
.activity-card h5 a:hover { color: var(--rro-green); }
.read-more { font-size: .85rem; font-weight: 600; color: var(--rro-green); white-space: nowrap; }
.read-more:hover { color: var(--rro-green-dark); }
.read-more i { transition: transform .2s; }
.read-more:hover i { transform: translateX(3px); }

.type-chip {
  position: absolute; top: 12px; left: 12px;
  font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 20px;
  background: #fff; color: var(--rro-green-dark); box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.type-chip.static { position: static; display: inline-block; box-shadow: none; }
.type-chip.type-activity { background: var(--rro-gold); color: var(--rro-dark); }
.type-chip.type-blog { background: #e8f0fe; color: #1e40af; }

/* Filter chips */
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.filter-chips a {
  border: 1px solid #d5e6d8; color: var(--rro-text); background: #fff;
  border-radius: 25px; padding: .4rem 1rem; font-size: .88rem; font-weight: 500;
}
.filter-chips a small { color: var(--rro-muted); margin-left: 2px; }
.filter-chips a:hover { border-color: var(--rro-green); color: var(--rro-green); }
.filter-chips a.active { background: var(--rro-green); border-color: var(--rro-green); color: #fff; }
.filter-chips a.active small { color: rgba(255,255,255,.75); }
.d-flex > .filter-chips { justify-content: flex-start; }

.news-search { position: relative; min-width: 240px; }
.news-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--rro-muted); }
.news-search input {
  width: 100%; border: 1px solid #d5e6d8; border-radius: 25px; padding: .5rem 1rem .5rem 2.4rem; font-size: .9rem;
}
.news-search input:focus { outline: none; border-color: var(--rro-green); box-shadow: 0 0 0 .2rem rgba(26,107,47,.15); }

/* Lead story on news page */
.lead-story {
  display: grid; grid-template-columns: 1.25fr 1fr; background: #fff;
  border-radius: 18px; overflow: hidden; border: 1px solid #e8f0e9; box-shadow: 0 8px 30px rgba(18,74,32,.08);
}
.lead-story-img img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.lead-story-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.lead-story-body .activity-meta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.lead-story-body .activity-meta span { margin: 0; }
.lead-story h2 { font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2; }
.lead-story h2 a { color: var(--rro-green-dark); }
.lead-story h2 a:hover { color: var(--rro-green); }
.lead-story p { color: var(--rro-muted); line-height: 1.7; }
@media (max-width: 991px) { .lead-story { grid-template-columns: 1fr; } .lead-story-img img { min-height: 220px; max-height: 320px; } .lead-story-body { padding: 1.75rem; } }

/* Empty states */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--rro-muted); max-width: 440px; margin: 0 auto; }
.empty-state > i { font-size: 3rem; color: var(--rro-green); opacity: .35; }
.empty-state h5 { color: var(--rro-green-dark); font-weight: 700; margin-top: .75rem; }

/* Pagination */
.rro-pagination .page-link { color: var(--rro-green); border-color: #d5e6d8; min-width: 40px; text-align: center; }
.rro-pagination .page-item.active .page-link { background: var(--rro-green); border-color: var(--rro-green); color: #fff; }
.rro-pagination .page-link:hover { color: var(--rro-green-dark); background: #f0f7f1; }

/* Home gallery mosaic */
.home-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 10px; }
.home-gallery-item { position: relative; overflow: hidden; border-radius: 12px; display: block; background: #e8f0e9; }
.home-gallery-item.big { grid-column: span 2; grid-row: span 2; }
.home-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.home-gallery-item:hover img { transform: scale(1.05); }
.home-gallery-item span {
  position: absolute; inset: auto 0 0 0; padding: 1.5rem .85rem .6rem; color: #fff; font-size: .82rem; font-weight: 500;
  background: linear-gradient(transparent, rgba(15,31,20,.85)); opacity: 0; transition: opacity .25s;
}
.home-gallery-item:hover span, .home-gallery-item:focus span { opacity: 1; }
@media (max-width: 767px) { .home-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; } }

/* Gallery page masonry */
.masonry { column-count: 3; column-gap: 14px; }
.masonry-item { break-inside: avoid; margin: 0 0 14px; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #eef3ef; }
.masonry-item img { width: 100%; height: auto; display: block; transition: opacity .2s; }
.masonry-item a:hover img { opacity: .9; }
.masonry-item figcaption { padding: .6rem .85rem; font-size: .84rem; display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.masonry-item figcaption span { color: var(--rro-text); }
.masonry-item figcaption a { color: var(--rro-green); font-weight: 600; white-space: nowrap; font-size: .78rem; }
@media (max-width: 991px) { .masonry { column-count: 2; } }
@media (max-width: 520px) { .masonry { column-count: 1; } }

/* Post detail */
.post-hero {
  position: relative; color: #fff; padding: 5rem 0 3.5rem;
  background: linear-gradient(180deg, rgba(18,74,32,.82), rgba(15,31,20,.92)), var(--post-img) center/cover no-repeat;
}
.post-hero.no-image { background: linear-gradient(135deg, var(--rro-green-dark), var(--rro-green)); }
.post-hero h1 { font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; max-width: 860px; margin: .75rem 0 1rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: rgba(255,255,255,.82); font-size: .9rem; }
.post-cover { margin: 0 0 2rem; }
.post-cover img { width: 100%; border-radius: 16px; max-height: 520px; object-fit: cover; }
.post-lede { font-size: 1.2rem; line-height: 1.7; color: var(--rro-green-dark); font-weight: 500; border-left: 4px solid var(--rro-gold); padding-left: 1.1rem; margin-bottom: 1.75rem; }
.post-content { font-size: 1.05rem; line-height: 1.85; color: #33443a; max-width: 72ch; }
.post-content h2, .post-content h3, .post-content h4 { color: var(--rro-green-dark); font-weight: 800; margin: 2rem 0 .75rem; }
.post-content h2 { font-size: 1.6rem; } .post-content h3 { font-size: 1.3rem; }
.post-content a { color: var(--rro-green); text-decoration: underline; text-underline-offset: 3px; }
.post-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 1rem 0; }
.post-content blockquote { border-left: 4px solid var(--rro-green); background: #f0f7f1; padding: 1rem 1.25rem; border-radius: 0 10px 10px 0; font-style: italic; margin: 1.5rem 0; }
.post-content iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 12px; }
.post-content ul, .post-content ol { padding-left: 1.4rem; }
.post-content li { margin-bottom: .35rem; }
.post-section-title { font-weight: 800; color: var(--rro-green-dark); font-size: 1.3rem; margin: 2.5rem 0 1rem; }
.post-section-title small { font-size: .85rem; color: var(--rro-muted); font-weight: 500; }
.post-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.post-photos a { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 10px; }
.post-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.post-photos a:hover img { transform: scale(1.06); }

.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #e8f0e9; }
.share-row .fw-600 { margin-right: .5rem; color: var(--rro-green-dark); }
.share-row a, .share-row button {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  min-width: 40px; height: 40px; border-radius: 20px; border: 1px solid #d5e6d8; background: #fff; color: var(--rro-green); padding: 0 .75rem;
}
.share-row a:hover, .share-row button:hover { background: var(--rro-green); color: #fff; border-color: var(--rro-green); }
.share-row button span { font-size: .85rem; font-weight: 600; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.post-nav a { border: 1px solid #e8f0e9; border-radius: 12px; padding: 1rem 1.2rem; color: var(--rro-green-dark); font-weight: 600; font-size: .95rem; line-height: 1.4; }
.post-nav a small { display: block; color: var(--rro-muted); font-weight: 500; margin-bottom: .25rem; }
.post-nav a:hover { border-color: var(--rro-green); background: #f9fdf9; }
.post-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 575px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: 1; } }

.post-sidebar { position: sticky; top: 100px; }
.sidebar-cta { background: #f0f7f1; border-radius: 16px; padding: 1.5rem; }
.sidebar-cta h6 { font-weight: 800; color: var(--rro-green-dark); }
.sidebar-cta p { font-size: .9rem; color: var(--rro-muted); }

/* Lightbox */
.lightbox-content { background: transparent; border: 0; position: relative; align-items: center; }
#lightbox .modal-dialog { max-width: min(1200px, 96vw); }
#lightbox .modal-backdrop, .modal-backdrop.show { --bs-backdrop-opacity: .9; }
#lightboxImg { max-width: 100%; max-height: 82vh; border-radius: 8px; display: block; margin: 0 auto; }
.lightbox-caption { color: #fff; text-align: center; padding: .75rem 1rem 0; font-size: .95rem; min-height: 1.5rem; }
.lightbox-close { position: absolute; top: -2.5rem; right: 0; z-index: 3; opacity: .9; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 1.4rem;
}
.lightbox-nav:hover { background: rgba(255,255,255,.35); }
.lightbox-nav.prev { left: 8px; } .lightbox-nav.next { right: 8px; }

/* Contact form honeypot */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.footer-staff { color: rgba(255,255,255,.45); font-size: .8rem; }
.footer-staff:hover { color: var(--rro-gold); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Editor alignment classes (from the admin text editor) */
.post-content .ql-align-center { text-align: center; }
.post-content .ql-align-right { text-align: right; }
.post-content .ql-align-justify { text-align: justify; }
.post-content .ql-video { display: block; width: 100%; aspect-ratio: 16/9; height: auto; margin: 1.5rem 0; border-radius: 12px; }
.post-content li[data-list="bullet"] { list-style-type: disc; }
.post-content .ql-ui { display: none; }
