/*
 * Leitura - materias, posts de outros tipos e paginas
 * Carrega em: toda pagina individual, menos a capa e a pagina de empresa (ver inc/assets.php).
 */

/* Paywall de materia exclusiva (single.php, _cidadetrevo_exclusivo) —
   reaproveita .ct-btn-pay do dropdown de assinatura pra manter o mesmo
   botao em todo o site. */
.ct-paywall-teaser {
    position: relative;
    max-height: 220px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

.ct-paywall-cta {
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 28px 20px;
    margin-top: -12px;
}

.ct-paywall-cta p {
    font-weight: 700;
    color: #334155;
    margin-bottom: 14px;
}

.ct-paywall-cta .ct-btn-pay {
    display: inline-block;
    max-width: 320px;
    margin: 0 auto;
    cursor: pointer;
}

/* Popup de assinatura (estilo grandes jornais — O Globo, Folha): some
   sozinho depois de alguns segundos de leitura numa matéria bloqueada
   (materia.js), fundo desfocado e sem rolagem, até assinar ou sair da
   página — de propósito sem botão de fechar, mesma lógica do teaser+CTA
   que já existe atrás dele (.ct-paywall-teaser/.ct-paywall-cta): aqui é a
   interrupção, não uma segunda forma de dispensar. */
.ct-paywall-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility 0s linear .35s;
}

.ct-paywall-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity .35s ease;
}

.ct-paywall-modal {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .35);
    transform: translateY(14px);
    transition: transform .35s ease;
}

.ct-paywall-modal-overlay.active .ct-paywall-modal {
    transform: translateY(0);
}

.ct-paywall-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.ct-paywall-modal-close:hover {
    background: #e2e8f0;
    color: #1a1a1a;
}

.ct-paywall-modal-cancele {
    font-size: 12px;
    color: #94a3b8;
    margin: 10px 0 0;
}

.ct-paywall-modal-entrar {
    display: block;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.ct-paywall-modal-entrar strong {
    color: var(--cor-primaria, #2271b1);
}

/* Marca do portal no topo do popup — mesmo componente do cabeçalho
   (cidadetrevo_render_brand_logo(), inc/marca.php), só menor: reforça de
   quem é a assinatura antes até do título, em vez do popup parecer um
   formulário genérico solto na página. */
.ct-paywall-modal-marca {
    --marca-corpo: 32px;
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.ct-paywall-modal-marca img {
    max-height: 42px;
    width: auto;
}

.ct-paywall-modal-selo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1a1a1a;
    color: #fbbf24;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 5px 12px;
    border-radius: 3px;
    margin-bottom: 16px;
}

.ct-paywall-modal-titulo {
    font-family: var(--font-serif, serif);
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.25;
}

/* Maquete "leia em qualquer lugar" (navegador + celular): CSS puro, sem
   imagem/estoque nenhuma — o retângulo do "cabeçalho" de cada tela usa a
   cor da própria marca do portal (--cor-primaria), o resto é escala de
   cinza representando foto/texto genéricos. */
.ct-paywall-modal-mockup {
    position: relative;
    height: 118px;
    margin: 18px auto 22px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.ct-mockup-browser {
    width: 200px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .14);
    overflow: hidden;
    transform: rotate(-4deg);
}

.ct-mockup-browser-bar {
    display: flex;
    gap: 4px;
    padding: 6px 8px;
    background: #f1f5f9;
}

.ct-mockup-browser-bar span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #cbd5e1;
}

.ct-mockup-browser-body {
    padding: 9px 10px 11px;
}

.ct-mockup-masthead {
    width: 40%;
    height: 6px;
    background: var(--cor-primaria, #b32619);
    border-radius: 2px;
    margin-bottom: 7px;
}

.ct-mockup-photo {
    width: 100%;
    height: 32px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-bottom: 7px;
}

.ct-mockup-line {
    height: 5px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-bottom: 4px;
}

.ct-mockup-line--title {
    height: 7px;
    width: 90%;
    background: #cbd5e1;
}

.ct-mockup-line--short {
    width: 55%;
}

.ct-mockup-phone {
    width: 62px;
    background: #1a1a1a;
    border-radius: 11px;
    padding: 7px 4px 9px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .2);
    position: absolute;
    right: 36px;
    bottom: -12px;
    transform: rotate(6deg);
}

.ct-mockup-phone-notch {
    width: 20px;
    height: 4px;
    background: #333;
    border-radius: 3px;
    margin: 0 auto 6px;
}

.ct-mockup-phone-body {
    background: #fff;
    border-radius: 4px;
    padding: 6px 5px 7px;
}

.ct-mockup-phone .ct-mockup-masthead {
    width: 55%;
    height: 5px;
    margin-bottom: 5px;
}

.ct-mockup-phone .ct-mockup-photo {
    height: 22px;
    margin-bottom: 5px;
}

.ct-mockup-phone .ct-mockup-line {
    height: 4px;
    margin-bottom: 3px;
}

.ct-paywall-modal-preco {
    font-size: 32px;
    font-weight: 800;
    color: var(--cor-primaria, #2271b1);
    margin: 0 0 18px;
}

.ct-paywall-modal-preco span {
    font-size: 14px;
    font-weight: 600;
    color: #777;
}

.ct-paywall-modal-beneficios {
    text-align: left;
    font-size: 13.5px;
    color: #444;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 22px;
}

.ct-paywall-modal-beneficios p:first-child {
    margin-top: 0;
}

.ct-paywall-modal-beneficios p:last-child {
    margin-bottom: 0;
}

body.ct-paywall-scroll-lock {
    overflow: hidden;
}

@media (max-width: 480px) {
    .ct-paywall-modal {
        padding: 26px 20px;
    }
    .ct-paywall-modal-titulo {
        font-size: 19px;
    }
    .ct-paywall-modal-preco {
        font-size: 26px;
    }
}

.bmr-cat {
    position: absolute;
    bottom: 0;
    left: 0;
    bottom: 0;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    background: var(--cor-primaria);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-heading);
    top: auto;
    line-height: 17px;
    font-size: 13px;
    padding: 5px 10px;
}

.ct-single-header {
    margin-bottom: 20px;
}

/* Substitui o antigo bloco solido .bmf-cat: aqui a cor vem da editoria do
   post (--cat-cor, publicado por cidadetrevo_cor_categoria_attr() no
   header), com fallback pra cor primaria do site se o post nao tiver
   categoria colorida. */
.ct-single-chapeu {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-family: var(--font-primary, sans-serif);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--cat-cor, var(--cor-primaria));
}

.ct-single-chapeu::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--cat-cor, var(--cor-primaria));
    flex-shrink: 0;
}

.ct-single-excerpt {
    font-size: 18px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 25px;
    font-style: italic;
}

.ct-single-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.cst-left {
    font-size: 12px;
    color: #777;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Assinatura ("Por Redação ..."): linha própria, acima da data. */
.ct-assinatura {
    flex-basis: 100%;
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

.ct-assinatura a,
.ct-assinatura strong {
    color: #1f2937;
    font-weight: 700;
    text-decoration: none;
}

.ct-assinatura a:hover {
    color: var(--cor-primaria);
}

.cst-center {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: 0.2s;
    font-size: 16px;
}

.share-wa {
    background: #25D366;
}

.share-wa:hover {
    background: #1ebe5d;
}

.share-fb {
    background: #1877F2;
}

.share-fb:hover {
    background: #166fe5;
}

.share-tw {
    background: #000000;
}

.share-tw:hover {
    background: #333;
}

.cst-right {
    display: flex;
    gap: 10px;
}

.cst-btn {
    background: #f4f5f7;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    font-weight: 700;
    transition: 0.2s;
    font-size: 14px;
}

.cst-btn:hover {
    background: #e0e0e0;
}

.ct-single-thumb {
    margin-bottom: 30px;
    text-align: center;
}

.ct-single-thumb img {
    width: 100%;
    height: auto;
    border-radius: var(--ct-img-radius);
}

.ct-thumb-caption {
    font-size: 12px;
    color: #777;
    margin-top: 8px;
    text-align: right;
    font-style: italic;
}

.ct-post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

/*
 * !important de proposito: o editor classico nao limpa todo colar de Word ou
 * Google Docs, so o padrao especifico do Word — um paragrafo colado de outro
 * lugar pode chegar com "style=font-family:..." dentro do texto, e isso tem
 * especificidade mais alta que qualquer selector de classe daqui. Sem isto, a
 * materia mistura a fonte do portal com a fonte de onde o texto foi copiado,
 * paragrafo a paragrafo — exatamente a mistura de familia que nao queremos.
 */
.ct-post-content,
.ct-post-content * {
    font-family: var(--font-primary, "Google Sans", sans-serif) !important;
}

/*
 * Excecao para a regra acima: icone do Font Awesome NAO e texto, e uma fonte
 * com glifo proprio. O `*` com !important pegava tambem os <i> e trocava a
 * familia deles pela do portal — o glifo nao existe nessa fonte, entao cada
 * icone virava um quadradinho vazio. Como o infografico eleitoral entra pelo
 * the_content, TODOS os icones dele apareciam quebrados na materia.
 */
.ct-post-content .fa,
.ct-post-content .fas,
.ct-post-content .far,
.ct-post-content .fal,
.ct-post-content .fa-solid,
.ct-post-content .fa-regular,
.ct-post-content .fa-light {
    font-family: "Font Awesome 6 Free" !important;
}

.ct-post-content .fab,
.ct-post-content .fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
}

.ct-post-content p {
    margin-bottom: 20px;
}

.ct-post-content h2,
.ct-post-content h3 {
    /* !important pra vencer a regra de cima, que ja precisa vencer o que
       vier colado no texto — mesma razao, escopo mais especifico.
       Serifada: intertitulo e manchete de bloco, entao segue a voz das
       manchetes, e nao a do corpo do texto. */
    font-family: var(--font-serif) !important;
    color: #111;
    margin: 30px 0 15px 0;
}

.ct-post-content blockquote {
    border-left: 4px solid var(--cor-primaria);
    padding-left: 20px;
    font-style: italic;
    color: #555;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 30px 0;
    font-size: 20px;
}

.ct-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--ct-img-radius);
    margin: 20px 0;
}

.ct-post-footer-meta {
    margin-top: 30px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ct-single-tags {
    border-top: 1px solid #eee;
    /* Era "display: ruby" — o modo de layout de anotacao ruby do
       leste-asiatico, nao um valor de flex/block "generico". Nenhuma tag
       tinha sido cadastrada ainda pra isto aparecer quebrado na tela; o filho
       aqui embaixo (strong + br + div com seus proprios tags) e conteudo
       comum, precisa so do bloco padrao. */
    display: block;
    font-size: 14px;
    color: #555;
}

.ct-single-tags a {
    padding: 5px 12px;
    color: #555;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.ct-single-tags a:hover {
    background: var(--cor-primaria);
    color: #fff;
}

.ct-single-tags-badge {
    background: rgb(255, 255, 255);
    border: 1px solid rgb(221, 221, 221);
    padding: 5px 12px;
    border-radius: 8px;
    color: rgb(85, 85, 85);
    text-decoration: none;
    transition: 0.2s;
    font-size: 13px;
}

@media (max-width: 768px) {
    .ct-single-toolbar {
        flex-direction: column;
        gap: 15px;
    }
}

/* COMENTARIOS */
.ct-comments-area {
    margin-top: 30px;
    font-family: var(--font-primary);
}

.ct-comments-title {
    font-size: 22px;
    font-weight: 800;
    color: #333;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--cor-primaria);
    padding-bottom: 10px;
    display: inline-block;
}

.ct-comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Respostas encadeadas: antes nao tinham recuo nem nenhum sinal visual —
   uma resposta ficava na mesma coluna de um comentario novo, indistinguivel
   dele. O traco a esquerda liga a resposta ao comentario-pai. */
.ct-comment-list .children {
    list-style: none;
    margin: 15px 0 0;
    padding: 0 0 0 30px;
    border-left: 2px solid #e5e7eb;
}

.ct-comment-list .children .ct-comment-item {
    margin-bottom: 15px;
}

.ct-comment-list .children .ct-comment-item:last-child {
    margin-bottom: 0;
}

.ct-comment-list .children .ct-comment-body {
    padding: 15px;
    background: #f8fafc;
}

.ct-comment-list .children .ct-comment-avatar img {
    width: 38px;
    height: 38px;
}

.no-comments {
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
    border-radius: 8px;
    padding: 15px 20px;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 20px;
}

.ct-comment-form {
    position: relative;
    padding: 25px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    margin-top: 30px;
    display: block;
}

.ct-comment-reply-heading {
    font-size: 22px;
    font-family: var(--font-primary);
    font-weight: 700;
    margin-bottom: 20px;
    color: #333333;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    padding-bottom: 10px;
    letter-spacing: -.8px;
    display: inline-block;
}

.ct-comment-reply-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 40px;
    height: 3px;
    background: #e3262e;
}

.ct-chat-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    width: 100%;
    margin-top: 15px;
}

.ct-chat-avatar,
.ct-chat-avatar-guest {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.ct-chat-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e5e7eb;
    display: block;
}

.ct-chat-avatar-guest {
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.ct-chat-textarea {
    flex: 1;
    margin: 0;
}

.ct-comment-form textarea {
    width: 100%;
    resize: none;
    border-radius: 8px;
    padding: 15px 25px;
    min-height: 55px;
    /* 16px — mesma razao do .ct-nsearch-input (zoom automatico do iOS em
       campo de texto abaixo de 16px, que depois fica "preso" ampliado). */
    font-size: 16px;
    border: 1px solid #ddd;
    background: #fff;
    line-height: 1.5;
    outline: none;
    font-family: var(--font-primary);
    transition: .3s;
}

.ct-comment-form textarea:focus {
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.1);
}

.ct-chat-submit {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(30, 115, 190, 0.3);
    background: var(--cor-primaria);
    color: #fff;
    cursor: pointer;
    border: none;
    padding-right: 4px;
    transition: 0.3s;
}

.ct-chat-submit:hover {
    transform: scale(1.05);
}

/* LETRA CAPITULAR (DROP CAP) NA MATERIA */
.ct-post-content>p:first-of-type::first-letter {
    font-family: var(--font-serif);
    font-size: 4em;
    float: left;
    margin: 0 0.05em 0 0;
    line-height: 0.8;
    font-weight: 900;
    text-transform: uppercase;
}

/* Perfil de Vereador (Câmara Municipal) */

.ct-vereador-wrap {
    padding: 30px 0 50px;
}

.ct-vereador-profile {
    padding: 10px 0 0;
}

.ct-vereador-header {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eaeaea;
}

.ct-vereador-foto {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #f4f5f7;
}

.ct-vereador-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ct-vereador-profile--memoria .ct-vereador-foto img {
    filter: grayscale(100%);
}

.ct-vereador-foto-vazia {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #c2c5cb;
}

.ct-vereador-info {
    flex: 1;
    min-width: 220px;
}

.ct-vereador-info .ct-empresa-cat-badge {
    margin-bottom: 10px;
}

.ct-vereador-nome {
    font-size: 28px;
    font-weight: 800;
    color: #333333;
    letter-spacing: -.6px;
    margin: 0 0 6px;
}

.ct-vereador-meta {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.ct-vereador-datas {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

.ct-vereador-badge-memoria {
    background: #6b7280;
    margin-right: 6px;
}

.ct-vereador-contato {
    max-width: 320px;
    margin-bottom: 30px;
}

.ct-vereador-email {
    font-size: 14px;
    color: #444;
    margin: 12px 0 0;
}

.ct-vereador-email a {
    color: #444;
    text-decoration: underline;
}

.ct-vereador-bio h2 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #333333;
    border-bottom: 2px solid var(--cor-primaria);
    padding-bottom: 10px;
    display: inline-block;
}

.ct-vereador-bio {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

@media (max-width: 600px) {
    .ct-vereador-header {
        flex-direction: column;
        text-align: center;
    }

    .ct-vereador-contato {
        max-width: none;
    }
}

.ct-vereador-projetos {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eaeaea;
}

/* Memória da Cidade (fotos antigas & história) */

.ct-memoria-wrap {
    padding: 30px 0 50px;
}

.ct-memoria-profile {
    padding: 10px 0 0;
}

.ct-memoria-foto {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--ct-img-radius);
    overflow: hidden;
    background: #f4f5f7;
    margin-bottom: 25px;
}

.ct-memoria-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ct-memoria-foto-vazia {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #c2c5cb;
}

.ct-memoria-header {
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eaeaea;
}

.ct-memoria-header .ct-empresa-cat-badge {
    margin-bottom: 10px;
}

.ct-memoria-titulo {
    font-size: 28px;
    font-weight: 800;
    color: #333333;
    letter-spacing: -.6px;
    margin: 0 0 8px;
}

.ct-memoria-local {
    font-size: 15px;
    color: #666;
    margin: 0 0 4px;
}

.ct-memoria-local i {
    color: var(--cor-primaria);
    margin-right: 4px;
}

.ct-memoria-fonte {
    font-size: 13px;
    color: #999;
    font-style: italic;
    margin: 0;
}

.ct-memoria-historia h2 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #333333;
    border-bottom: 2px solid var(--cor-primaria);
    padding-bottom: 10px;
    display: inline-block;
}

.ct-memoria-historia {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

/* =========================================================
   GALERIA DE FOTOS EXCLUSIVA (matéria — single.php)
   Reaproveita .ct-galeria-grid/.ct-galeria-img acima (mesmo grid, mesmo
   hover da galeria da empresa) — só os elementos próprios desta versão
   (patrocínio, baixar, contagem, proteção) ganham regra nova.
   ========================================================= */
.ct-galeria-wrap {
    margin: 30px 0;
    padding: 22px 24px;
    background: #f8f9fa;
    border: 1px solid #eaeaea;
    border-radius: 10px;
}

.ct-galeria-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 800;
    color: #1a1a1a;
}

.ct-galeria-title i {
    color: var(--cor-primaria, #e11d48);
}

.ct-galeria-contagem {
    font-size: 12px;
    font-weight: 600;
    color: #777;
}

.ct-galeria-item {
    position: relative;
}

.ct-galeria-item .ct-galeria-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent 55%);
    opacity: 0;
    transition: opacity .25s ease;
}

.ct-galeria-item:hover .ct-galeria-img::after {
    opacity: 1;
}

.ct-galeria-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}

.ct-galeria-item:hover .ct-galeria-zoom {
    opacity: 1;
}

.ct-galeria-patrocinio {
    position: absolute;
    left: 8px;
    bottom: 8px;
    max-height: 20px;
    max-width: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    background: rgba(255, 255, 255, .9);
    border-radius: 4px;
    padding: 3px 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.ct-galeria-download {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    text-decoration: none;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: background .2s ease, transform .2s ease;
}

.ct-galeria-download:hover {
    background: var(--cor-primaria, #e11d48);
    color: #fff;
    transform: scale(1.08);
}

/* Sem permissao de download (metabox): tira o gesto mais facil de salvar a
   foto. Nao impede print/devtools — nenhuma protecao client-side impede —
   so desencoraja o clique direito e o arrastar comuns. */
.ct-galeria-protegida img {
    user-select: none;
    -webkit-user-drag: none;
}

@media (max-width: 640px) {
    .ct-galeria-wrap {
        padding: 16px;
    }
}

/* ============================================================
   Transparência da matéria (inc/transparencia.php)
   Publieditorial, "Corrigida em", nota de correção e "Avise a
   redação". Tudo neutro, no mesmo vocabulário do .ct-editorial-box:
   borda fina, sem faixa colorida.
   ============================================================ */
.ct-aviso-pago {
    margin: -6px 0 22px;
    padding: 9px 14px;
    background: #f6f6f4;
    border: 1px solid #e4e4e0;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: #3f3f3c;
}

.ct-aviso-pago strong {
    color: #1a1a1a;
}

.ct-aviso-pago a {
    margin-left: 4px;
    color: #555;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ct-aviso-pago a:hover {
    color: var(--marca-acento, #c0261c);
}

.ct-selo-correcao {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #555;
    font-weight: 600;
    text-decoration: none;
}

.ct-selo-correcao:hover {
    color: var(--marca-acento, #c0261c);
    text-decoration: underline;
}

.ct-correcoes {
    margin-top: 10px;
    scroll-margin-top: 100px;
}

.ct-correcoes-lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ct-correcao time {
    display: block;
    margin-bottom: 4px;
    font-size: 12.5px;
    font-weight: 700;
    color: #666;
    font-variant-numeric: tabular-nums;
}

.ct-correcao p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.ct-correcoes-politica {
    margin: 16px 0 0;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
}

.ct-correcoes-politica a {
    color: #555;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ct-reportar-erro {
    margin: 0;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 13.5px;
    color: #666;
}

.ct-reportar-erro i {
    margin-right: 4px;
    color: #999;
}

.ct-reportar-erro a {
    color: #1a1a1a;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ct-reportar-erro a:hover {
    color: var(--marca-acento, #c0261c);
}
