.pswp .kp-pswp-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 104px;
	padding: 12px 16px;
	text-align: center;
	pointer-events: none;
}

.pswp .kp-pswp-caption-title {
	display: inline-block;
	max-width: min(920px, 92vw);
	padding: 8px 12px;
	background: rgba(0, 0, 0, 0.65);
	color: #ffffff;
	font-size: 0.95rem;
	line-height: 1.45;
	border-radius: 6px;
	pointer-events: auto;
}

.pswp .kp-pswp-thumbnails-wrap {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 20px;
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: min(960px, calc(100vw - 32px));
	width: min(960px, calc(100vw - 32px));
	pointer-events: auto;
}

.pswp .kp-pswp-thumbnails-viewport {
	flex: 1 1 auto;
	overflow-x: auto;
	overflow-y: hidden;
	background: transparent;
	border-radius: 8px;
	scrollbar-width: none;
	-ms-overflow-style: none;
    text-align: center;
}

.pswp .kp-pswp-thumbnails-viewport::-webkit-scrollbar {
	display: none;
}

.pswp .kp-pswp-thumbnails {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px;
    width: auto;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.pswp .kp-pswp-thumbnails-nav {
	width: 34px;
	height: 34px;
    border: 0;
	background: transparent;
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.pswp .kp-pswp-thumbnails-wrap.is-overflowing .kp-pswp-thumbnails-nav {
	opacity: 1;
	pointer-events: auto;
}

.pswp .kp-pswp-thumbnails-nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.pswp .kp-pswp-thumb {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 4px;
	background: transparent;
	cursor: pointer;
}

.pswp .kp-pswp-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 2px;
}

.pswp .kp-pswp-thumb.is-active {
	border-color: #ffffff;
}

.pswp .kp-pswp-thumb:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 1px;
}

@media (max-width: 767px) {
	.pswp .kp-pswp-caption {
		bottom: 90px;
		padding: 8px 10px;
	}

	.pswp .kp-pswp-caption-title {
		font-size: 0.875rem;
	}

	.pswp .kp-pswp-thumbnails {
		gap: 6px;
		padding: 6px;
	}

	.pswp .kp-pswp-thumbnails-wrap {
		bottom: 14px;
		gap: 6px;
	}

	.pswp .kp-pswp-thumbnails-nav {
		width: 30px;
		height: 30px;
	}

	.pswp .kp-pswp-thumb {
		width: 48px;
		height: 48px;
	}
}
