/* Estudaê Bahia v1.1.45 — imagens de notícias em enquadramento quadrado.
   object-fit: contain: cartazes e textos nunca são cortados.
   O arquivo convertido no upload mede 1080 x 1080 px; arquivos antigos permanecem intactos. */
.news-article .news-article-hero {
    width: 65%;
    max-width: 520px; /* 65% da largura máxima anterior de 800px */
    aspect-ratio: 1 / 1;
    height: auto;
    margin: 28px auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f4f7fb;
    border: 1px solid #e8eff5;
    border-radius: 18px;
}
.news-article .news-article-hero img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
}
/* Capas e miniaturas: proporção 1:1, sem crop nem zoom no hover. */
.news-featured-cover,
.news-list-cover,
.news-side-cover,
.news-gallery-grid a {
    aspect-ratio: 1 / 1;
    background: #f5f8fb;
}
.news-featured-cover img,
.news-list-cover img,
.news-side-cover img,
.news-gallery-grid img,
.news-admin-gallery img,
.news-current-cover {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #f5f8fb;
}
.news-featured-card:hover .news-featured-cover img,
.news-side-card:hover .news-side-cover img,
.news-list-card:hover .news-list-cover img { transform: none; }
.news-side-cover { min-height: 0; }
.news-current-cover {
    display: block;
    width: min(200px, 100%);
    aspect-ratio: 1 / 1;
    max-height: none;
    margin: 7px 0;
}
.news-admin-gallery img { aspect-ratio: 1 / 1; }
@media (max-width: 700px) {
    .news-article .news-article-hero {
        width: 82%; /* tamanho adaptado para legibilidade em telas pequenas */
        margin: 20px auto 26px;
        border-radius: 13px;
    }
    .news-side-cover { min-height: 0; height: auto; }
}
@media (max-width: 420px) {
    .news-side-cover { height: auto; }
}
