/*
 * ArtX collection pages: the header on the 12-column grid (title and
 * breadcrumb left, description right, stacked at xs), the artists section
 * 60px below with its heading and rail (artist-rail.css), the works
 * section (grid.css, filters.css) with its filter bar 60px below the rail
 * and no works heading; and the /collections index cards. Reads tokens.css
 * and base.css (the .artx-col-* spans); tokens.md "Collection page".
 */

.artx-collection__frame {
	padding-top: var(--artx-space-4);
}

.artx-collection-header {
	display: grid;
	grid-template-columns: repeat(var(--artx-grid-columns), minmax(0, 1fr));
	column-gap: var(--artx-grid-column-gap);
	row-gap: var(--artx-space-2);
}

.artx-collection-header__title {
	margin: 0 0 var(--artx-space-1);
	color: var(--artx-color-black-100);
	font-size: var(--artx-type-xl-size);
	line-height: var(--artx-type-xl-line);
	letter-spacing: var(--artx-type-xl-tracking);
	font-weight: var(--artx-font-weight-regular);
}

.artx-collection-header__breadcrumb {
	color: var(--artx-color-black-100);
	font-size: var(--artx-type-sm-size);
	line-height: var(--artx-type-sm-line);
}

.artx-collection-header__crumb {
	color: var(--artx-color-black-60);
}

.artx-collection-header__crumb:hover,
.artx-collection-header__crumb:focus-visible {
	color: var(--artx-color-blue-100);
}

.artx-collection-header__crumb--current {
	color: var(--artx-color-black-100);
}

.artx-collection-header__separator {
	margin: 0 8px;
	color: var(--artx-color-black-60);
}

.artx-collection-header__description {
	color: var(--artx-color-black-100);
	font-size: var(--artx-type-sm-size);
	line-height: var(--artx-type-sm-line);
}

.artx-collection-header__description p + p {
	margin-top: var(--artx-type-sm-line);
}

.artx-collection-header__description a {
	text-decoration: underline;
}

.artx-collection-artists {
	margin-top: var(--artx-space-6);
}

.artx-collection-artists__heading {
	margin: 0 0 var(--artx-space-4);
	color: var(--artx-color-black-100);
	font-size: var(--artx-type-lg-size);
	line-height: var(--artx-type-lg-line);
	letter-spacing: var(--artx-type-lg-tracking);
	font-weight: var(--artx-font-weight-regular);
}

/* The works section: the filter bar 60px below the rail (40px below the header when the collection has no artists) */
.artx-collection .artx-works {
	margin-top: var(--artx-space-6);
}

.artx-collection .artx-collection-header + .artx-works {
	margin-top: var(--artx-space-4);
}

.artx-collection .artx-works > .artx-filter-bar {
	margin-top: 0;
}

/* The pills sit 10px inside the 50px bar here (on the artist page on its top edge), as measured */
.artx-collection .artx-filter-bar__row {
	padding-top: var(--artx-space-1);
}

/* /collections index */
.artx-collections__frame {
	padding-top: var(--artx-space-4);
	padding-bottom: var(--artx-space-6);
}

.artx-collections__title {
	margin: 0;
	font-size: var(--artx-type-xl-size);
	line-height: var(--artx-type-xl-line);
	letter-spacing: var(--artx-type-xl-tracking);
	font-weight: var(--artx-font-weight-regular);
}

.artx-collections__intro {
	max-width: 670px;
	margin-top: var(--artx-space-1);
	color: var(--artx-color-black-60);
	font-size: var(--artx-type-sm-size);
	line-height: var(--artx-type-sm-line);
}

.artx-collections__list {
	display: grid;
	grid-template-columns: repeat(var(--artx-grid-columns), minmax(0, 1fr));
	column-gap: var(--artx-grid-column-gap);
	row-gap: var(--artx-space-4);
	margin: var(--artx-space-4) 0 0;
	padding: 0;
	list-style: none;
}

.artx-collection-card__link {
	display: block;
	color: var(--artx-color-black-100);
}

.artx-collection-card__link:hover,
.artx-collection-card__link:focus-visible {
	color: var(--artx-color-black-100);
}

.artx-collection-card__cover {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--artx-color-black-5);
}

.artx-collection-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.artx-collection-card__title {
	display: block;
	margin-top: var(--artx-card-meta-gap);
	font-size: var(--artx-type-sm-size);
	line-height: var(--artx-type-sm-tight-line);
	font-weight: var(--artx-font-weight-bold);
}

.artx-collection-card__count {
	display: block;
	color: var(--artx-color-black-60);
	font-size: var(--artx-type-sm-size);
	line-height: var(--artx-type-sm-tight-line);
}

.artx-collection .artx-filter-bar__row--sm::after {
	top: var(--artx-space-1);
}
