/**
 * the_art_module.css
 *
 * Editorial magazine-style layout.
 *
 * Hero pair:  first 2 posts — small left (1.5fr) + large feature right (3fr)
 * Groups:     3-column grid — main list (2fr) | side list (1fr)
 *   Main list (left + mid cols):
 *     Items 1–4: odd items sit in col 2 only; even items span cols 1–2
 *     Items 5+:  normal 2-column auto-placement
 *   Side list (right col): simple stacked list
 *
 * Card variants:
 *   .art-card          → landscape image (aspect-ratio 4/3)
 *   .art-card--tall    → portrait image  (aspect-ratio 2/3)
 */

/* ---------------------------------------------------------------
   Section
--------------------------------------------------------------- */
.the-art-module {
	background-color: var(--white);
	padding: var(--section-pad);
}

.the-art-module__inner {
	/*max-width: 1400px;*/
	margin: 0 auto;
}

/* ---------------------------------------------------------------
   Hero pair — 3-column grid: card 1 in col 1, card 2 spans cols 2–3
--------------------------------------------------------------- */
.the-art-module__hero {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 0 40px;
	align-items: start;
	margin-bottom: 40px;
}

/* Card 2 spans the right two thirds */
.the-art-module__hero .art-card:nth-child(2) {
	grid-column: 2 / span 2;
}

/* Feature card (2nd in hero) — wider cinematic image */
.the-art-module__hero .art-card:nth-child(2) .art-card__img-wrap {
	aspect-ratio: 3 / 2;
}

/* Small card (1st in hero) — hide excerpt for a cleaner look */
.the-art-module__hero .art-card:first-child .art-card__excerpt {
	display: none;
}

/* ---------------------------------------------------------------
   Groups container — main list (2fr) + side list (1fr)
--------------------------------------------------------------- */
.the-art-module__groups {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 0 40px;
	align-items: start;
}

/* ---------------------------------------------------------------
   Main list — 2-column inner grid
   First 4 items: alternating editorial pattern
   Items 5+: normal 2-column auto-placement
--------------------------------------------------------------- */
.the-art-module__main-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 40px;
	align-items: start;
}

/* Items 1–4, odd: sit in col 2 only (col 1 left intentionally empty) */
.the-art-module__main-item:nth-child(-n+4):nth-child(odd) {
	grid-column: 2;
}

/* Items 1–4, even: span across both cols */
.the-art-module__main-item:nth-child(-n+4):nth-child(even) {
	grid-column: 1 / span 2;
}

/* ---------------------------------------------------------------
   Side list — simple stacked column (col 3)
--------------------------------------------------------------- */
.the-art-module__side-list {
	display: flex;
	flex-direction: column;
	/*border-left: 1px solid var(--black);*/
	padding-left: 32px;
}

/* ---------------------------------------------------------------
   Card
--------------------------------------------------------------- */
.art-card {
	display: flex;
	flex-direction: column;
	border-bottom: solid 1px var(--black);
	margin-bottom: 40px;
	position: relative;
	cursor: pointer;
}

/* Image link */
.art-card__img-link {
	display: block;
	overflow: hidden;
	text-decoration: none;
}

/* Image wrapper — positions the category tag overlay */
.art-card__img-wrap {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	margin-bottom: 16px;
}

.art-card--tall .art-card__img-wrap {
	aspect-ratio: 2 / 3;
}

/* Image itself */
.art-card__img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.art-card:hover .art-card__img {
	transform: scale(1.04);
}

.art-card__img-placeholder {
	width: 100%;
	height: 100%;
	background-color: #e8e8e8;
}

/* Category tag — overlaid on image, bottom-left */
.art-card__tag {
	position: absolute;
	bottom: 14px;
	left: 14px;
	display: inline-block;
	background-color: var(--yellow);
	color: var(--black);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 2px;
	white-space: nowrap;
	line-height: 1.4;
}

/* ---------------------------------------------------------------
   Card body
--------------------------------------------------------------- */
.art-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	margin-bottom: 30px;
}

.art-card__title {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 30px;
	text-transform: uppercase;
	color: var(--black);
	margin: 0 0 10px;
}

.art-card__title a {
	color: inherit;
	text-decoration: none;
}

/* Stretched link — covers the entire card */
.art-card__title a::after {
	content: '';
	position: absolute;
	inset: 0;
}

.art-card__excerpt {
	font-size: 16px;
	line-height: 22px;		
	color:var(--black);
	margin: 0 0 14px;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.art-card__read-more {
	color: var(--black);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
	align-self: flex-start;
	margin-top: 30px;
	position: relative;
	z-index: 1;
}
.art-card:hover .cta-arrow {
  transform: translateX(4px);
}

/* ---------------------------------------------------------------
   Sentinel and loading spinner
--------------------------------------------------------------- */
.the-art-module__sentinel {
	height: 1px;
	margin-top: 40px;
}

.the-art-module__loading {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 0;
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
}

.the-art-module__loading.is-loading {
	opacity: 1;
}

.the-art-module__spinner {
	display: block;
	width: 28px;
	height: 28px;
	border: 3px solid #e0e0e0;
	border-top-color: var(--black);
	border-radius: 50%;
	animation: art-spin 0.7s linear infinite;
}

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

/* ---------------------------------------------------------------
   Caption override
--------------------------------------------------------------- */
.art-card__featured-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	display: inline-block;
	background-color: var(--yellow);
	color: var(--black);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 2px;
	white-space: nowrap;
}


/* ---------------------------------------------------------------
   Column size overrides
--------------------------------------------------------------- */

.art-card--hero-feature .art-card__title {
	font-size: 32px;
	line-height: 34px;
}
.art-card--main-full .art-card__title {
	font-size: 32px;
	line-height: 34px;
}

/* ---------------------------------------------------------------
   Responsive — 1100px: tighten padding
--------------------------------------------------------------- */
@media (max-width: 1100px) {
	.the-art-module {
		padding: 60px 32px;
	}
}

/* ---------------------------------------------------------------
   Responsive — 900px: collapse groups to single stacked column
--------------------------------------------------------------- */
@media (max-width: 900px) {
	.the-art-module__hero {
		grid-template-columns: 1fr;
		gap: 32px;
		margin-bottom: 32px;
	}

	/* Restore hero overrides when stacked */
	.the-art-module__hero .art-card:nth-child(2) {
		grid-column: unset;
	}
	.the-art-module__hero .art-card:first-child .art-card__excerpt {
		display: block;
	}
	.the-art-module__hero .art-card:nth-child(2) .art-card__img-wrap {
		aspect-ratio: 4 / 3;
	}

	/* Stack main + side lists vertically */
	.the-art-module__groups {
		grid-template-columns: 1fr;
		gap: 0;
	}

	/* Main list: 2-column, reset all editorial placements */
	.the-art-module__main-list {
		grid-template-columns: repeat(2, 1fr);
	}

	.the-art-module__main-item:nth-child(-n+4):nth-child(odd),
	.the-art-module__main-item:nth-child(-n+4):nth-child(even) {
		grid-column: unset;
	}

	/* Side list: remove separator, add top border instead */
	.the-art-module__side-list {
		border-left: 0;
		border-top: 1px solid var(--black);
		padding-left: 0;
		padding-top: 0;
	}
}

/* ---------------------------------------------------------------
   Responsive — 600px: single column
--------------------------------------------------------------- */
@media (max-width: 600px) {
	.the-art-module {
		padding: 50px 20px;
	}

	.the-art-module__hero {
		margin-bottom: 24px;
	}

	.the-art-module__main-list {
		grid-template-columns: 1fr;
	}

	/* Portrait cards revert to landscape ratio on single-column mobile */
	.art-card--tall .art-card__img-wrap {
		aspect-ratio: 4 / 3;
	}
}
