:root {
	--aw-artist-ink: var(--aw-ink, #0b0b0b);
	--aw-artist-muted: var(--aw-muted, #6f7075);
	--aw-artist-line: var(--aw-line, #dedede);
	--aw-artist-soft: var(--aw-soft, #f5f5f5);
	--aw-artist-white: #fff;
}

body.post-type-archive-artists {
	background: #fff;
	overflow-x: hidden;
}

body.post-type-archive-artists .main-page-wrapper {
	padding-top: 0;
}

.aw-artists-page {
	direction: ltr;
	color: var(--aw-artist-ink);
	background: #fff;
	overflow-x: clip;
}

.aw-artists-hero {
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--aw-artist-line);
	background: #f7f7f7;
}

.aw-artists-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(115deg, rgba(247, 247, 247, 0.06) 0%, rgba(247, 247, 247, 0.56) 42%, rgba(247, 247, 247, 0.96) 100%),
		linear-gradient(180deg, rgba(247, 247, 247, 0) 0%, rgba(247, 247, 247, 0.92) 100%),
		url("../brand/artwork-pattern-transparent.webp");
	background-position: left top;
	background-repeat: repeat;
	background-size: auto, auto, 420px auto;
	opacity: 0.22;
	pointer-events: none;
}

.aw-artists-hero__inner {
	position: relative;
	width: min(1220px, calc(100% - 48px));
	margin: 0 auto;
	padding: clamp(52px, 7vw, 92px) 0 clamp(44px, 6vw, 76px);
	direction: rtl;
	text-align: right;
}

.aw-artists-hero__eyebrow {
	margin: 0 0 14px;
	color: var(--aw-artist-muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.aw-artists-hero h1 {
	max-width: 820px;
	margin: 0;
	color: var(--aw-artist-ink);
	font-size: clamp(42px, 5.4vw, 82px);
	font-weight: 900;
	line-height: 1.14;
	letter-spacing: 0;
}

.aw-artists-hero p:not(.aw-artists-hero__eyebrow) {
	max-width: 760px;
	margin: 22px 0 0;
	color: var(--aw-artist-muted);
	font-size: clamp(15px, 1.28vw, 18px);
	font-weight: 500;
	line-height: 2.2;
}

.aw-artists-list {
	width: min(1220px, calc(100% - 48px));
	margin: 0 auto;
	padding: clamp(34px, 5vw, 64px) 0 clamp(58px, 7vw, 96px);
}

.aw-artist-card {
	display: grid;
	grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.35fr);
	grid-template-areas: "works profile";
	gap: clamp(20px, 3vw, 44px);
	align-items: stretch;
	margin: 0 0 clamp(22px, 3vw, 34px);
	padding: clamp(18px, 2.8vw, 34px);
	border: 1px solid var(--aw-artist-line);
	background: var(--aw-artist-white);
	box-sizing: border-box;
}

.aw-artist-card:nth-child(even) {
	background: #fafafa;
}

.aw-artist-card:last-child {
	margin-bottom: 0;
}

.aw-artist-card__profile {
	display: grid;
	grid-area: profile;
	grid-template-columns: 104px minmax(0, 1fr);
	grid-template-rows: auto 1fr auto;
	gap: 18px 22px;
	align-content: start;
	min-width: 0;
	direction: rtl;
}

.aw-artist-card__avatar {
	display: block;
	width: 104px;
	height: 104px;
	grid-row: 1 / span 2;
	border: 1px solid var(--aw-artist-line);
	background: #fff;
	overflow: hidden;
}

.aw-artist-card__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1);
}

.aw-artist-card__copy {
	min-width: 0;
}

.aw-artist-card__copy h2 {
	margin: -4px 0 12px;
	color: var(--aw-artist-ink);
	font-size: clamp(25px, 2.3vw, 34px);
	font-weight: 900;
	line-height: 1.35;
	letter-spacing: 0;
}

.aw-artist-card__copy p {
	margin: 0;
	color: var(--aw-artist-muted);
	font-size: 15px;
	font-weight: 500;
	line-height: 2.15;
}

.aw-artist-card__button {
	display: inline-flex;
	grid-column: 2;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	width: max-content;
	min-width: 190px;
	min-height: 48px;
	padding: 0 18px 0 14px;
	border: 1px solid var(--aw-artist-ink);
	background: var(--aw-artist-ink);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	box-sizing: border-box;
	transition: background 160ms ease, color 160ms ease;
}

.aw-artist-card__button:hover {
	background: #fff;
	color: var(--aw-artist-ink);
}

.aw-artist-card__button i {
	display: block;
	width: 18px;
	height: 18px;
	background: currentColor;
	transform: scaleX(-1);
	-webkit-mask: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 13L13 5M13 5H6.5M13 5V11.5' stroke='black' stroke-width='1.8' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 13L13 5M13 5H6.5M13 5V11.5' stroke='black' stroke-width='1.8' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") center / contain no-repeat;
}

.aw-artist-card__works {
	display: grid;
	grid-area: works;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	min-width: 0;
	direction: rtl;
}

.aw-artist-work {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	border: 1px solid var(--aw-artist-line);
	background: #fff;
	overflow: hidden;
}

.aw-artist-work::after {
	content: "";
	position: absolute;
	inset-inline-start: 16px;
	bottom: 16px;
	width: 28px;
	height: 28px;
	border: 1px solid rgba(11, 11, 11, 0.16);
	background: rgba(255, 255, 255, 0.88);
	-webkit-mask: none;
	mask: none;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 160ms ease, transform 160ms ease;
}

.aw-artist-work::before {
	content: "";
	position: absolute;
	inset-inline-start: 22px;
	bottom: 22px;
	z-index: 2;
	width: 16px;
	height: 16px;
	background: var(--aw-artist-ink);
	-webkit-mask: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 13L13 5M13 5H6.5M13 5V11.5' stroke='black' stroke-width='1.8' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 13L13 5M13 5H6.5M13 5V11.5' stroke='black' stroke-width='1.8' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") center / contain no-repeat;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 160ms ease, transform 160ms ease;
}

.aw-artist-work:hover::after,
.aw-artist-work:hover::before {
	opacity: 1;
	transform: translateY(0);
}

.aw-artist-work img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: clamp(12px, 2vw, 28px);
	transition: transform 180ms ease;
}

.aw-artist-work:hover img {
	transform: scale(1.025);
}

.aw-artist-work--empty {
	display: grid;
	grid-column: 1 / -1;
	place-items: center;
	min-height: 210px;
	color: var(--aw-artist-muted);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.8;
	text-align: center;
}

.aw-artist-work--empty::before,
.aw-artist-work--empty::after {
	display: none;
}

.aw-artists-list .pagination,
.aw-artists-list .page-numbers {
	margin-top: 32px;
	text-align: center;
}

.aw-artists-empty {
	border: 1px solid var(--aw-artist-line);
	background: #fff;
	padding: 40px;
	text-align: center;
}

@media (max-width: 1024px) {
	.aw-artist-card {
		grid-template-columns: 1fr;
		grid-template-areas:
			"profile"
			"works";
	}

	.aw-artist-card__works {
		order: 2;
	}
}

@media (max-width: 680px) {
	body.post-type-archive-artists {
		direction: ltr;
	}

	body.post-type-archive-artists .aw-site-header__inner {
		direction: ltr;
		grid-template-columns: auto 1fr;
		max-width: calc(100% - 24px);
	}

	body.post-type-archive-artists .aw-site-header__tools {
		grid-column: 1;
		justify-self: start;
	}

	body.post-type-archive-artists .aw-site-header__logo {
		grid-column: 2;
		justify-self: end;
	}

	body.post-type-archive-artists .aw-site-header__nav,
	body.post-type-archive-artists .aw-site-footer {
		direction: rtl;
	}

	.aw-artists-hero__inner,
	.aw-artists-list {
		width: min(100% - 28px, 1220px);
	}

	.aw-artists-hero__inner {
		padding-top: 42px;
		padding-bottom: 42px;
	}

	.aw-artist-card {
		display: flex;
		flex-direction: column;
		gap: 16px;
		padding: 16px;
	}

	.aw-artist-card__profile {
		display: contents;
	}

	.aw-artist-card__avatar {
		order: 1;
		width: 92px;
		height: 92px;
		grid-row: auto;
		align-self: flex-end;
	}

	.aw-artist-card__copy {
		order: 2;
		direction: rtl;
		text-align: right;
	}

	.aw-artist-card__copy h2 {
		margin-top: 0;
	}

	.aw-artist-card__copy,
	.aw-artist-card__copy h2,
	.aw-artist-card__copy p {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.aw-artist-card__button {
		order: 4;
		width: 100%;
		justify-content: center;
	}

	.aw-artist-card__works {
		order: 3;
		grid-template-columns: 1fr;
	}

	.aw-artist-work {
		aspect-ratio: 4 / 3;
	}
}
