.swg { position: relative; max-width: 100%; margin: 1.5em 0; }
.swg:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Free, smooth scrolling strip: no snapping */
.swg .swg-track {
	display: flex;
	gap: var(--swg-gap, 12px);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	cursor: grab;
}
.swg .swg-track::-webkit-scrollbar { display: none; }
.swg .swg-track.is-dragging { cursor: grabbing; user-select: none; }

.swg .swg-slide {
	flex: 0 0 auto;
	height: var(--swg-h, 300px);
	margin: 0;
	position: relative;
}
.swg .swg-link { display: block; height: 100%; }
.swg .swg-slide .swg-img {
	display: block;
	height: 100% !important;
	width: auto !important;
	max-width: none !important;
	-webkit-user-drag: none;
	user-select: none;
}

.swg .swg-cap {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: .6em 1em; color: #fff; font-size: .9em;
	background: linear-gradient(transparent, rgba(0,0,0,.65));
	pointer-events: none;
}

/* Plain arrow icons, no background */
.swg .swg-btn {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 2.75em; height: 3.5em; min-width: 0; padding: 0; margin: 0;
	border: 0; border-radius: 0; box-shadow: none; background: none;
	color: #fff; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	filter: drop-shadow(0 1px 3px rgba(0,0,0,.6));
	transition: opacity .2s;
}
.swg .swg-btn:hover, .swg .swg-btn:focus-visible { background: none; opacity: .75; }
.swg .swg-btn svg {
	width: 2em; height: 2em;
	fill: none; stroke: currentColor; stroke-width: 2.5;
	stroke-linecap: round; stroke-linejoin: round;
}
.swg .swg-btn[disabled] { opacity: 0; pointer-events: none; }
.swg .swg-prev { left: .25em; }
.swg .swg-next { right: .25em; }

@media (max-width: 600px) {
	.swg .swg-slide { height: var(--swg-hm, var(--swg-h, 200px)); }
}
@media (hover: none) { .swg .swg-btn { display: none; } } /* touch: just swipe */
