/* Pagina Autores - cuadricula de retratos */

.authors-grid-page {
	max-width: 1100px;
	margin: 0 auto;
	padding: 64px 24px 32px;
}

.authors-grid-page > h1 {
	font-family: "Cardo", serif;
	font-weight: 700;
	font-size: clamp(2rem, 4vw, 2.75rem);
	color: #171412;
	text-align: center;
	margin: 0 0 8px;
}

.authors-grid-page > .authors-grid-intro {
	text-align: center;
	color: #5C554E;
	font-family: "Inter", sans-serif;
	font-size: 1rem;
	margin: 0 0 48px;
}

.authors-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	align-items: start;
	gap: 40px 32px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 780px) {
	.authors-grid .wp-block-post-template {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.authors-grid .wp-block-post-template {
		grid-template-columns: 1fr 1fr;
		gap: 28px 16px;
	}
}

.authors-grid .wp-block-post-template > li {
	display: flex;
	flex-direction: column;
	align-items: center;
	align-self: start;
	text-align: center;
	margin: 0;
	padding: 0;
	line-height: 0;
}

.authors-grid .wp-block-post-featured-image {
	width: 100%;
	margin: 0 0 16px 0 !important;
	padding: 0 !important;
	aspect-ratio: 3 / 4;
	border-radius: 4px;
	overflow: hidden;
	background: linear-gradient(160deg, #F7F6F4 0%, #EDE8E3 100%);
	align-self: stretch;
	line-height: 0;
	font-size: 0;
}

.authors-grid .wp-block-post-featured-image a {
	display: block;
	width: 100%;
	height: 100%;
}

.authors-grid .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
	vertical-align: top;
	filter: grayscale(100%);
	transition: filter 0.3s ease;
}

.authors-grid .wp-block-post-featured-image:hover img,
.authors-grid .wp-block-post-featured-image a:focus img {
	filter: grayscale(0%);
}

.authors-grid .wp-block-post-title {
	margin: 0;
	display: flex;
	align-items: center;
	min-height: 2.6em;
	line-height: 1.3;
}

.authors-grid .wp-block-post-title a {
	font-family: "Inter", sans-serif;
	font-weight: 500;
	font-size: 1rem;
	color: #171412;
	text-decoration: none;
	line-height: 1.3;
}

.authors-grid .wp-block-post-title a:hover {
	color: #5C1A21;
}

/* "Ultimas entradas" strip below the authors grid, matching the home page pattern */
.authors-latest-entries {
	max-width: 1100px;
	margin: 0 auto;
	padding: 48px 24px 96px;
	border-top: 1px solid #E7E4DF;
}

.authors-latest-entries h2 {
	font-family: "Cardo", serif;
	font-weight: 700;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	color: #171412;
	margin: 0 0 32px;
}

.authors-latest-entries .wp-block-post-featured-image img {
	border-radius: 4px;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

.authors-latest-entries .wp-block-post-title {
	margin: 12px 0 4px;
}

.authors-latest-entries .wp-block-post-title a {
	font-family: "Cardo", serif;
	font-weight: 700;
	font-size: 0.875rem;
	line-height: 1.3;
	color: #171412;
	text-decoration: none;
}

.authors-latest-entries .wp-block-post-excerpt__excerpt {
	font-family: "Inter", sans-serif;
	color: #5C554E;
	font-size: 0.75rem;
	line-height: 1.5;
}
