/* Estudaê Bahia v1.1.47 — redução real das imagens do site institucional.
   Página inicial (Acontece no Estudaê) + matéria aberta. Evita imagens gigantes,
   preserva proporções e mostra toda a arte. Não altera uploads nem arquivos originais. */

/* A atualização anterior restringia apenas a matéria aberta: faltava o cartão
   destacado na capa institucional. Reduzimos o conjunto (imagem + informações)
   para não deixar o card com texto amplo e uma imagem minúscula. */
.news-home-grid-v147.news-home-grid-single {
    width: 65%;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1025px) {
    .news-home-grid-v147:not(.news-home-grid-single) {
        width: 100%;
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
        grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    }
}
@media (min-width: 701px) and (max-width: 1024px) {
    .news-home-grid-v147:not(.news-home-grid-single) {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
        grid-template-columns: minmax(0, 1fr);
    }
    .news-home-grid-v147:not(.news-home-grid-single) .news-featured-card-v147 {
        width: 65%;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}
/* Não distorcer, recortar ou esticar capas de notícias antigas. */
.news-home-grid-v147 .news-featured-cover {
    aspect-ratio: 1 / 1;
    background: #f5f8fb;
}
.news-home-grid-v147 .news-featured-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.news-home-grid-v147 .news-featured-card:hover .news-featured-cover img {
    transform: none;
}

/* Matéria publicada no portal institucional: redução reforçada; a marcação
   contém também estilo de reserva, caso o navegador retenha um CSS antigo. */
.news-article .news-article-hero-v147 {
    box-sizing: border-box;
    width: 65%;
    max-width: 520px;
    aspect-ratio: 1 / 1;
    height: auto;
    margin: 28px auto 32px;
}
.news-article .news-article-hero-v147 img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
}
@media (max-width: 700px) {
    .news-home-grid-v147.news-home-grid-single {
        width: 82%;
        max-width: none;
    }
    .news-home-grid-v147:not(.news-home-grid-single) .news-featured-card-v147 {
        width: 82%;
        margin-left: auto;
        margin-right: auto;
    }
    .news-home-grid-v147:not(.news-home-grid-single) {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
    }
    .news-article .news-article-hero-v147 {
        width: 82% !important; /* substitui a largura de reserva do HTML no celular */
        max-width: 520px;
        margin: 20px auto 26px;
    }
}
