/*
 * ZEO 2.1.4 — bounded layout refinement.
 *
 * This layer only adjusts the Artists directory profile and the Commissions
 * enquiry section. It is intentionally loaded after the 2.1.3/reference
 * overlays so the existing page and home contracts remain untouched.
 */

/* Artists: give the profile a stable portrait frame and a quieter desktop
 * composition. The image itself stays fully visible; focal-point values are
 * retained for the alternate-image interaction and only apply to positioning
 * when the source fills the frame. */
.zeo-artists-211 .zeo-artists-200__profile {
	width: min(100%, clamp(1160px, 81.5vw, 1240px));
	margin-inline: auto;
	grid-template-columns: minmax(0, clamp(360px, 31vw, 480px)) minmax(0, clamp(360px, 31vw, 480px));
	gap: clamp(64px, 7vw, 120px);
	justify-content: center;
	align-items: center !important;
}

.zeo-artists-211 .zeo-artists-200__profile-media {
	width: 100%;
	max-width: 480px;
	justify-self: center;
}

.zeo-artists-211 .zeo-artists-200__profile-media figure {
	aspect-ratio: 5 / 8;
	background: transparent;
}

.zeo-artists-211 .zeo-artists-200__profile-media [data-artist-profile-image],
.zeo-artists-211 .zeo-artists-200__profile-media [data-artist-profile-secondary-image] {
	object-fit: contain;
	background: transparent;
}

/* Match the front-end frame in the Artist editor previews. The editor keeps
 * its border so an empty preview remains discoverable, but does not paint a
 * faux landscape mount behind a portrait source. */
.zeo-artists-211-editor__preview-frame {
	aspect-ratio: 5 / 8;
	background: transparent;
}

.zeo-artists-211-editor__preview-frame img {
	object-fit: contain;
	background: transparent;
}

/* Commissions: balance the copy and form while keeping all type tied to the
 * page's existing display/body families and palette variables. */
.zeo-page-200--commissions .zeo-page-200__enquiry {
	padding-block: clamp(72px, 6vw, 96px);
}

.zeo-page-200--commissions .zeo-page-200__enquiry-grid {
	grid-template-columns: minmax(0, .42fr) minmax(0, .58fr);
	gap: clamp(64px, 6.5vw, 96px);
	align-items: start;
}

.zeo-page-200--commissions .zeo-page-200__enquiry-copy,
.zeo-page-200--commissions .zeo-page-200__enquiry-form {
	min-width: 0;
}

.zeo-page-200--commissions .zeo-page-200__enquiry-copy .zeo-page-200__section-title {
	font-size: clamp(36px, 3vw, 42px);
	line-height: 1.12;
	margin-top: 0;
}

.zeo-page-200--commissions .zeo-page-200__enquiry-copy > p:first-of-type {
	max-width: 45ch;
	font: 400 clamp(20px, 1.5vw, 22px) / 1.55 var(--zeo-pages-display);
}

.zeo-page-200--commissions .zeo-page-200__enquiry-copy > p:nth-of-type(2) {
	max-width: 45ch;
	font: 400 18px / 1.55 var(--zeo-pages-display);
}

/* Keep the editor canvas aligned with the front end when the theme loads this
 * file through editor styles. */
.editor-styles-wrapper:has(.zeo-page-200--commissions) .zeo-page-200--commissions .zeo-page-200__enquiry {
	padding-block: clamp(72px, 6vw, 96px);
}

.editor-styles-wrapper:has(.zeo-page-200--commissions) .zeo-page-200--commissions .zeo-page-200__enquiry-grid {
	grid-template-columns: minmax(0, .42fr) minmax(0, .58fr);
	gap: clamp(64px, 6.5vw, 96px);
	align-items: start;
}

.editor-styles-wrapper:has(.zeo-page-200--commissions) .zeo-page-200--commissions .zeo-page-200__enquiry-copy,
.editor-styles-wrapper:has(.zeo-page-200--commissions) .zeo-page-200--commissions .zeo-page-200__enquiry-form {
	min-width: 0;
}

.editor-styles-wrapper:has(.zeo-page-200--commissions) .zeo-page-200--commissions .zeo-page-200__enquiry-copy .zeo-page-200__section-title {
	font-size: clamp(36px, 3vw, 42px);
	line-height: 1.12;
	margin-top: 0;
}

.editor-styles-wrapper:has(.zeo-page-200--commissions) .zeo-page-200--commissions .zeo-page-200__enquiry-copy > p:first-of-type {
	max-width: 45ch;
	font: 400 clamp(20px, 1.5vw, 22px) / 1.55 var(--zeo-pages-display);
}

.editor-styles-wrapper:has(.zeo-page-200--commissions) .zeo-page-200--commissions .zeo-page-200__enquiry-copy > p:nth-of-type(2) {
	max-width: 45ch;
	font: 400 18px / 1.55 var(--zeo-pages-display);
}

@media (max-width: 900px) {
	.zeo-artists-211 .zeo-artists-200__profile {
		width: 100%;
		grid-template-columns: 1fr;
		gap: clamp(32px, 7vw, 52px);
	}

	.zeo-artists-211 .zeo-artists-200__profile-media {
		width: min(100%, clamp(360px, 72vw, 400px));
		max-width: 400px;
		justify-self: center;
	}

	.zeo-page-200--commissions .zeo-page-200__enquiry {
		padding-block: clamp(56px, 10vw, 72px);
	}

	.zeo-page-200--commissions .zeo-page-200__enquiry-grid {
		grid-template-columns: 1fr;
		gap: clamp(40px, 7vw, 56px);
	}

	.editor-styles-wrapper:has(.zeo-page-200--commissions) .zeo-page-200--commissions .zeo-page-200__enquiry {
		padding-block: clamp(56px, 10vw, 72px);
	}

	.editor-styles-wrapper:has(.zeo-page-200--commissions) .zeo-page-200--commissions .zeo-page-200__enquiry-grid {
		grid-template-columns: 1fr;
		gap: clamp(40px, 7vw, 56px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.zeo-artists-211 .zeo-artists-211__profile-image--secondary {
		transition: none;
	}
}
