/*
 * Galleo Pro — layout styles. Builds on galleo.css tokens.
 */

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

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

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

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

.galleo--orbit .galleo-stage {
	perspective: 1400px;
	perspective-origin: var(--galleo-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%);
}

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

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

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

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

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

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

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

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

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

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

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

.galleo .galleo-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(--galleo-ease);
}

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

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

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

.galleo--arc .galleo-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%);
}

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

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

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

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

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

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

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

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

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

.galleo--helix .galleo-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%);
}

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

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

.galleo--wave .galleo-stage,
.galleo--wall .galleo-stage,
.galleo--marquee .galleo-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
 * ============================================================= */

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

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

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

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

/* The spine: a soft fold shadow between the pages. */
.galleo--flipbook .galleo-deco {
	position: absolute;
	z-index: 300;
	top: 24px;
	left: 50%;
	width: 40px;
	height: var(--galleo-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
 * ============================================================= */

.galleo--reel .galleo-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%);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.galleo-pro-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);
}

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

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

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

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

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

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

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

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

.galleo--polaroid .galleo-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);
}

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

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

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

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

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

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

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

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

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

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

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

.galleo--skew.is-ready .galleo-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(--galleo-ease);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.galleo--tilt .galleo-item.is-tilting .galleo-pro-glare {
	opacity: 1;
}

.galleo-pro-spot {
	position: absolute;
	inset: -1px;
	z-index: 20;
	overflow: hidden;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.35s ease;
}

/* The light is drawn once and moved with transform, so following the pointer never repaints. */
.galleo-pro-spot-light {
	position: absolute;
	top: 0;
	left: 0;
	width: 3000px;
	height: 3000px;
	margin: -1500px 0 0 -1500px;
	background: radial-gradient(circle 220px at 50% 50%, transparent 0, transparent 40%, rgba(10, 9, 8, 0.72) 100%);
	will-change: transform;
}

.galleo--spotlight.is-spotlit .galleo-pro-spot {
	opacity: 1;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.galleo-pro-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);
}

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

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

.galleo-lb .galleo-pro-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);
}

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

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

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

/* Password form */
.galleo-pro-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;
}

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

.galleo-pro-lock p {
	margin: 0;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.galleo-pro-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. */
.galleo-pro-cover-img::before,
.galleo-pro-cover-img::after {
	content: none;
}

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

.galleo-pro-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);
}

.galleo-pro-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) {
	.galleo-pro-cover:hover .galleo-pro-cover-img img {
		transform: scale(1.04);
	}
}

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

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

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

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

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

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

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

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

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

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

.galleo-pro-album-status {
	opacity: 0.7;
}

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

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

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

