.gn-wrapper {
	display: grid;
	grid-template-columns: 2fr 1fr;
	padding: 2rem; 
	gap: 2rem;
}

/* Geral */
img {
	border-radius: 10px;
	height: auto;
	display: block;
	margin: 0 auto;
}
/* Ajuste da proporção do slide vertical */
.swiper-slide.slide-vertical {
    /* Definimos uma largura fixa baseada na altura de 200px */
    /* Para 9:16, a largura ideal é ~112px. Podes ajustar este valor. */
    width: 150px !important; 
    flex-shrink: 0;
}

.video-vertical-card {
    background: #fff; 
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 200px !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Remove sombras ou bordas extras que possam estar a alargar o card */
    padding: 0;
    border: 1px solid #eee; 
}

.video-vertical-card video, 
.video-vertical-card iframe {
    height: 100%;
    width: 100%;
    /* 'cover' aqui garante que o vídeo preenche o retângulo estreito sem folgas */
    object-fit: cover; 
}
.main-image img,
.coluna-principal img,
.podcast-template .main-image img,
.necrologia-wrapper img {
	display: block;
	border-radius: 15px; /* mantém o arredondado */
}

.coluna-principal h1 {
	font-size: 2rem;
	margin-bottom: 1rem;
	margin-left: 5rem;
} 

.imagem-principal {
	margin-bottom: 1rem;
	margin-left: 5rem;
	margin-right: 5rem;
}

.imagem-principal img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 15px;
}

.conteudo-noticia {
	margin: 1rem 0;
	line-height: 1.6;
	margin-left: 5rem;
	margin-right: 5rem;
} 

.data-publicacao {
	font-size: 0.9rem;
	color: #666;
	margin-right: 10rem;
	margin-top: 0.5rem;
	text-align: right;
}

/* Carrossel de imagens */ 
.carrossel-container {
	margin: 1.5rem 5rem; /* igual às margens da imagem principal */ 
	overflow: hidden; /* evita scrollbars feios */
}

.gn-carrossel {
	display: flex;
	gap: 0.5rem; /* espaçamento fixo */ 
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 10px 0;
	scroll-behavior: smooth;
}

.gn-carrossel img {
	flex: 0 0 auto;
	width: 250px;
	max-width: 80vw; /* nunca ultrapassa o ecrã no mobile */
	height: auto;
	scroll-snap-align: start;
	border-radius: 15px;
}

/* Coluna lateral */ 
.coluna-lateral {
	margin-top: 1rem;
	padding-left: 1rem;
	margin-right: 5rem;
} 

.lateral-imagens { 
	display: flex; 
	flex-direction: column;
	gap: 2rem;
}

.lateral-thumb img {
	width: 100%;
	border-radius: 15px;
}

/* Podcast */ 
.player-podcast { 
	margin: 20px auto; 
	text-align: center;
}

.player-podcast audio {
	width: 100%;
	max-width: 600px;
	display: block;
	margin: 0 auto;
}

.data-publicacao-right {
	text-align: right;
	font-size: 0.9rem;
	color: #666;
	margin-top: 1rem;
	margin-right: 5rem;
}

/* Responsivo */ 
@media (max-width: 768px) {
	.gn-wrapper {
		grid-template-columns: 1fr;
	} 
	
	.coluna-lateral {
		border-left: none;
		padding-left: 0;
		margin-top: 2rem;
	}
	
	.carrossel-container {
		margin-left: 1rem;
		margin-right: 1rem;
	}
	
	.gn-carrossel img {
		width: 180px;
	} 
	
	/* Notícias relacionadas: margens iguais e 3 colunas */ 
	.noticias-relacionadas {
		margin-left: 1rem !important;
		margin-right: 1rem !important;
		margin-top: 0 !important;
		margin-bottom: 0 !important;
		max-width: 100vw;
	} 
	
	.relacionadas-grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.7rem;
		width: 100%;
		max-width: 100vw;
	}
	
	.relacionada-item img {
		height: 90px;
		object-fit: cover;
	} 
	
	.noticias-relacionadas h2 {
		text-align: left;
		margin-left: 0;
		margin-right: 0;
		margin-bottom: 0.7rem;
		font-size: 1.1rem;
	}
}

/* Notícias Relacionadas */ 
.noticias-relacionadas {
	margin: 2rem 5rem;
}

.noticias-relacionadas h2 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.relacionadas-grid { 
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
}

.relacionada-item {
	border: 1px solid #eee;
	padding: 15px;
	border-radius: 12px;
	background: #fff;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.relacionada-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.relacionada-item img {
	border-radius: 8px;
	margin-bottom: 0.8rem;
	width: 100%;
	height: 160px;
	object-fit: cover;
} 

.relacionada-item h3 {
	font-size: 1rem;
	margin: 0;
	color: #000; 
	display: -webkit-box;
	-webkit-line-clamp: 3; 
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.2s ease;
}

.relacionada-item h3:hover {
	color: #7ba35c; 
} 

/* Ajustes gerais para mobile */ 
body {
	overflow-x: hidden; 
}

@media (max-width: 768px) { 
	.coluna-principal h1 { 
		font-size: 1.5rem;
		margin-left: 1rem;
		margin-right: 1rem;
		text-align: left;
	} 
	
	.imagem-principal { 
		margin: 0 1rem 1rem; 
	}
	
	.conteudo-noticia { 
		margin: 1rem;
		font-size: 1rem;
	}
	
	.data-publicacao,
	.data-publicacao-right {
		margin: 1rem; 
		text-align: center;
	}
	
	.carrossel-container { 
		margin: 2rem; 
	}
	
	.gn-carrossel img { 
		width: 150px;
		max-width: 70vw;
	}
	
	.coluna-lateral {
		margin: 2rem 1rem 0; 
		padding: 0;
	}
	
	.necrologia-wrapper { 
		padding: 1rem;
	} 
	.necrologia-wrapper h1 { 
		font-size: 1.4rem;
	} 
	.necrologia-wrapper img {
		max-width: 200px;
		height: auto;
	}
	.swiper {
		border-radius: 10px;
	}
	.swiper-slide {
		overflow: hidden;
	}
	.swiper-slide img,
	.swiper-slide video {
		width: 100%;
		height: 250px;
		object-fit: cover;
		border-radius: 10px;
	}
}

/* Ajustes para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .gn-mix-filters {
        flex-wrap: nowrap;
        gap: 1rem;
    }
    
    .gn-mix-search {
        max-width: 300px;
    }
}

/* Desktop grande - layout otimizado */
@media (min-width: 1025px) {
    .gn-mix-filters {
        align-items: center;
    }
    
    /* Pesquisa à esquerda */
    .gn-mix-search {
        order: 1;
        margin-right: auto;
    }
    
    /* Label do filtro no meio */
    .gn-mix-filters__label {
        order: 2;
    }
    
    /* Dropdown do filtro à direita */
    .gn-mix-filters__dropdown {
        order: 3;
    }
	
	/* Container da Imagem Principal com altura fixa e responsiva */
.imagem-principal-container {
    width: 100%;
    height: 500px; /* Altura padrão para Desktop */
    overflow: hidden;
    border-radius: 15px;
}

.imagem-principal-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Faz a imagem preencher o espaço sem distorcer */
    object-position: center; /* Centraliza a imagem no corte */
}

/* Ajustes para Tablets */
@media (max-width: 1024px) {
    .imagem-principal-container {
        height: 400px;
    }
}

/* Ajustes para Telemóveis */
@media (max-width: 768px) {
    .imagem-principal-container {
        height: 250px; /* Altura menor para telas pequenas */
    }
    .linha-imagens {
        flex-direction: column; /* Garante que em mobile fiquem um sob o outro */
    }
}
/* Moldura fixa para a imagem principal */
.moldura-foto-principal {
    width: 100%;
    height: 450px; /* Altura fixa para Desktop */
    overflow: hidden;
    border-radius: 15px;
    display: block;
}

.moldura-foto-principal img {
    width: 100%;
    height: 100%;
    /* O SEGREDO: Mantém a proporção e preenche o espaço sem esticar */
    object-fit: cover; 
    /* Garante que o foco da imagem seja o centro */
    object-position: center; 
}

/* Ajuste para Tablets */
@media (max-width: 1024px) {
    .moldura-foto-principal {
        height: 350px; 
    }
}

/* Ajuste para Telemóveis */
@media (max-width: 768px) {
    .moldura-foto-principal {
        height: 250px; 
    }
}
	/* Moldura Principal (Mantemos fixa para referência) */
.moldura-foto-principal {
    width: 100%;
    height: 600px; /* Podes ajustar esta altura conforme preferires */
    overflow: hidden;
    border-radius: 15px;
    background: #f9f9f9; /* Fundo neutro caso a imagem tenha margens */
}

.moldura-foto-principal img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* A principal costuma ficar melhor em cover para impacto */
}

/* Coluna Lateral - O Segredo do Alinhamento */
.coluna-lateral-ajustada {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Espalha as fotos para ocupar a altura total */
    height: 600px; /* TEM de ser igual à altura da moldura principal */
    gap: 10px;
}

.mini-moldura-lateral {
    flex: 1;
    display: flex;
    align-items: center; /* Centraliza a imagem verticalmente se for pequena */
    justify-content: center;
    overflow: hidden;
}

.mini-moldura-lateral img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    /* O SEGREDO: Mantém a foto INTEIRA, sem cortes, apenas redimensiona */
    object-fit: contain; 
    border-radius: 8px;
}

/* Ajustes Responsivos */
@media (max-width: 1024px) {
    .moldura-foto-principal, .coluna-lateral-ajustada { height: 450px; }
}

@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
    .moldura-foto-principal { height: auto; max-height: 350px; }
}
.linha-imagens-layout {
    display: flex;
    gap: 15px;
    align-items: stretch; /* Garante que as duas colunas tenham a mesma altura */
    margin-bottom: 2rem;
}

.imagem-principal-wrap {
    flex: 1; /* Ocupa todo o espaço restante */
}

.imagem-principal-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* ONDE AJUSTAR A LARGURA: Altera o valor abaixo (ex: 250px) para o tamanho ideal */
.coluna-lateral-grid {
    flex: 0 0 250px; 
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Coluna Lateral - Onde ajustas a largura */
.coluna-lateral-grid {
    flex: 0 0 250px; /* Altera aqui para o tamanho que desejares */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-moldura-lateral {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    display: block; /* Garante que o link ocupe o espaço todo */
    text-decoration: none;
}

/* Camada de fundo desfocada */
.bg-desfocado {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.8); /* Ajusta o desfoque e brilho aqui */
    transform: scale(1.1); /* Evita bordas brancas no desfoque */
    z-index: 1;
}

/* Imagem principal à frente */
.mini-moldura-lateral img.foto-frente {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mantém a proporção original */
}

/* Efeito hover suave */
.mini-moldura-lateral:hover img.foto-frente {
    transform: scale(1.03);
    transition: transform 0.3s ease;
}
/* Se não tiver link, o cursor mantém-se normal e não há zoom no hover */
.mini-moldura-lateral.sem-link {
    cursor: default;
}

.mini-moldura-lateral.sem-link:hover .foto-frente {
    transform: none;
}

/* Mantém o resto do estilo que já definimos anteriormente */
.mini-moldura-lateral {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
	/* Contentor que alinha com o título e texto */
.container-imagens-alinhado {
    display: flex;
    gap: 15px;
    height: 500px; /* Podes ajustar esta altura conforme preferires */
    margin-bottom: 2rem;
    box-sizing: border-box;
}

.imagem-principal-wrap {
    flex: 1;
    height: 100%;
}

.imagem-principal-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* COLUNA LATERAL - Ajusta o valor de 220px para controlar a largura da coluna */
.coluna-lateral-grid {
    flex: 0 0 220px; 
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.mini-moldura-lateral {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Fundo desfocado */
.bg-desfocado {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(10px) brightness(0.7);
    transform: scale(1.2);
    z-index: 1;
}

/* Foto da frente com proporção original */
.foto-frente {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.mini-moldura-lateral:not(.sem-link):hover .foto-frente {
    transform: scale(1.05);
}

.sem-link { cursor: default; }

@media (max-width: 768px) {
    .container-imagens-alinhado { height: auto; flex-direction: column; }
    .coluna-lateral-grid { flex: 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; }
}
	/* 1. Unificar o alinhamento lateral para Título, Imagens e Conteúdo */
.coluna-principal h1, 
.container-imagens-alinhado, 
.conteudo-noticia {
    margin-left: 5rem !important;
    margin-right: 5rem !important;
    width: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 2. Estrutura da Galeria (Principal + 4 Lateral) */
.container-imagens-alinhado {
    display: flex;
    gap: 15px;
    height: 550px; /* Altura fixa para alinhar as duas colunas */
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

.imagem-principal-wrap {
    flex: 1;
    height: 100%;
}

.imagem-principal-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* 3. Coluna Lateral das 4 Fotos */
.coluna-lateral-grid {
    flex: 0 0 250px; /* Ajusta aqui a largura da coluna lateral */
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.mini-moldura-lateral {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.bg-desfocado {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(12px) brightness(0.7);
    transform: scale(1.2);
    z-index: 1;
}

.foto-frente {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* 4. Ajuste Responsivo (Mobile) */
@media (max-width: 768px) {
    .coluna-principal h1, 
    .container-imagens-alinhado, 
    .conteudo-noticia {
        margin-left: 0rem !important;
        margin-right: 0rem !important;
    }
    .container-imagens-alinhado {
        flex-direction: column;
        height: auto;
    }
    .coluna-lateral-grid {
        flex: 0 0 auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        height: auto;
    }
    .mini-moldura-lateral {
        height: 150px;
    }
}
	
}

/* === Grelha Necrologia === */
.gn-necro-grid {
  display: grid;
  grid-template-columns: repeat(var(--gn-cols, 3), minmax(0,1fr));
  gap: 28px;
  align-items: start; /* cada card só cresce até ao conteúdo */
}

/* Tablet: 2 colunas */
@media (max-width: 1024px) {
  .gn-necro-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
}

/* Telemóvel: 1 coluna, mais “respiro” nas laterais e entre cards */
@media (max-width: 640px) {
  .gn-necro-section {
    padding-inline: 16px; /* espaço à esquerda e direita */
  }

  .gn-necro-grid { 
    grid-template-columns: 1fr; 
    gap: 24px; /* aumenta espaço entre cards */
  }
}

/* CARD */
.gn-necro-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Imagens lado a lado por defeito */
.gn-necro-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.gn-necro-img {
  width: 100%;
  height: 100%;
}

.gn-necro-img img {
  width: 100%;
  height: auto;          /* deixa a altura ser calculada automaticamente */
  object-fit: cover;
  aspect-ratio: 1 / 1;   /* continua quadrada em desktop/tablet */
  display: block;
}

.gn-necro-card:hover .gn-necro-img img {
  transform: scale(1.02);
}

/* Se só houver uma imagem, ocupa a largura toda */
.gn-necro-images:has(.gn-necro-img--featured):not(:has(.gn-necro-img--secondary)),
.gn-necro-images:has(.gn-necro-img--secondary):not(:has(.gn-necro-img--featured)) {
  grid-template-columns: 1fr;
}

/* Telemóvel: imagens em “stack”, uma por linha e altura livre */
@media (max-width: 640px) {
  .gn-necro-card {
    max-width: 360px;
    margin: 0 auto;      /* centra o card e faz com que não fique de fora a fora */
  }

  .gn-necro-img img {
    aspect-ratio: 4 / 5; /* mais baixa que um quadrado */
    max-height: 260px;   /* limite de altura extra de segurança */
  }
}

.gn-necro-body {
  flex-grow: 0; /* impede alongamento desnecessário */
  padding: 12px 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Telemóvel: corpo um pouco mais compacto */
@media (max-width: 640px) {
  .gn-necro-body {
    padding: 10px 12px 14px;
  }
}

/* TÍTULOS E DATA */
.gn-necro-title {
  margin: 6px 0 4px;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #222;
}

.gn-necro-title a {
  text-decoration: none;
  color: inherit;
}

.gn-necro-title a:hover {
  color: #000;
}

.gn-necro-date {
  font-size: 0.95rem;
  color: #444;
  opacity: 0.9;
}

.gn-necro-date::before {
  content: "Falecimento: ";
  font-weight: 500;
  opacity: 0.8;
}

/* Telemóvel: título um bocadinho maior para compensar o ecrã pequeno */
@media (max-width: 640px) {
  .gn-necro-title {
    font-size: 1.15rem;
  }

  .gn-necro-date {
    font-size: 0.9rem;
  }
}

/* TÍTULO DA SECÇÃO (data) */
.gn-necro-section__title{
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 2rem;
  color: #000808;
  margin: 28px 0 14px;
  padding: 0;
}

.gn-necro-section__title::after{
  content: "";
  flex: 1 1 auto;
  height: 0.25rem;
  background:#A7DB98;
  border-radius: 1.5px;
}

/* espaçamento entre a linha e a grid desse dia */
.gn-necro-section + .gn-necro-grid,
.gn-necro-group-wrapper > .gn-necro-grid{
  margin-bottom: 18px;
}

/* Telemóvel: título de secção maior e centrado */
@media (max-width: 640px) {
  .gn-necro-section__title {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
}

/* PAGINAÇÃO */
.gn-necro-pagination { 
  margin-top: 18px; 
  text-align: center; 
}

.gn-necro-pagination ul {
  list-style: none; 
  padding: 0; 
  margin: 0;
  display: inline-flex; 
  gap: 8px;
  flex-wrap: wrap;
}

.gn-necro-pagination a, 
.gn-necro-pagination span {
  display: inline-block; 
  padding: .4rem .7rem; 
  border: 1px solid #ddd; 
  border-radius: 10px; 
  text-decoration: none;
}

.gn-necro-pagination .current {
  background: #000; 
  color: #fff; 
  border-color: #000;
}

@media (min-width: 1024px) {
    .coluna-principal h1 {
        font-size: 38px;
        line-height: 1.2;
    }
}

/* Esconder posts individuais da lateral no telemóvel */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}


/* ============================
   GRID DE NOTÍCIAS MISTURADAS
   MASONRY VERSION
   ============================ */

.gn-mix-grid-wrapper {
    margin: 2rem 0;
    position: relative;
    min-height: 200px;
}

/* Masonry Layout — respects the shortcode's --gn-cols,
   but responsive breakpoints clamp it down */
.gn-mix-grid {
    column-count: var(--gn-cols, 3);
    column-gap: 1.5rem;
}

/* Tablet: max 2 columns regardless of --gn-cols */
@media (max-width: 1024px) {
    .gn-mix-grid {
        column-count: 2 !important;
    }
}

/* Small tablet / large phone */
@media (max-width: 640px) {
    .gn-mix-grid {
        column-count: 1 !important;
    }
}

/* ==========================================
   CARTÃO BASE
========================================== */
.gn-mix-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e3e3e3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    break-inside: avoid;
    margin-bottom: 1.5rem;
    display: inline-block;
    width: 100%;
}

.gn-mix-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* ==========================================
   POSTS TIPO A (Primary)
========================================== */

.gn-mix-card--primary {
    display: block;
    height: auto;
}

.gn-mix-card__thumb {
    display: block;
    overflow: hidden;
}

.gn-mix-card__thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.25s ease;
}

.gn-mix-card:hover .gn-mix-card__thumb img {
    transform: scale(1.03);
}

/* Corpo */
.gn-mix-card__body {
    padding: 1rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* Title */
.gn-mix-card__title {
    font-size: 1rem;
    line-height: 1.3;
    margin: 0;
    font-weight: 600;
}

.gn-mix-card__title a {
    text-decoration: none;
    color: #222;
}

.gn-mix-card__title a:hover {
    text-decoration: underline;
}

/* Meta */
.gn-mix-card__meta {
    font-size: 0.8rem;
    color: #777;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.gn-mix-card__excerpt {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #444;
}

/* Secondary Cards */

.gn-mix-card--secondary {
    background: transparent;
    border: none;
    box-shadow: none;
}

.gn-mix-card--secondary img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ==========================================
   LOADING STATES - Infinite Scroll
========================================== */
.gn-mix-grid-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-size: 1.2em;
    color: #666;
}

.gn-mix-load-more,
.gn-mix-no-more {
    padding: 2rem 1rem;
    text-align: center;
}

.gn-mix-load-more p,
.gn-mix-no-more p {
    margin: 0.5rem 0 0;
    color: #666;
    font-size: 0.95rem;
}

/* Spinner animado */
.gn-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #333;
    border-radius: 50%;
    animation: gn-spin 0.8s linear infinite;
}

@keyframes gn-spin {
    to { transform: rotate(360deg); }
}

/* Mensagem "sem mais resultados" */
.gn-mix-no-more {
    color: #999;
    font-style: italic;
}

/* Animação suave ao carregar posts */
.gn-mix-card {
    animation: gn-fadeIn 0.4s ease-in;
}

@keyframes gn-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   FILTROS E PESQUISA - CONTAINER PRINCIPAL
========================================== */
.gn-mix-controls {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Container dos filtros (search + dropdown) */
.gn-mix-filters {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap; /* Não quebrar linha */
}

/* PESQUISA PRIMEIRO (à esquerda) */
.gn-mix-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 auto;
    max-width: 450px;
    order: 1;
}

/* FILTRO DEPOIS (à direita) */
.gn-mix-filters__label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    order: 2;
    white-space: nowrap;
}

.gn-mix-filters__dropdown {
    position: relative;
    min-width: 180px;
    order: 3;
    flex-shrink: 0;
}

/* Select estilizado */
.gn-mix-filter-select {
    width: 100%;
    padding: 0.65rem 2.5rem 0.65rem 1rem;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.gn-mix-filter-select:hover {
    border-color: #333;
    background-color: #f9f9f9;
}

.gn-mix-filter-select:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

.gn-mix-filter-select option {
    padding: 0.5rem;
    font-size: 0.95rem;
}


.gn-mix-search__label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

/* Container do input de pesquisa */
.gn-mix-search__input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

/* Input de pesquisa */
.gn-mix-search__input {
    width: 100%;
    padding: 0.75rem 3.5rem 0.75rem 3rem;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #334155;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.gn-mix-search__input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.gn-mix-search__input:hover {
    border-color: #cbd5e1;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.gn-mix-search__input:focus {
    outline: none;
    border-color: #2ecc71;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.1),
                0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Ícone de lupa (SVG inline) */


.gn-mix-search__input:focus ~ .gn-mix-search__icon,
.gn-mix-search__input:hover ~ .gn-mix-search__icon {
    color: #2ecc71;
}

/* Botão de limpar pesquisa */
.gn-mix-search__clear {
    position: relative;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.gn-mix-search__clear--visible {
    display: flex;
}

/* Mensagem de resultados */
.gn-mix-search__results {
    padding: 0.75rem 1rem;
    background: #f0f8ff;
    border-left: 3px solid #A7DB98;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #333;
    display: none;
}

.gn-mix-search__results--visible {
    display: block;
}

.gn-mix-search__results strong {
    color: #A7DB98;
    font-weight: 600;
}

/* Mensagem de sem resultados */

.gn-mix-no-results__text {
    color: #121212;
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 768px) {
    .gn-spinner {
        width: 32px;
        height: 32px;
        border-width: 3px;
    }
    
    .gn-mix-load-more p,
    .gn-mix-no-more p {
        font-size: 0.9rem;
    }
    
    /* Filtros e pesquisa empilhados em mobile */
    .gn-mix-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .gn-mix-filters__dropdown {
        width: 100%;
        min-width: 100%;
    }
    
    .gn-mix-filter-select {
        font-size: 1rem;
        padding: 0.75rem 2.5rem 0.75rem 1rem;
    }
    
    /* Pesquisa em mobile */
    .gn-mix-search {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
        gap: 0.5rem;
    }
    
    .gn-mix-search__label {
        font-size: 0.9rem;
    }
    
    .gn-mix-search__input {
        font-size: 1rem;
        padding: 0.75rem 3rem 0.75rem 2.5rem;
    }
    
    .gn-mix-search__results {
        font-size: 0.85rem;
    }
    
    /* Posts B em mobile podem ter altura mínima */
    .gn-mix-card--secondary .gn-mix-card__thumb img {
        min-height: 150px;
    }
}

