/* ====================================
   BLOG & SINGLE POST COMPONENTS
   ==================================== */

/* Blog Hero Section (conteúdo) */
.blog-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-hero .lead {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Blog Filters */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Blog Card Components */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 2rem;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

/* Featured Post */
.featured-post {
    margin-bottom: 3rem;
}

.featured-post .blog-image {
    height: 300px;
}

.featured-post .blog-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.featured-post .blog-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Blog Image */
.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

/* Blog Badges */
.blog-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 2;
}

.blog-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Blog Content */
.blog-content-wrapper {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.blog-meta i {
    margin-right: 0.25rem;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.blog-title:hover {
    color: var(--accent-color);
}

.blog-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Blog Tags */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--accent-color);
    color: white;
}

/* Read More Button */
.btn-read-more {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.btn-read-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-read-more:hover i {
    transform: translateX(3px);
}

/* Blog Sidebar */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.sidebar-widget h3,
.sidebar-widget h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.widget-title {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Newsletter Form */
.newsletter-form {
    margin-top: 1rem;
}

.newsletter-form p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Recent Posts */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recent-post-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-image {
    flex-shrink: 0;
}

.recent-post-image img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.recent-post-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.recent-post-content h4 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-content h4 a:hover {
    color: var(--accent-color);
}

.recent-post-content time {
    color: var(--text-light);
    font-size: 0.75rem;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.tag-item:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* Load More Button */
#load-more-btn {
    margin-top: 2rem;
}

/* Blog Filter Animation */
.blog-card.hidden {
    display: none;
}

.blog-card.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.1);
}

.reading-progress-bar {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.3s ease;
}

/* Single Post */
#main-content .single-post {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

/* Post Header */
.post-header {
    margin-bottom: 3rem;
}

.post-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-events {
    background-color: var(--accent-color);
    color: white;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.meta-item i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

/* Social Share */
.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 0.5rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.share-btn.facebook { background: #1877f2; color: white; }
.share-btn.twitter { background: #1da1f2; color: white; }
.share-btn.whatsapp { background: #25d366; color: white; }
.share-btn.linkedin { background: #0077b5; color: white; }

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: white;
}

/* Featured Image */
.post-featured-image {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.image-caption {
    padding: 1rem;
    background: var(--bg-light);
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
}

/* Post Content */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.post-content .lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
}

.post-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.post-content ul li,
.post-content ol li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.post-content a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.post-content a:hover {
    text-decoration: underline;
}

/* Quote */
.post-quote {
    background: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    padding: 2rem;
    margin: 3rem 0;
    border-radius: 0 8px 8px 0;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--secondary-color);
    position: relative;
}

.post-quote cite {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color);
}

.post-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--accent-color);
    line-height: 1;
}

/* Info Box */
.info-box {
    background: rgba(0, 166, 153, 0.1);
    border: 1px solid var(--success-color);
    border-radius: 8px;
    padding: 2rem;
    margin: 3rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.info-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-content p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Alert */
.alert {
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-info {
    background: rgba(13, 202, 240, 0.1);
    border: 1px solid #0dcaf0;
    color: #055160;
}

.alert i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Post Tags */
.post-tags {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.post-tags h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.post-tags .tag {
    display: inline-block;
    margin: 0 0.5rem 0.5rem 0;
}

/* Author Box */
.author-box {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.author-info p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.author-social {
    display: flex;
    gap: 1rem;
}

.author-social a {
    width: 35px;
    height: 35px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.author-social a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Related Posts */
.related-posts {
    margin-bottom: 4rem;
}

.related-posts h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.related-posts h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Post Navigation */
.post-navigation {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.nav-links {
    display: flex;
}

.nav-previous,
.nav-next {
    flex: 1;
    position: relative;
}

.nav-previous a,
.nav-next a {
    display: flex;
    padding: 2rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
    align-items: center;
    gap: 1rem;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: var(--bg-light);
    color: var(--accent-color);
}

.nav-previous {
    border-right: 1px solid var(--border-color);
}

.nav-next {
    justify-content: flex-end;
}

.nav-next a {
    flex-direction: row-reverse;
    text-align: right;
}

.nav-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
}

/* Comments Section */
.comments-section {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.comments-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
}

.comments-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Comment Form */
.comment-form {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 3rem;
}

.comment-form h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

/* Comments List */
.comments-list {
    margin-top: 3rem;
}

.comment-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.comment-reply {
    margin-left: 3rem;
    border-left: 3px solid var(--accent-color);
    padding-left: 2rem;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.comment-meta strong {
    color: var(--primary-color);
    font-weight: 600;
}

.comment-meta time {
    color: var(--text-light);
    font-size: 0.875rem;
}

.author-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.comment-content p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.comment-reply-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    font-size: 0.875rem;
}

.comment-reply-btn:hover {
    color: var(--primary-color);
}

.comment-reply-btn i {
    margin-right: 0.25rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .featured-post .blog-title {
        font-size: 1.75rem;
    }
    .post-title {
        font-size: 2rem;
    }
    .post-content {
        font-size: 1rem;
    }
    .post-content .lead {
        font-size: 1.2rem;
    }
    .author-box {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.5rem;
    }
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    .blog-filters {
        gap: 0.5rem;
    }
    .featured-post .blog-image {
        height: 250px;
    }
    .featured-post .blog-title {
        font-size: 1.5rem;
    }
    .blog-content-wrapper {
        padding: 1.5rem;
    }
    .sidebar-widget {
        padding: 1.5rem;
    }
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    .single-post {
        padding: 2rem;
    }
    .post-title {
        font-size: 1.75rem;
    }
    .post-meta {
        flex-direction: column;
        gap: 1rem;
    }
    .post-share {
        flex-wrap: wrap;
        justify-content: center;
    }
    .share-label {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }
    .post-content h2 {
        font-size: 1.5rem;
    }
    .post-content h3 {
        font-size: 1.25rem;
    }
    .post-quote {
        padding: 1.5rem;
        font-size: 1.1rem;
    }
    .info-box {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .author-box {
        padding: 2rem;
    }
    .nav-links {
        flex-direction: column;
    }
    .nav-previous {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-previous a,
    .nav-next a {
        padding: 1.5rem;
        text-align: center;
        flex-direction: column;
    }
    .nav-next a {
        flex-direction: column;
        text-align: center;
    }
    .comment-item {
        gap: 1rem;
    }
    .comment-reply {
        margin-left: 1rem;
        padding-left: 1rem;
    }
    .comments-section {
        padding: 2rem;
    }
    .comment-form {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .blog-hero h1 {
        font-size: 2rem;
    }
    .blog-hero .lead {
        font-size: 1rem;
    }
    .recent-post-item {
        flex-direction: column;
        text-align: center;
    }
    .recent-post-image {
        align-self: center;
    }
    .tag-cloud {
        justify-content: center;
    }
    .single-post {
        padding: 1.5rem;
    }
    .post-title {
        font-size: 1.5rem;
    }
    .post-categories {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    .post-featured-image img {
        height: 250px;
    }
    .post-content .lead {
        padding: 1rem;
        font-size: 1.1rem;
    }
    .post-quote {
        padding: 1rem;
        font-size: 1rem;
    }
    .author-box {
        padding: 1.5rem;
    }
    .comment-form {
        padding: 1.5rem;
    }
    .comments-section {
        padding: 1.5rem;
    }
    .comment-reply {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        padding-top: 1rem;
        border-top: 2px solid var(--accent-color);
    }
    .breadcrumb {
        font-size: 0.875rem;
    }
}

/* Print Styles */
@media print {
    .reading-progress,
    .post-share,
    .comment-form,
    .comments-section,
    .post-navigation,
    .sidebar,
    .navbar,
    .footer {
        display: none !important;
    }
    .single-post {
        box-shadow: none;
        border: none;
        padding: 0;
    }
    .post-content {
        font-size: 12pt;
        line-height: 1.5;
    }
    .post-title {
        font-size: 18pt;
        color: black;
    }
    a {
        color: black;
        text-decoration: none;
    }
    .post-content a::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
}

/* ====================================
   FIX PARA GALERIAS WORDPRESS
   ==================================== */

/* Garante que o container da galeria se comporte como um grid flexível */
.post-content .wp-block-gallery,
.post-content .gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; /* Espaçamento entre as imagens */
    margin-bottom: 2rem;
}

/* Estilos para cada item da galeria */
.post-content .wp-block-gallery .blocks-gallery-item,
.post-content .gallery-item {
    flex-grow: 1; /* Permite que os itens cresçam para preencher o espaço */
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-content .wp-block-gallery .blocks-gallery-item figure,
.post-content .gallery-item figure {
    margin: 0 !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Remove qualquer transformação que possa esticar a imagem */
.post-content .wp-block-gallery .blocks-gallery-item img,
.post-content .gallery-item img {
    width: 100%;
    height: auto; /* Altura automática para manter a proporção */
    object-fit: cover; /* Garante que a imagem cubra o espaço sem distorcer */
    border-radius: 8px; /* Opcional: para bordas arredondadas */
    box-shadow: none; /* Remove sombras indesejadas */
    transition: transform 0.3s ease;
}

.post-content .wp-block-gallery .blocks-gallery-item img:hover,
.post-content .gallery-item img:hover {
    transform: scale(1.03);
}

/* --- Controle de Colunas --- */
/* Base para 1 coluna */
.post-content .wp-block-gallery.columns-1 .blocks-gallery-item,
.post-content .gallery-columns-1 .gallery-item {
    width: 100%;
}

/* Ajuste para 2 colunas */
.post-content .wp-block-gallery.columns-2 .blocks-gallery-item,
.post-content .gallery-columns-2 .gallery-item {
    width: calc(50% - 0.5rem); /* 50% da largura menos metade do espaçamento */
}

/* Ajuste para 3 colunas (o mais comum) */
.post-content .wp-block-gallery.columns-3 .blocks-gallery-item,
.post-content .gallery-columns-3 .gallery-item {
    width: calc(33.333% - 0.67rem);
}

/* Ajuste para 4 colunas */
.post-content .wp-block-gallery.columns-4 .blocks-gallery-item,
.post-content .gallery-columns-4 .gallery-item {
    width: calc(25% - 0.75rem);
}

/* Legendas da galeria */
.post-content .gallery-caption,
.post-content .blocks-gallery-item figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    padding-top: 0.5rem;
}