.editor-toolbar {
  display: flex;
}

.btn-foco {
    margin: 0 auto; /* centraliza sozinho */
}

.btn-foco {
  display: flex;
  align-items: center;
  gap: 8px;

  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: #fff;

  border: none;
  border-radius: 10px;

  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;

  cursor: pointer;
  transition: all 0.25s ease;

  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-foco i {
  font-size: 14px;
}

.btn-foco:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  filter: brightness(1.05);
}

.btn-foco:active {
  transform: scale(0.97);
}

.btn-foco.ativo {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.conteudo-noticia {
    font-size: 1.125rem;
    line-height: 1.9;
}

/* IMAGENS */
.conteudo-noticia img {
    max-width: 80%;
    height: auto;
    margin: 30px auto;
    display: block;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.conteudo-noticia img:hover {
    transform: scale(1.02);
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .conteudo-noticia img {
        max-width: 100%;
    }
}

/* PARÁGRAFOS */
.conteudo-noticia p {
    margin-bottom: 18px;
}

/* TÍTULOS */
.conteudo-noticia h2 {
    font-size: 1.9rem;
    margin-top: 40px;
    margin-bottom: 12px;
    font-weight: 700;
}

.conteudo-noticia h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* LISTAS */
.conteudo-noticia ul {
    padding-left: 22px;
    margin-bottom: 20px;
    list-style: disc;
}

/* LINKS */
.conteudo-noticia a {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
}

#progressBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, #22c55e, #3b82f6);
    z-index: 9999;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;

    border: none;
    cursor: pointer;

    transition: all 0.25s ease;
}

.btn-share:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.tox.tox-fullscreen .mce-content-body {
  width: 794px !important;
  margin: auto !important;
  background: #fff;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  padding: 96px 72px; /* ~2.5cm topo e 2cm laterais */
}

.swal2-container {
  z-index: 999999 !important;
}

.swal-topo {
  z-index: 999999 !important;
}

.conteudo-noticia {
    font-family: Georgia, serif;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Parágrafos */
.conteudo-noticia p {
    margin-bottom: 1.2em;
}

/* Títulos */
.conteudo-noticia h1,
.conteudo-noticia h2,
.conteudo-noticia h3 {
    font-weight: bold;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

/* Listas */
.conteudo-noticia ul {
    list-style: disc;
    margin-left: 1.5rem;
}
.conteudo-noticia ol {
    list-style: decimal;
    margin-left: 1.5rem;
}

/* Imagens */
.conteudo-noticia img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px auto;
    display: block;
}

/* Links */
.conteudo-noticia a {
    color: #8c4a23;
    text-decoration: underline;
}

.conteudo-noticia figure {
    display: block;
    text-align: center;
    margin: 2rem auto; /* Espaço acima e abaixo */
}

.conteudo-noticia figure img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
}

.conteudo-noticia figcaption {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Conteúdo da notícia */
.conteudo-noticia figure.imagem-legenda {
    display: table;
    margin: 2rem auto; /* Espaçamento vertical */
    text-align: center;
}

.conteudo-noticia figure.imagem-legenda img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px; /* opcional */
}

.conteudo-noticia figure.imagem-legenda figcaption {
    font-size: 0.9rem;
    color: #555;
    margin-top: 6px;
    font-style: italic;
}

figure.imagem-legenda {
    display: table;
    margin: 20px auto;
    text-align: center;
}

figure.imagem-legenda img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

figure.imagem-legenda figcaption {
    font-size: 14px;
    color: #555;
    margin-top: 6px;
    font-style: italic;
}

/* Seleciona parágrafos que têm apenas imagens */
p:has(img) {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colunas */
  gap: 16px;
  justify-items: center; /* centraliza as imagens */
}

/* Garante que imagens não ultrapassem a largura da célula */
p:has(img) img {
  width: 100%;
  height: auto;
  display: block;
}

#lightbox {
    touch-action: none;
}

.conteudo-noticia figure {
    margin: 20px auto;
    text-align: center;
}

.conteudo-noticia video,
.conteudo-noticia iframe {
    display: block;       /* necessário para usar margin auto */
    margin: 0 auto;       /* centraliza horizontalmente */
    width: 40%;
    max-width: 700px;
    border-radius: 12px;
}

/* Para telas pequenas (mobile) */
@media (max-width: 768px) {
    .conteudo-noticia video,
    .conteudo-noticia iframe {
        width: 100%;
        max-width: 100%;
        border-radius: 12px;
    }
}

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-modal .content img,
.lightbox-modal .content video,
.lightbox-modal .content iframe {
    max-width: 90%;
    max-height: 80vh;
}

.lightbox-modal .close,
.lightbox-modal .prev,
.lightbox-modal .next {
    position: absolute;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.close { top: 20px; right: 30px; }
.prev { left: 20px; top: 50%; }
.next { right: 20px; top: 50%; }

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin: 25px 0;
}

.video-wrapper iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}
