/*
 * Official Akiane Gallery
 *
 * A quiet, image-first archive that complements the Shop and product-page
 * redesign without making the Gallery feel like another sales grid.
 */

.akiane-gallery {
	--akiane-gallery-ink: #171510;
	--akiane-gallery-muted: #6a635a;
	--akiane-gallery-paper: #f4f0e9;
	--akiane-gallery-warm-white: #fdfcf9;
	--akiane-gallery-line: #dcd4c7;
	--akiane-gallery-accent: #946b36;
	--akiane-gallery-dark: #24211d;
	background: var(--akiane-gallery-warm-white);
	color: var(--akiane-gallery-ink);
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	overflow: clip;
	width: 100%;
}

.akiane-gallery *,
.akiane-gallery *::before,
.akiane-gallery *::after {
	box-sizing: border-box;
}

.akiane-gallery h1,
.akiane-gallery h2,
.akiane-gallery h3 {
	color: var(--akiane-gallery-ink);
	font-family: "Cormorant Garamond", Georgia, serif;
	font-weight: 500;
	letter-spacing: -0.025em;
}

.akiane-gallery a {
	color: inherit;
	text-decoration: none;
}

.akiane-gallery button,
.akiane-gallery input {
	font: inherit;
}

.akiane-gallery [hidden] {
	display: none !important;
}

.akiane-gallery__eyebrow {
	color: var(--akiane-gallery-accent);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.16em;
	line-height: 1.4;
	margin: 0 0 16px;
	text-transform: uppercase;
}

/* Hero */

.akiane-gallery__hero {
	background: var(--akiane-gallery-paper);
	border-bottom: 1px solid var(--akiane-gallery-line);
	position: relative;
}

.akiane-gallery__hero::before {
	background: var(--akiane-gallery-accent);
	content: "";
	height: 1px;
	left: 0;
	position: absolute;
	top: 62px;
	width: clamp(52px, 7vw, 104px);
}

.akiane-gallery__hero-inner {
	align-items: center;
	display: grid;
	gap: clamp(48px, 6vw, 84px);
	grid-template-columns: minmax(0, 1fr) minmax(480px, 620px);
	margin: 0 auto;
	max-width: 1360px;
	min-height: 390px;
	padding: 52px 32px;
	width: 100%;
}

.akiane-gallery__hero-copy {
	max-width: 600px;
}

.akiane-gallery__hero h1 {
	font-size: clamp(46px, 4.4vw, 62px);
	line-height: 0.98;
	margin: 0 0 24px;
}

.akiane-gallery__hero-description {
	color: var(--akiane-gallery-muted);
	font-size: clamp(15px, 1.1vw, 17px);
	line-height: 1.8;
	margin: 0;
	max-width: 650px;
}

.akiane-gallery__hero-art {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-template-rows: repeat(2, minmax(0, 1fr));
	isolation: isolate;
	min-width: 0;
	position: relative;
	aspect-ratio: 2 / 1;
}

.akiane-gallery__hero-art::before {
	background: #ded5c8;
	bottom: -14px;
	content: "";
	left: 20px;
	position: absolute;
	right: -14px;
	top: 16px;
	z-index: -1;
}

.akiane-gallery__hero-piece {
	align-items: center;
	background: var(--akiane-gallery-warm-white);
	border: 1px solid var(--akiane-gallery-line);
	display: flex;
	justify-content: center;
	min-height: 0;
	min-width: 0;
	overflow: hidden;
	padding: 6px;
	transition: border-color 180ms ease, transform 180ms ease;
}

.akiane-gallery__hero-piece:first-child {
	grid-column: 1 / 3;
	grid-row: 1 / 3;
}

.akiane-gallery__hero-piece:nth-child(2) {
	grid-column: 3;
	grid-row: 1;
}

.akiane-gallery__hero-piece:nth-child(3) {
	grid-column: 4;
	grid-row: 1;
}

.akiane-gallery__hero-piece:nth-child(4) {
	grid-column: 3;
	grid-row: 2;
}

.akiane-gallery__hero-piece:nth-child(5) {
	grid-column: 4;
	grid-row: 2;
}

.akiane-gallery__hero-piece:hover {
	border-color: #b7ac9c;
	transform: translateY(-3px);
}

.akiane-gallery__hero-piece:focus-visible {
	outline: 2px solid var(--akiane-gallery-accent);
	outline-offset: 4px;
}

.akiane-gallery__hero-image {
	display: block;
	height: 100% !important;
	max-height: 100%;
	max-width: 100% !important;
	object-fit: contain;
	width: 100% !important;
}

/* Collection introduction */

.akiane-gallery__collection {
	background: var(--akiane-gallery-warm-white);
}

.akiane-gallery__collection-inner {
	margin: 0 auto;
	max-width: 1440px;
	padding: 74px 32px 96px;
	width: 100%;
}

.akiane-gallery__collection-header {
	align-items: end;
	display: grid;
	gap: 54px;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
	margin-bottom: 42px;
}

.akiane-gallery__collection-header h2 {
	font-size: clamp(38px, 4vw, 54px);
	line-height: 1;
	margin: 0;
}

.akiane-gallery__collection-intro {
	color: var(--akiane-gallery-muted);
	font-size: 15px;
	line-height: 1.75;
	margin: 0 0 2px;
}

/* Search and age navigation */

.akiane-gallery__controls {
	border-bottom: 1px solid var(--akiane-gallery-line);
	border-top: 1px solid var(--akiane-gallery-line);
	display: grid;
	gap: 28px;
	grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
	padding: 24px 0;
}

.akiane-gallery__search label,
.akiane-gallery__age-label {
	color: var(--akiane-gallery-muted);
	display: block;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: 1.4;
	margin-bottom: 9px;
	text-transform: uppercase;
}

.akiane-gallery__search-field {
	align-items: center;
	border-bottom: 1px solid #bcb2a4;
	display: grid;
	gap: 10px;
	grid-template-columns: 18px minmax(0, 1fr) auto;
	min-height: 42px;
}

.akiane-gallery__search-field:focus-within {
	border-color: var(--akiane-gallery-ink);
}

.akiane-gallery__search-field svg {
	fill: none;
	height: 18px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 1.5;
	width: 18px;
}

.akiane-gallery__search input[type="search"] {
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--akiane-gallery-ink);
	font-size: 14px;
	height: 40px;
	margin: 0;
	min-width: 0;
	outline: 0;
	padding: 0;
	width: 100%;
}

.akiane-gallery__search input[type="search"]::-webkit-search-cancel-button {
	display: none;
}

.akiane-gallery__search input[type="search"]::placeholder {
	color: #8b8378;
	opacity: 1;
}

.akiane-gallery__search-clear {
	background: transparent;
	border: 0;
	border-bottom: 1px solid currentColor;
	border-radius: 0;
	color: var(--akiane-gallery-muted);
	cursor: pointer;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.3;
	margin: 0;
	padding: 0 0 2px;
	text-transform: uppercase;
}

.akiane-gallery__search-clear:hover {
	color: var(--akiane-gallery-accent);
}

.akiane-gallery__age-options {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.akiane-gallery__age-option {
	align-items: center;
	background: transparent;
	border: 1px solid var(--akiane-gallery-line);
	border-radius: 0;
	color: var(--akiane-gallery-muted);
	cursor: pointer;
	display: inline-flex;
	font-size: 11px;
	font-weight: 600;
	justify-content: center;
	letter-spacing: 0.04em;
	line-height: 1;
	margin: 0;
	min-height: 36px;
	min-width: 38px;
	padding: 8px 11px;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.akiane-gallery__age-option:first-child,
.akiane-gallery__age-option[data-gallery-filter="adult"] {
	padding-left: 15px;
	padding-right: 15px;
}

.akiane-gallery__age-option:hover {
	border-color: #afa393;
	color: var(--akiane-gallery-ink);
}

.akiane-gallery__age-option.is-active {
	background: var(--akiane-gallery-dark);
	border-color: var(--akiane-gallery-dark);
	color: #fff;
}

.akiane-gallery__age-option:focus-visible,
.akiane-gallery__search-clear:focus-visible,
.akiane-gallery__load-more:focus-visible,
.akiane-gallery__button:focus-visible,
.akiane-gallery__text-link:focus-visible {
	outline: 2px solid var(--akiane-gallery-accent);
	outline-offset: 3px;
}

.akiane-gallery__results-bar {
	align-items: baseline;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	padding: 40px 0 24px;
}

.akiane-gallery__results-bar h3 {
	font-size: clamp(27px, 2.5vw, 34px);
	line-height: 1.1;
	margin: 0;
}

.akiane-gallery__result-count {
	color: var(--akiane-gallery-muted);
	font-size: 12px;
	margin: 0;
}

/* Artwork cards */

.akiane-gallery__grid {
	display: grid;
	gap: 44px 26px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.akiane-gallery--loading .akiane-gallery__card:nth-child(n + 25) {
	display: none;
}

.akiane-gallery__card {
	margin: 0;
	min-width: 0;
	padding: 0;
}

.akiane-gallery-card {
	height: 100%;
	margin: 0;
}

.akiane-gallery-card__link {
	border-bottom: 1px solid var(--akiane-gallery-line);
	display: flex;
	flex-direction: column;
	height: 100%;
	padding-bottom: 25px;
}

.akiane-gallery-card__link:focus-visible {
	outline: 2px solid var(--akiane-gallery-accent);
	outline-offset: 4px;
}

.akiane-gallery-card__image-stage {
	align-items: center;
	aspect-ratio: 1 / 1;
	background: var(--akiane-gallery-paper);
	display: flex;
	justify-content: center;
	overflow: hidden;
	padding: clamp(10px, 1.15vw, 18px);
	width: 100%;
}

.akiane-gallery-card__image {
	display: block;
	height: 100% !important;
	max-height: 100%;
	max-width: 100% !important;
	object-fit: contain;
	transition: transform 240ms ease;
	width: 100% !important;
}

.akiane-gallery-card__link:hover .akiane-gallery-card__image {
	transform: scale(1.012);
}

.akiane-gallery-card__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding-top: 17px;
}

.akiane-gallery-card__meta {
	color: var(--akiane-gallery-accent);
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.15em;
	line-height: 1.4;
	margin-bottom: 7px;
	text-transform: uppercase;
}

.akiane-gallery-card__content h3 {
	font-size: clamp(23px, 2.1vw, 29px);
	line-height: 1.05;
	margin: 0;
	overflow-wrap: anywhere;
}

.akiane-gallery-card__action {
	align-items: center;
	color: var(--akiane-gallery-muted);
	display: flex;
	font-size: 9px;
	font-weight: 600;
	gap: 10px;
	letter-spacing: 0.14em;
	line-height: 1.4;
	margin-top: 15px;
	text-transform: uppercase;
	transition: color 160ms ease;
}

.akiane-gallery-card__action span {
	font-size: 17px;
	font-weight: 400;
	line-height: 1;
	transition: transform 160ms ease;
}

.akiane-gallery-card__link:hover .akiane-gallery-card__action {
	color: var(--akiane-gallery-ink);
}

.akiane-gallery-card__link:hover .akiane-gallery-card__action span {
	transform: translateX(3px);
}

.akiane-gallery__empty {
	border: 1px solid var(--akiane-gallery-line);
	color: var(--akiane-gallery-muted);
	font-size: 14px;
	margin: 0;
	padding: 34px;
	text-align: center;
}

.akiane-gallery__load-more-wrap {
	display: flex;
	justify-content: center;
	padding-top: 54px;
}

.akiane-gallery__load-more,
.akiane-gallery__button {
	background: var(--akiane-gallery-dark);
	border: 1px solid var(--akiane-gallery-dark);
	border-radius: 0;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 10px;
	font-weight: 600;
	justify-content: center;
	letter-spacing: 0.12em;
	line-height: 1.4;
	margin: 0;
	min-height: 48px;
	padding: 16px 25px;
	text-transform: uppercase;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.akiane-gallery a.akiane-gallery__button,
.akiane-gallery a.akiane-gallery__button:visited {
	color: #fff !important;
}

.akiane-gallery__load-more:hover,
.akiane-gallery__load-more:focus-visible,
.akiane-gallery a.akiane-gallery__button:hover,
.akiane-gallery a.akiane-gallery__button:focus-visible {
	background: #3b3731;
	border-color: #3b3731;
	color: #fff !important;
}

/* Closing invitation */

.akiane-gallery__closing {
	background: var(--akiane-gallery-paper);
	border-top: 1px solid var(--akiane-gallery-line);
}

.akiane-gallery__closing-inner {
	align-items: center;
	display: grid;
	gap: clamp(46px, 8vw, 120px);
	grid-template-columns: minmax(0, 1fr) minmax(360px, 580px);
	margin: 0 auto;
	max-width: 1320px;
	padding: 68px 32px 72px;
	width: 100%;
}

.akiane-gallery__closing .akiane-gallery__eyebrow {
	margin-bottom: 12px;
}

.akiane-gallery__closing h2 {
	font-size: clamp(37px, 3.7vw, 52px);
	line-height: 1.02;
	margin: 0;
	max-width: 620px;
}

.akiane-gallery__closing-content > p {
	color: var(--akiane-gallery-muted);
	font-size: 15px;
	line-height: 1.75;
	margin: 0 0 24px;
}

.akiane-gallery__closing-links {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
}

.akiane-gallery__text-link {
	align-items: center;
	border-bottom: 1px solid currentColor;
	color: var(--akiane-gallery-ink);
	display: inline-flex;
	font-size: 10px;
	font-weight: 600;
	gap: 11px;
	letter-spacing: 0.1em;
	line-height: 1.4;
	padding-bottom: 4px;
	text-transform: uppercase;
}

.akiane-gallery__text-link span {
	font-size: 17px;
	font-weight: 400;
	line-height: 1;
	transition: transform 160ms ease;
}

.akiane-gallery__text-link:hover span {
	transform: translateX(3px);
}

@media (max-width: 1120px) {
	.akiane-gallery__hero-inner {
		gap: 48px;
		grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
	}

	.akiane-gallery__controls {
		grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
	}
}

@media (max-width: 900px) {
	.akiane-gallery__hero-inner {
		gap: 38px;
		grid-template-columns: minmax(0, 1fr);
		padding-bottom: 44px;
		padding-top: 56px;
	}

	.akiane-gallery__hero-copy {
		max-width: 720px;
	}

	.akiane-gallery__hero-art {
		max-width: 680px;
		width: 100%;
	}

	.akiane-gallery__collection-inner {
		padding-top: 60px;
	}

	.akiane-gallery__collection-header,
	.akiane-gallery__controls,
	.akiane-gallery__closing-inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.akiane-gallery__collection-header {
		gap: 20px;
	}

	.akiane-gallery__controls {
		gap: 24px;
	}

	.akiane-gallery__search {
		max-width: 460px;
	}

	.akiane-gallery__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.akiane-gallery__closing-inner {
		gap: 28px;
	}
}

@media (max-width: 640px) {
	.akiane-gallery__hero::before {
		top: 38px;
		width: 42px;
	}

	.akiane-gallery__hero-inner,
	.akiane-gallery__collection-inner,
	.akiane-gallery__closing-inner {
		padding-left: 18px;
		padding-right: 18px;
	}

	.akiane-gallery__hero-inner {
		min-height: 0;
		padding-bottom: 38px;
		padding-top: 52px;
	}

	.akiane-gallery__eyebrow {
		font-size: 9px;
		margin-bottom: 13px;
	}

	.akiane-gallery__hero h1 {
		font-size: clamp(42px, 13vw, 54px);
		margin-bottom: 18px;
	}

	.akiane-gallery__hero-description {
		font-size: 14px;
		line-height: 1.7;
	}

	.akiane-gallery__hero-art {
		gap: 6px;
	}

	.akiane-gallery__hero-piece {
		padding: 4px;
	}

	.akiane-gallery__hero-art::before {
		bottom: -7px;
		left: 10px;
		right: -6px;
		top: 8px;
	}

	.akiane-gallery__collection-inner {
		padding-bottom: 72px;
		padding-top: 50px;
	}

	.akiane-gallery__collection-header {
		margin-bottom: 30px;
	}

	.akiane-gallery__collection-header h2 {
		font-size: 40px;
	}

	.akiane-gallery__controls {
		padding: 20px 0;
	}

	.akiane-gallery__age-options {
		flex-wrap: nowrap;
		margin-left: -18px;
		margin-right: -18px;
		overflow-x: auto;
		padding: 0 18px 8px;
		scrollbar-width: thin;
	}

	.akiane-gallery__age-option {
		flex: 0 0 auto;
	}

	.akiane-gallery__results-bar {
		align-items: flex-start;
		flex-direction: column;
		gap: 7px;
		padding: 30px 0 20px;
	}

	.akiane-gallery__grid {
		gap: 30px 13px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.akiane-gallery-card__link {
		padding-bottom: 18px;
	}

	.akiane-gallery-card__image-stage {
		padding: 8px;
	}

	.akiane-gallery-card__content {
		padding-top: 12px;
	}

	.akiane-gallery-card__meta {
		font-size: 8px;
		letter-spacing: 0.1em;
		margin-bottom: 5px;
	}

	.akiane-gallery-card__content h3 {
		font-size: clamp(19px, 6.3vw, 24px);
		line-height: 1.08;
	}

	.akiane-gallery-card__action {
		font-size: 8px;
		gap: 7px;
		letter-spacing: 0.1em;
		margin-top: 10px;
	}

	.akiane-gallery__load-more-wrap {
		padding-top: 40px;
	}

	.akiane-gallery__closing-inner {
		padding-bottom: 56px;
		padding-top: 52px;
	}

	.akiane-gallery__closing h2 {
		font-size: 38px;
	}

	.akiane-gallery__closing-links {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	.akiane-gallery__hero-piece,
	.akiane-gallery-card__image,
	.akiane-gallery-card__action,
	.akiane-gallery-card__action span,
	.akiane-gallery__age-option,
	.akiane-gallery__button,
	.akiane-gallery__load-more,
	.akiane-gallery__text-link span {
		transition-duration: 0.01ms !important;
	}
}

@supports not (overflow: clip) {
	.akiane-gallery {
		overflow: hidden;
	}
}
