/* Artwork Registry — single artwork presentation */

.ar-artwork-page {
	--ar-artwork-media-max-width: 920px;
	--ar-featured-artwork-max-width: min(100%, 84rem);
	--ar-featured-artwork-max-height: min(78svh, 960px);
	--ar-featured-artwork-mobile-max-height: min(70svh, 760px);
	--ar-artwork-gallery-viewport-height: clamp(340px, 50svh, 640px);
	--ar-artwork-gallery-mobile-viewport-height: clamp(250px, 72vw, 420px);
	display: grid;
	gap: 72px;
}

.ar-artwork-inner {
	--ar-featured-entry-page-top-spacing: 32px;
	--ar-featured-entry-media-top-spacing: 12px;
	--ar-featured-entry-page-top-spacing-mobile: 24px;
	--ar-featured-entry-media-top-spacing-mobile: 8px;
	max-width: 1500px;
	margin: 0 auto;
	padding: 88px var(--ar-gutter-right) 112px var(--ar-gutter);
	padding-top: var(--ar-featured-entry-page-top-spacing);
}

.ar-artwork-single {
	display: flex;
	flex-direction: column;
	width: 100%;
	gap: clamp(28px, 4vw, 54px);
	align-items: center;
}

.ar-artwork-single__media {
	order: 1;
	display: grid;
	width: var(--ar-featured-artwork-max-width);
	gap: 0;
	justify-items: center;
	max-width: min(100%, var(--ar-artwork-media-max-width));
	padding-top: var(--ar-featured-entry-media-top-spacing);
}

.ar-artwork-figure {
	margin: 0;
	width: 100%;
	box-shadow: none;
}

.ar-artwork-figure + .ar-artwork-figure {
	margin-top: 24px;
}

.ar-artwork-figure--primary {
	display: flex;
	justify-content: center;
	width: 100%;
}

.ar-artwork-image {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

.ar-artwork-figure--primary .ar-artwork-image {
	width: auto;
	max-width: 100%;
	max-height: var(--ar-featured-artwork-max-height);
}

.ar-artwork-gallery {
	display: grid;
	width: 100%;
	gap: 14px;
	justify-items: center;
}

.ar-artwork-gallery__viewport {
	position: relative;
	display: grid;
	width: fit-content;
	max-width: 100%;
	justify-items: center;
}

.ar-artwork-gallery__track {
	display: grid;
	width: fit-content;
	max-width: 100%;
	gap: 28px;
	justify-items: center;
}

.ar-artwork-gallery__slide {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: fit-content;
	max-width: 100%;
}

.ar-artwork-gallery__image {
	width: auto;
	max-width: 100%;
	max-height: var(--ar-featured-artwork-max-height);
}

.ar-artwork-gallery.is-enhanced .ar-artwork-gallery__track {
	display: block;
}

.ar-artwork-gallery.is-enhanced .ar-artwork-gallery__viewport,
.ar-artwork-gallery.is-enhanced .ar-artwork-gallery__track,
.ar-artwork-gallery.is-enhanced .ar-artwork-gallery__slide.is-active {
	width: min(100%, var(--ar-artwork-media-max-width));
	height: var(--ar-artwork-gallery-viewport-height);
	max-width: 100%;
}

.ar-artwork-gallery.is-enhanced .ar-artwork-gallery__viewport {
	transform: translateY(-10px);
}

.ar-artwork-gallery.is-enhanced .ar-artwork-gallery__slide {
	display: none;
	margin-top: 0;
}

.ar-artwork-gallery.is-enhanced .ar-artwork-gallery__slide.is-active {
	display: flex;
}

.ar-artwork-gallery.is-enhanced .ar-artwork-gallery__image {
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: contain;
}

.ar-artwork-gallery__arrow {
	position: absolute;
	top: 50%;
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: rgba(249, 247, 243, 0.72);
	color: var(--ar-text);
	font-family: var(--ar-font-body-selected, var(--wp--preset--font-family--primary, sans-serif));
	font-size: 34px;
	line-height: 1;
	transform: translateY(-50%);
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.ar-artwork-gallery.is-enhanced .ar-artwork-gallery__arrow {
	display: flex;
}

.ar-artwork-gallery__arrow:hover,
.ar-artwork-gallery__arrow:focus-visible {
	background: rgba(249, 247, 243, 0.94);
	color: var(--ar-text-strong);
	outline: none;
}

.ar-artwork-gallery__arrow--prev {
	left: clamp(8px, 2vw, 18px);
}

.ar-artwork-gallery__arrow--next {
	right: clamp(8px, 2vw, 18px);
}

.ar-artwork-gallery__thumbs {
	display: none;
	grid-auto-flow: column;
	grid-auto-columns: max-content;
	gap: 10px;
	justify-content: safe center;
	width: 100%;
	max-width: 100%;
	padding: 2px 0 8px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.ar-artwork-gallery.is-enhanced .ar-artwork-gallery__thumbs {
	display: grid;
}

.ar-artwork-gallery__thumb {
	appearance: none;
	width: clamp(54px, 7vw, 78px);
	aspect-ratio: 1;
	padding: 0;
	border: 1px solid transparent;
	background: transparent;
	cursor: pointer;
	opacity: .64;
	transition: border-color .2s ease, opacity .2s ease;
}

.ar-artwork-gallery__thumb:hover,
.ar-artwork-gallery__thumb:focus-visible,
.ar-artwork-gallery__thumb.is-active {
	border-color: var(--ar-text);
	opacity: 1;
	outline: none;
}

.ar-artwork-gallery__thumb-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ar-artwork-caption {
	margin-top: 8px;
	font-size: 13px;
	color: var(--ar-muted-soft);
	line-height: 1.4;
}

.ar-artwork-single__rail {
	order: 2;
	position: static;
	top: auto;
	height: auto;
	min-height: 0;
	display: grid;
	width: fit-content;
	max-width: calc(100% - 2rem);
	gap: 16px;
	align-content: start;
	justify-items: center;
	justify-self: center;
	align-self: start;
	margin-inline: auto;
	text-align: center;
	overflow: visible;
}

.ar-artwork-single__rail--meta-left {
	justify-items: start;
	padding-left: 10px;
	text-align: left;
}

.ar-artwork-single__rail--meta-right {
	justify-items: end;
	padding-right: 10px;
	text-align: right;
}

.ar-artwork-single__header {
	display: grid;
	gap: 10px;
	max-width: none;
	flex: 1 1 auto;
	align-content: start;
	justify-items: center;
}

.ar-artwork-single__rail--meta-left .ar-artwork-single__header {
	justify-items: start;
}

.ar-artwork-single__rail--meta-right .ar-artwork-single__header {
	justify-items: end;
}

.ar-artwork-single__title {
	margin: 0;
	font-family: var(--ar-font-body-selected, var(--wp--preset--font-family--primary, sans-serif));
	font-size: clamp(calc(0.96rem * var(--ar-heading-scale, 1)), calc(1.04vw * var(--ar-heading-scale, 1)), calc(1.14rem * var(--ar-heading-scale, 1)));
	font-weight: var(--wp--custom--font-weight--medium, 500);
	line-height: 1.16;
	letter-spacing: -0.018em;
	color: var(--ar-text);
}

.ar-artwork-single__title-text {
	font-style: normal;
}

.ar-artwork-single__title-year {
	color: inherit;
}

.ar-artwork-single__summary {
	margin: 0;
	max-width: min(100%, 38rem);
	font-family: var(--ar-font-body-selected, var(--wp--preset--font-family--primary, sans-serif));
	font-size: calc(14px * var(--ar-body-scale, 1));
	font-weight: var(--wp--custom--font-weight--regular, 400);
	line-height: 1.7;
	color: var(--ar-text-soft);
}

.ar-artwork-single__status-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 12px;
	padding-top: 4px;
}

.ar-artwork-single__rail--meta-left .ar-artwork-single__status-row {
	justify-content: flex-start;
}

.ar-artwork-single__rail--meta-right .ar-artwork-single__status-row {
	justify-content: flex-end;
}

.ar-artwork-single__availability,
.ar-artwork-single__price {
	margin: 0;
	font-family: var(--ar-font-body-selected, var(--wp--preset--font-family--primary, sans-serif));
	font-size: calc(14px * var(--ar-body-scale, 1));
	font-weight: var(--wp--custom--font-weight--regular, 400);
	line-height: 1.7;
	color: var(--ar-text-soft);
}

.ar-artwork-single__browse-link {
	font-family: var(--wp--preset--font-family--primary, sans-serif);
	font-size: 10px;
	font-weight: var(--wp--custom--font-weight--medium, 500);
	letter-spacing: .16em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--ar-text);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

.ar-artwork-single__inquiry-shell {
	display: grid;
	width: min(100%, 16rem);
	gap: 16px;
	padding-top: 10px;
	position: static;
	bottom: auto;
	justify-items: center;
	justify-self: center;
	margin-top: -15px;
	margin-inline: auto;
	flex: 0 0 auto;
}

.ar-artwork-single__inquiry {
	width: 0;
	height: 0;
}

.ar-artwork-single__inquiry-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 10rem;
	padding: 11px 24px;
	border: 1px solid var(--ar-rule);
	background: transparent;
	font-family: var(--ar-font-base-selected, var(--wp--preset--font-family--primary, sans-serif));
	font-size: 14px;
	font-weight: var(--wp--custom--font-weight--regular, 400);
	line-height: 1.3;
	color: var(--ar-text);
	text-align: center;
	cursor: pointer;
	transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.ar-artwork-single__inquiry-toggle:hover,
.ar-artwork-single__inquiry-toggle[aria-expanded="true"] {
	border-color: var(--ar-text-soft);
	background: var(--ar-fill-soft);
}

.ar-inquiry-wrap {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .35s ease;
}

.ar-inquiry-wrap--open {
	grid-template-rows: 1fr;
}

.ar-inquiry-panel {
	overflow: hidden;
}

.ar-inquiry-panel-inner {
	padding-bottom: 40px;
}

.ar-inquiry-wrap--artwork-modal {
	position: fixed;
	inset: 0;
	display: grid;
	grid-template-rows: none;
	place-items: center;
	padding: clamp(20px, 4vw, 40px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: 1000;
}

.ar-inquiry-wrap--artwork-modal.ar-inquiry-wrap--open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.ar-artwork-single__inquiry-backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	background: rgba(17, 17, 17, 0.28);
	cursor: pointer;
}

.ar-inquiry-wrap--artwork-modal .ar-inquiry-panel {
	position: relative;
	z-index: 1;
	width: min(100%, 34rem);
	max-height: min(100svh - 40px, 52rem);
	overflow: auto;
	border: 1px solid rgba(24, 21, 18, 0.12);
	background: rgba(249, 247, 243, 0.98);
	box-shadow: 0 28px 80px rgba(24, 21, 18, 0.18);
}

.ar-inquiry-wrap--artwork-modal .ar-inquiry-panel-inner {
	padding: 24px 24px 26px;
}

.ar-artwork-single__inquiry-dialog {
	display: grid;
	gap: 18px;
}

.ar-artwork-single__inquiry-dialog-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.ar-artwork-single__inquiry-dialog-title {
	margin: 0;
	font-family: var(--ar-font-body-selected, var(--wp--preset--font-family--primary, sans-serif));
	font-size: 14px;
	font-weight: var(--wp--custom--font-weight--regular, 400);
	line-height: 1.6;
	color: var(--ar-text);
}

.ar-artwork-single__inquiry-close {
	appearance: none;
	padding: 0;
	border: 0;
	background: transparent;
	font-family: var(--ar-font-body-selected, var(--wp--preset--font-family--primary, sans-serif));
	font-size: 30px;
	font-weight: 300;
	line-height: 1;
	color: var(--ar-text);
	cursor: pointer;
}

.ar-inquiry-wrap--artwork-modal .ar-inquiry-form-wrap {
	max-width: none;
}

.ar-inquiry-wrap--artwork-modal .ar-form-row label {
	text-align: left;
}

.ar-artwork-single__content {
	order: 3;
	display: grid;
	gap: 36px;
	width: min(100%, 34rem);
	min-width: 0;
	max-width: min(100%, 46rem);
	justify-self: center;
}

.ar-artwork-single__content--intro {
	order: 3;
}

.ar-artwork-single__content--details {
	order: 4;
}

.ar-artwork-single__secondary-media {
	order: 5;
	display: grid;
	gap: 28px;
	width: min(100%, 60rem);
}

.ar-artwork-single__body {
	display: grid;
	gap: 32px;
	max-width: none;
}

.ar-artwork-single__section {
	display: grid;
	gap: 16px;
	padding-top: 28px;
	border-top: 1px solid var(--ar-rule);
}

.ar-artwork-single__description-block {
	display: grid;
	gap: 0;
}

.ar-artwork-description {
	margin: 0;
	font-family: var(--ar-font-body-selected, var(--wp--preset--font-family--primary, sans-serif));
	font-size: calc(1rem * var(--ar-body-scale, 1));
	font-weight: var(--wp--custom--font-weight--regular, 400);
	color: var(--ar-text-soft);
	letter-spacing: .004em;
	line-height: 1.92;
}

.ar-artwork-description p {
	margin: 0 0 14px;
}

.ar-artwork-single__supplemental-details {
	display: grid;
	gap: 6px;
	justify-items: center;
}

.ar-artwork-single__rail--meta-left .ar-artwork-single__supplemental-details {
	justify-items: start;
}

.ar-artwork-single__rail--meta-right .ar-artwork-single__supplemental-details {
	justify-items: end;
}

.ar-artwork-single__supplemental-line {
	margin: 0;
	font-family: var(--ar-font-body-selected, var(--wp--preset--font-family--primary, sans-serif));
	font-size: calc(14px * var(--ar-body-scale, 1));
	font-weight: var(--wp--custom--font-weight--regular, 400);
	line-height: 1.65;
	color: var(--ar-muted);
}

.ar-artwork-single__details-list {
	display: grid;
	gap: 8px;
}

.ar-artwork-single__details-line {
	margin: 0;
	font-family: var(--ar-font-body-selected, var(--wp--preset--font-family--primary, sans-serif));
	font-size: calc(1rem * var(--ar-body-scale, 1));
	line-height: 1.75;
	color: var(--ar-text-soft);
}

.ar-artwork-single__section-title,
.ar-edition-types__heading,
.ar-also-available__heading {
	margin: 0;
	font-family: var(--ar-font-identity-selected, var(--wp--preset--font-family--primary, sans-serif));
	font-size: clamp(calc(1.35rem * var(--ar-heading-scale, 1)), calc(2.1vw * var(--ar-heading-scale, 1)), calc(2rem * var(--ar-heading-scale, 1)));
	font-weight: var(--wp--custom--font-weight--medium, 500);
	letter-spacing: .18em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--ar-muted);
}

.ar-edition-types,
.ar-also-available,
.ar-artwork-media {
	margin: 0;
}

.ar-edition-types {
	overflow-x: auto;
}

.ar-artwork-single__content--details > .ar-edition-types:last-child {
	margin-bottom: 20px;
}

.ar-edition-types__table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--wp--preset--font-family--primary, sans-serif);
	font-size: 14px;
	color: var(--ar-text-soft);
}

.ar-edition-types__table th {
	margin: 0;
	padding: 6px 12px 6px 0;
	border-bottom: 1px solid var(--ar-rule);
	font-family: var(--wp--preset--font-family--primary, sans-serif);
	font-size: calc(10px * var(--ar-body-scale, 1));
	font-weight: var(--wp--custom--font-weight--medium, 500);
	letter-spacing: .16em;
	line-height: 1.4;
	text-align: left;
	text-transform: uppercase;
	color: var(--ar-muted);
	white-space: nowrap;
}

.ar-edition-types__table td {
	padding: 10px 12px 10px 0;
	border-bottom: 1px solid var(--ar-outline-soft);
	vertical-align: top;
}

.ar-edition-types__table tr:last-child td {
	border-bottom: none;
}

.ar-edition-types__note {
	display: block;
	margin-top: 4px;
	color: var(--ar-muted-strong);
	font-size: 12px;
	line-height: 1.4;
}

.ar-also-available__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ar-also-available__item {
	border-bottom: 1px solid var(--ar-outline-soft);
}

.ar-also-available__item:last-child {
	border-bottom: none;
}

.ar-also-available__link {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 12px 0;
	text-decoration: none;
	color: inherit;
}

.ar-also-available__link:hover .ar-also-available__title {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ar-also-available__title {
	font-family: var(--ar-font-identity-selected, var(--wp--preset--font-family--primary, sans-serif));
	font-size: calc(14px * var(--ar-heading-scale, 1));
	color: var(--ar-text-strong);
}

.ar-also-available__price {
	font-family: var(--wp--preset--font-family--primary, sans-serif);
	font-size: 13px;
	color: var(--ar-muted-strong);
	white-space: nowrap;
}

.ar-artwork-media {
	padding-top: 28px;
	border-top: 1px solid var(--ar-rule);
}

.ar-artwork-media__embed {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
}

.ar-artwork-media__embed iframe,
.ar-artwork-media__embed video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.ar-artwork-media__video {
	width: 100%;
	display: block;
}

.ar-artwork-media__link,
.ar-artwork-media__file {
	font-size: 13px;
	color: var(--ar-muted-strong);
	text-decoration: underline;
	word-break: break-all;
}

.ar-artwork-media__link:hover,
.ar-artwork-media__file:hover {
	color: var(--ar-text-strong);
}

.ar-artwork-nav {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
	gap: 24px;
	margin: 0;
	padding-top: 28px;
	border-top: 1px solid var(--ar-rule);
}

.ar-artwork-nav__return {
	display: grid;
	gap: 6px;
	color: var(--ar-text);
	text-decoration: none;
	width: 100%;
	max-width: none;
	justify-items: start;
}

.ar-artwork-nav__return--button {
	appearance: none;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	font: inherit;
	text-align: left;
}

.ar-artwork-nav__return:hover {
	color: var(--ar-text-strong);
}

.ar-artwork-nav--viewing-room,
.ar-artwork-nav--single-return {
	grid-template-columns: minmax(0, 1fr);
}

.ar-artwork-nav__label {
	font-size: 15px;
	line-height: 1.35;
}

.ar-artwork-nav__meta {
	margin: 0;
	font-family: var(--wp--preset--font-family--primary, sans-serif);
	font-size: calc(10px * var(--ar-body-scale, 1));
	font-weight: var(--wp--custom--font-weight--medium, 500);
	letter-spacing: .16em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--ar-muted);
}

@media (max-width: 1100px) {
	.ar-artwork-single {
		gap: 38px;
	}
}

@media (max-width: 959px) {
	.ar-artwork-inner {
		padding: 48px var(--ar-gutter-right) 72px var(--ar-gutter);
		padding-top: var(--ar-featured-entry-page-top-spacing-mobile);
	}

	.ar-artwork-single {
		gap: 30px;
	}

	.ar-artwork-single__media {
		width: 100%;
		padding-top: var(--ar-featured-entry-media-top-spacing-mobile);
	}

	.ar-artwork-figure--primary .ar-artwork-image {
		max-height: var(--ar-featured-artwork-mobile-max-height);
	}

	.ar-artwork-gallery__image {
		max-height: var(--ar-featured-artwork-mobile-max-height);
	}

	.ar-artwork-gallery.is-enhanced .ar-artwork-gallery__viewport,
	.ar-artwork-gallery.is-enhanced .ar-artwork-gallery__track,
	.ar-artwork-gallery.is-enhanced .ar-artwork-gallery__slide.is-active {
		height: var(--ar-artwork-gallery-mobile-viewport-height);
	}

	.ar-artwork-gallery__thumb {
		width: 58px;
	}

	.ar-artwork-single__rail,
	.ar-artwork-single__content,
	.ar-artwork-single__secondary-media {
		width: 100%;
		max-width: none;
	}

	.ar-artwork-nav {
		display: flex;
		flex-direction: column;
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.ar-artwork-description {
		font-size: 1rem;
	}

	.ar-artwork-single__rail {
		position: static;
	}
}
