/* Artist gallery lightbox */
.rba-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: stretch;
	justify-content: center;
	background: rgba(20, 35, 51, 0.92);
	color: #f5efe8;
	padding: 0;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.28s ease, visibility 0.28s ease;
}

.rba-lb.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.rba-lb__backdrop {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.rba-lb__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	max-height: 100%;
	margin: 0;
	box-sizing: border-box;
	padding: 2.75rem 3.75rem 0;
}

.rba-lb__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 5;
	appearance: none;
	border: 1px solid rgba(245, 239, 232, 0.45);
	background: rgba(20, 35, 51, 0.65);
	color: #f5efe8;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.rba-lb__close svg {
	width: 1.15rem;
	height: 1.15rem;
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.rba-lb__close:hover,
.rba-lb__close:focus {
	background: rgba(20, 35, 51, 0.9);
	outline: none;
}

.rba-lb__stage {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	touch-action: none;
	cursor: default;
}

.rba-lb__stage.is-zoomed {
	cursor: grab;
}

.rba-lb__stage.is-dragging {
	cursor: grabbing;
}

.rba-lb__img-wrap {
	max-width: 100%;
	max-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	transform-origin: center center;
	will-change: transform, opacity;
	opacity: 1;
	transition: transform 0.28s ease, opacity 0.28s ease;
}

.rba-lb__img-wrap.is-fading {
	opacity: 0;
}

.rba-lb__stage.is-dragging .rba-lb__img-wrap {
	transition: none;
}

.rba-lb__img-wrap img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 11rem);
	width: auto;
	height: auto;
	object-fit: contain;
	user-select: none;
	-webkit-user-drag: none;
}

.rba-lb__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 1px solid rgba(245, 239, 232, 0.45);
	border-radius: 0;
	background: rgba(20, 35, 51, 0.65);
	color: #f5efe8;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.rba-lb__nav svg {
	width: 1.35rem;
	height: 1.35rem;
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rba-lb__nav:hover,
.rba-lb__nav:focus {
	background: rgba(20, 35, 51, 0.9);
	outline: none;
}

.rba-lb__nav--prev {
	left: 0.85rem;
}

.rba-lb__nav--next {
	right: 0.85rem;
}

.rba-lb__caption {
	flex: 0 0 auto;
	padding: 0.85rem 1.5rem 1.35rem;
	text-align: center;
	max-width: 52rem;
	margin: 0 auto;
	width: 100%;
	box-sizing: border-box;
}

.rba-lb__title {
	margin: 0 0 0.35rem;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #f5efe8;
}

.rba-lb__status {
	margin: 0 0 0.45rem;
	font-size: 0.98rem;
	line-height: 1.4;
	color: rgba(245, 239, 232, 0.92);
}

.rba-lb__sold {
	color: #f5efe8;
}

.rba-lb__details {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.45;
	color: rgba(245, 239, 232, 0.85);
	white-space: pre-wrap;
}

.rba-lb__topbar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 4;
	min-height: 2.75rem;
	padding: 0.75rem 4.25rem 0 1rem;
	box-sizing: border-box;
	pointer-events: none;
}

.rba-lb__counter {
	position: absolute;
	left: 1rem;
	top: 1.15rem;
	z-index: 2;
	font-size: 0.8rem;
	opacity: 0.7;
	pointer-events: none;
}

.rba-lb__artist {
	position: absolute;
	left: 50%;
	top: 1.05rem;
	transform: translateX(-50%);
	margin: 0;
	max-width: calc(100% - 9rem);
	font-size: 0.95rem;
	line-height: 1.3;
	color: rgba(245, 239, 232, 0.95);
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
}

.rba-lb__artist small {
	font-size: 0.85em;
	opacity: 0.9;
}

/* Vertical zoom controls — bottom right */
.rba-lb__zoom-wrap {
	position: absolute;
	right: 1rem;
	bottom: 1.25rem;
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	width: 2.75rem;
	padding: 0.45rem 0.35rem;
	box-sizing: border-box;
	background: rgba(20, 35, 51, 0.55);
	border: 1px solid rgba(245, 239, 232, 0.35);
}

.rba-lb__zoom-btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: #f5efe8;
	width: 2rem;
	height: 2rem;
	padding: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.rba-lb__zoom-btn svg {
	width: 1rem;
	height: 1rem;
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.rba-lb__zoom-btn:hover,
.rba-lb__zoom-btn:focus {
	background: rgba(245, 239, 232, 0.12);
	outline: none;
}

.rba-lb__zoom-btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.rba-lb__zoom-track {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 7.5rem;
}

.rba-lb__zoom {
	width: 7rem;
	height: 1.15rem;
	margin: 0;
	accent-color: #f5efe8;
	cursor: pointer;
	transform: rotate(-90deg);
	transform-origin: center center;
}

@media (max-width: 600px) {
	.rba-lb__panel {
		padding: 2.5rem 3rem 0;
	}

	.rba-lb__close {
		top: 0.5rem;
		right: 0.5rem;
		width: 2.5rem;
		height: 2.5rem;
	}

	.rba-lb__img-wrap img {
		max-height: calc(100vh - 12rem);
	}

	.rba-lb__nav {
		width: 2.5rem;
		height: 2.5rem;
	}

	.rba-lb__nav svg {
		width: 1.15rem;
		height: 1.15rem;
	}

	.rba-lb__nav--prev {
		left: 0.4rem;
	}

	.rba-lb__nav--next {
		right: 0.4rem;
	}

	.rba-lb__caption {
		padding: 0.75rem 0.75rem 1rem;
	}

	.rba-lb__topbar {
		padding: 0.5rem 3.75rem 0 0.75rem;
		min-height: 2.5rem;
	}

	.rba-lb__counter {
		left: 0.75rem;
		top: 0.85rem;
	}

	.rba-lb__artist {
		top: 0.8rem;
		font-size: 0.85rem;
		max-width: calc(100% - 7.5rem);
	}

	.rba-lb__zoom-wrap {
		right: 0.5rem;
		bottom: 0.85rem;
	}

	.rba-lb__zoom-track {
		height: 5.75rem;
	}

	.rba-lb__zoom {
		width: 5.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rba-lb,
	.rba-lb__img-wrap {
		transition: none !important;
	}
}
