/* Voice & Resolve campaign media viewer. Loaded after civic-preserve.css. */
body.campaign-dialog-open { overflow: hidden; }
.campaign-media-stage { position: relative; overflow: hidden; background: #edf2ef; }
.campaign-media-stage::before { content: ""; position: absolute; inset: -28px; background-image: var(--campaign-backplate); background-position: center; background-size: cover; filter: blur(24px); opacity: .26; transform: scale(1.08); }
.campaign-media-open { position: relative; display: grid; width: 100%; min-height: 320px; place-items: center; overflow: hidden; border: 0; background: rgba(6,40,34,.82); cursor: zoom-in; }
.campaign-media-open > img { position: relative; z-index: 1; display: block; width: 100%; height: min(64vh,606px); object-fit: contain; }
.campaign-media-open-hint { position: absolute; z-index: 2; right: 14px; bottom: 14px; border-radius: 999px; background: rgba(6,40,34,.9); color: #fff; padding: 8px 12px; font: 700 12px/1 sans-serif; }
.campaign-video-poster { position: relative; z-index: 1; display: grid; width: 100%; min-height: 360px; place-items: center; align-content: center; gap: 12px; background-position: center; background-size: cover; color: #fff; }
.campaign-video-poster::before { content: ""; position: absolute; inset: 0; background: rgba(3,25,21,.5); }
.campaign-video-poster span,.campaign-video-poster strong { position: relative; z-index: 1; }
.campaign-video-poster span { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 50%; background: #ffdb1a; color: #082c26; font-size: 24px; }
.campaign-media-unavailable { display: grid; place-items: center; color: #fff; padding: 24px; text-align: center; }
.campaign-media-thumbnails .campaign-media-unavailable { padding: 4px; font: 600 10px/1.2 sans-serif; }
.campaign-lightbox-content > .campaign-media-unavailable { min-height: min(280px,45dvh); width: 100%; }
.campaign-media-thumbnails button { overflow: hidden; }
.campaign-media-thumbnails button img { width: 100%; height: 100%; object-fit: cover; }
.campaign-lightbox,.campaign-document-dialog { position: fixed; z-index: 99999; inset: 0; display: grid; place-items: center; padding: 18px; }
.campaign-lightbox-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(0,18,15,.88); }
.campaign-lightbox-panel,.campaign-document-panel { position: relative; z-index: 1; display: flex; width: min(1120px,100%); max-height: calc(100vh - 36px); flex-direction: column; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 32px 90px rgba(0,0,0,.4); }
.campaign-lightbox-header,.campaign-document-panel header,.campaign-document-panel footer,.campaign-lightbox-navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.campaign-lightbox-header p,.campaign-document-panel header p { margin: 0; color: #65736f; font: 700 12px/1.2 sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.campaign-lightbox-header button,.campaign-document-panel header button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #eef3f1; font-size: 28px; }
.campaign-lightbox-content { display: grid; min-height: 0; flex: 1; place-items: center; overflow: hidden; background: #071f1b; }
.campaign-lightbox-content > video,.campaign-lightbox-content > iframe { display: block; width: 100%; height: min(72vh,760px); max-height: calc(100vh - 190px); border: 0; }
.campaign-lightbox-image-wrap { position: relative; display: grid; width: 100%; height: min(72vh,760px); place-items: center; overflow: auto; touch-action: none; }
.campaign-lightbox-image-wrap > img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center; transition: transform .15s ease; }
.campaign-lightbox-zoom { position: absolute; right: 14px; bottom: 14px; display: flex; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.94); }
.campaign-lightbox-zoom button { min-width: 44px; min-height: 44px; border: 0; border-right: 1px solid #d9e2df; background: transparent; }
.campaign-lightbox-caption { margin: 0; padding: 12px 16px; color: #33423e; }
.campaign-lightbox-navigation { border-top: 1px solid #dbe4e1; }
.campaign-lightbox-navigation button,.campaign-document-panel footer a { min-height: 44px; border: 0; border-radius: 999px; background: #3e8f75; color: #fff; padding: 12px 18px; font-weight: 700; }
.campaign-attachments li > button { display: flex; width: 100%; align-items: center; gap: 12px; border: 0; border-radius: 10px; background: #f4f2e8; padding: 16px; color: inherit; text-align: left; }
.campaign-attachments li > button > span:first-child { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #3e8f75; color: #fff; }
.campaign-document-panel { height: min(860px,calc(100vh - 36px)); }
.campaign-document-panel h4 { margin: 4px 0 0; }
.campaign-document-panel iframe { width: 100%; flex: 1; border: 0; background: #eef2f0; }
.campaign-document-unavailable { display: grid; flex: 1; place-items: center; padding: 30px; text-align: center; }
.campaign-document-panel footer { justify-content: flex-end; border-top: 1px solid #dbe4e1; }
@media (max-width: 767px) {
  .campaign-media-open { min-height: 230px; }
  .campaign-media-open > img { height: min(54vh,440px); }
  .campaign-video-poster { min-height: 250px; }
  .campaign-lightbox,.campaign-document-dialog { padding: 0; }
  .campaign-lightbox-panel,.campaign-document-panel { width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
  .campaign-lightbox-image-wrap { height: 100%; min-height: 0; }
  .campaign-lightbox-content > video,.campaign-lightbox-content > iframe { height: 100%; max-height: 100%; }
}
@media (prefers-reduced-motion: reduce) { .campaign-lightbox-image-wrap > img { transition: none; } }
