/*
 * PrismFX Portfolio Pro — layout styles. Builds on pfx.css tokens.
 */

/* Shared: absolutely placed moving layouts. */
.pfx--orbit.is-ready .pfx-track,
.pfx--arc.is-ready .pfx-track,
.pfx--stack.is-ready .pfx-track,
.pfx--cube.is-ready .pfx-track,
.pfx--helix.is-ready .pfx-track,
.pfx--tunnel.is-ready .pfx-track,
.pfx--flipbook.is-ready .pfx-track,
.pfx--wave.is-ready .pfx-track,
.pfx--fan.is-ready .pfx-track,
.pfx--timemachine.is-ready .pfx-track,
.pfx--wall.is-ready .pfx-track,
.pfx--blinds.is-ready .pfx-track,
.pfx--tiles.is-ready .pfx-track,
.pfx--cinema.is-ready .pfx-track,
.pfx--liquid.is-ready .pfx-track,
.pfx--polaroid.is-ready .pfx-track,
.pfx--marquee.is-ready .pfx-track {
	position: absolute;
	inset: 0;
	transform-style: preserve-3d;
	pointer-events: none;
}

.pfx--orbit.is-ready .pfx-item,
.pfx--arc.is-ready .pfx-item,
.pfx--stack.is-ready .pfx-item,
.pfx--cube.is-ready .pfx-item,
.pfx--helix.is-ready .pfx-item,
.pfx--tunnel.is-ready .pfx-item,
.pfx--flipbook.is-ready .pfx-item,
.pfx--reel.is-ready .pfx-item,
.pfx--wave.is-ready .pfx-item,
.pfx--fan.is-ready .pfx-item,
.pfx--timemachine.is-ready .pfx-item,
.pfx--sphere.is-ready .pfx-item,
.pfx--wall.is-ready .pfx-item,
.pfx--blinds.is-ready .pfx-item,
.pfx--tiles.is-ready .pfx-item,
.pfx--cinema.is-ready .pfx-item,
.pfx--liquid.is-ready .pfx-item,
.pfx--polaroid.is-ready .pfx-item,
.pfx--marquee.is-ready .pfx-item,
.pfx--scrollx.is-ready .pfx-item {
	pointer-events: auto;
	will-change: transform;
}

.pfx--orbit .pfx-stage,
.pfx--arc .pfx-stage,
.pfx--stack .pfx-stage,
.pfx--cube .pfx-stage,
.pfx--helix .pfx-stage,
.pfx--tunnel .pfx-stage,
.pfx--flipbook .pfx-stage,
.pfx--reel .pfx-stage,
.pfx--wave .pfx-stage,
.pfx--fan .pfx-stage,
.pfx--timemachine .pfx-stage,
.pfx--sphere .pfx-stage,
.pfx--wall .pfx-stage,
.pfx--marquee .pfx-stage {
	overflow: hidden;
	cursor: grab;
}

/* ================================================================
 * Orbit Wheel
 * ============================================================= */

.pfx--orbit .pfx-stage {
	perspective: 1400px;
	perspective-origin: var(--pfx-cx, 30%) 50%;
	-webkit-mask-image: linear-gradient(transparent 0, #000 9%, #000 91%, transparent 100%);
	mask-image: linear-gradient(transparent 0, #000 9%, #000 91%, transparent 100%);
}

.pfx--orbit .pfx-deco::before {
	content: "";
	position: absolute;
	top: 50%;
	left: var(--pfx-cx, 30%);
	width: calc(var(--pfx-rx, 200px) * 2);
	height: calc(var(--pfx-ry, 240px) * 2);
	border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	border-radius: 50%;
	transform: translate(-50%, -50%);
}

.pfx--orbit .pfx-deco {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.pfx--orbit.is-ready .pfx-track {
	z-index: 2;
}

.pfx--orbit.is-ready .pfx-item {
	transform-origin: 0 50%;
}

.pfx--orbit .pfx-face {
	flex-direction: row;
	align-items: center;
	gap: 14px;
	padding: var(--pfx-mat);
}

.pfx--orbit .pfx-media {
	flex: 0 0 var(--pfx-thumb, 84px);
	width: var(--pfx-thumb, 84px);
	height: var(--pfx-thumb, 84px);
	aspect-ratio: auto;
	border-radius: max(2px, calc(var(--pfx-radius) - var(--pfx-mat) + 2px));
}

.pfx--orbit .pfx-body {
	flex: 1 1 auto;
	min-width: 0;
	padding: 2px 8px 2px 0;
	overflow: hidden;
}

.pfx--orbit.pfx-cap-hover .pfx-body {
	position: static;
	opacity: 1;
	transform: none;
	box-shadow: none;
	background: none;
	padding: 2px 8px 2px 0;
	pointer-events: auto;
}

.pfx--orbit .pfx-desc {
	-webkit-line-clamp: 2;
}

.pfx--orbit .pfx-item.is-active .pfx-face {
	box-shadow: 0 0 0 1.5px var(--pfx-accent-c), var(--pfx-shadow-lg);
}

.pfx-hub {
	position: absolute;
	z-index: 4;
	top: 50%;
	left: var(--pfx-cx, 30%);
	width: var(--pfx-hub, 200px);
	height: var(--pfx-hub, 200px);
	border-radius: 50%;
	overflow: hidden;
	transform: translate(-50%, -50%);
	background: var(--pfx-card-bg);
	border: var(--pfx-mat) solid var(--pfx-card-bg);
	box-shadow: var(--pfx-shadow-lg), 0 0 0 1px var(--pfx-line);
	pointer-events: none;
}

.pfx .pfx-hub img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 50%;
	object-fit: cover;
	transition: opacity 0.22s ease, transform 0.5s var(--pfx-ease);
}

.pfx .pfx-hub img:not([src]) {
	visibility: hidden;
}

.pfx .pfx-hub img.is-swapping {
	opacity: 0;
	transform: scale(1.04);
}

/* ================================================================
 * Arc, Stack, Cube
 * ============================================================= */

.pfx--arc .pfx-stage {
	perspective: 1800px;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}

.pfx--stack .pfx-stage {
	perspective: 1200px;
	perspective-origin: 50% 0%;
	overflow: visible;
	overflow-x: clip;
}

.pfx--stack.is-ready .pfx-item {
	transform-origin: 50% 100%;
}

.pfx--cube.is-ready .pfx-item {
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.pfx--cube .pfx-body {
	left: 14px;
	bottom: 14px;
	max-width: calc(100% - 28px);
	padding: 14px 16px 16px;
}

.pfx--cube .pfx-title {
	font-size: clamp(1.1875rem, 4.2vw, 1.5rem);
}

.pfx-segments {
	position: absolute;
	z-index: 300;
	top: 28px;
	left: 50%;
	width: calc(var(--pfx-cube-w, 320px) - 28px);
	transform: translateX(-50%);
	display: flex;
	gap: 3px;
	pointer-events: none;
}

.pfx-segments span {
	flex: 1;
	height: 2px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.38);
	overflow: hidden;
}

.pfx-segments i {
	display: block;
	height: 100%;
	background: #fff;
	transform: scaleX(0);
	transform-origin: 0 50%;
}

/* ================================================================
 * Helix, Tunnel, Fan, Time Machine, Wave
 * ============================================================= */

.pfx--helix .pfx-stage {
	-webkit-mask-image: linear-gradient(transparent 0, #000 12%, #000 88%, transparent 100%);
	mask-image: linear-gradient(transparent 0, #000 12%, #000 88%, transparent 100%);
}

.pfx--tunnel .pfx-deco {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 50% 50%, transparent 30%, color-mix(in srgb, currentColor 6%, transparent) 100%);
	pointer-events: none;
}

.pfx--fan.is-ready .pfx-item {
	transform-origin: 50% 150%;
}

.pfx--wave .pfx-stage,
.pfx--wall .pfx-stage,
.pfx--marquee .pfx-stage {
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

/* ================================================================
 * Flip Book
 * ============================================================= */

.pfx--flipbook.is-ready .pfx-item {
	transform-origin: 0 50%;
	transform-style: preserve-3d;
}

.pfx--flipbook .pfx-face {
	border-radius: 0 var(--pfx-radius) var(--pfx-radius) 0;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.pfx--flipbook .pfx-back {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: var(--pfx-radius) 0 0 var(--pfx-radius);
	background: var(--pfx-card-bg);
	box-shadow: var(--pfx-shadow);
	transform: rotateY(180deg);
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.pfx--flipbook .pfx-back .pfx-media {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
}

/* The spine: a soft fold shadow between the pages. */
.pfx--flipbook .pfx-deco {
	position: absolute;
	z-index: 300;
	top: 24px;
	left: 50%;
	width: 40px;
	height: var(--pfx-page-h, 300px);
	transform: translateX(-50%);
	background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.18) 45%, rgba(0, 0, 0, 0.22) 50%, rgba(0, 0, 0, 0.1) 55%, transparent);
	pointer-events: none;
}

/* ================================================================
 * Slot Reel, Sphere
 * ============================================================= */

.pfx--reel .pfx-stage {
	-webkit-mask-image: linear-gradient(transparent 0, #000 18%, #000 82%, transparent 100%);
	mask-image: linear-gradient(transparent 0, #000 18%, #000 82%, transparent 100%);
}

.pfx--reel.is-ready .pfx-track,
.pfx--sphere.is-ready .pfx-track {
	position: absolute;
	inset: 0;
	transform-style: preserve-3d;
	pointer-events: none;
}

.pfx--reel.is-ready .pfx-item,
.pfx--sphere.is-ready .pfx-item,
.pfx--helix.is-ready .pfx-item {
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.pfx--sphere .pfx-stage {
	overflow: visible;
	overflow-x: clip;
}

.pfx--sphere .pfx-body {
	left: 6px;
	bottom: 6px;
	max-width: calc(100% - 12px);
	padding: 6px 8px;
}

.pfx--sphere .pfx-item:not(.is-active) .pfx-body {
	opacity: 0;
}

.pfx--sphere .pfx-title {
	font-size: 0.8125rem;
}

/* Globe cards are small: title only; the viewer shows the full caption. */
.pfx--sphere .pfx-desc,
.pfx--sphere .pfx-btn {
	display: none !important;
}

@media (max-width: 639.98px) {
	.pfx--sphere .pfx-body {
		display: none;
	}
}

/* ================================================================
 * Perspective Wall
 * ============================================================= */

.pfx--wall .pfx-stage {
	perspective-origin: 30% 50%;
}

.pfx--wall.is-ready .pfx-track {
	transform: rotateY(-22deg) translateZ(-40px);
	transform-origin: 50% 50%;
}

/* ================================================================
 * Slideshows: Blinds, Tile Flip, Cinema, Liquid
 * ============================================================= */

.pfx--blinds .pfx-stage,
.pfx--tiles .pfx-stage,
.pfx--cinema .pfx-stage,
.pfx--liquid .pfx-stage {
	overflow: hidden;
	border-radius: var(--pfx-radius);
	perspective: 1600px;
	touch-action: pan-y;
}

.pfx--blinds .pfx-face,
.pfx--tiles .pfx-face,
.pfx--cinema .pfx-face,
.pfx--liquid .pfx-face {
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.pfx--blinds .pfx-item:not(.is-active),
.pfx--tiles .pfx-item:not(.is-active) {
	visibility: hidden;
}

.pfx--cinema .pfx-item,
.pfx--liquid .pfx-item {
	opacity: 0;
	transition: opacity 1.1s ease;
}

.pfx--cinema .pfx-item.is-active,
.pfx--liquid .pfx-item.is-active {
	opacity: 1;
	z-index: 2;
}

.pfx--liquid .pfx-item.is-leaving {
	z-index: 1;
}

.pfx--cinema .pfx-item:not(.is-active),
.pfx--liquid .pfx-item:not(.is-active):not(.is-leaving) {
	pointer-events: none;
}

.pfx--blinds .pfx-body,
.pfx--tiles .pfx-body,
.pfx--cinema .pfx-body,
.pfx--liquid .pfx-body {
	left: clamp(12px, 3vw, 28px);
	bottom: clamp(12px, 3vw, 28px);
	max-width: min(calc(100% - 24px), 52ch);
	padding: 14px 16px 16px;
}

.pfx--blinds .pfx-title,
.pfx--tiles .pfx-title,
.pfx--cinema .pfx-title,
.pfx--liquid .pfx-title {
	font-size: clamp(1.125rem, 2.2vw, 1.5rem);
}

.pfx--blinds .pfx-item.is-active .pfx-body,
.pfx--tiles .pfx-item.is-active .pfx-body,
.pfx--cinema .pfx-item.is-active .pfx-body {
	animation: pfxp-label-in 0.6s var(--pfx-ease) 0.45s both;
}

@keyframes pfxp-label-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.pfx--cinema .pfx-item.is-active .pfx-media img {
	transform-origin: var(--kb-x, 50%) var(--kb-y, 50%);
	animation: pfxp-kenburns var(--kb-time, 6s) linear both;
}

@keyframes pfxp-kenburns {
	from {
		transform: scale(1.02);
	}
	to {
		transform: scale(1.16);
	}
}

.pfxp-pieces {
	position: absolute;
	z-index: 50;
	top: 0;
	left: 0;
	perspective: 1400px;
	pointer-events: none;
}

.pfxp-piece {
	position: absolute;
	perspective: 900px;
}

.pfxp-piece-in {
	position: relative;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	transition-property: transform;
	transition-timing-function: cubic-bezier(0.55, 0.05, 0.3, 1);
}

.pfxp-piece-front,
.pfxp-piece-back {
	position: absolute;
	inset: 0;
	background-repeat: no-repeat;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.pfxp-piece-back.pfxp-axis-y {
	transform: rotateY(180deg);
}

.pfxp-piece-back.pfxp-axis-x {
	transform: rotateX(180deg);
}

.pfxp-svgdefs {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

/* ================================================================
 * Polaroid Table
 * ============================================================= */

.pfx--polaroid .pfx-stage {
	overflow: hidden;
	perspective: 1600px;
	touch-action: pan-y;
}

.pfx--polaroid.is-ready .pfx-item {
	transform-origin: 50% 50%;
	cursor: pointer;
	transition: transform 0.7s var(--pfx-ease);
}

.pfx--polaroid .pfx-item.is-active {
	cursor: zoom-in;
}

.pfx--polaroid .pfx-face {
	padding: 7% 7% 0;
	border: 0;
	border-radius: 2px;
	background: #fbfaf7;
	color: #1c1b19;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 10px 20px -10px rgba(0, 0, 0, 0.45);
}

.pfx--polaroid .pfx-item.is-active .pfx-face {
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18), 0 36px 60px -20px rgba(0, 0, 0, 0.55);
}

.pfx--polaroid .pfx-media {
	aspect-ratio: 1 / 1;
	border-radius: 1px;
}

.pfx--polaroid .pfx-body,
.pfx--polaroid.pfx-cap-hover .pfx-body {
	position: static;
	width: auto;
	max-width: none;
	padding: 8px 2px 10px;
	background: none;
	box-shadow: none;
	color: #1c1b19;
	opacity: 1;
	transform: none;
}

.pfx--polaroid .pfx-title {
	font-size: 0.875rem;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.pfx--polaroid .pfx-item:not(.is-active) .pfx-desc,
.pfx--polaroid .pfx-item:not(.is-active) .pfx-btn {
	display: none;
}

.pfx--polaroid .pfx-desc {
	font-size: 0.6875rem;
	color: #625e57;
}

.pfx--polaroid a.pfx-btn {
	margin-top: 4px;
	padding: 0.35em 0.7em;
	font-size: 0.6875rem;
}

@media (hover: hover) {
	.pfx--polaroid .pfx-item:not(.is-active):hover .pfx-face {
		box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 20px 30px -12px rgba(0, 0, 0, 0.5);
	}
}

/* ================================================================
 * Skew Panels
 * ============================================================= */

.pfx--skew .pfx-stage {
	padding: clamp(10px, 4%, 22px) clamp(24px, 5%, 60px);
	touch-action: pan-y;
}

.pfx--skew.is-ready .pfx-track {
	display: flex;
	gap: 8px;
	height: 100%;
	pointer-events: none;
}

.pfx--skew.is-ready .pfx-item {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	height: 100%;
	pointer-events: auto;
	cursor: pointer;
	transform: skewX(-10deg);
	transition: flex-grow 0.7s var(--pfx-ease);
}

.pfx--skew.is-ready .pfx-item.is-active {
	flex-grow: 5;
	cursor: zoom-in;
}

.pfx--skew .pfx-face {
	border: 0;
}

.pfx--skew .pfx-media img {
	transform: skewX(10deg) scale(1.35);
	transition: transform 0.9s var(--pfx-ease);
}

.pfx--skew .pfx-item.is-active .pfx-media img {
	transform: skewX(10deg) scale(1.2);
}

.pfx--skew .pfx-body {
	transform: skewX(10deg);
	left: 22px;
}

.pfx--skew.pfx-cap-hover .pfx-item:hover .pfx-body {
	transform: skewX(10deg);
}

.pfx--skew .pfx-item:not(.is-active) .pfx-body {
	opacity: 0;
	pointer-events: none;
}

.pfx--skew .pfx-item:not(.is-active) .pfx-shade {
	opacity: 0.25;
}

.pfx--skew.is-vertical.is-ready .pfx-track {
	flex-direction: column;
}

.pfx--skew.is-vertical.is-ready .pfx-item {
	width: 100%;
	height: auto;
	transform: none;
}

.pfx--skew.is-vertical .pfx-media img,
.pfx--skew.is-vertical .pfx-item.is-active .pfx-media img,
.pfx--skew.is-vertical .pfx-body {
	transform: none;
}

.pfx--skew.is-vertical .pfx-body {
	left: 10px;
}

.pfx--skew.is-vertical.is-ready .pfx-item.is-active {
	flex: 0 0 60%;
}

.pfx--skew.is-vertical.is-ready .pfx-item.is-far {
	display: none;
}

/* ================================================================
 * Tilt Grid, Spotlight Grid
 * ============================================================= */

.pfx--tilt .pfx-face {
	transform-style: preserve-3d;
	transition: transform 0.5s var(--pfx-ease), box-shadow 0.3s ease;
	will-change: transform;
}

.pfx--tilt .pfx-item.is-tilting .pfx-face {
	transition: transform 0.08s linear, box-shadow 0.3s ease;
	box-shadow: var(--pfx-shadow-lg);
}

.pfx--tilt.pfx-cappos-label .pfx-media,
.pfx--spotlight.pfx-cappos-label .pfx-media {
	position: relative;
	inset: auto;
}

.pfxp-glare {
	position: absolute;
	inset: 0;
	z-index: 3;
	border-radius: inherit;
	background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.34), transparent 55%);
	opacity: 0;
	pointer-events: none;
	mix-blend-mode: soft-light;
	transition: opacity 0.3s ease;
}

.pfx--tilt .pfx-item.is-tilting .pfxp-glare {
	opacity: 1;
}

.pfxp-spot {
	position: absolute;
	inset: -1px;
	z-index: 20;
	pointer-events: none;
	background: radial-gradient(circle 220px at var(--x, 50%) var(--y, 50%), transparent 0, transparent 40%, rgba(10, 9, 8, 0.72) 100%);
	opacity: 0;
	transition: opacity 0.35s ease;
}

.pfx--spotlight.is-spotlit .pfxp-spot {
	opacity: 1;
}

.pfx--spotlight .pfx-body {
	z-index: 25;
}

/* ================================================================
 * Infinite Marquee
 * ============================================================= */

.pfx--marquee .pfx-stage {
	perspective: 1200px;
	cursor: default;
}

.pfx--marquee.is-ready .pfx-track {
	transform: rotateX(24deg) rotateZ(-8deg) scale(1.08);
	transform-origin: 50% 50%;
}

.pfx--marquee.is-ready .pfx-item {
	cursor: zoom-in;
}

.pfx--marquee .pfx-item:not(:hover) .pfx-body {
	opacity: 0;
}

/* ================================================================
 * Scroll Gallery, Stacking Cards (driven by page scroll)
 * ============================================================= */

.pfx--scrollx .pfx-stage,
.pfx--stackscroll .pfx-stage {
	touch-action: auto;
}

.pfx--scrollx.has-bg,
.pfx--stackscroll.has-bg {
	overflow: clip;
}

.pfx--scrollx.is-ready .pfx-track {
	position: sticky;
	overflow: hidden;
	perspective: 1300px;
	transform-style: preserve-3d;
}

.pfx--stackscroll.is-ready .pfx-track {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.pfx--stackscroll.is-ready .pfx-item {
	position: sticky;
	left: auto;
}

.pfx--stackscroll .pfx-face {
	transform-origin: 50% 0%;
	will-change: transform;
}

.pfx--stackscroll .pfx-body {
	left: clamp(12px, 3vw, 28px);
	bottom: clamp(12px, 3vw, 28px);
	padding: 14px 16px 16px;
}

.pfx--stackscroll .pfx-title {
	font-size: clamp(1.125rem, 2.2vw, 1.5rem);
}

/* ================================================================
 * Video items
 * ============================================================= */

.pfxp-play {
	position: absolute;
	z-index: 4;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(18, 17, 16, 0.62);
	color: #fff;
	transform: translate(-50%, -50%);
	pointer-events: none;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.pfxp-play svg {
	width: 22px;
	height: 22px;
	margin-left: 3px;
	fill: currentColor;
}

.pfx-cappos-label .pfxp-play,
.pfx-static .pfxp-play {
	top: calc(50% - 20px);
}

.pfx-lb .pfxp-video {
	width: min(calc(100vw - 2 * clamp(56px, 8vw, 112px)), calc((100vh - 220px) * 16 / 9));
	width: min(calc(100vw - 2 * clamp(56px, 8vw, 112px)), calc((100dvh - 220px) * 16 / 9));
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}

.pfx-lb .pfxp-video iframe,
.pfx-lb .pfxp-video video {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ================================================================
 * Protection
 * ============================================================= */

.pfxp-protect .pfx-media,
.pfx-lb.pfxp-protect .pfx-lb-media {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
}

.pfxp-wm .pfx-media::after,
.pfx-lb.pfxp-wm .pfx-lb-media::after {
	content: "";
	position: absolute;
	z-index: 2;
	inset: 0;
	pointer-events: none;
	background-image: var(--pfxp-wm);
	background-repeat: no-repeat;
	background-position: right 8px bottom 8px;
	background-size: auto min(30px, 14%);
}

.pfxp-wm-center .pfx-media::after,
.pfx-lb.pfxp-wm-center .pfx-lb-media::after {
	background-position: center;
	background-size: min(60%, 360px) auto;
}

.pfxp-wm-tiled .pfx-media::after,
.pfx-lb.pfxp-wm-tiled .pfx-lb-media::after {
	background-repeat: repeat;
	background-position: 0 0;
	background-size: auto;
}

/* Password form */
.pfxp-lock {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	max-width: 440px;
	margin: 0 auto;
	padding: 36px 24px;
	border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
	border-radius: 10px;
	text-align: center;
}

.pfxp-lock svg {
	width: 28px;
	height: 28px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	opacity: 0.7;
}

.pfxp-lock p {
	margin: 0;
}

.pfxp-lock-title {
	font-size: 1.125rem;
	font-weight: 600;
}

.pfxp-lock-text {
	opacity: 0.75;
	font-size: 0.9375rem;
}

.pfxp-lock-error {
	color: #b32d2e;
	font-size: 0.875rem;
}

.pfxp-lock-row {
	display: flex;
	gap: 8px;
	width: 100%;
	margin-top: 8px;
}

.pfxp-lock input[type="password"] {
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font: inherit;
}

.pfxp-lock button {
	padding: 10px 16px;
	border: 0;
	border-radius: 6px;
	background: currentColor;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.pfxp-lock button {
	color: inherit;
	background: color-mix(in srgb, currentColor 12%, transparent);
	border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
}

/* ================================================================
 * Albums
 * ============================================================= */

.pfxp-covers {
	display: grid;
	grid-template-columns: repeat(var(--pfxp-album-cols, 3), minmax(0, 1fr));
	gap: 28px 20px;
}

@media (max-width: 900px) {
	.pfxp-covers {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.pfxp-covers {
		grid-template-columns: 1fr;
	}
}

.pfxp-covers[hidden],
.pfxp-album-view[hidden] {
	display: none;
}

.pfxp-cover {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.pfxp-cover-img {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(20, 18, 15, 0.12), 0 18px 32px -16px rgba(20, 18, 15, 0.3);
}

/* Two prints peeking out behind the cover: this is a set, not a single photo. */
.pfxp-cover-img::before,
.pfxp-cover-img::after {
	content: none;
}

.pfxp-cover-wrap {
	position: relative;
	isolation: isolate;
}

.pfxp-cover-wrap::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: -6px;
	left: 10px;
	right: 10px;
	height: 40px;
	border-radius: 10px;
	background: color-mix(in srgb, currentColor 14%, transparent);
}

.pfxp-cover-img img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.22, 0.8, 0.24, 1);
}

@media (hover: hover) {
	.pfxp-cover:hover .pfxp-cover-img img {
		transform: scale(1.04);
	}
}

.pfxp-cover:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
	border-radius: 12px;
}

.pfxp-cover-text {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 10px;
	padding: 12px 2px 0;
}

.pfxp-cover-title {
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.pfxp-cover-count {
	font-size: 0.8125rem;
	opacity: 0.65;
	font-variant-numeric: tabular-nums;
}

.pfxp-cover-lock {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.8125rem;
	opacity: 0.65;
}

.pfxp-cover-lock svg {
	width: 13px;
	height: 13px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

.pfxp-album-back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0 0 6px;
	padding: 6px 10px 6px 4px;
	border: 0;
	border-radius: 6px;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 0.9375rem;
	cursor: pointer;
	opacity: 0.8;
}

.pfxp-album-back:hover {
	opacity: 1;
	background: color-mix(in srgb, currentColor 8%, transparent);
}

.pfxp-album-back svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

.pfxp-album-title {
	margin: 0 0 20px;
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.015em;
}

.pfxp-album-status {
	opacity: 0.7;
}

@media (max-width: 640px) {
	.pfx-lb .pfxp-video {
		width: calc(100vw - 24px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.pfx--cinema .pfx-item.is-active .pfx-media img {
		animation: none;
	}
}

/* Locked gallery cover: no photo is shown until it's unlocked. */
.pfxp-cover-img--locked {
	display: grid;
	place-items: center;
	background: color-mix(in srgb, currentColor 8%, transparent);
}
.pfxp-cover-img--locked svg {
	width: 40px;
	height: 40px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	opacity: .55;
}

/* Small Helix cards on phones: the caption shrinks to a one-line title. */
.pfx.pfxp-compact .pfx-desc,
.pfx.pfxp-compact .pfx-btn {
	display: none;
}
.pfx.pfxp-compact .pfx-title {
	overflow: hidden;
	font-size: 11px;
	line-height: 1.3;
	white-space: nowrap;
	text-overflow: ellipsis;
	max-width: 100%;
	overflow-wrap: normal;
}
.pfx.pfxp-compact .pfx-body {
	max-width: calc(100% - 12px);
	padding: 4px 7px;
}
