/* ============================================================
   Longreads — CPT cards grid with AJAX load more.
   Desktop: 6661:4994
   Tablet: 6245:8499
   Mobile: 6245:8605
   ============================================================ */

.longreads {
	background: #fff;
	color: #000;
	padding: 134px 0 48px;
}

.longreads *,
.longreads *::before,
.longreads *::after {
	box-sizing: border-box;
}

.longreads__inner {
	width: min(100% - 32px, 1408px);
	margin: 0 auto;
}

.longreads__heading {
	display: flex;
	align-items: flex-end;
	padding-bottom: 12px;
	border-bottom: 1px solid #d9d9d9;
}

.longreads__heading-label {
	font-size: 18px;
	line-height: 18px;
	letter-spacing: -0.05em;
	font-weight: 500;
	color: #000;
}

.longreads__heading-number {
	margin-left: 4px;
	font-size: 10px;
	line-height: 18px;
	letter-spacing: -0.05em;
	font-weight: 400;
	vertical-align: top;
}

.longreads__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px 9px;
	padding-top: 15px;
	max-height: 664px;
	overflow: hidden;
	transition: max-height 0.4s ease;
}

.longreads__list.is-expanded {
	max-height: none;
	overflow: visible;
}

.longreads__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
}

.longreads__media-link {
	display: block;
	width: 100%;
	height: 345.25px;
	background: #efefef;
	overflow: hidden;
}

.longreads__image,
.longreads__image-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.longreads__image-placeholder {
	background: #d9d9d9;
}

.longreads__card:nth-child(4n + 2) .longreads__media-link {
	height: 418px;
}

.longreads__card:nth-child(4n + 3) .longreads__media-link {
	height: 258.96px;
}

.longreads__meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	font-size: 10px;
	line-height: 13.85px;
	letter-spacing: -0.05em;
}

.longreads__term {
	flex: 1 1 auto;
	min-width: 0;
	color: #000;
	text-transform: uppercase;
}

.longreads__date {
	flex: 0 0 auto;
	color: rgba(0, 0, 0, 0.33);
	white-space: nowrap;
}

.longreads__title {
	margin: 0;
	width: 100%;
	font-size: 21px;
	line-height: 24px;
	letter-spacing: -0.05em;
	font-weight: 500;
}

.longreads__title-link {
	color: #000;
	text-decoration: none;
}

.longreads__more-link {
	font-size: 21px;
	line-height: 24px;
	letter-spacing: -0.05em;
	font-weight: 500;
	color: rgba(0, 0, 0, 0.33);
	text-decoration: none;
}

.longreads__bottom {
	position: relative;
	min-height: 36px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #d9d9d9;
}

.longreads__more-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
}

.longreads__more-wrap[hidden] {
	display: none;
}

.longreads__more {
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 14px;
	line-height: 18px;
	letter-spacing: -0.05em;
	font-weight: 500;
	color: #000;
	text-transform: uppercase;
	cursor: pointer;
}

.longreads__footer {
	position: absolute;
	top: 0;
	right: 0;
	padding-top: 15px;
}

.longreads__info {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #000;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	line-height: 18px;
	letter-spacing: -0.05em;
}

.longreads__info-icon {
	width: 36px;
	height: 36px;
	border-radius: 9.536px;
	border: 1px solid #d9d9d9;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #000;
}

.longreads__info-icon svg {
	display: block;
	width: 32.571px;
	height: 32.571px;
}

@media (min-width: 901px) and (max-width: 1280px) {
	.longreads {
		padding: 72px 0 40px;
	}

	.longreads__inner {
		width: min(100% - 32px, 992px);
	}

	.longreads__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		max-height: none;
	}

	.longreads__card:nth-child(n) .longreads__media-link {
		height: 345.25px;
	}

	.longreads__card:nth-child(3n + 2) .longreads__media-link {
		height: 418px;
	}

	.longreads__card:nth-child(3n + 3) .longreads__media-link {
		height: 258.96px;
	}

	.longreads__footer {
		display: none;
	}
}

@media (max-width: 900px) {
	.longreads {
		padding: 48px 0 32px;
	}

	.longreads__inner {
		width: min(100% - 24px, 351px);
	}

	.longreads__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8.5px 9px;
		padding-top: 15px;
		max-height: 515px;
	}

	.longreads__card:nth-child(n) .longreads__media-link {
		height: 213.75px;
	}

	.longreads__card:nth-child(4n + 2) .longreads__media-link {
		height: 256.5px;
	}

	.longreads__card:nth-child(4n + 3) .longreads__media-link {
		height: 171px;
	}

	.longreads__card:nth-child(4n + 4) .longreads__media-link {
		height: 299.25px;
	}

	.longreads__meta {
		gap: 8px;
	}

	.longreads__title,
	.longreads__more-link {
		font-size: 18px;
		line-height: 20px;
	}

	.longreads__footer {
		display: none;
	}
}
