.civic-page .civic-carousel { max-width: 1180px; }
.civic-page .civic-carousel-stage { width: 100%; max-width: none; height: auto; min-height: 360px; max-height: 590px; aspect-ratio: 2.35 / 1; background: #f6f8f1; cursor: zoom-in; }
.civic-page .civic-carousel-stage:focus-visible { outline: 3px solid #0f65a9; outline-offset: 4px; }
.civic-page .civic-carousel-caption h2 { letter-spacing: 0; }
.civic-page .civic-screen-panel img { height: auto; max-height: 100%; }
.civic-viewer-open { overflow: hidden; }
.civic-lightbox { position: fixed; inset: 0; width: calc(100% - 32px); max-width: 1800px; height: calc(100dvh - 32px); max-height: none; margin: auto; padding: 0; border: 1px solid #b5cbd7; border-radius: 8px; background: #f5f9fb; color: #183044; overflow: hidden; }
.civic-lightbox::backdrop { background: #06192ee6; }
.civic-lightbox[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.civic-lightbox-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; background: #fff; border-bottom: 1px solid #cfdee5; }
.civic-lightbox h2 { margin: 0; font: 700 18px/1.35 "Segoe UI",Arial,sans-serif; color: #073a78; letter-spacing: 0; }
.civic-lightbox-tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.civic-lightbox-tools button { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 1px solid #b9cbd8; border-radius: 5px; background: #fff; cursor: pointer; }
.civic-lightbox-tools button:hover { background: #e5f2e8; border-color: #31883c; }
.civic-lightbox-tools button[aria-pressed="true"] { background: #dceedd; border-color: #31883c; }
.civic-lightbox-tools button:focus-visible { outline: 3px solid #0f65a9; outline-offset: 2px; }
.civic-lightbox-tools img { width: 22px; height: 22px; }
.civic-lightbox-viewport { min-height: 0; overflow: auto; display: flex; padding: 18px; }
.civic-lightbox-viewport img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; margin: auto; cursor: zoom-in; }
.civic-lightbox-viewport.is-zoomed img { max-width: none; max-height: none; flex-shrink: 0; cursor: zoom-out; }
.civic-lightbox-footer { padding: 12px 20px; background: #fff; border-top: 1px solid #cfdee5; }
.civic-lightbox-footer p { margin: 0; max-height: 72px; overflow-y: auto; color: #476454; font: 14px/1.5 "Segoe UI",Arial,sans-serif; }
.civic-lightbox-count { min-width: 42px; font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .civic-page .civic-carousel-stage { min-height: 230px; max-height: none; aspect-ratio: 4 / 3; }
  .civic-lightbox { width: calc(100% - 12px); height: calc(100dvh - 12px); border-radius: 5px; }
  .civic-lightbox-header { flex-wrap: wrap; gap: 10px; padding: 12px; }
  .civic-lightbox h2 { flex: 1 1 100%; font-size: 17px; }
  .civic-lightbox-tools { width: 100%; justify-content: flex-end; }
  .civic-lightbox-count { margin-right: auto; }
  .civic-lightbox-viewport { padding: 8px; }
  .civic-lightbox-footer { padding: 10px 12px; }
}
