/**
 * PhotoSwipe Custom Caption Styles
 *
 * Minimal styling for dynamic captions in PhotoSwipe lightbox
 *
 * @package Smart_Gallery_Optimizer
 * @since 1.0.0
 */

/* Caption container */
.pswp__custom-caption {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	padding: 16px 20px;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.75) 0%,
		rgba(0, 0, 0, 0.3) 70%,
		rgba(0, 0, 0, 0) 100%
	);
	color: #fff;
	font-size: 14px;
	line-height: 1.5;
	z-index: 20;
	pointer-events: none;
	box-sizing: border-box;
}

/* Title (bold) */
.pswp__custom-caption strong {
	display: block;
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 4px;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Caption text */
.pswp__custom-caption {
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Hide caption when empty */
.pswp__custom-caption:empty {
	display: none !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
	.pswp__custom-caption {
		padding: 12px 16px;
		font-size: 13px;
	}

	.pswp__custom-caption strong {
		font-size: 15px;
	}
}
