.pswp-player {
	--pswp-accent: #7c3aed;
	margin: 0 0 1.5em;
	font-size: 16px;
}

.pswp-stage {
	position: relative;
	aspect-ratio: 4 / 3;
	max-height: 80vh;
	width: 100%;
	background: #0b0b10;
	border-radius: 12px;
	overflow: hidden;
	color: #f5f5f7;
}

.pswp-start {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 16px;
	overflow: auto;
}

.pswp-start[hidden],
.pswp-progress[hidden],
.pswp-error[hidden] {
	display: none;
}

.pswp-cover {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: blur(6px) brightness(0.4);
	transform: scale(1.08);
}

.pswp-start-inner {
	position: relative;
	max-width: 420px;
	width: 100%;
}

.pswp-title {
	margin: 0 0 16px;
	color: #fff;
	font-size: 1.4em;
	line-height: 1.3;
}

.pswp-btn {
	display: inline-block;
	padding: 12px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--pswp-accent);
	color: #fff;
	font-size: 1.05em;
	font-weight: 600;
	cursor: pointer;
}

.pswp-btn:hover,
.pswp-btn:focus-visible {
	filter: brightness(1.12);
}

.pswp-btn-secondary {
	margin-top: 8px;
	padding: 8px 20px;
	font-size: 0.95em;
}

.pswp-meta,
.pswp-hint {
	margin: 10px 0 0;
	font-size: 0.85em;
	color: #c9c9d1;
}

.pswp-local {
	margin-top: 16px;
	padding: 10px 12px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.08);
	text-align: left;
}

.pswp-local summary {
	cursor: pointer;
	font-size: 0.9em;
}

.pswp-file {
	display: block;
	margin-top: 10px;
	font-size: 0.85em;
}

.pswp-file input {
	display: block;
	width: 100%;
	margin-top: 4px;
	color: inherit;
}

.pswp-progress {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: #0b0b10;
	z-index: 2;
}

.pswp-progress-track {
	width: min(360px, 100%);
	height: 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.15);
	overflow: hidden;
}

.pswp-progress-bar {
	height: 100%;
	width: 0;
	background: var(--pswp-accent);
	transition: width 0.2s;
}

.pswp-progress.is-indeterminate .pswp-progress-bar {
	width: 30% !important;
	animation: pswp-slide 1.2s ease-in-out infinite;
}

@keyframes pswp-slide {
	from { transform: translateX(-100%); }
	to { transform: translateX(340%); }
}

.pswp-progress-text {
	margin: 12px 0 0;
	font-size: 0.9em;
	font-variant-numeric: tabular-nums;
}

.pswp-error {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	padding: 10px 14px;
	border-radius: 8px;
	background: #b42318;
	color: #fff;
	font-size: 0.9em;
	z-index: 3;
}

.pswp-ejs {
	width: 100%;
	height: 100%;
}

.pswp-footer {
	margin: 6px 0 0;
	text-align: right;
}

.pswp-link {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-size: 0.8em;
	opacity: 0.7;
	text-decoration: underline;
	cursor: pointer;
}

.pswp-notice {
	padding: 10px 14px;
	border-left: 4px solid #dba617;
	background: #fcf9e8;
}

/* ---------- Library ---------- */

.pswp-library {
	--pswp-columns: 4;
	display: grid;
	grid-template-columns: repeat(var(--pswp-columns), minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 1.5em;
}

@media (max-width: 782px) {
	.pswp-library {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.pswp-card {
	display: block;
	color: inherit;
	text-decoration: none;
}

.pswp-card-cover {
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	overflow: hidden;
	background: #1c1c24;
}

.pswp-card-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s;
}

.pswp-card:hover .pswp-card-cover img {
	transform: scale(1.05);
}

.pswp-card-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #6b6b78;
	font-weight: 700;
	font-size: 1.5em;
}

.pswp-card-title {
	display: block;
	margin-top: 8px;
	font-weight: 600;
	line-height: 1.3;
}

.pswp-pagination {
	margin-top: 1em;
}
