.pk-gallery-eyebrow {
	margin: 0 0 var(--pk-space-sm);
	font-size: var(--pk-text-label);
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 1.35;
	text-transform: uppercase;
	color: var(--pk-red);
}

.pk-gallery-eyebrow i {
	margin: 0 0.65em;
	font-style: normal;
	color: rgba(255, 255, 255, 0.42);
}

.pk-gallery-archive,
.pk-gallery-single {
	position: relative;
	overflow: clip;
	background: var(--pk-black);
	color: var(--pk-white);
}

/* Archive */
.pk-gallery-archive__hero {
	position: relative;
	isolation: isolate;
	padding: clamp(7rem, 14vw, 12rem) var(--pk-gutter) clamp(5rem, 9vw, 8rem);
	border-bottom: 1px solid var(--pk-border);
	background:
		radial-gradient(circle at 78% 24%, rgba(234, 31, 53, 0.15), transparent 28rem),
		linear-gradient(180deg, #07080a 0%, #040507 100%);
}

.pk-gallery-archive__ghost,
.pk-gallery-hero__ghost {
	position: absolute;
	z-index: -1;
	font-family: var(--pk-font-sans);
	font-size: clamp(7rem, 18vw, 18rem);
	font-weight: 800;
	letter-spacing: -0.08em;
	line-height: 0.72;
	white-space: nowrap;
	color: rgba(255, 255, 255, 0.025);
	pointer-events: none;
	user-select: none;
}

.pk-gallery-archive__ghost {
	top: 4rem;
	left: 50%;
	transform: translateX(-50%);
}

.pk-gallery-archive__hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
	gap: clamp(2.5rem, 7vw, 8rem);
	align-items: end;
}

.pk-gallery-archive__hero h1,
.pk-gallery-hero h1 {
	margin: 0;
	font-family: var(--pk-font-serif);
	font-size: clamp(3.75rem, 9vw, 8.8rem);
	font-weight: 400;
	letter-spacing: -0.055em;
	line-height: 0.86;
}

.pk-gallery-archive__lead {
	max-width: 34rem;
	margin: 0 0 0.5rem;
	font-family: var(--pk-font-serif);
	font-size: clamp(1.2rem, 2vw, 1.65rem);
	line-height: 1.5;
	color: var(--pk-gray);
}

.pk-gallery-archive__library {
	padding-top: var(--pk-space-2xl);
	padding-bottom: var(--pk-space-3xl);
}

.pk-gallery-archive__library-head {
	display: flex;
	justify-content: space-between;
	align-items: end;
	margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.pk-gallery-archive__library-head h2,
.pk-gallery-intro h2,
.pk-gallery-photos__head h2 {
	margin: 0;
	font-family: var(--pk-font-serif);
	font-size: clamp(2.7rem, 5vw, 5rem);
	font-weight: 400;
	letter-spacing: -0.045em;
	line-height: 0.95;
}

.pk-gallery-archive__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(2rem, 4vw, 4rem) clamp(1rem, 2.5vw, 2.5rem);
}

.pk-gallery-card {
	min-width: 0;
}

.pk-gallery-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--pk-surface);
	text-decoration: none;
}

.pk-gallery-card:nth-child(3n + 2) .pk-gallery-card__media {
	aspect-ratio: 4 / 3;
	margin-top: clamp(2rem, 5vw, 5rem);
}

.pk-gallery-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 700ms cubic-bezier(0.2, 0.75, 0.2, 1), filter 700ms ease;
}

.pk-gallery-card__media:hover img,
.pk-gallery-card__media:focus-visible img {
	transform: scale(1.035);
	filter: brightness(1.06);
}

.pk-gallery-card__fallback {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	font-family: var(--pk-font-serif);
	font-size: clamp(4rem, 8vw, 8rem);
	color: rgba(255, 255, 255, 0.1);
}

.pk-gallery-card__count {
	position: absolute;
	right: 0;
	bottom: 0;
	padding: 0.7rem 0.85rem;
	background: rgba(4, 5, 7, 0.82);
	backdrop-filter: blur(10px);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pk-white);
}

.pk-gallery-card__copy {
	padding-top: 1.35rem;
}

.pk-gallery-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0 0 0.7rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--pk-gray);
}

.pk-gallery-card__meta i {
	font-style: normal;
	color: var(--pk-red);
}

.pk-gallery-card h3 {
	margin: 0;
	font-family: var(--pk-font-serif);
	font-size: clamp(1.8rem, 2.7vw, 2.75rem);
	font-weight: 400;
	letter-spacing: -0.035em;
	line-height: 1.02;
}

.pk-gallery-card h3 a,
.pk-gallery-card__link {
	color: inherit;
	text-decoration: none;
}

.pk-gallery-card__excerpt {
	margin: 1rem 0 0;
	line-height: 1.65;
	color: var(--pk-gray);
}

.pk-gallery-card__link {
	display: inline-block;
	margin-top: 1.2rem;
	padding-bottom: 0.2rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.24);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.pk-gallery-card__link:hover,
.pk-gallery-card__link:focus-visible {
	border-color: var(--pk-red);
	color: var(--pk-red);
}

.pk-gallery-archive .navigation.pagination {
	margin-top: clamp(4rem, 8vw, 7rem);
}

.pk-gallery-archive__empty {
	padding: clamp(3rem, 8vw, 7rem) 0;
	border-top: 1px solid var(--pk-border);
}

.pk-gallery-archive__empty h3 {
	margin: 0 0 1rem;
	font-family: var(--pk-font-serif);
	font-size: clamp(2rem, 4vw, 4rem);
	font-weight: 400;
}

.pk-gallery-archive__empty p {
	max-width: 42rem;
	margin: 0;
	color: var(--pk-gray);
}

/* Single hero */
.pk-gallery-hero {
	position: relative;
	min-height: min(88vh, 58rem);
	isolation: isolate;
	display: flex;
	align-items: end;
	padding: var(--pk-header-height) var(--pk-gutter) clamp(3rem, 7vw, 6rem);
	border-bottom: 1px solid var(--pk-border);
	background: #07080a;
}

.pk-gallery-hero__media {
	position: absolute;
	z-index: -2;
	inset: 0;
}

.pk-gallery-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(4, 5, 7, 0.2) 0%, rgba(4, 5, 7, 0.1) 32%, rgba(4, 5, 7, 0.9) 100%),
		linear-gradient(90deg, rgba(4, 5, 7, 0.72), transparent 72%);
}

.pk-gallery-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pk-gallery-hero__ghost {
	right: -0.04em;
	bottom: 0.12em;
	color: rgba(255, 255, 255, 0.045);
}

.pk-gallery-hero__copy {
	position: relative;
	z-index: 1;
	width: 100%;
}

.pk-gallery-hero__copy h1 {
	max-width: 10ch;
	text-wrap: balance;
}

.pk-gallery-hero__date {
	margin: 1.5rem 0 0;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
}

.pk-gallery-hero.no-image {
	min-height: 34rem;
	background:
		radial-gradient(circle at 72% 36%, rgba(234, 31, 53, 0.18), transparent 25rem),
		#07080a;
}

/* Intro */
.pk-gallery-intro {
	display: grid;
	grid-template-columns: minmax(12rem, 0.7fr) minmax(0, 1.3fr);
	gap: clamp(2.5rem, 8vw, 8rem);
	padding-top: var(--pk-space-2xl);
	padding-bottom: var(--pk-space-2xl);
}

.pk-gallery-intro__content {
	font-family: var(--pk-font-serif);
	font-size: clamp(1.12rem, 1.6vw, 1.35rem);
	line-height: 1.75;
	color: #d5d5d7;
}

.pk-gallery-intro__content > :first-child {
	margin-top: 0;
}

.pk-gallery-intro__content > :last-child {
	margin-bottom: 0;
}

/* Photo wall */
.pk-gallery-photos {
	position: relative;
	padding: var(--pk-space-2xl) var(--pk-gutter) var(--pk-space-3xl);
	border-top: 1px solid var(--pk-border);
	background: #060709;
}

.pk-gallery-photos__head {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 2rem;
	margin-bottom: clamp(2.5rem, 6vw, 5.5rem);
}

.pk-gallery-photos__count {
	margin: 0 0 0.5rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--pk-gray);
}

.pk-gallery-photos__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: clamp(0.65rem, 1.4vw, 1.4rem);
}

.pk-gallery-photo {
	grid-column: span 4;
	margin: 0;
}

.pk-gallery-photo:nth-child(7n + 1),
.pk-gallery-photo:nth-child(7n + 5) {
	grid-column: span 8;
}

.pk-gallery-photo:nth-child(7n + 2) {
	align-self: end;
}

.pk-gallery-photo__link {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--pk-surface);
}

.pk-gallery-photo:nth-child(7n + 1) .pk-gallery-photo__link,
.pk-gallery-photo:nth-child(7n + 5) .pk-gallery-photo__link {
	aspect-ratio: 16 / 10;
}

.pk-gallery-photo:not(:nth-child(7n + 1)):not(:nth-child(7n + 5)) .pk-gallery-photo__link {
	aspect-ratio: 4 / 5;
}

.pk-gallery-photo__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 650ms cubic-bezier(0.2, 0.75, 0.2, 1), filter 650ms ease;
}

.pk-gallery-photo__image.is-lazy-deferred:not([src]) {
	min-height: 18rem;
	background: var(--pk-surface);
}

.pk-gallery-photo__link:hover .pk-gallery-photo__image,
.pk-gallery-photo__link:focus-visible .pk-gallery-photo__image {
	transform: scale(1.025);
	filter: brightness(1.07);
}

.pk-gallery-photo__zoom {
	position: absolute;
	right: 0.85rem;
	bottom: 0.85rem;
	display: grid;
	place-items: center;
	width: 2.4rem;
	height: 2.4rem;
	border: 1px solid rgba(255, 255, 255, 0.42);
	border-radius: 50%;
	background: rgba(4, 5, 7, 0.52);
	backdrop-filter: blur(10px);
	font-size: 1.4rem;
	font-weight: 300;
	line-height: 1;
	color: #fff;
	transition: background var(--pk-transition), border-color var(--pk-transition);
}

.pk-gallery-photo__link:hover .pk-gallery-photo__zoom,
.pk-gallery-photo__link:focus-visible .pk-gallery-photo__zoom {
	border-color: var(--pk-red);
	background: var(--pk-red);
}

.pk-gallery-photo figcaption {
	max-width: 42rem;
	margin-top: 0.7rem;
	font-size: 0.75rem;
	line-height: 1.45;
	color: var(--pk-gray);
}

.pk-gallery-photos__more {
	display: flex;
	justify-content: center;
	padding-top: clamp(2.5rem, 6vw, 5rem);
}

.pk-gallery-more {
	min-width: min(100%, 22rem);
	padding: 1.05rem 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.24);
	background: transparent;
	font: inherit;
	color: var(--pk-white);
	cursor: pointer;
	transition: border-color var(--pk-transition), background var(--pk-transition);
}

.pk-gallery-more span,
.pk-gallery-more small {
	display: block;
}

.pk-gallery-more span {
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.pk-gallery-more small {
	margin-top: 0.3rem;
	font-size: 0.7rem;
	color: var(--pk-gray);
}

.pk-gallery-more:hover,
.pk-gallery-more:focus-visible {
	border-color: var(--pk-red);
	background: rgba(234, 31, 53, 0.08);
}

.pk-gallery-credit {
	margin-top: clamp(2.5rem, 5vw, 4.5rem);
	padding-top: 1.2rem;
	border-top: 1px solid var(--pk-border);
	font-size: 0.76rem;
	line-height: 1.5;
	color: var(--pk-gray);
}

.pk-gallery-credit span {
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pk-white);
}

.pk-gallery-back {
	padding-top: 2rem;
	padding-bottom: clamp(4rem, 8vw, 7rem);
}

.pk-gallery-back a {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pk-white);
	text-decoration: none;
}

.pk-gallery-back a:hover,
.pk-gallery-back a:focus-visible {
	color: var(--pk-red);
}

/* Lightbox */
body.pk-gallery-lightbox-open {
	overflow: hidden;
}

.pk-gallery-lightbox[hidden] {
	display: none;
}

.pk-gallery-lightbox {
	position: fixed;
	z-index: 10000;
	inset: 0;
	display: grid;
	place-items: center;
	padding: clamp(0.75rem, 2vw, 2rem);
}

.pk-gallery-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.94);
	backdrop-filter: blur(8px);
}

.pk-gallery-lightbox__panel {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 3.25rem minmax(0, 1fr) 3.25rem;
	grid-template-rows: minmax(0, 1fr) auto;
	align-items: center;
	width: min(96vw, 100rem);
	height: min(94vh, 68rem);
}

.pk-gallery-lightbox__figure {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 0;
	margin: 0;
}

.pk-gallery-lightbox__figure img {
	display: block;
	max-width: 100%;
	max-height: calc(94vh - 7rem);
	object-fit: contain;
}

.pk-gallery-lightbox__figure figcaption {
	max-width: 58rem;
	margin-top: 0.8rem;
	font-size: 0.75rem;
	line-height: 1.45;
	text-align: center;
	color: rgba(255, 255, 255, 0.7);
}

.pk-gallery-lightbox__close,
.pk-gallery-lightbox__nav {
	border: 0;
	background: transparent;
	font: inherit;
	color: #fff;
	cursor: pointer;
}

.pk-gallery-lightbox__close {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 3;
	width: 3rem;
	height: 3rem;
	font-size: 2rem;
	font-weight: 200;
}

.pk-gallery-lightbox__nav {
	width: 3.25rem;
	height: 3.25rem;
	font-size: 1.5rem;
}

.pk-gallery-lightbox__nav--prev {
	grid-column: 1;
	grid-row: 1;
}

.pk-gallery-lightbox__nav--next {
	grid-column: 3;
	grid-row: 1;
}

.pk-gallery-lightbox__counter {
	grid-column: 2;
	grid-row: 2;
	margin: 0.75rem 0 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-align: center;
	color: rgba(255, 255, 255, 0.62);
}

.pk-gallery-lightbox__close:hover,
.pk-gallery-lightbox__close:focus-visible,
.pk-gallery-lightbox__nav:hover,
.pk-gallery-lightbox__nav:focus-visible {
	color: var(--pk-red);
}

@media (max-width: 70rem) {
	.pk-gallery-archive__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pk-gallery-card:nth-child(3n + 2) .pk-gallery-card__media {
		margin-top: 0;
	}

	.pk-gallery-card:nth-child(even) .pk-gallery-card__media {
		margin-top: 3rem;
	}
}

@media (max-width: 48rem) {
	.pk-gallery-archive__hero-inner,
	.pk-gallery-intro {
		grid-template-columns: 1fr;
	}

	.pk-gallery-archive__hero {
		padding-top: clamp(7rem, 26vw, 9rem);
	}

	.pk-gallery-archive__lead {
		max-width: 28rem;
	}

	.pk-gallery-archive__grid {
		grid-template-columns: 1fr;
		gap: 3.5rem;
	}

	.pk-gallery-card:nth-child(even) .pk-gallery-card__media {
		margin-top: 0;
	}

	.pk-gallery-card__media,
	.pk-gallery-card:nth-child(3n + 2) .pk-gallery-card__media {
		aspect-ratio: 4 / 3;
	}

	.pk-gallery-hero {
		min-height: 72vh;
	}

	.pk-gallery-hero__copy h1 {
		max-width: 12ch;
	}

	.pk-gallery-photos__head {
		align-items: flex-start;
		flex-direction: column;
	}

	.pk-gallery-photo,
	.pk-gallery-photo:nth-child(7n + 1),
	.pk-gallery-photo:nth-child(7n + 5) {
		grid-column: span 6;
	}

	.pk-gallery-photo:nth-child(7n + 1) .pk-gallery-photo__link,
	.pk-gallery-photo:nth-child(7n + 5) .pk-gallery-photo__link,
	.pk-gallery-photo:not(:nth-child(7n + 1)):not(:nth-child(7n + 5)) .pk-gallery-photo__link {
		aspect-ratio: 4 / 5;
	}

	.pk-gallery-lightbox__panel {
		grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
	}
}

@media (max-width: 34rem) {
	.pk-gallery-photos__grid {
		gap: 0.55rem;
	}

	.pk-gallery-photo,
	.pk-gallery-photo:nth-child(7n + 1),
	.pk-gallery-photo:nth-child(7n + 5) {
		grid-column: 1 / -1;
	}

	.pk-gallery-photo__link,
	.pk-gallery-photo:nth-child(7n + 1) .pk-gallery-photo__link,
	.pk-gallery-photo:nth-child(7n + 5) .pk-gallery-photo__link,
	.pk-gallery-photo:not(:nth-child(7n + 1)):not(:nth-child(7n + 5)) .pk-gallery-photo__link {
		aspect-ratio: auto;
	}

	.pk-gallery-photo__image {
		height: auto;
		max-height: 78vh;
		object-fit: contain;
		background: #000;
	}

	.pk-gallery-lightbox {
		padding: 0.35rem;
	}

	.pk-gallery-lightbox__panel {
		grid-template-columns: 2.4rem minmax(0, 1fr) 2.4rem;
		height: 96vh;
	}

	.pk-gallery-lightbox__nav {
		width: 2.4rem;
		height: 2.4rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pk-gallery-card__media img,
	.pk-gallery-photo__image {
		transition: none;
	}
}

/* TASK19E: progressive loading for the standalone /galerie/ album archive. */
.pk-gallery-infinite {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 7rem;
	margin-top: clamp(2.5rem, 6vw, 5rem);
	border-top: 1px solid var(--pk-border);
}

.pk-gallery-load-more {
	min-width: min(100%, 17rem);
	margin-top: var(--pk-space-lg);
	padding: 0.9rem 1.35rem;
	border: 1px solid rgba(255, 255, 255, 0.42);
	background: transparent;
	color: var(--pk-text);
	font: inherit;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background var(--pk-transition), border-color var(--pk-transition), color var(--pk-transition);
}

.pk-gallery-load-more:hover,
.pk-gallery-load-more:focus-visible {
	border-color: var(--pk-red);
	background: var(--pk-red);
	color: #fff;
}

.pk-gallery-load-more[disabled] {
	cursor: wait;
	opacity: 0.6;
}

.pk-gallery-infinite__status {
	margin: var(--pk-space-lg) 0 0;
	color: #aeb2ba;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
}

.pk-gallery-infinite__status.is-loading::before {
	display: inline-block;
	width: 0.65rem;
	height: 0.65rem;
	margin-right: 0.55rem;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-top-color: var(--pk-red);
	border-radius: 50%;
	vertical-align: -0.05rem;
	animation: pk-gallery-archive-spin 700ms linear infinite;
	content: "";
}

.pk-gallery-infinite__sentinel {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.pk-gallery-archive.is-infinite-ready .pk-gallery-pagination {
	display: none;
}

.pk-gallery-archive.is-infinite-complete .pk-gallery-load-more {
	display: none;
}


.pk-gallery-archive__grid[aria-busy="true"] {
	cursor: progress;
}

@keyframes pk-gallery-archive-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 48.875rem) {
	.pk-gallery-infinite {
		min-height: 6.5rem;
		margin-top: 2.5rem;
	}

	.pk-gallery-load-more {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pk-gallery-infinite__status.is-loading::before {
		animation: none;
	}
}
