/* =============================================================
 *  modals/chat_photo_lightbox.css
 *  Extraído automaticamente de index.php.
 *  NÃO editar manualmente até remover o script de split.
 * ============================================================= */

    /* Ampliar foto (estilo WhatsApp) */
    #chat-photo-lightbox {
      position: fixed; inset: 0; z-index: 10050;
      background: #000;
      display: flex; flex-direction: column;
      touch-action: pan-y pinch-zoom;
    }
    #chat-photo-lightbox.d-none { display: none !important; }
    .chat-photo-lb-close {
      position: absolute;
      top: max(8px, var(--zori-safe-top));
      right: max(8px, var(--zori-safe-right));
      z-index: 2;
      width: 44px; height: 44px; border-radius: 50%;
      border: none; background: rgba(255,255,255,.14); color: #fff;
      font-size: 26px; line-height: 1; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      font-weight: 300;
    }
    .chat-photo-lb-close:active { background: rgba(255,255,255,.22); }
    .chat-photo-lb-stage {
      flex: 1;
      display: flex; align-items: center; justify-content: center;
      padding: max(48px, var(--zori-safe-top)) 12px max(24px, var(--zori-safe-bottom));
      min-height: 0;
      overflow: hidden;
      -webkit-overflow-scrolling: touch;
      touch-action: none;
    }
    #chat-photo-lb-img {
      max-width: 100%;
      max-height: min(92dvh, 92vh);
      width: auto; height: auto;
      object-fit: contain;
      border-radius: 4px;
      user-select: none;
      -webkit-user-drag: none;
      pointer-events: auto;
      touch-action: none;
      transform-origin: center center;
      transition: transform .12s ease-out;
    }
    .bubble.audio-msg { padding: 10px 12px; min-width: min(260px, 78vw); }
    .audio-meta { display: block; font-size: 11px; font-weight: 700; opacity: .75; margin-top: 5px; }
    .audio-fallback {
      display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
      font-size: 12px; font-weight: 700; color: var(--red, #b91c1c); margin-top: 6px;
    }
    .btn-audio-retry {
      padding: 4px 10px; border-radius: 8px; border: 1px solid var(--border);
      background: var(--surface); font-weight: 800; font-size: 12px; cursor: pointer; color: var(--accent);
    }
    audio.audio-el-error { opacity: .45; }

