/*
 * SWPL Product Media classic gallery (frontend).
 * Theme-neutral layout only; the runtime modules inject their own styles.
 */

.swpl-pm-gallery {
	max-width: 100%;
}

.swpl-pm-gallery__main {
	margin-bottom: 12px;
}

.swpl-pm-gallery__main img,
.swpl-pm-gallery__main video {
	max-width: 100%;
	height: auto;
}

.swpl-pm-gallery__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.swpl-pm-gallery__thumb {
	position: relative;
	width: 72px;
	height: 72px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 4px;
	background: #f0f0f1;
	cursor: pointer;
	overflow: hidden;
}

.swpl-pm-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.swpl-pm-gallery__thumb--active {
	border-color: #2271b1;
}

.swpl-pm-gallery__thumb:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 1px;
}

.swpl-pm-gallery__play-badge {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 18px;
	background: rgba(20, 22, 28, 0.45);
	pointer-events: none;
}
