/**
 * Norte — plantilla «Portada: solo entradas» («Deriva»).
 *
 * Solo se carga en la página que usa la plantilla (y en el editor).
 *
 * 1. Apertura: la última entrada a pantalla completa. Su título, enorme
 *    y en «diferencia», se sale de la foto y cae sobre el papel.
 * 2. Presentación: una frase y el número de artículos, a la derecha,
 *    donde aterriza el título.
 * 3. Secuencia: diez entradas en una rejilla de 12 columnas que se rompe.
 *    Cada posición, en un ciclo de siete, tiene su composición (foto
 *    grande, panel de noche, retrato desplazado, banda de texto con la
 *    categoría gigante, foto a sangre con tarjeta, título vertical,
 *    cuadrado), con números enormes detrás.
 * 4. Índice: el resto, en filas sobre noche; al pasar por cada una, su
 *    foto sigue al cursor (assets/js/drift.js).
 *
 * Medidas en vw, como la portada, salvo los mínimos legibles.
 */

.norte-drift {
	--d-cols: repeat(12, minmax(0, 1fr));
	--d-gap: 2vw;
	--d-ghost: color-mix(in srgb, var(--n-ink) 9%, transparent);
	overflow-x: clip;
	background: var(--n-paper);
	color: var(--n-ink);
}

.norte-drift :is(.wp-block-post-template, .wp-block-query) {
	margin: 0;
	padding: 0;
	list-style: none;
}

.norte-drift :is(p, h2, h3, figure) {
	margin: 0;
}

.norte-drift a {
	color: inherit;
	text-decoration: none;
}

.norte-drift .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Rótulos comunes: categoría, fecha, número. */
.norte-drift :is(.norte-drift-open__kicker, .norte-drift__terms, .norte-drift__date, .norte-drift-row__terms, .norte-drift-row__date) {
	font-family: var(--n-mono);
	font-size: var(--n-label);
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* =========================================================================
 * 1. Apertura
 * ====================================================================== */

/* Ningún antepasado del título crea un contexto de apilamiento, para que
 * su «diferencia» se mezcle con la foto y con el papel de debajo. */
.norte-drift-open__item {
	display: flex;
	align-items: flex-end;
	min-height: 100svh;
	padding: calc(var(--n-header) + 6vh) var(--n-gutter) 0 var(--n-rule-x);
	background: var(--n-night);
	color: var(--n-snow);
}

.norte-drift-open__media {
	position: absolute;
	inset: 0;
	height: 100svh;
}

.norte-drift-open__item {
	position: relative;
}

/* Velo: oscurece el pie y la cabecera para leer el texto. */
.norte-drift-open__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(0deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0) 55%),
		linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 22%);
	pointer-events: none;
}

.norte-drift-open__text {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1.4vw;
	width: 100%;
}

.norte-drift-open__kicker {
	gap: 0.4em 1.6em;
	align-items: baseline;
}

.norte-drift-open__kicker > * {
	margin: 0;
	font: inherit;
}

.norte-drift-open__index {
	padding-right: 1.6em;
	border-right: 1px solid color-mix(in srgb, var(--n-snow) 45%, transparent);
}

.norte-drift-open__excerpt {
	max-width: 36ch;
	font-size: var(--n-small);
	font-weight: 350;
	line-height: 1.45;
}

.norte-drift-open__excerpt .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.norte-drift-open__excerpt .wp-block-post-excerpt__more-text {
	display: none;
}

/* El título: blanco en «diferencia» (claro sobre la foto, casi negro
 * sobre el papel), y su última línea cae fuera de la apertura. */
.norte-drift-open__title {
	position: relative;
	z-index: 3;
	max-width: 14ch;
	margin-bottom: -0.56em !important;
	color: #fff;
	font-family: var(--n-display);
	font-size: clamp(3.4rem, 8.8vw, 11rem);
	font-weight: 300;
	line-height: 0.84;
	letter-spacing: -0.035em;
	text-wrap: balance;
	mix-blend-mode: difference;
}

.norte-drift-open__title a:hover {
	font-style: italic;
}

/* =========================================================================
 * 2. Presentación
 * ====================================================================== */

.norte-drift-intro {
	display: grid;
	grid-template-columns: var(--d-cols);
	column-gap: var(--d-gap);
	align-items: start;
	min-height: 13vw;
	padding: 2.6vw var(--n-gutter) 2vw var(--n-rule-x);
}

.norte-drift-intro__lead {
	grid-column: 9 / -1;
	max-width: 26ch;
	font-family: var(--n-headline);
	font-size: clamp(1.15rem, 1.6vw, 1.9rem);
	line-height: 1.15;
}

.norte-drift-intro__count {
	grid-column: 9 / -1;
	margin-top: 1.4vw !important;
}

/* =========================================================================
 * 3. Secuencia
 * ====================================================================== */

.norte-drift-seq {
	padding: 0 var(--n-gutter) 10vw var(--n-rule-x);
}

.norte-drift__list {
	display: grid;
	grid-template-columns: var(--d-cols);
	column-gap: var(--d-gap);
	counter-reset: norte-drift 1;
}

.norte-drift__list > li {
	position: relative;
	min-width: 0;
	margin: 0;
	counter-increment: norte-drift;
}

.norte-drift__item {
	position: relative;
	isolation: isolate;
}

/* Número enorme detrás de cada entrada. */
.norte-drift__item::before {
	content: counter(norte-drift, decimal-leading-zero);
	position: absolute;
	z-index: -1;
	top: -0.42em;
	left: -0.04em;
	color: var(--d-ghost);
	font-family: var(--n-display);
	font-size: 19vw;
	font-weight: 300;
	line-height: 1;
	letter-spacing: -0.04em;
	pointer-events: none;
}

.norte-drift__media {
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.norte-drift__media img {
	transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.norte-drift__item:hover .norte-drift__media img {
	transform: scale(1.035);
}

.norte-drift__text {
	display: flex;
	flex-direction: column;
	gap: 0.9vw;
	padding-top: 1.3vw;
}

.norte-drift__text > * {
	margin: 0 !important;
}

.norte-drift__terms {
	opacity: 0.7;
}

.norte-drift__title {
	max-width: 18ch;
	font-family: var(--n-headline);
	font-size: clamp(1.5rem, 2.3vw, 2.9rem);
	font-weight: 400;
	line-height: 1.04;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.norte-drift__title a {
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size 0.5s ease;
}

.norte-drift__item:hover .norte-drift__title a {
	background-size: 100% 1px;
}

.norte-drift__excerpt {
	max-width: 40ch;
	font-size: var(--n-small);
	font-weight: 350;
	line-height: 1.45;
	opacity: 0.82;
}

.norte-drift__excerpt .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.norte-drift__excerpt .wp-block-post-excerpt__more-text {
	display: none;
}

.norte-drift__date {
	opacity: 0.6;
}

/* La categoría como palabra gigante: solo en la banda de texto. */
.norte-drift__word {
	display: none;
}

/* --- Posición 1: foto grande a la derecha, título a la izquierda ------- */
.norte-drift__list > li:nth-child(7n + 1) {
	grid-column: 1 / -1;
	margin-top: 9vw;
}

.norte-drift__list > li:first-child {
	margin-top: 4vw;
}

li:nth-child(7n + 1) > .norte-drift__item {
	display: grid;
	grid-template-columns: var(--d-cols);
	column-gap: var(--d-gap);
	align-items: end;
}

li:nth-child(7n + 1) .norte-drift__media {
	grid-area: 1 / 5 / 2 / -1;
	margin-right: calc(-1 * var(--n-gutter));
	aspect-ratio: 3 / 2;
}

li:nth-child(7n + 1) .norte-drift__text {
	grid-area: 1 / 1 / 2 / 5;
	padding: 0 0 2.2vw;
}

li:nth-child(7n + 1) .norte-drift__title {
	font-family: var(--n-display);
	font-size: clamp(2rem, 3.9vw, 4.8rem);
	font-weight: 300;
	line-height: 0.95;
	letter-spacing: -0.025em;
}

li:nth-child(7n + 1) .norte-drift__item::before {
	top: -0.5em;
	font-size: 24vw;
}

/* --- Posición 2: panel de noche que monta sobre la foto anterior ------- */
.norte-drift__list > li:nth-child(7n + 2) {
	z-index: 2;
	grid-column: 1 / 8;
	margin-top: -7vw;
}

li:nth-child(7n + 2) > .norte-drift__item {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
	gap: 2.4vw;
	padding: 2.6vw;
	background: var(--n-night);
	color: var(--n-snow);
}

li:nth-child(7n + 2) .norte-drift__item::before {
	top: auto;
	right: 0.05em;
	bottom: -0.38em;
	left: auto;
	z-index: 0;
	color: color-mix(in srgb, var(--n-snow) 7%, transparent);
	font-size: 12vw;
}

li:nth-child(7n + 2) .norte-drift__media {
	aspect-ratio: 4 / 5;
}

li:nth-child(7n + 2) .norte-drift__text {
	position: relative;
	justify-content: space-between;
	padding: 0 2.6vw 0 0;
}

li:nth-child(7n + 2) .norte-drift__excerpt {
	margin-top: auto !important;
}

/* La fecha, en vertical en el borde derecho del panel. */
li:nth-child(7n + 2) .norte-drift__date {
	position: absolute;
	top: 0;
	right: -0.4em;
	writing-mode: vertical-rl;
}

/* --- Posición 3: retrato desplazado hacia abajo ------------------------- */
.norte-drift__list > li:nth-child(7n + 3) {
	grid-column: 9 / -1;
	margin-top: 3vw;
}

li:nth-child(7n + 3) .norte-drift__media {
	aspect-ratio: 3 / 4;
}

li:nth-child(7n + 3) .norte-drift__item::before {
	top: -0.62em;
	left: -0.42em;
}

li:nth-child(7n + 3) .norte-drift__excerpt {
	display: none;
}

/* --- Posición 4: banda de noche con la categoría gigante --------------- */
.norte-drift__list > li:nth-child(7n + 4) {
	grid-column: 1 / -1;
	margin: 11vw calc(-1 * var(--n-gutter)) 0 calc(-1 * var(--n-rule-x));
}

li:nth-child(7n + 4) > .norte-drift__item {
	min-height: 34vw;
	padding: 8vw var(--n-gutter) 7vw var(--n-rule-x);
	background: var(--n-night);
	color: var(--n-snow);
}

li:nth-child(7n + 4) .norte-drift__item::before {
	content: none;
}

li:nth-child(7n + 4) .norte-drift__word {
	position: absolute;
	z-index: -1;
	bottom: -0.18em;
	left: calc(var(--n-rule-x) - 0.06em);
	display: block;
	margin: 0;
	color: color-mix(in srgb, var(--n-snow) 8%, transparent);
	font-family: var(--n-display);
	font-size: 25vw;
	font-weight: 300;
	line-height: 1;
	letter-spacing: -0.045em;
	white-space: nowrap;
	pointer-events: none;
}

li:nth-child(7n + 4) .norte-drift__word :is(a:not(:first-of-type), .wp-block-post-terms__separator) {
	display: none;
}

/* La foto, pequeña, asoma por arriba sobre el papel. */
li:nth-child(7n + 4) .norte-drift__media {
	position: absolute;
	top: -7vw;
	right: calc(var(--n-gutter) + 4vw);
	width: 21vw;
	aspect-ratio: 4 / 5;
}

li:nth-child(7n + 4) .norte-drift__text {
	gap: 1.4vw;
	max-width: 58vw;
	padding: 0;
}

li:nth-child(7n + 4) .norte-drift__title {
	max-width: 15ch;
	font-family: var(--n-display);
	font-size: clamp(2.4rem, 5.6vw, 7rem);
	font-weight: 300;
	line-height: 0.92;
	letter-spacing: -0.03em;
}

/* --- Posición 5: foto a sangre con tarjeta de papel encima ------------- */
.norte-drift__list > li:nth-child(7n + 5) {
	grid-column: 3 / -1;
	margin: 13vw calc(-1 * var(--n-gutter)) 0 0;
}

li:nth-child(7n + 5) .norte-drift__media {
	aspect-ratio: 16 / 9;
}

li:nth-child(7n + 5) .norte-drift__text {
	position: absolute;
	bottom: -5vw;
	left: -9vw;
	width: min(31vw, 30rem);
	padding: 2.2vw 2.4vw 2.4vw;
	background: var(--n-paper);
	border-top: 1px solid var(--n-ink);
}

li:nth-child(7n + 5) .norte-drift__item::before {
	top: -0.72em;
	right: calc(var(--n-gutter) - 0.04em);
	left: auto;
}

/* --- Posición 6: título en vertical junto a la foto -------------------- */
.norte-drift__list > li:nth-child(7n + 6) {
	grid-column: 1 / 6;
	margin-top: 14vw;
}

li:nth-child(7n + 6) > .norte-drift__item {
	display: flex;
	flex-direction: row-reverse;
	gap: 1.6vw;
	align-items: flex-end;
}

li:nth-child(7n + 6) .norte-drift__media {
	flex: 1;
	aspect-ratio: 4 / 5;
}

li:nth-child(7n + 6) .norte-drift__text {
	flex-direction: row-reverse;
	align-items: flex-end;
	gap: 0.9vw;
	padding: 0;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}

li:nth-child(7n + 6) .norte-drift__title {
	max-width: none;
	max-height: 30vw;
	font-family: var(--n-display);
	font-size: clamp(1.6rem, 2.9vw, 3.6rem);
	font-weight: 300;
	line-height: 1;
}

li:nth-child(7n + 6) :is(.norte-drift__excerpt, .norte-drift__terms) {
	display: none;
}

li:nth-child(7n + 6) .norte-drift__item::before {
	top: -0.62em;
	left: 18%;
}

/* --- Posición 7: cuadrado más abajo, número que lo atraviesa ----------- */
.norte-drift__list > li:nth-child(7n + 7) {
	grid-column: 7 / 12;
	margin-top: 26vw;
}

li:nth-child(7n + 7) .norte-drift__media {
	aspect-ratio: 1;
}

li:nth-child(7n + 7) .norte-drift__item::before {
	top: 18%;
	left: -0.66em;
	z-index: 1;
	color: transparent;
	-webkit-text-stroke: 1px color-mix(in srgb, var(--n-ink) 40%, transparent);
	font-size: 17vw;
}

li:nth-child(7n + 7) .norte-drift__excerpt {
	display: none;
}

/* --- Ciclos pares: la composición se refleja, para que el ritmo no se
 * repita igual (foto a la izquierda, panel a la derecha, retrato a la
 * izquierda…). -------------------------------------------------------- */
li:nth-child(14n + 8) .norte-drift__media {
	grid-area: 1 / 1 / 2 / 9;
	margin: 0 0 0 calc(-1 * var(--n-rule-x));
}

li:nth-child(14n + 8) .norte-drift__text {
	grid-area: 1 / 9 / 2 / -1;
}

li:nth-child(14n + 8) .norte-drift__item::before {
	right: -0.04em;
	left: auto;
}

.norte-drift__list > li:nth-child(14n + 9) {
	grid-column: 6 / -1;
}

.norte-drift__list > li:nth-child(14n + 10) {
	grid-column: 1 / 5;
	margin-top: 9vw;
}

li:nth-child(14n + 10) .norte-drift__item::before {
	left: auto;
	right: -0.5em;
}

.norte-drift__list > li:nth-child(14n + 11) > .norte-drift__item {
	text-align: right;
}

li:nth-child(14n + 11) .norte-drift__text {
	align-items: flex-end;
	margin-left: auto;
}

li:nth-child(14n + 11) .norte-drift__media {
	right: auto;
	left: calc(var(--n-rule-x) + 4vw);
}

li:nth-child(14n + 11) .norte-drift__word {
	right: calc(var(--n-gutter) - 0.06em);
	left: auto;
}

.norte-drift__list > li:nth-child(14n + 12) {
	grid-column: 1 / 11;
	margin: 13vw 0 0 calc(-1 * var(--n-rule-x));
}

li:nth-child(14n + 12) .norte-drift__text {
	right: -9vw;
	left: auto;
}

.norte-drift__list > li:nth-child(14n + 13) {
	grid-column: 8 / -1;
}

li:nth-child(14n + 13) > .norte-drift__item {
	flex-direction: row;
}

.norte-drift__list > li:nth-child(14n + 14) {
	grid-column: 2 / 7;
}

/* =========================================================================
 * 4. Índice
 * ====================================================================== */

.norte-drift-index {
	display: grid;
	grid-template-columns: var(--d-cols);
	column-gap: var(--d-gap);
	padding: 7vw var(--n-gutter) 8vw var(--n-rule-x);
	background: var(--n-night);
	color: var(--n-snow);
}

.norte-drift-index:not(:has(.norte-drift-row)) {
	display: none;
}

.norte-drift-index__head {
	grid-column: 1 / 4;
	align-self: start;
	position: sticky;
	top: calc(var(--n-header) + 2vw);
}

.norte-drift-index__title {
	font-family: var(--n-display);
	font-size: clamp(3rem, 7.4vw, 9rem);
	font-weight: 300;
	line-height: 0.85;
	letter-spacing: -0.035em;
}

.norte-drift-index__all {
	margin-top: 2vw !important;
}

.norte-drift-index__query {
	grid-column: 4 / -1;
}

.norte-drift-index__list {
	counter-reset: norte-drift-index 11;
	border-bottom: 1px solid var(--n-night-line);
}

.norte-drift-index__list > li {
	margin: 0;
	counter-increment: norte-drift-index;
}

.norte-drift-row {
	position: relative;
	display: grid;
	grid-template-columns: 4.2em minmax(0, 1fr) minmax(0, 13em) 6.5em;
	gap: 1.6vw;
	align-items: baseline;
	padding: 1.15vw 0;
	border-top: 1px solid var(--n-night-line);
	font-size: var(--n-label);
}

.norte-drift-row::before {
	content: counter(norte-drift-index, decimal-leading-zero);
	color: var(--n-ash);
	font-family: var(--n-mono);
	letter-spacing: 0.16em;
}

.norte-drift-row > * {
	margin: 0 !important;
}

.norte-drift-row__title {
	font-family: var(--n-headline);
	font-size: clamp(1.25rem, 2.1vw, 2.6rem);
	font-weight: 400;
	line-height: 1.08;
	color: var(--n-ash);
	transition: color 0.3s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.norte-drift-row__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.norte-drift-row__terms,
.norte-drift-row__date {
	color: var(--n-ash);
}

.norte-drift-row__date {
	text-align: right;
}

.norte-drift-row:hover .norte-drift-row__title {
	color: var(--n-snow);
	transform: translateX(1.2vw);
}

/* La foto de cada fila: sigue al cursor (drift.js da --mx / --my); sin
 * script, aparece fija a la derecha. */
.norte-drift-row__peek {
	position: fixed;
	z-index: 20;
	top: var(--my, 50vh);
	left: var(--mx, 78vw);
	width: clamp(180px, 17vw, 300px);
	aspect-ratio: 4 / 5;
	opacity: 0;
	pointer-events: none;
	transform: translate(3rem, -60%) scale(0.94) rotate(-2deg);
	transition: opacity 0.25s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.norte-drift-row:hover .norte-drift-row__peek {
	opacity: 1;
	transform: translate(3rem, -60%) scale(1) rotate(0deg);
}

@media (hover: none) {

	.norte-drift-row__peek {
		display: none;
	}
}

/* =========================================================================
 * Movimiento al desplazarse (si el navegador lo admite)
 * ====================================================================== */

@media (prefers-reduced-motion: no-preference) {

	@supports (animation-timeline: view()) {

		.norte-drift__media {
			animation: norte-drift-unveil linear both;
			animation-timeline: view();
			animation-range: entry 0% cover 32%;
		}

		.norte-drift__item::before,
		li:nth-child(7n + 4) .norte-drift__word {
			animation: norte-drift-float linear both;
			animation-timeline: view();
			animation-range: cover;
		}
	}
}

@keyframes norte-drift-unveil {
	from {
		clip-path: inset(18% 0 0 0);
		translate: 0 3vw;
	}
	to {
		clip-path: inset(0 0 0 0);
		translate: 0 0;
	}
}

@keyframes norte-drift-float {
	from {
		translate: 0 6vw;
	}
	to {
		translate: 0 -6vw;
	}
}

/* =========================================================================
 * Editor: el editor da position: relative a todos los bloques.
 * ====================================================================== */

.editor-styles-wrapper .norte-drift-open__media {
	position: absolute !important;
}

.editor-styles-wrapper li:nth-child(7n + 4) .norte-drift__media,
.editor-styles-wrapper li:nth-child(7n + 5) .norte-drift__text,
.editor-styles-wrapper li:nth-child(7n + 4) .norte-drift__word {
	position: absolute !important;
}

.editor-styles-wrapper .norte-drift-row__peek {
	display: none;
}

/* =========================================================================
 * Pantallas medianas y móviles: una columna, pero con saltos.
 * ====================================================================== */

@media (max-width: 959px) {

	.norte-drift {
		--d-gap: 0px;
	}

	.norte-drift-open__item {
		padding-inline: var(--n-gutter);
	}

	.norte-drift-open__text {
		gap: 4vw;
	}

	.norte-drift-open__title {
		max-width: 9ch;
		font-size: clamp(3.2rem, 17vw, 8rem);
	}

	.norte-drift-intro {
		display: block;
		min-height: 0;
		padding: 2.2em var(--n-gutter) 1.5em;
		text-align: right;
	}

	.norte-drift-intro__lead {
		margin-left: auto !important;
		max-width: 20ch;
	}

	.norte-drift-intro__count {
		margin: 1em 0 0 auto !important;
		width: fit-content;
	}

	.norte-drift-seq {
		padding: 0 var(--n-gutter) 22vw;
	}

	.norte-drift__list {
		display: block;
	}

	.norte-drift__list > li,
	.norte-drift__list > li:nth-child(n) {
		margin: 22vw 0 0;
	}

	.norte-drift__list > li:first-child {
		margin-top: 16vw;
	}

	.norte-drift__list li > .norte-drift__item,
	.norte-drift__list li:nth-child(n) > .norte-drift__item {
		display: block;
	}

	.norte-drift__item::before,
	.norte-drift__list li:nth-child(n) .norte-drift__item::before {
		top: -0.5em;
		right: auto;
		bottom: auto;
		left: -0.04em;
		font-size: 36vw;
	}

	.norte-drift__text,
	.norte-drift__list li:nth-child(n) .norte-drift__text {
		position: static;
		width: auto;
		max-width: none;
		padding: 4vw 0 0;
		gap: 2.4vw;
		writing-mode: horizontal-tb;
		transform: none;
		background: none;
		border: 0;
		flex-direction: column;
		align-items: stretch;
	}

	.norte-drift__list li:nth-child(n) .norte-drift__media {
		position: relative;
		top: auto;
		right: auto;
		width: auto;
		margin: 0;
	}

	.norte-drift__list li:nth-child(n) .norte-drift__title {
		max-height: none;
		font-size: clamp(1.7rem, 7.6vw, 3rem);
	}

	/* Saltos: fotos que se salen hacia uno u otro borde, retratos
	 * estrechos y desplazados. */
	li:nth-child(7n + 1) .norte-drift__media,
	li:nth-child(7n + 5) .norte-drift__media {
		margin-right: calc(-1 * var(--n-gutter)) !important;
	}

	li:nth-child(7n + 1) .norte-drift__title,
	li:nth-child(7n + 4) .norte-drift__title {
		font-size: clamp(2.2rem, 11vw, 4.4rem) !important;
	}

	li:nth-child(7n + 3) .norte-drift__item,
	li:nth-child(7n + 7) .norte-drift__item {
		width: 72%;
		margin-left: auto;
	}

	li:nth-child(7n + 6) .norte-drift__item {
		width: 82%;
	}

	.norte-drift__list li:nth-child(n) .norte-drift__media {
		left: auto;
	}

	.norte-drift__list > li:nth-child(n) > .norte-drift__item {
		text-align: left;
	}

	li:nth-child(7n + 6) .norte-drift__terms {
		display: block;
	}

	/* Paneles de noche, de borde a borde. */
	.norte-drift__list > li:nth-child(7n + 2),
	.norte-drift__list > li:nth-child(7n + 4) {
		margin-inline: calc(-1 * var(--n-gutter));
	}

	li:nth-child(7n + 2) > .norte-drift__item,
	li:nth-child(7n + 4) > .norte-drift__item {
		padding: 12vw var(--n-gutter) !important;
		min-height: 0;
	}

	li:nth-child(7n + 2) .norte-drift__media {
		width: 62% !important;
	}

	li:nth-child(14n + 9) .norte-drift__media {
		margin-left: auto !important;
	}

	li:nth-child(7n + 2) .norte-drift__date {
		position: static;
		writing-mode: horizontal-tb;
	}

	li:nth-child(7n + 2) .norte-drift__item::before {
		top: auto !important;
		right: 0.02em !important;
		bottom: -0.3em !important;
		left: auto !important;
	}

	li:nth-child(7n + 4) .norte-drift__media {
		width: 54% !important;
		margin: -24vw 0 8vw auto !important;
	}

	li:nth-child(7n + 4) .norte-drift__word {
		font-size: 40vw;
	}

	/* La tarjeta sigue montando sobre la foto. */
	li:nth-child(7n + 5) .norte-drift__text {
		position: relative !important;
		right: auto;
		bottom: auto;
		left: auto;
		margin: -12vw 10vw 0 0;
		padding: 5vw 5vw 0 !important;
		background: var(--n-paper) !important;
		border-top: 1px solid var(--n-ink) !important;
	}

	li:nth-child(7n + 7) .norte-drift__item::before {
		top: 10% !important;
		left: -0.5em !important;
	}

	.norte-drift-index {
		display: block;
		padding: 16vw var(--n-gutter) 18vw;
	}

	.norte-drift-index__head {
		position: static;
		margin-bottom: 8vw;
	}

	.norte-drift-index__title {
		font-size: clamp(3rem, 20vw, 7rem);
	}

	.norte-drift-index__all {
		margin-top: 5vw !important;
	}

	.norte-drift-row {
		grid-template-columns: 3em minmax(0, 1fr) auto;
		gap: 0.4em 1em;
		padding: 1.1em 0;
	}

	.norte-drift-row__title {
		grid-column: 2 / -1;
	}

	.norte-drift-row__terms {
		grid-column: 2;
	}
}
