/* Artwork Registry — single artwork presentation
 *
 * This file owns everything specific to one Artwork's own detail page: the
 * media gallery (image/magnify/lightbox-trigger), the title/meta rail, the
 * artwork/editorial inquiry dialog's layout (its token overrides for text
 * color live in frontend.css — see .ar-inquiry-wrap--artwork-modal there),
 * edition-type and "also available" listings, and prev/next artwork
 * navigation. It does not own the Works/Series grid a visitor arrived from
 * (see frontend-works.css) or the shared lightbox shell mechanics used by
 * both artwork and blog-post lightboxes (see public-lightbox.css).
 *
 * For what each --ar-* custom property means, see
 * docs/systems/settings/2026-09-19-public-css-token-reference.md.
 *
 * FILE MAP
 * --------
 * 1.  Page wrapper and featured-entry top-spacing (default lives in
 *     frontend.css; this file only reads it, see the comment at its use)
 * 2.  Media: figure, image, and the artwork gallery/magnify system
 * 3.  Artwork caption
 * 4.  Inquiry dialog layout (artwork/editorial modal open state, panel,
 *     dialog-specific text-color token overrides)
 * 5.  Artwork description
 * 6.  Edition types, "also available," and supplemental artwork media
 * 7.  Prev/next artwork navigation, including Viewing Room return link
 * 8.  Responsive (three breakpoints) and reduced-motion
 * 9.  Image-left/details-right detail layout — an alternate presentation
 *     chosen via the "Artwork Detail Presentation" Display Option
 *     (ar_artwork_detail_presentation); scoped entirely to its own modifier
 *     class so the default centered layout above is untouched by it
 */

.ar-artwork-page {
	--ar-artwork-media-max-width: 1200px;
	--ar-featured-artwork-max-width: min(100%, 84rem);
	--ar-featured-artwork-max-height: min(calc(100svh - 252px), 1200px);
	--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;
}

/* Featured-entry top-spacing default: frontend.css, ".ar-archive-inner--works-page, .ar-artwork-inner" rule. */
.ar-artwork-inner {
	max-width: var(--ar-frame-max-width);
	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-image {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

.ar-artwork-gallery {
	--ar-artwork-gallery-control-space: clamp(56px, 6vw, 76px);
	display: grid;
	width: 100%;
	gap: 18px;
	justify-items: center;
}

.ar-artwork-gallery__viewport {
	position: relative;
	display: grid;
	width: min(100%, calc(var(--ar-artwork-media-max-width) + (var(--ar-artwork-gallery-control-space) * 2)));
	max-width: 100%;
	align-items: center;
	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__slide--video {
	width: 100%;
}

.ar-artwork-gallery__video-shell {
	position: relative;
	width: min(100%, 1120px);
	aspect-ratio: 16 / 9;
	background: #111;
	overflow: hidden;
}

.ar-artwork-gallery__video-content,
.ar-artwork-gallery__video-embed,
.ar-artwork-gallery__video-embed iframe,
.ar-artwork-gallery__video-embed video {
	width: 100%;
	height: 100%;
}

.ar-artwork-gallery__video-content,
.ar-artwork-gallery__video-embed {
	position: absolute;
	inset: 0;
}

.ar-artwork-gallery__video-embed iframe,
.ar-artwork-gallery__video-embed video {
	display: block;
	border: 0;
}

.ar-artwork-gallery__video-embed > :first-child {
	margin-top: 0;
}

.ar-artwork-gallery__video-embed > :last-child {
	margin-bottom: 0;
}

.ar-artwork-gallery__video-fallback {
	display: grid;
	width: 100%;
	height: 100%;
	padding: 32px;
	place-items: center;
	text-align: center;
}

.ar-artwork-gallery__video-fallback a {
	color: #fff;
	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.5;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .22em;
}

.ar-artwork-gallery__video-fallback a:hover,
.ar-artwork-gallery__video-fallback a:focus-visible {
	text-decoration-thickness: 2px;
}

.ar-artwork-gallery__video-lightbox-trigger {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: inline-flex;
	gap: 7px;
	align-items: center;
	padding: 9px 12px;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 999px;
	background: rgba(15, 13, 12, .82);
	color: #fff;
	font: inherit;
	font-size: .82rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease;
}

.ar-artwork-gallery__video-lightbox-trigger:hover,
.ar-artwork-gallery__video-lightbox-trigger:focus-visible {
	border-color: #fff;
	background: rgba(15, 13, 12, .96);
	outline: none;
}

.ar-artwork-gallery__video-lightbox-icon {
	font-size: 1rem;
}

.ar-artwork-gallery__image-shell {
	appearance: none;
	position: relative;
	display: inline-grid;
	width: fit-content;
	max-width: 100%;
	padding: 0;
	border: 0;
	align-items: center;
	background: transparent;
	color: inherit;
	cursor: zoom-in;
	font: inherit;
	justify-items: center;
}

.ar-artwork-gallery__image-shell--static {
	cursor: default;
}

.ar-artwork-gallery__image-shell--magnify {
	--ar-artwork-magnify-scale: 2;
	--ar-artwork-magnify-x: 50%;
	--ar-artwork-magnify-y: 50%;
	overflow: hidden;
}

.ar-artwork-gallery__image-shell--magnify.is-magnify-unavailable {
	cursor: default;
}

.ar-artwork-gallery__magnified-image {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: contain;
	opacity: 0;
	pointer-events: none;
	transform: scale(var(--ar-artwork-magnify-scale));
	transform-origin: var(--ar-artwork-magnify-x) var(--ar-artwork-magnify-y);
	transition: opacity .14s ease;
	user-select: none;
}

.ar-artwork-gallery__image-shell--magnify.is-magnify-ready.is-magnifying .ar-artwork-gallery__magnified-image {
	opacity: 1;
}

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

.ar-artwork-gallery.is-zoomable .ar-artwork-gallery__image {
	cursor: zoom-in;
}

/* The work is never dimmed or recoloured on hover (2.8.89); the zoom-in
   cursor is the cue, and keyboard focus gets the outline below. */

.ar-artwork-gallery__image-shell:focus-visible {
	outline: 1px solid var(--ar-text);
	outline-offset: 8px;
}

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

.ar-artwork-gallery.is-enhanced .ar-artwork-gallery__track,
.ar-artwork-gallery.is-enhanced .ar-artwork-gallery__slide.is-active {
	width: 100%;
	max-width: 100%;
}

.ar-artwork-gallery.is-enhanced .ar-artwork-gallery__viewport {
	grid-template-columns: var(--ar-artwork-gallery-control-space) minmax(0, var(--ar-artwork-media-max-width)) var(--ar-artwork-gallery-control-space);
	justify-content: center;
}

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

.ar-artwork-gallery.is-enhanced .ar-artwork-gallery__track {
	grid-column: 2;
}

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

.ar-artwork-gallery.is-enhanced .ar-artwork-gallery__image-shell {
	width: auto;
	height: auto;
	max-width: 100%;
}

.ar-artwork-gallery.is-enhanced .ar-artwork-gallery__image {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: var(--ar-featured-artwork-max-height);
	object-fit: contain;
}

/* Small images fill their column up to 1.5x their real width (2.8.89), and
   never past the usual height limit. The shell's width follows the smallest
   of: the column, 1.5x the image, and the width the height limit allows. */
.ar-artwork-gallery.is-enhanced .ar-artwork-gallery__slide--sized .ar-artwork-gallery__image-shell {
	width: min(100%, var(--ar-artwork-image-max-width), calc(var(--ar-featured-artwork-max-height) * var(--ar-artwork-image-ratio)));
}

.ar-artwork-gallery.is-enhanced .ar-artwork-gallery__slide--sized .ar-artwork-gallery__image {
	width: 100%;
	max-height: none;
}

.ar-artwork-gallery__arrow {
	position: absolute;
	top: 50%;
	display: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--ar-image-nav-border);
	border-radius: 999px;
	background: transparent;
	color: var(--ar-image-nav-text);
	font-family: var(--ar-font-body-selected, var(--wp--preset--font-family--primary, sans-serif));
	font-size: 32px;
	font-weight: 400;
	line-height: 1;
	transform: translateY(-50%);
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease, transform .16s var(--ar-ease-out);
}

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

/* Thumbnails and the keyboard navigate the gallery on wider screens, so the
   arrows step aside and the image takes their reserved columns. */
@media (min-width: 960px) {
	.ar-artwork-gallery {
		--ar-artwork-gallery-control-space: 0px;
	}

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

	/* Keep the thumbnail row inside the first screen with the image. */
	.ar-artwork-gallery:has(.ar-artwork-gallery__thumbs) {
		--ar-featured-artwork-max-height: min(calc(100svh - 352px), 1200px);
	}
}

.ar-artwork-gallery__arrow:focus-visible {
	background: var(--ar-image-nav-bg-hover);
	border-color: var(--ar-image-nav-border-hover);
	color: var(--ar-image-nav-text-hover);
	outline: none;
	transform: translateY(-50%) scale(1.04);
}

@media (hover: hover) and (pointer: fine) {
	.ar-artwork-gallery__arrow:hover {
		background: var(--ar-image-nav-bg-hover);
		border-color: var(--ar-image-nav-border-hover);
		color: var(--ar-image-nav-text-hover);
		outline: none;
		transform: translateY(-50%) scale(1.04);
	}
}

.ar-artwork-gallery__arrow--prev {
	left: 0;
}

.ar-artwork-gallery__arrow--next {
	right: 0;
}

.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-gallery__thumb-video {
	position: relative;
	display: grid;
	width: 100%;
	height: 100%;
	background: #111;
	place-items: center;
}

.ar-artwork-gallery__thumb-video > .ar-artwork-gallery__thumb-image {
	position: absolute;
	inset: 0;
}

/* The play mark sits on the poster frame in a small dark disc so it reads on
   any image. */
.ar-artwork-gallery__thumb-play {
	position: relative;
	width: 0;
	height: 0;
	margin-left: 3px;
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	border-left: 13px solid #fff;
}

.ar-artwork-gallery__thumb-video.has-poster .ar-artwork-gallery__thumb-play {
	width: 26px;
	height: 26px;
	margin-left: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(17, 17, 17, .55);
}

.ar-artwork-gallery__thumb-video.has-poster .ar-artwork-gallery__thumb-play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 8px solid #fff;
	transform: translate(-35%, -50%);
}

.ar-artwork-caption {
	margin-top: 8px;
	font-family: var(--ar-font-metadata-selected, var(--wp--preset--font-family--primary, sans-serif));
	font-size: calc(13px * var(--ar-artwork-meta-scale, 1));
	color: var(--ar-muted);
	line-height: var(--ar-caption-line-height, 1.45);
	letter-spacing: var(--ar-metadata-letter-spacing-adjustment, 0em);
}

.ar-artwork-gallery__screen-reader-caption {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.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-metadata-selected, var(--wp--preset--font-family--primary, sans-serif));
	/* The work's name stays quieter than the work (human preference
	   2026-10-15): the size of the header navigation, regular weight (the
	   bundled fonts have no light cut, so 300 would render as 400 anyway),
	   still scaled by the Artwork details size setting. */
	font-size: calc(1.15rem * var(--ar-artwork-meta-scale, 1));
	font-weight: var(--wp--custom--font-weight--regular, 400);
	line-height: 1.3;
	letter-spacing: calc(-0.012em + var(--ar-metadata-letter-spacing-adjustment, 0em));
	text-wrap: balance;
	color: var(--ar-text);
}

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

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

/* Gallery Mode: the artist, above the title, linking to their page, at the
   title's size (human review 2026-10-15): on a gallery site the artist
   carries as much weight as the work's name. */
.ar-artwork-single__artist {
	margin: 0 0 -4px;
	font-family: var(--ar-font-metadata-selected, var(--wp--preset--font-family--primary, sans-serif));
	font-size: calc(1.15rem * var(--ar-artwork-meta-scale, 1));
	font-weight: var(--wp--custom--font-weight--regular, 400);
	line-height: 1.4;
	letter-spacing: var(--ar-metadata-letter-spacing-adjustment, 0em);
	/* Artist, title, and year share the full text colour; only the facts
	   below the hairline are softer (human review 2026-10-15). */
	color: var(--ar-text);
}

.ar-artwork-single__artist-link {
	color: inherit;
	text-decoration-line: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 1px;
	text-underline-offset: .28em;
}

.ar-artwork-single__artist-link:focus-visible {
	text-decoration-color: currentColor;
}

@media (hover: hover) and (pointer: fine) {
	.ar-artwork-single__artist-link {
		transition: text-decoration-color .2s ease;
	}

	.ar-artwork-single__artist-link:hover {
		text-decoration-color: currentColor;
	}
}

/* Medium, size, edition, status, and price: one block under a hairline, the
   same structure as the Exhibitions rows' dates and venue. */
.ar-artwork-single__facts {
	display: grid;
	gap: 6px;
	min-width: min(100%, 16rem);
	margin-top: 10px;
	padding-top: 18px;
	border-top: 1px solid var(--ar-border-soft, var(--ar-rule));
	justify-items: inherit;
}

.ar-artwork-single__facts .ar-artwork-single__supplemental-details,
.ar-artwork-single__facts .ar-artwork-single__status-row {
	padding-top: 0;
}

/* One rhythm for every facts line: the nested edition list adds no gap of its
   own, and its lines share the summary's line height (2.8.89). */
.ar-artwork-single__facts .ar-artwork-single__supplemental-details {
	gap: 6px;
}

.ar-artwork-single__facts .ar-artwork-single__supplemental-line {
	line-height: 1.7;
}

/* Edition line separator: a quieter dot with room on both sides. */
.ar-artwork-single__separator {
	margin-inline: .5em;
	color: var(--ar-muted);
	opacity: .55;
}

/* A reproduction names its original under the title, like a wall label
   (NEXT-STEPS item 77, 2.8.130). */
.ar-artwork-single__reproduction-of {
	margin: 10px 0 0;
	max-width: min(100%, 38rem);
	font-family: var(--ar-font-metadata-selected, var(--wp--preset--font-family--primary, sans-serif));
	font-size: calc(14px * var(--ar-artwork-meta-scale, 1));
	line-height: 1.7;
	letter-spacing: var(--ar-metadata-letter-spacing-adjustment, 0em);
	color: var(--ar-text-soft);
}

.ar-artwork-single__reproduction-of cite {
	font-style: italic;
}

.ar-artwork-single__reproduction-of-link {
	color: inherit;
	text-underline-offset: .2em;
}

/* "Reproductions available" sits under the facts in the rail. */
.ar-artwork-single__reproductions {
	width: 100%;
	min-width: min(100%, 16rem);
	margin-top: 24px;
}

.ar-artwork-single__summary {
	margin: 0;
	max-width: min(100%, 38rem);
	font-family: var(--ar-font-metadata-selected, var(--wp--preset--font-family--primary, sans-serif));
	font-size: calc(14px * var(--ar-artwork-meta-scale, 1));
	font-weight: var(--wp--custom--font-weight--regular, 400);
	line-height: 1.7;
	letter-spacing: var(--ar-metadata-letter-spacing-adjustment, 0em);
	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-metadata-selected, var(--wp--preset--font-family--primary, sans-serif));
	font-size: calc(14px * var(--ar-artwork-meta-scale, 1));
	font-weight: var(--wp--custom--font-weight--regular, 400);
	line-height: 1.7;
	letter-spacing: var(--ar-metadata-letter-spacing-adjustment, 0em);
	color: var(--ar-text-soft);
}

.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 {
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 10rem;
	padding: 12px 28px;
	border: 1px solid var(--ar-border-soft, var(--ar-rule));
	border-radius: 0;
	background: transparent;
	font-family: var(--ar-font-metadata-selected, var(--wp--preset--font-family--primary, sans-serif));
	font-size: var(--ar-type-label);
	font-weight: var(--wp--custom--font-weight--regular, 400);
	letter-spacing: var(--ar-type-label-tracking);
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--ar-text);
	text-align: center;
	cursor: pointer;
	transition: transform 160ms ease-out;
}

.ar-artwork-single__inquiry-toggle:active {
	transform: scale(0.97);
}

.ar-artwork-single__inquiry-toggle:focus-visible {
	outline: 2px solid var(--ar-text);
	outline-offset: 4px;
}

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

/* Quieter than the title (2.8.89): a light rule that darkens on hover. */
@media (hover: hover) and (pointer: fine) {
	.ar-artwork-single__inquiry-toggle {
		transition: transform 160ms ease-out, border-color .2s ease;
	}

	.ar-artwork-single__inquiry-toggle:hover {
		border-color: var(--ar-text);
	}
}

.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;
}

/* Entrance (2.8.89): the dialog and its backdrop fade in while the panel
   scales from 0.97, 200ms with a strong ease-out from the centre; closing is
   faster (150ms). Visibility waits for the fade so the exit is seen. */
.ar-inquiry-wrap--artwork-modal {
	transition: opacity 150ms ease-out, visibility 0s linear 150ms;
}

.ar-inquiry-wrap--artwork-modal.ar-inquiry-wrap--open {
	transition: opacity 200ms var(--ar-ease-out), visibility 0s;
}

.ar-inquiry-wrap--artwork-modal .ar-inquiry-panel {
	transform: scale(0.97);
	transition: transform 150ms ease-out;
}

.ar-inquiry-wrap--artwork-modal.ar-inquiry-wrap--open .ar-inquiry-panel {
	transform: none;
	transition: transform 200ms var(--ar-ease-out);
}

@media (prefers-reduced-motion: reduce) {
	.ar-inquiry-wrap--artwork-modal .ar-inquiry-panel,
	.ar-inquiry-wrap--artwork-modal.ar-inquiry-wrap--open .ar-inquiry-panel {
		transform: none;
		transition: none;
	}
}

.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: var(--ar-surface, #f9f7f3);
	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__body {
	display: grid;
	gap: 32px;
	max-width: none;
}

.ar-artwork-single__section {
	display: grid;
	gap: 16px;
	padding-top: 20px;
}

.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: calc(.004em + var(--ar-body-letter-spacing-adjustment, 0em));
	line-height: var(--ar-body-line-height, 1.8);
}

.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-metadata-selected, var(--wp--preset--font-family--primary, sans-serif));
	font-size: calc(14px * var(--ar-artwork-meta-scale, 1));
	font-weight: var(--wp--custom--font-weight--regular, 400);
	line-height: 1.65;
	letter-spacing: var(--ar-metadata-letter-spacing-adjustment, 0em);
	color: var(--ar-muted);
}

/* Section headings use the Artists / artist page divider: a small-caps label
   with a thin rule running to the edge (2.8.89). */
.ar-artwork-single__section-title,
.ar-also-available__heading {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0 0 8px;
	font-family: var(--wp--preset--font-family--primary, sans-serif);
	font-size: var(--ar-type-label);
	font-weight: var(--wp--custom--font-weight--regular, 400);
	letter-spacing: var(--ar-type-label-tracking);
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--ar-muted-strong);
}

.ar-artwork-single__section-title::after,
.ar-also-available__heading::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: var(--ar-border-soft, var(--ar-rule));
}

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

.ar-artwork-exhibition-history__list {
	display: grid;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ar-artwork-exhibition-history__item {
	display: grid;
	grid-template-columns: minmax(5.5rem, auto) minmax(0, 1fr);
	gap: 22px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--ar-outline-soft);
}

.ar-artwork-exhibition-history__item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.ar-artwork-exhibition-history__date,
.ar-artwork-exhibition-history__details,
.ar-artwork-exhibition-history__curator,
.ar-artwork-exhibition-history__links {
	margin: 0;
	font-family: var(--ar-font-metadata-selected, var(--wp--preset--font-family--primary, sans-serif));
	font-size: calc(13px * var(--ar-artwork-meta-scale, 1));
	line-height: 1.6;
	letter-spacing: var(--ar-metadata-letter-spacing-adjustment, 0em);
	color: var(--ar-muted);
}

.ar-artwork-exhibition-history__content {
	display: grid;
	gap: 5px;
}

.ar-artwork-exhibition-history__title {
	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--medium, 500);
	line-height: var(--ar-body-line-height, 1.8);
	letter-spacing: var(--ar-body-letter-spacing-adjustment, 0em);
	color: var(--ar-text);
}

.ar-artwork-exhibition-history__links {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 14px;
	margin-top: 3px;
}

.ar-artwork-exhibition-history__links a {
	color: inherit;
	text-underline-offset: .2em;
}








.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-metadata-selected, var(--wp--preset--font-family--primary, sans-serif));
	font-size: calc(14px * var(--ar-artwork-meta-scale, 1));
	color: var(--ar-text-strong);
	letter-spacing: var(--ar-metadata-letter-spacing-adjustment, 0em);
}

.ar-also-available__price {
	font-family: var(--ar-font-metadata-selected, var(--wp--preset--font-family--primary, sans-serif));
	font-size: calc(13px * var(--ar-artwork-meta-scale, 1));
	color: var(--ar-muted-strong);
	letter-spacing: var(--ar-metadata-letter-spacing-adjustment, 0em);
	white-space: nowrap;
}

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

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

.ar-artwork-media__file {
	justify-self: start;
	font-family: var(--ar-font-body-selected, var(--wp--preset--font-family--primary, sans-serif));
	font-size: calc(.95rem * var(--ar-body-scale, 1));
	line-height: 1.5;
	color: var(--ar-text);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .22em;
	overflow-wrap: anywhere;
}

.ar-artwork-media__file:hover,
.ar-artwork-media__file:focus-visible {
	color: var(--ar-text-strong);
	text-decoration-thickness: 2px;
}

/* Documents marked Show publicly (2.8.100). Same row pattern as Also
   Available As: the whole row opens the document, the label sits in the body
   face and a short note (PDF size, or the site a link goes to) sits in the
   metadata face. The section title already draws the rule above, so the
   block adds none. The arrow nudges toward where the link goes on hover. */
.ar-artwork-documents__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

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

.ar-artwork-documents__item:last-child {
	border-bottom: 0;
}

.ar-artwork-documents__link {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 6px 20px;
	flex-wrap: wrap;
	padding: 12px 0;
	color: inherit;
	text-decoration: none;
}

.ar-artwork-documents__label {
	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--medium, 500);
	line-height: 1.5;
	letter-spacing: var(--ar-body-letter-spacing-adjustment, 0em);
	color: var(--ar-text);
	overflow-wrap: anywhere;
}

.ar-artwork-documents__note {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	font-family: var(--ar-font-metadata-selected, var(--wp--preset--font-family--primary, sans-serif));
	font-size: calc(13px * var(--ar-artwork-meta-scale, 1));
	letter-spacing: var(--ar-metadata-letter-spacing-adjustment, 0em);
	color: var(--ar-muted-strong);
	white-space: nowrap;
}

.ar-artwork-documents__arrow {
	display: inline-block;
	transition: transform 160ms ease;
}

.ar-artwork-documents__link:hover .ar-artwork-documents__label,
.ar-artwork-documents__link:focus-visible .ar-artwork-documents__label {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .22em;
	color: var(--ar-text-strong);
}

.ar-artwork-documents__link:hover .ar-artwork-documents__arrow,
.ar-artwork-documents__link:focus-visible .ar-artwork-documents__arrow {
	transform: translate(2px, -2px);
}

.ar-artwork-documents__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.ar-artwork-documents .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.ar-artwork-documents__arrow {
		transition: none;
	}
}

.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--single-return {
	grid-template-columns: minmax(0, 1fr);
}

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

/* Works section return plus previous/next artwork within that section. */
.ar-artwork-nav--sequence {
	display: block;
}

.ar-artwork-sequence {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 24px 48px;
	font-family: var(--ar-font-body-selected, var(--wp--preset--font-family--primary, sans-serif));
}

.ar-artwork-sequence[hidden] {
	display: none;
}

.ar-artwork-sequence__section,
.ar-artwork-sequence__step {
	color: var(--ar-nav-link-dim, var(--ar-text));
	text-decoration: none;
	transition: color .2s ease;
}

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

/* Previous and Next are one pair at the right edge (2.8.89), each a matched
   label-over-title stack, so their spacing reads as intentional. */
.ar-artwork-sequence__steps {
	display: flex;
	gap: clamp(32px, 4vw, 64px);
	margin-left: auto;
}

.ar-artwork-sequence__step {
	display: grid;
	gap: 4px;
	min-width: 0;
	max-width: 16rem;
	justify-items: end;
	text-align: right;
}

.ar-artwork-sequence__direction {
	font-size: var(--ar-type-label);
	font-weight: var(--wp--custom--font-weight--medium, 500);
	letter-spacing: var(--ar-type-label-tracking);
	line-height: 1.4;
	text-transform: uppercase;
}

.ar-artwork-sequence__title {
	overflow: hidden;
	max-width: 100%;
	color: var(--ar-text);
	font-size: 15px;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ar-artwork-sequence__section:focus-visible,
.ar-artwork-sequence__step:focus-visible {
	color: var(--ar-link-hover, var(--ar-text-strong, var(--ar-text)));
	transition: none;
}

@media (hover: hover) and (pointer: fine) {
	.ar-artwork-sequence__section:hover,
	.ar-artwork-sequence__step:hover {
		color: var(--ar-link-hover, var(--ar-text-strong, var(--ar-text)));
		text-decoration: underline;
		text-decoration-thickness: 1px;
		text-underline-offset: 0.28em;
	}
}

@media (max-width: 600px) {
	.ar-artwork-sequence__steps {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
		width: 100%;
	}

	.ar-artwork-sequence__step--previous {
		justify-items: start;
		text-align: left;
	}

	.ar-artwork-sequence__step--next {
		grid-column: 2;
	}
}

@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-gallery__image {
		max-height: var(--ar-featured-artwork-mobile-max-height);
	}

	.ar-artwork-gallery {
		--ar-artwork-gallery-control-space: 0px;
		gap: 14px;
	}

	.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: auto;
	}

	.ar-artwork-gallery.is-enhanced .ar-artwork-gallery__viewport {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Swipe and the thumbnails already move through the media on phones, so
	   the arrows (and the row they reserved) are left out (2.8.89). The
	   keyboard arrows still work. */
	.ar-artwork-gallery.is-enhanced .ar-artwork-gallery__arrow {
		display: none;
	}

	.ar-artwork-gallery.is-enhanced .ar-artwork-gallery__track {
		grid-column: 1;
	}

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

	.ar-artwork-gallery.is-enhanced .ar-artwork-gallery__slide--sized .ar-artwork-gallery__image-shell {
		width: min(100%, var(--ar-artwork-image-max-width), calc(var(--ar-featured-artwork-mobile-max-height) * var(--ar-artwork-image-ratio)));
	}

	.ar-artwork-gallery.is-enhanced .ar-artwork-gallery__slide--sized .ar-artwork-gallery__image {
		max-height: none;
	}

	.ar-artwork-gallery__arrow {
		top: auto;
		bottom: 0;
		width: 48px;
		height: 48px;
		transform: none;
	}

	.ar-artwork-gallery__arrow:focus-visible {
		transform: scale(1.04);
	}

	@media (hover: hover) and (pointer: fine) {
		.ar-artwork-gallery__arrow:hover {
			transform: scale(1.04);
		}
	}

	.ar-artwork-gallery__arrow--prev {
		left: calc(50% - 58px);
	}

	.ar-artwork-gallery__arrow--next {
		right: calc(50% - 58px);
	}

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

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

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

@media (max-width: 768px) {
	.ar-artwork-exhibition-history__item {
		grid-template-columns: minmax(0, 1fr);
		gap: 5px;
	}

	.ar-artwork-description {
		font-size: calc(1rem * var(--ar-body-scale, 1));
	}

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

@media (prefers-reduced-motion: reduce) {
	.ar-artwork-gallery__magnified-image {
		transition: none;
	}
}

/* Room for two-line titles in the narrow details column (2.8.89). */
.ar-artwork-single__title { line-height: max(1.1, calc(1.3 + var(--ar-heading-line-height-adjustment, 0))); }
.ar-also-available__title { line-height: var(--ar-caption-line-height, 1.45); }

/* ---------------------------------------------------------------------------
   Centered detail layout: Inquire joins the details and quieter thumbnails.
   The larger label sizes below apply to both detail layouts. The description
   uses the same Body Text size as Works page section intros and Series
   descriptions (--ar-type-body), not an artwork-page-specific size.
   --------------------------------------------------------------------------- */

.ar-artwork-single--centered > .ar-artwork-single__inquiry-shell {
	order: 2;
	margin-top: calc(24px - clamp(28px, 3vw, 40px));
	padding-top: 0;
}

@media (min-width: 960px) {
	.ar-artwork-single__title,
	.ar-artwork-single__artist {
		font-size: calc(1.25rem * var(--ar-artwork-meta-scale, 1));
	}

	.ar-artwork-single__summary,
	.ar-artwork-single__availability,
	.ar-artwork-single__price,
	.ar-artwork-single__facts .ar-artwork-single__supplemental-line {
		font-size: calc(15px * var(--ar-artwork-meta-scale, 1));
	}

	.ar-artwork-single--centered > .ar-artwork-single__content {
		width: min(100%, var(--ar-reading-width, 48rem));
		max-width: min(100%, var(--ar-reading-width, 48rem));
	}

	.ar-artwork-single .ar-artwork-description {
		font-size: var(--ar-type-body);
		line-height: var(--ar-body-line-height, 1.75);
	}

	.ar-artwork-single .ar-artwork-description p {
		margin-bottom: .9em;
	}

	.ar-artwork-single--centered .ar-artwork-gallery {
		gap: 32px;
	}

	.ar-artwork-single .ar-artwork-gallery__thumbs {
		gap: 12px;
	}

	.ar-artwork-single .ar-artwork-gallery__thumb {
		width: 56px;
		border: 0;
		opacity: .45;
		transition: box-shadow .2s ease, opacity .2s ease;
	}

	.ar-artwork-single .ar-artwork-gallery__thumb.is-active {
		box-shadow: 0 7px 0 -6px var(--ar-text);
		opacity: 1;
	}

	.ar-artwork-single .ar-artwork-gallery__thumb:focus-visible {
		outline: 1px solid var(--ar-text);
		outline-offset: 3px;
		opacity: 1;
		transition: none;
	}
}

@media (min-width: 960px) and (hover: hover) and (pointer: fine) {
	.ar-artwork-single .ar-artwork-gallery__thumb:hover:not(.is-active) {
		opacity: .8;
	}
}

/* ---------------------------------------------------------------------------
   Image-left / details-right detail layout (ar_artwork_detail_presentation).
   Scoped entirely to the modifier class so the centered presets are untouched.
   2.8.89: the image and caption anchor to the left edge with the details
   top-anchored 60px below the image's top; the description and sections follow as a centred
   reading section at the shared --ar-reading-width.
   --------------------------------------------------------------------------- */

.ar-artwork-single--left-right {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
	column-gap: clamp(40px, 5vw, 96px);
	row-gap: clamp(48px, 5vw, 72px);
	align-items: start;
	width: 100%;
	max-width: none;
}

.ar-artwork-single--left-right > .ar-artwork-single__media {
	grid-column: 1;
	grid-row: 1;
	/* The image always anchors to the top; only the details centre on it. */
	align-self: start;
	order: 0;
	width: 100%;
	max-width: 100%;
	padding-top: 0;
	justify-items: start;
}

/* The work anchors to the column's left edge, in line with the page frame,
   instead of floating in the middle of the column. */
.ar-artwork-single--left-right .ar-artwork-gallery,
.ar-artwork-single--left-right .ar-artwork-gallery__viewport,
.ar-artwork-single--left-right .ar-artwork-gallery__track {
	justify-items: start;
}

.ar-artwork-single--left-right .ar-artwork-gallery {
	gap: 20px;
}

.ar-artwork-single--left-right .ar-artwork-gallery__viewport {
	justify-content: start;
	align-items: start;
}

.ar-artwork-single--left-right .ar-artwork-gallery__slide {
	align-items: flex-start;
	justify-content: flex-start;
}

.ar-artwork-single--left-right .ar-artwork-caption {
	align-self: flex-start;
	text-align: left;
}

/* Thumbnails live in the sticky details column (they stay in reach while the
   description scrolls, and the image keeps its full first-screen height). */
.ar-artwork-single--left-right.is-gallery-enhanced .ar-artwork-single__rail-column .ar-artwork-gallery__thumbs {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	padding: 0;
	overflow: visible;
}

/* The details anchor to the top, set 60px below the image's top edge (human
   preference 2026-10-15). Centring them made them move whenever a thumbnail
   switched to an image of a different height; a top anchor stays put, and
   the drop keeps the two columns from reading as one hard table edge. */
.ar-artwork-single--left-right > .ar-artwork-single__rail-column {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	gap: 36px;
	align-self: start;
	min-width: 0;
	padding-top: 60px;
}

/* Description and sections form a second, reading section centred on the
   page at the shared --ar-reading-width, 48rem (human preference 2026-10-15,
   made site-wide 2026-10-17). The generous break above marks
   the change of axis from the left-aligned spread, so it reads as intended. */
.ar-artwork-single--left-right > .ar-artwork-single__content {
	grid-column: 1 / -1;
	justify-self: center;
	width: min(100%, var(--ar-reading-width, 48rem));
	max-width: min(100%, var(--ar-reading-width, 48rem));
}

.ar-artwork-single--left-right > .ar-artwork-single__rail-column + .ar-artwork-single__content {
	margin-top: clamp(16px, 2.5vw, 40px);
}

/* A text ending already has about 80px before the page navigation; the
   sections (editions, exhibition history) ended tight, so they get the same
   breathing room. */
.ar-artwork-single--left-right > .ar-artwork-single__content--details {
	padding-bottom: clamp(32px, 5vw, 76px);
}

.ar-artwork-single--left-right .ar-artwork-single__rail-column .ar-artwork-single__rail {
	order: 0;
	width: 100%;
	max-width: none;
	margin-inline: 0;
	justify-items: start;
	justify-self: stretch;
	text-align: left;
	padding-left: 0;
	padding-right: 0;
}

.ar-artwork-single--left-right .ar-artwork-single__rail-column .ar-artwork-single__header {
	width: 100%;
	justify-items: start;
	text-align: left;
}

.ar-artwork-single--left-right .ar-artwork-single__rail-column .ar-artwork-single__facts {
	width: 100%;
	justify-items: start;
}

.ar-artwork-single--left-right .ar-artwork-single__rail-column .ar-artwork-single__supplemental-details {
	justify-items: start;
}

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

.ar-artwork-single--left-right .ar-artwork-single__rail-column .ar-artwork-single__inquiry-shell {
	width: 100%;
	margin-top: 0;
	margin-inline: 0;
	padding-top: 0;
	justify-items: start;
	justify-self: stretch;
}

.ar-artwork-single--left-right .ar-artwork-single__rail-column .ar-artwork-single__inquiry-toggle {
	width: auto;
}

@media (max-width: 959px) {
	.ar-artwork-single--left-right {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 30px;
	}

	.ar-artwork-single--left-right > .ar-artwork-single__media,
	.ar-artwork-single--left-right > .ar-artwork-single__rail-column,
	.ar-artwork-single--left-right > .ar-artwork-single__content {
		grid-column: 1;
		grid-row: auto;
	}

	/* Stacked, the details column's parts rejoin the page order so the
	   thumbnails sit right under the image they control. */
	.ar-artwork-single--left-right > .ar-artwork-single__rail-column {
		display: contents;
	}

	.ar-artwork-single--left-right > .ar-artwork-single__media {
		order: 0;
	}

	.ar-artwork-single--left-right > .ar-artwork-single__rail-column {
		padding-top: 0;
	}

	.ar-artwork-single--left-right .ar-artwork-single__rail-column > .ar-artwork-gallery__thumbs {
		order: 1;
		margin-top: -14px;
	}

	.ar-artwork-single--left-right .ar-artwork-single__rail-column > .ar-artwork-single__rail {
		order: 2;
	}

	.ar-artwork-single--left-right .ar-artwork-single__rail-column > .ar-artwork-single__inquiry-shell {
		order: 3;
	}

	.ar-artwork-single--left-right > .ar-artwork-single__content--intro {
		order: 4;
	}

	.ar-artwork-single--left-right > .ar-artwork-single__content--details {
		order: 5;
	}

	.ar-artwork-single--left-right > .ar-artwork-single__rail-column + .ar-artwork-single__content {
		margin-top: 0;
	}
}

/* ---------------------------------------------------------------------------
   Centered detail layout (2.8.89): the work and its name read as one unit,
   and the caption centres under the centred image.
   --------------------------------------------------------------------------- */

.ar-artwork-single--centered {
	gap: clamp(28px, 3vw, 40px);
}

.ar-artwork-single--centered .ar-artwork-caption {
	text-align: center;
}
